poe-code 3.0.219 → 3.0.221

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/README.md +8 -0
  2. package/dist/cli/commands/harness.js +107 -15
  3. package/dist/cli/commands/harness.js.map +1 -1
  4. package/dist/cli/commands/models.js +1 -1
  5. package/dist/index.js +17021 -15752
  6. package/dist/index.js.map +4 -4
  7. package/dist/providers/claude-code.js +1032 -698
  8. package/dist/providers/claude-code.js.map +4 -4
  9. package/dist/providers/codex.js +1032 -698
  10. package/dist/providers/codex.js.map +4 -4
  11. package/dist/providers/goose.js +3027 -2693
  12. package/dist/providers/goose.js.map +4 -4
  13. package/dist/providers/kimi.js +1032 -698
  14. package/dist/providers/kimi.js.map +4 -4
  15. package/dist/providers/opencode.js +1027 -693
  16. package/dist/providers/opencode.js.map +4 -4
  17. package/dist/providers/poe-agent.js +21329 -20925
  18. package/dist/providers/poe-agent.js.map +4 -4
  19. package/package.json +4 -2
  20. package/packages/config-mutations/dist/execution/apply-mutation.js +3 -3
  21. package/packages/config-mutations/dist/mutations/template-mutation.d.ts +3 -3
  22. package/packages/config-mutations/dist/template/render.d.ts +0 -1
  23. package/packages/config-mutations/dist/template/render.js +2 -22
  24. package/packages/design-system/dist/acp/components.js +15 -13
  25. package/packages/design-system/dist/components/color.d.ts +31 -0
  26. package/packages/design-system/dist/components/color.js +101 -0
  27. package/packages/design-system/dist/components/index.d.ts +4 -0
  28. package/packages/design-system/dist/components/index.js +2 -0
  29. package/packages/design-system/dist/components/logger.js +2 -2
  30. package/packages/design-system/dist/components/symbols.js +3 -3
  31. package/packages/design-system/dist/components/table.js +191 -40
  32. package/packages/design-system/dist/components/template.d.ts +6 -0
  33. package/packages/design-system/dist/components/template.js +271 -0
  34. package/packages/design-system/dist/components/text.js +3 -3
  35. package/packages/design-system/dist/dashboard/buffer.js +12 -12
  36. package/packages/design-system/dist/index.d.ts +4 -0
  37. package/packages/design-system/dist/index.js +2 -0
  38. package/packages/design-system/dist/internal/color-support.d.ts +9 -0
  39. package/packages/design-system/dist/internal/color-support.js +12 -0
  40. package/packages/design-system/dist/prompts/index.d.ts +1 -1
  41. package/packages/design-system/dist/prompts/index.js +5 -4
  42. package/packages/design-system/dist/prompts/primitives/cancel.js +2 -2
  43. package/packages/design-system/dist/prompts/primitives/intro.js +2 -2
  44. package/packages/design-system/dist/prompts/primitives/log.js +4 -4
  45. package/packages/design-system/dist/prompts/primitives/note.js +5 -5
  46. package/packages/design-system/dist/prompts/primitives/outro.js +2 -2
  47. package/packages/design-system/dist/prompts/primitives/spinner.js +3 -3
  48. package/packages/design-system/dist/static/menu.js +5 -5
  49. package/packages/design-system/dist/static/spinner.js +8 -8
  50. package/packages/design-system/dist/tokens/colors.js +29 -29
  51. package/packages/design-system/dist/tokens/typography.js +6 -6
  52. package/packages/memory/dist/index.js +6329 -5995
  53. package/packages/memory/dist/index.js.map +4 -4
  54. package/packages/superintendent/dist/commands/superintendent-group.js +2 -2
  55. package/packages/superintendent/dist/templates/SKILL_superintendent.md +1 -1
  56. package/scripts/postinstall-sync-skills.mjs +31 -0
@@ -179,7 +179,7 @@ function scanPromptVariables(prompt) {
179
179
  break;
180
180
  }
181
181
  const rawToken = prompt.slice(opening + (triple ? 3 : 2), closing);
182
- const variableName = normalizeMustacheToken(rawToken);
182
+ const variableName = normalizeTemplateToken(rawToken);
183
183
  if (variableName !== undefined) {
184
184
  variables.push(variableName);
185
185
  }
@@ -187,7 +187,7 @@ function scanPromptVariables(prompt) {
187
187
  }
188
188
  return variables;
189
189
  }
190
- function normalizeMustacheToken(token) {
190
+ function normalizeTemplateToken(token) {
191
191
  const trimmed = token.trim();
192
192
  if (trimmed.length === 0) {
193
193
  return undefined;
@@ -95,7 +95,7 @@ Priority is top-to-bottom: the first unchecked item is the highest priority. Use
95
95
 
96
96
  ## Available Prompt Variables
97
97
 
98
- Use Mustache syntax in agent prompts:
98
+ Use template syntax in agent prompts:
99
99
 
100
100
  | Variable | Description |
101
101
  |---|---|
@@ -0,0 +1,31 @@
1
+ #!/usr/bin/env node
2
+ import { existsSync } from "node:fs";
3
+ import { spawnSync } from "node:child_process";
4
+ import { dirname, join } from "node:path";
5
+ import { fileURLToPath } from "node:url";
6
+
7
+ const root = dirname(dirname(fileURLToPath(import.meta.url)));
8
+
9
+ if (process.env.CI === "1" || process.env.SKIP_SYNC_SKILLS === "1") {
10
+ process.exit(0);
11
+ }
12
+
13
+ if (!existsSync(join(root, "scripts/sync-skills.ts"))) {
14
+ process.exit(0);
15
+ }
16
+
17
+ const npmExecPath = process.env.npm_execpath;
18
+ const command = npmExecPath ? process.execPath : process.platform === "win32" ? "npm.cmd" : "npm";
19
+ const args = npmExecPath ? [npmExecPath, "run", "sync-skills"] : ["run", "sync-skills"];
20
+
21
+ const result = spawnSync(command, args, {
22
+ cwd: root,
23
+ env: { ...process.env, SYNC_SKILLS_SCOPE: "global" },
24
+ stdio: "inherit",
25
+ shell: false
26
+ });
27
+
28
+ if (result.error || result.status !== 0) {
29
+ const reason = result.error?.message ?? `exit code ${result.status}`;
30
+ console.error(`Warning: skill sync failed during postinstall (${reason}).`);
31
+ }