@namzu/cli 0.2.3 → 0.3.0

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 (123) hide show
  1. package/dist/cli.d.ts.map +1 -1
  2. package/dist/cli.js +2 -0
  3. package/dist/cli.js.map +1 -1
  4. package/dist/cli.test.js +1 -1
  5. package/dist/commands/__tests__/eval.test.d.ts +2 -0
  6. package/dist/commands/__tests__/eval.test.d.ts.map +1 -0
  7. package/dist/commands/__tests__/eval.test.js +165 -0
  8. package/dist/commands/__tests__/eval.test.js.map +1 -0
  9. package/dist/commands/__tests__/passthrough-help.test.d.ts +2 -0
  10. package/dist/commands/__tests__/passthrough-help.test.d.ts.map +1 -0
  11. package/dist/commands/__tests__/passthrough-help.test.js +96 -0
  12. package/dist/commands/__tests__/passthrough-help.test.js.map +1 -0
  13. package/dist/commands/doctor.d.ts.map +1 -1
  14. package/dist/commands/doctor.js +5 -2
  15. package/dist/commands/doctor.js.map +1 -1
  16. package/dist/commands/doctor.test.js +4 -4
  17. package/dist/commands/doctor.test.js.map +1 -1
  18. package/dist/commands/eval.d.ts +54 -0
  19. package/dist/commands/eval.d.ts.map +1 -0
  20. package/dist/commands/eval.js +187 -0
  21. package/dist/commands/eval.js.map +1 -0
  22. package/dist/commands/registry.d.ts.map +1 -1
  23. package/dist/commands/registry.js +14 -4
  24. package/dist/commands/registry.js.map +1 -1
  25. package/dist/commands/run-stream.d.ts.map +1 -1
  26. package/dist/commands/run-stream.js +20 -0
  27. package/dist/commands/run-stream.js.map +1 -1
  28. package/dist/commands/run.d.ts +1 -1
  29. package/dist/commands/run.d.ts.map +1 -1
  30. package/dist/commands/run.js +14 -1
  31. package/dist/commands/run.js.map +1 -1
  32. package/dist/commands/tools.js +1 -1
  33. package/dist/commands/tools.js.map +1 -1
  34. package/dist/commands/types.d.ts +13 -0
  35. package/dist/commands/types.d.ts.map +1 -1
  36. package/dist/doctor/checks/sandbox.d.ts +11 -1
  37. package/dist/doctor/checks/sandbox.d.ts.map +1 -1
  38. package/dist/doctor/checks/sandbox.js +68 -34
  39. package/dist/doctor/checks/sandbox.js.map +1 -1
  40. package/dist/doctor/checks/sandbox.test.d.ts +2 -0
  41. package/dist/doctor/checks/sandbox.test.d.ts.map +1 -0
  42. package/dist/doctor/checks/sandbox.test.js +59 -0
  43. package/dist/doctor/checks/sandbox.test.js.map +1 -0
  44. package/dist/exit-codes.d.ts +7 -1
  45. package/dist/exit-codes.d.ts.map +1 -1
  46. package/dist/exit-codes.js +6 -0
  47. package/dist/exit-codes.js.map +1 -1
  48. package/dist/integrations/clawtool/binary.test.js +9 -1
  49. package/dist/integrations/clawtool/binary.test.js.map +1 -1
  50. package/dist/integrations/clawtool/dispatch.d.ts +2 -2
  51. package/dist/integrations/clawtool/dispatch.js +4 -4
  52. package/dist/integrations/clawtool/dispatch.js.map +1 -1
  53. package/dist/integrations/clawtool/mcp.d.ts.map +1 -1
  54. package/dist/integrations/clawtool/mcp.js +20 -2
  55. package/dist/integrations/clawtool/mcp.js.map +1 -1
  56. package/dist/integrations/clawtool/tooling.d.ts +8 -6
  57. package/dist/integrations/clawtool/tooling.d.ts.map +1 -1
  58. package/dist/integrations/clawtool/tooling.js +8 -6
  59. package/dist/integrations/clawtool/tooling.js.map +1 -1
  60. package/dist/integrations/clipboard/image.d.ts +0 -1
  61. package/dist/integrations/clipboard/image.d.ts.map +1 -1
  62. package/dist/integrations/clipboard/image.js +0 -1
  63. package/dist/integrations/clipboard/image.js.map +1 -1
  64. package/dist/integrations/providers/discover.d.ts +1 -1
  65. package/dist/integrations/providers/discover.js +9 -9
  66. package/dist/integrations/providers/discover.js.map +1 -1
  67. package/dist/integrations/providers/index.d.ts +2 -2
  68. package/dist/integrations/providers/index.d.ts.map +1 -1
  69. package/dist/integrations/providers/index.js +2 -2
  70. package/dist/integrations/providers/index.js.map +1 -1
  71. package/dist/integrations/providers/keychain.d.ts +17 -16
  72. package/dist/integrations/providers/keychain.d.ts.map +1 -1
  73. package/dist/integrations/providers/keychain.js +19 -19
  74. package/dist/integrations/providers/keychain.js.map +1 -1
  75. package/dist/integrations/providers/oauth.d.ts +7 -8
  76. package/dist/integrations/providers/oauth.d.ts.map +1 -1
  77. package/dist/integrations/providers/oauth.js +13 -11
  78. package/dist/integrations/providers/oauth.js.map +1 -1
  79. package/dist/integrations/providers/oauth.test.js +8 -8
  80. package/dist/integrations/providers/oauth.test.js.map +1 -1
  81. package/dist/integrations/providers/preferences.test.js +9 -1
  82. package/dist/integrations/providers/preferences.test.js.map +1 -1
  83. package/dist/integrations/providers/registry.d.ts +2 -3
  84. package/dist/integrations/providers/registry.d.ts.map +1 -1
  85. package/dist/integrations/providers/registry.js +3 -4
  86. package/dist/integrations/providers/registry.js.map +1 -1
  87. package/dist/integrations/providers/store.d.ts +1 -1
  88. package/dist/integrations/providers/store.js +1 -1
  89. package/dist/integrations/providers/store.test.js +9 -1
  90. package/dist/integrations/providers/store.test.js.map +1 -1
  91. package/dist/integrations/trust/store.d.ts +2 -2
  92. package/dist/integrations/trust/store.js +2 -2
  93. package/dist/memory/store.d.ts +1 -1
  94. package/dist/memory/store.js +1 -1
  95. package/dist/output/rendered-payload.test.d.ts +2 -0
  96. package/dist/output/rendered-payload.test.d.ts.map +1 -0
  97. package/dist/output/rendered-payload.test.js +61 -0
  98. package/dist/output/rendered-payload.test.js.map +1 -0
  99. package/dist/output/text.js +14 -0
  100. package/dist/output/text.js.map +1 -1
  101. package/dist/tui/App.js +4 -2
  102. package/dist/tui/App.js.map +1 -1
  103. package/dist/tui/Markdown.d.ts +2 -1
  104. package/dist/tui/Markdown.d.ts.map +1 -1
  105. package/dist/tui/Markdown.js +2 -1
  106. package/dist/tui/Markdown.js.map +1 -1
  107. package/dist/tui/Transcript.js +3 -2
  108. package/dist/tui/Transcript.js.map +1 -1
  109. package/dist/tui/TrustPrompt.d.ts +1 -1
  110. package/dist/tui/TrustPrompt.js +1 -1
  111. package/dist/tui/agent.d.ts +1 -1
  112. package/dist/tui/agent.d.ts.map +1 -1
  113. package/dist/tui/agent.js +46 -17
  114. package/dist/tui/agent.js.map +1 -1
  115. package/dist/tui/index.js +1 -1
  116. package/dist/tui/index.js.map +1 -1
  117. package/dist/tui/mentions.d.ts +2 -2
  118. package/dist/tui/mentions.js +2 -2
  119. package/dist/tui/theme.d.ts +4 -3
  120. package/dist/tui/theme.d.ts.map +1 -1
  121. package/dist/tui/theme.js +4 -3
  122. package/dist/tui/theme.js.map +1 -1
  123. package/package.json +7 -7
