@namzu/sdk 57.0.0 → 57.1.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 (71) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/agents/QueryAgent.d.ts.map +1 -1
  3. package/dist/agents/QueryAgent.js +1 -0
  4. package/dist/agents/QueryAgent.js.map +1 -1
  5. package/dist/compaction/index.d.ts +1 -0
  6. package/dist/compaction/index.d.ts.map +1 -1
  7. package/dist/compaction/index.js.map +1 -1
  8. package/dist/compaction/manual.d.ts +7 -0
  9. package/dist/compaction/manual.d.ts.map +1 -1
  10. package/dist/compaction/manual.js +31 -12
  11. package/dist/compaction/manual.js.map +1 -1
  12. package/dist/compaction/model-summary.d.ts +101 -0
  13. package/dist/compaction/model-summary.d.ts.map +1 -0
  14. package/dist/compaction/model-summary.js +333 -0
  15. package/dist/compaction/model-summary.js.map +1 -0
  16. package/dist/compaction/verifier.d.ts +6 -1
  17. package/dist/compaction/verifier.d.ts.map +1 -1
  18. package/dist/compaction/verifier.js +3 -3
  19. package/dist/compaction/verifier.js.map +1 -1
  20. package/dist/config/runtime.d.ts +62 -0
  21. package/dist/config/runtime.d.ts.map +1 -1
  22. package/dist/config/runtime.js +16 -0
  23. package/dist/config/runtime.js.map +1 -1
  24. package/dist/prompt/coding-agent-doctrine.d.ts +1 -1
  25. package/dist/prompt/coding-agent-doctrine.d.ts.map +1 -1
  26. package/dist/prompt/coding-agent-doctrine.js +2 -1
  27. package/dist/prompt/coding-agent-doctrine.js.map +1 -1
  28. package/dist/public-runtime.d.ts +1 -0
  29. package/dist/public-runtime.d.ts.map +1 -1
  30. package/dist/public-runtime.js.map +1 -1
  31. package/dist/runtime/query/executor.d.ts +3 -0
  32. package/dist/runtime/query/executor.d.ts.map +1 -1
  33. package/dist/runtime/query/executor.js +13 -0
  34. package/dist/runtime/query/executor.js.map +1 -1
  35. package/dist/runtime/query/index.d.ts +6 -0
  36. package/dist/runtime/query/index.d.ts.map +1 -1
  37. package/dist/runtime/query/index.js +4 -0
  38. package/dist/runtime/query/index.js.map +1 -1
  39. package/dist/runtime/query/iteration/phases/compaction.d.ts.map +1 -1
  40. package/dist/runtime/query/iteration/phases/compaction.js +46 -1
  41. package/dist/runtime/query/iteration/phases/compaction.js.map +1 -1
  42. package/dist/runtime/query/iteration/phases/context.d.ts +3 -0
  43. package/dist/runtime/query/iteration/phases/context.d.ts.map +1 -1
  44. package/dist/runtime/query/iteration/phases/context.js.map +1 -1
  45. package/dist/scheduler/local.js +1 -1
  46. package/dist/scheduler/local.js.map +1 -1
  47. package/dist/types/agent/base.d.ts +8 -0
  48. package/dist/types/agent/base.d.ts.map +1 -1
  49. package/dist/types/agent/scheduler.d.ts +8 -0
  50. package/dist/types/agent/scheduler.d.ts.map +1 -1
  51. package/dist/types/plugin/index.d.ts +2 -2
  52. package/dist/types/tool/index.d.ts +15 -0
  53. package/dist/types/tool/index.d.ts.map +1 -1
  54. package/dist/types/tool/index.js.map +1 -1
  55. package/package.json +1 -1
  56. package/src/agents/QueryAgent.ts +1 -0
  57. package/src/compaction/index.ts +1 -0
  58. package/src/compaction/manual.ts +68 -30
  59. package/src/compaction/model-summary.ts +412 -0
  60. package/src/compaction/verifier.ts +3 -3
  61. package/src/config/runtime.ts +16 -0
  62. package/src/prompt/coding-agent-doctrine.ts +2 -1
  63. package/src/public-runtime.ts +4 -0
  64. package/src/runtime/query/executor.ts +14 -0
  65. package/src/runtime/query/index.ts +11 -0
  66. package/src/runtime/query/iteration/phases/compaction.ts +46 -1
  67. package/src/runtime/query/iteration/phases/context.ts +4 -0
  68. package/src/scheduler/local.ts +1 -1
  69. package/src/types/agent/base.ts +9 -0
  70. package/src/types/agent/scheduler.ts +9 -0
  71. package/src/types/tool/index.ts +16 -0
@@ -132,6 +132,15 @@ export interface CreateTaskOptions {
132
132
 
133
133
  prompt: string
134
134
 
135
+ /**
136
+ * Messages the child starts from, placed before {@link prompt}. A host that
137
+ * delegates work which continues the caller's conversation passes that
138
+ * conversation here; the prompt then arrives as the last user message.
139
+ * Absent, the child sees only the prompt. The caller is responsible for the
140
+ * list being a valid conversation (every tool call answered).
141
+ */
142
+ readonly inheritedMessages?: readonly import('../message/index.js').Message[]
143
+
135
144
  workingDirectory: string
136
145
 
137
146
  runtimeContext?: AgentRuntimeContext
@@ -574,6 +574,22 @@ export interface ToolContext {
574
574
  */
575
575
  receiptVisible?: (callId: string, renderedFingerprint: string) => boolean
576
576
 
577
+ /**
578
+ * The conversation this call belongs to, read live: the messages the model
579
+ * is shown right now, including the assistant message that issued this
580
+ * call, and the system prompt assembled for the current iteration.
581
+ *
582
+ * Absent when the host cannot say. A tool that needs it (one that starts a
583
+ * delegate which continues this conversation) must then refuse rather than
584
+ * start the delegate without the context it was asked to inherit. Read
585
+ * only: the arrays are the turn's own and a tool must copy before it
586
+ * changes anything.
587
+ */
588
+ conversation?: {
589
+ messages(): readonly import('../message/index.js').Message[]
590
+ systemPrompt(): string | undefined
591
+ }
592
+
577
593
  /**
578
594
  * Where work that outlives this call is held.
579
595
  *