@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.
- package/CHANGELOG.md +11 -0
- package/dist/agents/QueryAgent.d.ts.map +1 -1
- package/dist/agents/QueryAgent.js +1 -0
- package/dist/agents/QueryAgent.js.map +1 -1
- package/dist/compaction/index.d.ts +1 -0
- package/dist/compaction/index.d.ts.map +1 -1
- package/dist/compaction/index.js.map +1 -1
- package/dist/compaction/manual.d.ts +7 -0
- package/dist/compaction/manual.d.ts.map +1 -1
- package/dist/compaction/manual.js +31 -12
- package/dist/compaction/manual.js.map +1 -1
- package/dist/compaction/model-summary.d.ts +101 -0
- package/dist/compaction/model-summary.d.ts.map +1 -0
- package/dist/compaction/model-summary.js +333 -0
- package/dist/compaction/model-summary.js.map +1 -0
- package/dist/compaction/verifier.d.ts +6 -1
- package/dist/compaction/verifier.d.ts.map +1 -1
- package/dist/compaction/verifier.js +3 -3
- package/dist/compaction/verifier.js.map +1 -1
- package/dist/config/runtime.d.ts +62 -0
- package/dist/config/runtime.d.ts.map +1 -1
- package/dist/config/runtime.js +16 -0
- package/dist/config/runtime.js.map +1 -1
- package/dist/prompt/coding-agent-doctrine.d.ts +1 -1
- package/dist/prompt/coding-agent-doctrine.d.ts.map +1 -1
- package/dist/prompt/coding-agent-doctrine.js +2 -1
- package/dist/prompt/coding-agent-doctrine.js.map +1 -1
- package/dist/public-runtime.d.ts +1 -0
- package/dist/public-runtime.d.ts.map +1 -1
- package/dist/public-runtime.js.map +1 -1
- package/dist/runtime/query/executor.d.ts +3 -0
- package/dist/runtime/query/executor.d.ts.map +1 -1
- package/dist/runtime/query/executor.js +13 -0
- package/dist/runtime/query/executor.js.map +1 -1
- package/dist/runtime/query/index.d.ts +6 -0
- package/dist/runtime/query/index.d.ts.map +1 -1
- package/dist/runtime/query/index.js +4 -0
- package/dist/runtime/query/index.js.map +1 -1
- package/dist/runtime/query/iteration/phases/compaction.d.ts.map +1 -1
- package/dist/runtime/query/iteration/phases/compaction.js +46 -1
- package/dist/runtime/query/iteration/phases/compaction.js.map +1 -1
- package/dist/runtime/query/iteration/phases/context.d.ts +3 -0
- package/dist/runtime/query/iteration/phases/context.d.ts.map +1 -1
- package/dist/runtime/query/iteration/phases/context.js.map +1 -1
- package/dist/scheduler/local.js +1 -1
- package/dist/scheduler/local.js.map +1 -1
- package/dist/types/agent/base.d.ts +8 -0
- package/dist/types/agent/base.d.ts.map +1 -1
- package/dist/types/agent/scheduler.d.ts +8 -0
- package/dist/types/agent/scheduler.d.ts.map +1 -1
- package/dist/types/plugin/index.d.ts +2 -2
- package/dist/types/tool/index.d.ts +15 -0
- package/dist/types/tool/index.d.ts.map +1 -1
- package/dist/types/tool/index.js.map +1 -1
- package/package.json +1 -1
- package/src/agents/QueryAgent.ts +1 -0
- package/src/compaction/index.ts +1 -0
- package/src/compaction/manual.ts +68 -30
- package/src/compaction/model-summary.ts +412 -0
- package/src/compaction/verifier.ts +3 -3
- package/src/config/runtime.ts +16 -0
- package/src/prompt/coding-agent-doctrine.ts +2 -1
- package/src/public-runtime.ts +4 -0
- package/src/runtime/query/executor.ts +14 -0
- package/src/runtime/query/index.ts +11 -0
- package/src/runtime/query/iteration/phases/compaction.ts +46 -1
- package/src/runtime/query/iteration/phases/context.ts +4 -0
- package/src/scheduler/local.ts +1 -1
- package/src/types/agent/base.ts +9 -0
- package/src/types/agent/scheduler.ts +9 -0
- 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
|
package/src/types/tool/index.ts
CHANGED
|
@@ -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
|
*
|