package/dist/tui/index.js CHANGED
@@ -12,7 +12,7 @@ export async function launchTui(ctx) {
12
12
  // logger for the lifetime of the TUI.
13
13
  configureLogger({ level: 'silent' });
14
14
  // Take over the terminal: clear the screen + scrollback and home the
15
- // cursor so namzu opens on a clean canvas (like claude-code / gemini-cli)
15
+ // cursor so namzu opens on a clean canvas
16
16
  // rather than below leftover shell output. Stays in the normal buffer so
17
17
  // native scrollback still works as the transcript grows.
18
18
  if (process.stdout.isTTY) {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tui/index.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,KAAK,CAAA;AAC5B,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAG9B,MAAM,CAAC,KAAK,UAAU,SAAS,CAAC,GAAe;IAC9C,sEAAsE;IACtE,kEAAkE;IAClE,sCAAsC;IACtC,eAAe,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAA;IACpC,qEAAqE;IACrE,0EAA0E;IAC1E,yEAAyE;IACzE,yDAAyD;IACzD,IAAI,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;QAC1B,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAA;IAC7C,C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AAC"}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * `@file` mentions in a composed message. Typing `@src/auth.ts` inlines that
3
- * file's contents into the text sent to the model (Claude Code / opencode
4
- * style), while the visible message keeps the readable `@path` token.
3
+ * file's contents into the text sent to the model, while the visible
4
+ * message keeps the readable `@path` token.
5
5
  *
6
6
  * Safety: only files resolving *inside* the working directory are inlined
7
7
  * (so `@/etc/passwd` or `@../secrets` are ignored, not exfiltrated), and each
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * `@file` mentions in a composed message. Typing `@src/auth.ts` inlines that
3
- * file's contents into the text sent to the model (Claude Code / opencode
4
- * style), while the visible message keeps the readable `@path` token.
3
+ * file's contents into the text sent to the model, while the visible
4
+ * message keeps the readable `@path` token.
5
5
  *
