@appchy/jarvis 0.1.37 → 0.1.40

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 (108) hide show
  1. package/bin/config-change.mjs +1 -1
  2. package/bin/jarvis.mjs +8 -12
  3. package/bin/pre-tool-use.mjs +2 -2
  4. package/bin/session-start.mjs +1 -1
  5. package/bin/stop.mjs +1 -1
  6. package/bin/user-prompt-submit.mjs +1 -1
  7. package/dist/bin.js +10174 -37342
  8. package/dist/bin.js.map +1 -1
  9. package/dist/data/backends.mjs +469 -0
  10. package/dist/data/chunk-7REP35VA.mjs +462 -0
  11. package/dist/data/chunk-AKQQC5IT.mjs +1224 -0
  12. package/dist/data/chunk-AYOJSS2F.mjs +72 -0
  13. package/dist/data/chunk-RRJ6KKYL.mjs +42 -0
  14. package/dist/data/chunk-YWSWQEJN.mjs +138 -0
  15. package/dist/data/embedders.mjs +80 -0
  16. package/dist/data/finders.mjs +35 -0
  17. package/dist/data/index.mjs +137 -0
  18. package/dist/data/linkers.mjs +83 -0
  19. package/dist/data/mcp.mjs +2624 -0
  20. package/dist/data/persistences.mjs +8 -0
  21. package/dist/data/rerankers.mjs +52 -0
  22. package/dist/data/stores.mjs +38 -0
  23. package/dist/hooks/config-change.js +7 -29
  24. package/dist/hooks/config-change.js.map +1 -1
  25. package/dist/hooks/pre-tool-use.js +129 -32
  26. package/dist/hooks/pre-tool-use.js.map +1 -1
  27. package/dist/hooks/session-start.js +72 -37
  28. package/dist/hooks/session-start.js.map +1 -1
  29. package/dist/hooks/stop.js +140 -32
  30. package/dist/hooks/stop.js.map +1 -1
  31. package/dist/hooks/user-prompt-submit.js +7 -29
  32. package/dist/hooks/user-prompt-submit.js.map +1 -1
  33. package/harness/assets/architecture-template.md +53 -0
  34. package/harness/assets/design-template.md +89 -0
  35. package/harness/assets/domains/architecture.md +43 -0
  36. package/harness/assets/domains/commercial.md +42 -0
  37. package/harness/assets/domains/design.md +42 -0
  38. package/harness/assets/domains/legal.md +43 -0
  39. package/harness/assets/domains/operations.md +39 -0
  40. package/harness/assets/domains/product.md +43 -0
  41. package/harness/assets/domains/quality.md +43 -0
  42. package/harness/assets/domains/security.md +44 -0
  43. package/harness/assets/domains/support.md +45 -0
  44. package/harness/assets/epic-template.md +85 -0
  45. package/harness/assets/feature-template.md +86 -0
  46. package/harness/assets/handoff-template.md +26 -0
  47. package/harness/assets/task-template.md +38 -0
  48. package/harness/assets/version-template.md +43 -0
  49. package/harness/harness/__init__.py +7 -0
  50. package/harness/harness/align.py +582 -0
  51. package/harness/harness/architecture.py +254 -0
  52. package/harness/harness/autonomy.py +374 -0
  53. package/harness/harness/branches.py +408 -0
  54. package/harness/harness/config.py +1482 -0
  55. package/harness/harness/coverage.py +199 -0
  56. package/harness/harness/epic.py +220 -0
  57. package/harness/harness/events.py +153 -0
  58. package/harness/harness/extend.py +99 -0
  59. package/harness/harness/frontmatter.py +218 -0
  60. package/harness/harness/gate.py +597 -0
  61. package/harness/harness/generate.py +267 -0
  62. package/harness/harness/git.py +826 -0
  63. package/harness/harness/ids.py +140 -0
  64. package/harness/harness/kickoff.py +231 -0
  65. package/harness/harness/lint.py +505 -0
  66. package/harness/harness/model.py +364 -0
  67. package/harness/harness/peers.py +187 -0
  68. package/harness/harness/product.py +29 -0
  69. package/harness/harness/registry.py +382 -0
  70. package/harness/harness/report.py +227 -0
  71. package/harness/harness/safety.py +387 -0
  72. package/harness/harness/scaffold.py +129 -0
  73. package/harness/harness/shard.py +63 -0
  74. package/harness/harness/shift.py +348 -0
  75. package/harness/harness/task.py +507 -0
  76. package/harness/harness/tree.py +258 -0
  77. package/harness/harness/version.py +305 -0
  78. package/harness/harness/wrap.py +217 -0
  79. package/harness/hooks/guard.py +259 -0
  80. package/harness/presets/appchy/PRESET.md +717 -0
  81. package/harness/presets/appchy/references/artifacts.md +539 -0
  82. package/harness/presets/appchy/references/graph.md +154 -0
  83. package/harness/presets/appchy/references/operations.md +444 -0
  84. package/harness/presets/appchy/references/research.md +216 -0
  85. package/harness/schema/work.config.schema.json +401 -0
  86. package/harness/test_work.py +5049 -0
  87. package/harness/work.py +534 -0
  88. package/package.json +34 -40
  89. package/bin/config-change.dev.mjs +0 -17
  90. package/bin/jarvis-dev.mjs +0 -30
  91. package/bin/pre-tool-use.dev.mjs +0 -23
  92. package/bin/session-start.dev.mjs +0 -17
  93. package/bin/stop.dev.mjs +0 -17
  94. package/bin/user-prompt-submit.dev.mjs +0 -17
  95. package/dev/bin.js +0 -38821
  96. package/dev/bin.js.map +0 -1
  97. package/dev/env.json +0 -1
  98. package/dev/hooks/config-change.js +0 -110
  99. package/dev/hooks/config-change.js.map +0 -1
  100. package/dev/hooks/pre-tool-use.js +0 -120
  101. package/dev/hooks/pre-tool-use.js.map +0 -1
  102. package/dev/hooks/session-start.js +0 -115
  103. package/dev/hooks/session-start.js.map +0 -1
  104. package/dev/hooks/stop.js +0 -112
  105. package/dev/hooks/stop.js.map +0 -1
  106. package/dev/hooks/user-prompt-submit.js +0 -111
  107. package/dev/hooks/user-prompt-submit.js.map +0 -1
  108. package/dist/env.json +0 -1
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  /**
4
- * Jarvis ConfigChange hook — Prod Launcher.
4
+ * Jarvis ConfigChange hook launcher.
5
5
  * See bin/pre-tool-use.mjs for the pattern.
6
6
  */
