From f7d465f91be504d210af5b5d7ee65d6922551d91 Mon Sep 17 00:00:00 2001 From: Konsti Wohlwend Date: Wed, 3 Jun 2026 13:13:38 -0700 Subject: [PATCH 1/2] Publish src folder alongside dist in all packages (#1545) --- packages/dashboard-ui-components/package.json | 1 + packages/js/package.json | 1 + packages/react/package.json | 1 + packages/stack-cli/package.json | 1 + packages/stack-sc/package.json | 1 + packages/stack-shared/package.json | 1 + packages/stack-ui/package.json | 1 + packages/stack/package.json | 1 + packages/tanstack-start/package.json | 1 + packages/template/package-template.json | 1 + packages/template/package.json | 1 + 11 files changed, 11 insertions(+) diff --git a/packages/dashboard-ui-components/package.json b/packages/dashboard-ui-components/package.json index 816d1754a..9b6ca165a 100644 --- a/packages/dashboard-ui-components/package.json +++ b/packages/dashboard-ui-components/package.json @@ -17,6 +17,7 @@ "files": [ "README.md", "dist", + "src", "CHANGELOG.md", "LICENSE" ], diff --git a/packages/js/package.json b/packages/js/package.json index 3477b0d95..0efaab3b4 100644 --- a/packages/js/package.json +++ b/packages/js/package.json @@ -46,6 +46,7 @@ "files": [ "README.md", "dist", + "src", "CHANGELOG.md", "LICENSE" ], diff --git a/packages/react/package.json b/packages/react/package.json index 110f79800..9db3f283a 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -54,6 +54,7 @@ "files": [ "README.md", "dist", + "src", "CHANGELOG.md", "LICENSE" ], diff --git a/packages/stack-cli/package.json b/packages/stack-cli/package.json index 74b427f72..ca7d1718d 100644 --- a/packages/stack-cli/package.json +++ b/packages/stack-cli/package.json @@ -20,6 +20,7 @@ "files": [ "README.md", "dist", + "src", "CHANGELOG.md", "LICENSE" ], diff --git a/packages/stack-sc/package.json b/packages/stack-sc/package.json index 447f8ead7..1cf2e98ee 100644 --- a/packages/stack-sc/package.json +++ b/packages/stack-sc/package.json @@ -43,6 +43,7 @@ "files": [ "README.md", "dist", + "src", "CHANGELOG.md", "LICENSE" ], diff --git a/packages/stack-shared/package.json b/packages/stack-shared/package.json index 08829b22d..c645be8ab 100644 --- a/packages/stack-shared/package.json +++ b/packages/stack-shared/package.json @@ -13,6 +13,7 @@ "files": [ "README.md", "dist", + "src", "CHANGELOG.md", "LICENSE" ], diff --git a/packages/stack-ui/package.json b/packages/stack-ui/package.json index ee0910fbe..773b2b29f 100644 --- a/packages/stack-ui/package.json +++ b/packages/stack-ui/package.json @@ -15,6 +15,7 @@ "files": [ "README.md", "dist", + "src", "CHANGELOG.md", "LICENSE" ], diff --git a/packages/stack/package.json b/packages/stack/package.json index 1cd1433fb..152993f6a 100644 --- a/packages/stack/package.json +++ b/packages/stack/package.json @@ -54,6 +54,7 @@ "files": [ "README.md", "dist", + "src", "CHANGELOG.md", "LICENSE" ], diff --git a/packages/tanstack-start/package.json b/packages/tanstack-start/package.json index 26da73a78..dedea280d 100644 --- a/packages/tanstack-start/package.json +++ b/packages/tanstack-start/package.json @@ -65,6 +65,7 @@ "files": [ "README.md", "dist", + "src", "CHANGELOG.md", "LICENSE" ], diff --git a/packages/template/package-template.json b/packages/template/package-template.json index e306f56f8..e72afff93 100644 --- a/packages/template/package-template.json +++ b/packages/template/package-template.json @@ -97,6 +97,7 @@ "files": [ "README.md", "dist", + "src", "CHANGELOG.md", "LICENSE" ], diff --git a/packages/template/package.json b/packages/template/package.json index c1d368b68..d534c2ddd 100644 --- a/packages/template/package.json +++ b/packages/template/package.json @@ -70,6 +70,7 @@ "files": [ "README.md", "dist", + "src", "CHANGELOG.md", "LICENSE" ], From 74e7fb8e9d038b59f015e2af394c2b53b6ebc500 Mon Sep 17 00:00:00 2001 From: Konstantin Wohlwend Date: Wed, 3 Jun 2026 13:19:02 -0700 Subject: [PATCH 2/2] Add SDK reminder note --- packages/js/package.json | 2 +- packages/react/package.json | 2 +- packages/stack-shared/src/ai/unified-prompts/reminders.ts | 1 + packages/stack/package.json | 2 +- packages/tanstack-start/package.json | 2 +- packages/template/package.json | 2 +- scripts/utils.ts | 2 +- 7 files changed, 7 insertions(+), 6 deletions(-) diff --git a/packages/js/package.json b/packages/js/package.json index 0efaab3b4..021e37bc6 100644 --- a/packages/js/package.json +++ b/packages/js/package.json @@ -1,5 +1,5 @@ { - "//": "THIS FILE IS AUTO-GENERATED FROM TEMPLATE. DO NOT EDIT IT DIRECTLY, INSTEAD EDIT THE CORRESPONDING FILE IN packages/template (FOR package.json FILES, PLEASE EDIT package-template.json)", + "//": "THIS FILE IS AUTO-GENERATED FROM TEMPLATE. DO NOT EDIT IT DIRECTLY UNLESS YOU ALSO EDIT THE CORRESPONDING FILE IN packages/template (FOR package.json FILES, PLEASE EDIT package-template.json)", "name": "@hexclave/js", "version": "1.0.4", "repository": "https://github.com/hexclave/hexclave", diff --git a/packages/react/package.json b/packages/react/package.json index 9db3f283a..f5bff7eb3 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,5 +1,5 @@ { - "//": "THIS FILE IS AUTO-GENERATED FROM TEMPLATE. DO NOT EDIT IT DIRECTLY, INSTEAD EDIT THE CORRESPONDING FILE IN packages/template (FOR package.json FILES, PLEASE EDIT package-template.json)", + "//": "THIS FILE IS AUTO-GENERATED FROM TEMPLATE. DO NOT EDIT IT DIRECTLY UNLESS YOU ALSO EDIT THE CORRESPONDING FILE IN packages/template (FOR package.json FILES, PLEASE EDIT package-template.json)", "name": "@hexclave/react", "version": "1.0.4", "repository": "https://github.com/hexclave/hexclave", diff --git a/packages/stack-shared/src/ai/unified-prompts/reminders.ts b/packages/stack-shared/src/ai/unified-prompts/reminders.ts index 1dc014f62..1ab6db3c3 100644 --- a/packages/stack-shared/src/ai/unified-prompts/reminders.ts +++ b/packages/stack-shared/src/ai/unified-prompts/reminders.ts @@ -7,6 +7,7 @@ export const remindersPrompt = deindent` - Hexclave has multiple sources of documentation optimized for LLMs. For the canonical, always-fresh instructions for every Hexclave surface, always prefer these sources over information that may be outdated or stale. Do not rely on training data or memory. - [Highest priority] If you are an AI agent: The best way to learn about Hexclave is to fetch the latest skill documentation from https://skill.hexclave.com. Fetch the entire page, not just a summary. You can either use a web fetch tool, or call it using curl: \`curl -sSL https://skill.hexclave.com\`. This is sufficient for most simple questions. - It is highly recommended that you add two query parameters to the web fetch \`?question=<...>\` (the exact question you're looking to answer) and \`?context=<...>\` (the higher-level task that the you or the user is trying to accomplish). This will help the Skills site to serve you only the content that is necessary, as well as avoid the XY-problem. + - [Medium priority] If you are looking to implement something with the JS SDK specifically, the package (which you can probably find in \`node_modules\`) actually contains the source code for the installed version of the SDK. For the interfaces in particular, you can find most of them in the \`src/lib/stack-app\` folder of your SDK package. - [Medium priority] If you have a specific question, and the Hexclave MCP is available, you can also use the \`ask_hexclave\` tool to ask questions to the Hexclave assistant. - [Low priority] If you're looking for information that's not in the skill documentation, and the \`ask_hexclave\` tool isn't available (or failed to answer your question), you can also fetch the human documentation from https://docs.hexclave.com (it may also be available as a tool). This is especially useful when you're looking to answer conceptual questions. - For complicated questions, you may need to combine all these sources together. diff --git a/packages/stack/package.json b/packages/stack/package.json index 152993f6a..ec5158c49 100644 --- a/packages/stack/package.json +++ b/packages/stack/package.json @@ -1,5 +1,5 @@ { - "//": "THIS FILE IS AUTO-GENERATED FROM TEMPLATE. DO NOT EDIT IT DIRECTLY, INSTEAD EDIT THE CORRESPONDING FILE IN packages/template (FOR package.json FILES, PLEASE EDIT package-template.json)", + "//": "THIS FILE IS AUTO-GENERATED FROM TEMPLATE. DO NOT EDIT IT DIRECTLY UNLESS YOU ALSO EDIT THE CORRESPONDING FILE IN packages/template (FOR package.json FILES, PLEASE EDIT package-template.json)", "name": "@hexclave/next", "version": "1.0.4", "repository": "https://github.com/hexclave/hexclave", diff --git a/packages/tanstack-start/package.json b/packages/tanstack-start/package.json index dedea280d..a76902527 100644 --- a/packages/tanstack-start/package.json +++ b/packages/tanstack-start/package.json @@ -1,5 +1,5 @@ { - "//": "THIS FILE IS AUTO-GENERATED FROM TEMPLATE. DO NOT EDIT IT DIRECTLY, INSTEAD EDIT THE CORRESPONDING FILE IN packages/template (FOR package.json FILES, PLEASE EDIT package-template.json)", + "//": "THIS FILE IS AUTO-GENERATED FROM TEMPLATE. DO NOT EDIT IT DIRECTLY UNLESS YOU ALSO EDIT THE CORRESPONDING FILE IN packages/template (FOR package.json FILES, PLEASE EDIT package-template.json)", "name": "@hexclave/tanstack-start", "version": "1.0.4", "repository": "https://github.com/hexclave/hexclave", diff --git a/packages/template/package.json b/packages/template/package.json index d534c2ddd..540fb07fc 100644 --- a/packages/template/package.json +++ b/packages/template/package.json @@ -1,5 +1,5 @@ { - "//": "THIS FILE IS AUTO-GENERATED FROM TEMPLATE. DO NOT EDIT IT DIRECTLY, INSTEAD EDIT THE CORRESPONDING FILE IN packages/template (FOR package.json FILES, PLEASE EDIT package-template.json)", + "//": "THIS FILE IS AUTO-GENERATED FROM TEMPLATE. DO NOT EDIT IT DIRECTLY UNLESS YOU ALSO EDIT THE CORRESPONDING FILE IN packages/template (FOR package.json FILES, PLEASE EDIT package-template.json)", "name": "@stackframe/template", "private": true, "version": "1.0.4", diff --git a/scripts/utils.ts b/scripts/utils.ts index 72e05c995..61234a45c 100644 --- a/scripts/utils.ts +++ b/scripts/utils.ts @@ -2,7 +2,7 @@ import fs from "fs"; import path from "path"; -export const COMMENT_LINE = "THIS FILE IS AUTO-GENERATED FROM TEMPLATE. DO NOT EDIT IT DIRECTLY, INSTEAD EDIT THE CORRESPONDING FILE IN packages/template"; +export const COMMENT_LINE = "THIS FILE IS AUTO-GENERATED FROM TEMPLATE. DO NOT EDIT IT DIRECTLY UNLESS YOU ALSO EDIT THE CORRESPONDING FILE IN packages/template"; export const COMMENT_BLOCK = `\n//===========================================\n// ${COMMENT_LINE}\n//===========================================\n` export const PLATFORMS = {