@namzu/sdk 52.1.0 → 52.2.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 (60) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +1 -1
  3. package/dist/connector/tools/adapter.d.ts +2 -2
  4. package/dist/contracts/a2a.d.ts +92 -92
  5. package/dist/manager/resident/learning.d.ts +6 -6
  6. package/dist/manager/resident/store.d.ts +4 -4
  7. package/dist/pals/activity/subscription-schema.d.ts +48 -48
  8. package/dist/pals/communication/ingress-schema.d.ts +192 -192
  9. package/dist/pals/communication/schema.d.ts +18 -18
  10. package/dist/peers/protocol.d.ts +36 -36
  11. package/dist/public-runtime.d.ts +1 -0
  12. package/dist/public-runtime.d.ts.map +1 -1
  13. package/dist/public-runtime.js.map +1 -1
  14. package/dist/public-tools.d.ts +1 -0
  15. package/dist/public-tools.d.ts.map +1 -1
  16. package/dist/public-tools.js +1 -0
  17. package/dist/public-tools.js.map +1 -1
  18. package/dist/runtime/query/executor.d.ts +1 -0
  19. package/dist/runtime/query/executor.d.ts.map +1 -1
  20. package/dist/runtime/query/executor.js +1 -0
  21. package/dist/runtime/query/executor.js.map +1 -1
  22. package/dist/runtime/query/index.d.ts +2 -0
  23. package/dist/runtime/query/index.d.ts.map +1 -1
  24. package/dist/runtime/query/index.js +1 -0
  25. package/dist/runtime/query/index.js.map +1 -1
  26. package/dist/runtime/query/tooling.d.ts +1 -0
  27. package/dist/runtime/query/tooling.d.ts.map +1 -1
  28. package/dist/runtime/query/tooling.js +1 -0
  29. package/dist/runtime/query/tooling.js.map +1 -1
  30. package/dist/tools/builtins/browser.d.ts +4 -4
  31. package/dist/tools/builtins/code-analysis.d.ts +49 -0
  32. package/dist/tools/builtins/code-analysis.d.ts.map +1 -0
  33. package/dist/tools/builtins/code-analysis.js +409 -0
  34. package/dist/tools/builtins/code-analysis.js.map +1 -0
  35. package/dist/tools/builtins/computer-use.d.ts +24 -24
  36. package/dist/tools/builtins/index.d.ts +1 -0
  37. package/dist/tools/builtins/index.d.ts.map +1 -1
  38. package/dist/tools/builtins/index.js +1 -0
  39. package/dist/tools/builtins/index.js.map +1 -1
  40. package/dist/tools/builtins/lsp.d.ts +1 -1
  41. package/dist/tools/builtins/skill.d.ts +2 -2
  42. package/dist/types/code-analysis/index.d.ts +299 -0
  43. package/dist/types/code-analysis/index.d.ts.map +1 -0
  44. package/dist/types/code-analysis/index.js +30 -0
  45. package/dist/types/code-analysis/index.js.map +1 -0
  46. package/dist/types/plugin/index.d.ts +6 -6
  47. package/dist/types/session/records.d.ts +127 -127
  48. package/dist/types/tool/index.d.ts +9 -0
  49. package/dist/types/tool/index.d.ts.map +1 -1
  50. package/dist/types/tool/index.js.map +1 -1
  51. package/package.json +2 -2
  52. package/src/public-runtime.ts +25 -0
  53. package/src/public-tools.ts +5 -0
  54. package/src/runtime/query/executor.ts +2 -0
  55. package/src/runtime/query/index.ts +3 -0
  56. package/src/runtime/query/tooling.ts +2 -0
  57. package/src/tools/builtins/code-analysis.ts +486 -0
  58. package/src/tools/builtins/index.ts +5 -0
  59. package/src/types/code-analysis/index.ts +325 -0
  60. package/src/types/tool/index.ts +9 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 52.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 1fde185: Add the `code_analysis` tool and the `CodeAnalysisProvider` interface it calls. Nothing changes for a host that does not opt in: the tool is not part of `getBuiltinTools()` and is registered only when a host passes a provider (`getCodeAnalysisTools(provider)`, with `QueryParams.codeAnalysis` / `ToolContext.codeAnalysis` carrying it into the turn). The tool answers cited, paged lookups over a JavaScript/TypeScript index: `index`, `find_literal`, `enclosing_function`, `function_source`, `callers_of` and `imports`. Every result says what was observed, what was inferred (a callee matched by text, not by scope) and whether coverage is complete. Every provider call takes an optional `signal`, which the tool fills from the turn's abort signal so Esc stops an index; `IndexRequest.scope` indexes part of a root, and `IndexSummary.truncated` says when a call stopped at a limit and what to do next. Hits and call sites carry `stale: 'changed' | 'deleted'` when their file no longer matches the index. Paths go through the same resolver and review route as `read`, and a sandboxed turn is refused because the index reads the host file system. To use it, construct a provider (`@namzu/analysis` ships one) and pass it as `codeAnalysis` to `query()`; mount the tool with `deferred(toolset(...))` to keep its roughly 1,000-token schema out of requests that never need it.
8
+
9
+ ### Patch Changes
10
+
11
+ - 791f431: The package description and README now call `@namzu/sdk` an AI kernel that runs an agent the way an operating system runs a process, and the terminal app's README no longer leads with "asks before it acts". Wording only; nothing to do to take this.
12
+
3
13
  ## 52.1.0
4
14
 
5
15
  ### Minor Changes
package/README.md CHANGED
@@ -176,7 +176,7 @@ Your tools and `runAgent` call stay the same when you change the driver.
176
176
  | `@namzu/openrouter` | Many hosted models behind one key |
177
177
  | `@namzu/zen` | Hosted models with native protocol routing |
178
178
  | `@namzu/ollama` | Local models, no key needed |
179
- | `@namzu/lmstudio` | Local models through a local model server, with tool use |
179
+ | `@namzu/lmstudio` | Local models through a local model server, chat only (no tool use) |
180
180
  | `@namzu/http` | Zero-dependency driver for compatible HTTP endpoints |
181
181
 
182
182
  Every driver registers through `ProviderRegistry`. For per-model rates and
@@ -12,14 +12,14 @@ declare const ConnectorRouterInputSchema: z.ZodObject<{
12
12
  method: z.ZodString;
13
13
  input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
14
14
  }, "strip", z.ZodTypeAny, {
15
+ method: string;
15
16
  input: Record<string, unknown>;
16
17
  instanceId: string;
17
- method: string;
18
18
  connectorId: string;
19
19
  }, {
20
+ method: string;
20
21
  input: Record<string, unknown>;
21
22
  instanceId: string;
22
- method: string;
23
23
  connectorId: string;
24
24
  }>;
25
25
  export type ConnectorRouterInput = z.infer<typeof ConnectorRouterInputSchema>;