7
7
 
package/bin/jarvis.mjs CHANGED
@@ -1,17 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  /**
4
- * Jarvis CLI — Prod Launcher
4
+ * Jarvis CLI launcher.
5
5
  *
6
- * Always runs the bundled `dist/bin.js` (production: hits jarvis.appchy.com).
7
- * For source-tree development, use `jarvis-dev` instead it skips the
8
- * dist/ check and always runs `tsx src/bin.ts` against the live source.
9
- *
10
- * The previous version of this launcher auto-detected dev vs prod based on
11
- * whether `src/bin.ts` existed. That meant invoking `jarvis` from a source
12
- * checkout silently flipped to dev mode against localhost — not what users
13
- * who installed `@appchy/jarvis` globally expect. The split bins
14
- * (`jarvis` / `jarvis-dev`) make the choice explicit and irreversible.
6
+ * Runs the bundled `dist/bin.js`. Which jarvis this reaches is not decided
7
+ * here and cannot be: the hub URL is written into the machine's config when it
8
+ * pairs, so one binary serves our cloud, a self-hosted instance and a laptop
9
+ * alike. For source-tree iteration with hot reload, run
10
+ * `pnpm -C apps/cli dev` that runs `tsx src/bin.ts` directly.
15
11
  */
16
12
 
17
13
  import { fileURLToPath } from "url";
@@ -25,8 +21,8 @@ if (!existsSync(distEntry)) {
25
21
  const isSourceCheckout = existsSync(join(__dirname, "..", "src", "bin.ts"));
26
22
  console.error("Error: dist/bin.js not found.");
27
23
  if (isSourceCheckout) {
28
- console.error(" This is a source checkout. Use `jarvis-dev` for dev work,");
29
- console.error(" or run `pnpm -C apps/cli build` to produce a prod bundle.");
24
+ console.error(" This is a source checkout. Run `pnpm -C apps/cli dev` for dev work,");
25
+ console.error(" or `pnpm -C apps/cli build` to produce a bundle.");
30
26
  } else {
31
27
  console.error(" The package may be corrupted. Reinstall with `pnpm i -g @appchy/jarvis`.");
32
28
  }
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  /**
4
- * Jarvis PreToolUse hook — Prod Launcher
4
+ * Jarvis PreToolUse hook launcher.
5
5
  *
6
6
  * Invoked by Claude Code for every tool use (configured in
7
- * `~/.claude/settings.json` by the prod daemon on `jarvis start`).
7
+ * `~/.claude/settings.json` by the daemon on `jarvis start`).
8
8
  * Reads CC's JSON payload from stdin, appends one envelope line to
9
9
  * `~/.jarvis/hooks/<sessionId>.jsonl`, exits 0.
10
10
  *
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  /**
4
- * Jarvis SessionStart hook — Prod Launcher.
4
+ * Jarvis SessionStart hook launcher.
5
5
  * See bin/pre-tool-use.mjs for the pattern.
6
6
  */
7
7
 
package/bin/stop.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  /**
4
- * Jarvis Stop hook — Prod Launcher.
4
+ * Jarvis Stop hook launcher.
5
5
  * See bin/pre-tool-use.mjs for the pattern.
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  /**
4
- * Jarvis UserPromptSubmit hook — Prod Launcher.
4
+ * Jarvis UserPromptSubmit hook launcher.
5
5
  * See bin/pre-tool-use.mjs for the pattern.
6
6
  */
7
7