6
6
  * Safety: only files resolving *inside* the working directory are inlined
7
7
  * (so `@/etc/passwd` or `@../secrets` are ignored, not exfiltrated), and each
@@ -1,8 +1,9 @@
1
1
  /**
2
2
  * Theme tokens for the TUI — a single dark palette. We inherit the
3
- * terminal's own background (like claude-code / gemini-cli) rather than
4
- * painting one, and only theme the foreground; curated hex colors
5
- * (GitHub-dark-leaning) give a consistent, premium look on dark terminals.
3
+ * terminal's own background rather than painting one, and only theme the
4
+ * foreground — a TUI that repaints the canvas fights whatever the user
5
+ * already chose. Curated hex colors give a consistent look on dark
6
+ * terminals.
6
7
  * `background` is kept for reference / a future light theme but is not
7
8
  * forced onto the canvas. A theme registry/picker is a follow-up.
8
9
  */
@@ -1 +1 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/tui/theme.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,MAAM,WAAW,cAAc;IAC9B,qDAAqD;IACrD,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,IAAI,EAAE;QACd,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;QACxB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;QAC1B,QAA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AE,EAAE,MAAM,CAAA;QACnB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;QACrB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;KACtB,CAAA;IACD,QAAQ,CAAC,MAAM,EAAE;QAChB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;QACxB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;KACtB,CAAA;CACD;AAED,eAAO,MAAM,KAAK,EAAE,cAsBnB,CAAA"}
package/dist/tui/theme.js CHANGED
@@ -1,8 +1,9 @@
1
1
  /**
2
2
  * Theme tokens for the TUI — a single dark palette. We inherit the
3
- * terminal's own background (like claude-code / gemini-cli) rather than
4
- * painting one, and only theme the foreground; curated hex colors
5
- * (GitHub-dark-leaning) give a consistent, premium look on dark terminals.
3
+ * terminal's own background rather than painting one, and only theme the
4
+ * foreground — a TUI that repaints the canvas fights whatever the user
5
+ * already chose. Curated hex colors give a consistent look on dark
6
+ * terminals.
6
7
  * `background` is kept for reference / a future light theme but is not
7
8
  * forced onto the canvas. A theme registry/picker is a follow-up.
8
9
  */
@@ -1 +1 @@
1
- {"version":3,"file":"theme.js","sourceRoot":"","sources":["../../src/tui/theme.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AA2BH,MAAM,CAAC,MAAM,KAAK,GAAmB;IACpC,UAAU,EAAE,SAAS;IACrB,IAAI,EAAE;QACL,OAAO,EAAE,SAAS;QAClB,SAAS,EAAE,SAAS;QACpB,KAAK,EAAE,SAAS;KAChB;IACD,MAAM,EAAE;QACP,IAAI,EAAE,SAAS;QACf,SAAS,EAAE,SAAS;QACpB,MAAM,EAAE,SAAS;QACjB,IAAI,EAAE,SAAS;KACf;IACD,MAAM,EAAE;QACP,EAAE,EAAE,SAAS;QACb,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,SAAS;KAChB;IACD,MAAM,EAAE;QACP,OAAO,EAAE,SAAS;QAClB,KAAK,EAAE,SAAS;KAChB;CACD,CAAA"}
1
+ {"version":3,"file":"theme.js","sourceRoot":"","sources":["../../src/tui/theme.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AA2BH,MAAM,CAAC,MAAM,KAAK,GAAmB;IACpC,UAAU,EAAE,SAAS;IACrB,IAAI,EAAE;QACL,OAAO,EAAE,SAAS;QAClB,SAAS,EAAE,SAAS;QACpB,KAAK,EAAE,SAAS;KAChB;IACD,MAAM,EAAE;QACP,IAAI,EAAE,SAAS;QACf,SAAS,EAAE,SAAS;QACpB,MAAM,EAAE,SAAS;QACjB,IAAI,EAAE,SAAS;KACf;IACD,MAAM,EAAE;QACP,EAAE,EAAE,SAAS;QACb,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,SAAS;KAChB;IACD,MAAM,EAAE;QACP,OAAO,EAAE,SAAS;QAClB,KAAK,EAAE,SAAS;KAChB;CACD,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@namzu/cli",
3
- "version": "0.2.3",
3
+ "version": "0.3.0",
4
4
  "description": "Operator CLI for the Namzu agent platform — namzu doctor + future commands. Dual-purpose: standalone bin (`namzu doctor`) and library (`import { runDoctor } from '@namzu/cli'`).",
5
5
  "keywords": [
6
6
  "namzu",
@@ -40,17 +40,17 @@
40
40
  "react": "^19.2.6",
41
41
  "smol-toml": "^1.6.1",
42
42
  "yaml": "^2.9.0",
43
- "@namzu/ollama": "1.0.3",
44
- "@namzu/anthropic": "1.2.0",
45
- "@namzu/openai": "1.0.3",
46
- "@namzu/sdk": "^2.0.0",
47
- "@namzu/openrouter": "1.0.3"
43
+ "@namzu/anthropic": "1.3.0",
44
+ "@namzu/ollama": "1.1.0",
45
+ "@namzu/openai": "1.1.0",
46
+ "@namzu/openrouter": "1.1.0",
47
+ "@namzu/sdk": "^3.0.0"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@biomejs/biome": "^1.9.4",
51
51
  "@types/react": "^19.2.15",
52
52
  "typescript": "^5.5.0",
53
- "vitest": "^2.0.0"
53
+ "vitest": "^3.2.6"
54
54
  },
55
55
  "engines": {
56
56
  "node": ">=20.0.0"