@nuvin/session 0.4.0-rc.10 → 0.4.0-rc.12
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/dist/chunk-4AOFJGGN.js +141 -0
- package/dist/{chunk-U6V6IQJR.js → chunk-B54P6RLO.js} +158 -10
- package/dist/{chunk-Y7JPSYTH.js → chunk-STY4IJ7W.js} +43 -1
- package/dist/client/control-center-socket.d.ts +14 -0
- package/dist/client/control-center-socket.d.ts.map +1 -0
- package/dist/client/daemon-client.d.ts.map +1 -1
- package/dist/client/data-client.d.ts +2 -1
- package/dist/client/data-client.d.ts.map +1 -1
- package/dist/client/http-data-client.d.ts.map +1 -1
- package/dist/client/index.js +209 -5
- package/dist/client/session-client.d.ts +4 -2
- package/dist/client/session-client.d.ts.map +1 -1
- package/dist/controller/agent-channel.d.ts +7 -2
- package/dist/controller/agent-channel.d.ts.map +1 -1
- package/dist/controller/index.js +394 -65
- package/dist/controller/session-controller.d.ts +25 -5
- package/dist/controller/session-controller.d.ts.map +1 -1
- package/dist/protocol/control-center.d.ts +141 -0
- package/dist/protocol/control-center.d.ts.map +1 -0
- package/dist/protocol/data-rpc.d.ts +5 -0
- package/dist/protocol/data-rpc.d.ts.map +1 -1
- package/dist/protocol/index.d.ts +2 -0
- package/dist/protocol/index.d.ts.map +1 -1
- package/dist/protocol/index.js +12 -2
- package/dist/protocol/submission-recovery.d.ts +6 -0
- package/dist/protocol/submission-recovery.d.ts.map +1 -0
- package/dist/protocol/types.d.ts +71 -6
- package/dist/protocol/types.d.ts.map +1 -1
- package/dist/protocol/version.d.ts +1 -1
- package/dist/state/index.js +9 -1
- package/dist/state/messages.d.ts +6 -2
- package/dist/state/messages.d.ts.map +1 -1
- package/dist/state/session.d.ts +4 -1
- package/dist/state/session.d.ts.map +1 -1
- package/dist/test-utils/index.js +2 -2
- package/package.json +2 -2
- package/dist/chunk-5PHEC5GZ.js +0 -85
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AgentMetricsSnapshot } from "@nuvin/agent-core/agent";
|
|
2
|
-
import { type AgentInput, type AgentSubmission, type AskUserAnswers, type Message, type SteeringInputDrain } from "@nuvin/agent-core/shared";
|
|
3
|
-
import type { BackgroundAgentStatus, BackgroundWorkActiveState, BashPolicyApprovalDiagnostics, McpAuthFlowState, McpViewState, PersistBashPermissionRequest, PersistBashPermissionResult, ServerEvent, SessionMeta, SessionSnapshot, SlashCommandDescriptor } from "../protocol/types.ts";
|
|
2
|
+
import { type AgentInput, type AgentSubmission, type AskUserAnswers, type Message, type RootExecutionControl, type SteeringInputDrain } from "@nuvin/agent-core/shared";
|
|
3
|
+
import type { AbortRecoveryRequest, AbortRecoveryResult, BackgroundAgentStatus, BackgroundWorkActiveState, BashPolicyApprovalDiagnostics, HumanSubmissionRequest, McpAuthFlowState, McpViewState, PersistBashPermissionRequest, PersistBashPermissionResult, RecallState, ServerEvent, SessionMeta, SessionSnapshot, SlashCommandDescriptor, SubmissionKey } from "../protocol/types.ts";
|
|
4
4
|
import { type SessionApprovalMode } from "../state/approvals.ts";
|
|
5
5
|
import { type TuiMessage } from "../state/messages.ts";
|
|
6
6
|
import type { AgentChannel } from "./agent-channel.ts";
|
|
@@ -9,6 +9,7 @@ export declare function formatBashPolicyDenial(diagnostics: BashPolicyApprovalDi
|
|
|
9
9
|
export type AgentLike = {
|
|
10
10
|
messages: Message[];
|
|
11
11
|
send(input: AgentInput, opts: {
|
|
12
|
+
execution?: RootExecutionControl;
|
|
12
13
|
streaming: boolean;
|
|
13
14
|
signal: AbortSignal;
|
|
14
15
|
drainSteering?: SteeringInputDrain;
|
|
@@ -41,7 +42,17 @@ export type CompactionHooks = {
|
|
|
41
42
|
onError: (message: string) => void;
|
|
42
43
|
}): Promise<void>;
|
|
43
44
|
};
|
|
45
|
+
export type SubmissionRecoveryPersistence = Readonly<{
|
|
46
|
+
retract(input: Readonly<{
|
|
47
|
+
key: SubmissionKey;
|
|
48
|
+
rawText: string;
|
|
49
|
+
executionId: string;
|
|
50
|
+
}>, settled: Promise<void>): Promise<Readonly<{
|
|
51
|
+
removedAgentMessageIds: readonly string[];
|
|
52
|
+
}>>;
|
|
53
|
+
}>;
|
|
44
54
|
export interface SessionControllerDeps {
|
|
55
|
+
submissionRecovery?: SubmissionRecoveryPersistence;
|
|
45
56
|
agent: AgentLike;
|
|
46
57
|
channel: AgentChannel;
|
|
47
58
|
compaction?: CompactionHooks;
|
|
@@ -62,6 +73,7 @@ export interface SessionControllerDeps {
|
|
|
62
73
|
approvalMode?: SessionApprovalMode;
|
|
63
74
|
}
|
|
64
75
|
export type SubmitOptions = {
|
|
76
|
+
human?: HumanSubmissionRequest;
|
|
65
77
|
displayText: string;
|
|
66
78
|
/**
|
|
67
79
|
* Resolve after admission, even when idle. Execution remains controller-owned;
|
|
@@ -84,7 +96,10 @@ export type SubmitOptions = {
|
|
|
84
96
|
};
|
|
85
97
|
export type SessionStopIntent = "cancel" | "suspend";
|
|
86
98
|
export interface SessionController {
|
|
99
|
+
/** Reserve a host invocation until its own execution/persistence settles; not history storage. */
|
|
100
|
+
reserveHumanSubmission(human: HumanSubmissionRequest): () => void;
|
|
87
101
|
abort(intent?: SessionStopIntent): void;
|
|
102
|
+
abortWithRecovery(request: AbortRecoveryRequest): Promise<AbortRecoveryResult>;
|
|
88
103
|
/** Observe lifecycle intent before signals, queues or approval resolvers stop. */
|
|
89
104
|
onAbort(listener: (reason: unknown, intent: SessionStopIntent) => void): () => void;
|
|
90
105
|
/**
|
|
@@ -96,6 +111,7 @@ export interface SessionController {
|
|
|
96
111
|
* controller-bound compaction monitor (no duplicate, uncontrolled monitor).
|
|
97
112
|
*/
|
|
98
113
|
attachHostHooks(hooks: {
|
|
114
|
+
submissionRecovery?: SubmissionRecoveryPersistence;
|
|
99
115
|
compaction?: CompactionHooks;
|
|
100
116
|
guardPrompt?: (input: AgentInput) => Promise<GuardResult>;
|
|
101
117
|
}): void;
|
|
@@ -110,7 +126,10 @@ export interface SessionController {
|
|
|
110
126
|
* history load, this preserves the active turn that may be performing
|
|
111
127
|
* automatic compaction while dropping every parent-allocation message.
|
|
112
128
|
*/
|
|
113
|
-
commitCompaction(
|
|
129
|
+
commitCompaction(input: Readonly<{
|
|
130
|
+
messages: readonly TuiMessage[];
|
|
131
|
+
recall: RecallState;
|
|
132
|
+
}>): void;
|
|
114
133
|
close(): Promise<void>;
|
|
115
134
|
/**
|
|
116
135
|
* Cancel a queued (not-yet-running) submission by its `turn-status.queued` id.
|
|
@@ -121,7 +140,7 @@ export interface SessionController {
|
|
|
121
140
|
decideApproval(toolCallId: string, decision: "a" | "n" | "y", comment?: string, grantDir?: string, toolCallPath?: readonly string[]): boolean;
|
|
122
141
|
persistBashPermission(toolCallId: string, request: PersistBashPermissionRequest, toolCallPath?: readonly string[]): Promise<PersistBashPermissionResult | undefined>;
|
|
123
142
|
/** Echo a user-style message without starting a turn (slash commands echo their invocation). */
|
|
124
|
-
echoUserMessage(text: string, attachmentLabels?: string[]):
|
|
143
|
+
echoUserMessage(text: string, attachmentLabels?: string[], key?: SubmissionKey): boolean;
|
|
125
144
|
/**
|
|
126
145
|
* Returns the live internal state reference (NOT a deep copy). This is safe
|
|
127
146
|
* only because every reducer is copy-on-write: past snapshots are never
|
|
@@ -169,8 +188,9 @@ export interface SessionController {
|
|
|
169
188
|
* job — it calls those, then this. A host that already owns busy state may
|
|
170
189
|
* preserve that gate until its reset boundary has fully settled.
|
|
171
190
|
*/
|
|
172
|
-
reset(options
|
|
191
|
+
reset(options: Readonly<{
|
|
173
192
|
preserveHostBusy?: boolean;
|
|
193
|
+
recall: RecallState;
|
|
174
194
|
}>): void;
|
|
175
195
|
setApprovalMode(mode: SessionApprovalMode): void;
|
|
176
196
|
setBusy(busy: boolean): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-controller.d.ts","sourceRoot":"","sources":["../../src/controller/session-controller.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"session-controller.d.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@ -0,0 +1,141 @@
|
|
|
1
|
+
import type { AgentCatalogEntry, AgentDetail, AgentEditorData, AgentEditorDefinition, AgentMutationResult, CommandDetail, ConfigPatch, ConsolidateProposalDetail, ConsolidateProposalSummary, ConsolidateRunOutcome, DeleteAgentResult, McpAction, McpActionResult, McpServerInfo, McpViewState, SetConfigResult, SkillCatalogEntry, SkillDetail, SlashCommandCompletion, SlashCommandDescriptor, WorkspaceMemoryDetail, WorkspaceMemorySummary } from "./types.ts";
|
|
2
|
+
/** Configuration context for management without creating or attaching a session. */
|
|
3
|
+
export type ControlCenterScope = {
|
|
4
|
+
profile?: string;
|
|
5
|
+
workspace?: string;
|
|
6
|
+
cwd?: string;
|
|
7
|
+
};
|
|
8
|
+
export type ControlCenterState = {
|
|
9
|
+
profile: string;
|
|
10
|
+
workspace?: string;
|
|
11
|
+
cwd: string;
|
|
12
|
+
activeModelIdentity: string;
|
|
13
|
+
activeAgentModelSet?: string;
|
|
14
|
+
mcpState: McpViewState;
|
|
15
|
+
commands: SlashCommandDescriptor[];
|
|
16
|
+
};
|
|
17
|
+
/** Session-compatible management operations. Empty acknowledgements use JSON null. */
|
|
18
|
+
export type ControlCenterOperationSchema = {
|
|
19
|
+
getState: {
|
|
20
|
+
args: [];
|
|
21
|
+
result: ControlCenterState;
|
|
22
|
+
};
|
|
23
|
+
completeSlashCommand: {
|
|
24
|
+
args: [name: string, argumentsText: string];
|
|
25
|
+
result: SlashCommandCompletion;
|
|
26
|
+
};
|
|
27
|
+
/** The daemon accepts only model selection through this operation. */
|
|
28
|
+
runSlashCommand: {
|
|
29
|
+
args: [raw: string];
|
|
30
|
+
result: null;
|
|
31
|
+
};
|
|
32
|
+
setConfig: {
|
|
33
|
+
args: [patches: ConfigPatch[]];
|
|
34
|
+
result: SetConfigResult;
|
|
35
|
+
};
|
|
36
|
+
listSkills: {
|
|
37
|
+
args: [];
|
|
38
|
+
result: SkillCatalogEntry[];
|
|
39
|
+
};
|
|
40
|
+
getSkill: {
|
|
41
|
+
args: [skillId: string];
|
|
42
|
+
result: SkillDetail;
|
|
43
|
+
};
|
|
44
|
+
listAgents: {
|
|
45
|
+
args: [];
|
|
46
|
+
result: AgentCatalogEntry[];
|
|
47
|
+
};
|
|
48
|
+
getAgent: {
|
|
49
|
+
args: [agentId: string];
|
|
50
|
+
result: AgentDetail;
|
|
51
|
+
};
|
|
52
|
+
getAgentEditorData: {
|
|
53
|
+
args: [agentId?: string];
|
|
54
|
+
result: AgentEditorData;
|
|
55
|
+
};
|
|
56
|
+
createAgent: {
|
|
57
|
+
args: [definition: AgentEditorDefinition];
|
|
58
|
+
result: AgentMutationResult;
|
|
59
|
+
};
|
|
60
|
+
updateAgent: {
|
|
61
|
+
args: [
|
|
62
|
+
input: {
|
|
63
|
+
sourceKey: string;
|
|
64
|
+
agentId: string;
|
|
65
|
+
expectedRevision: string;
|
|
66
|
+
definition: AgentEditorDefinition;
|
|
67
|
+
}
|
|
68
|
+
];
|
|
69
|
+
result: AgentMutationResult;
|
|
70
|
+
};
|
|
71
|
+
deleteAgent: {
|
|
72
|
+
args: [input: {
|
|
73
|
+
sourceKey: string;
|
|
74
|
+
agentId: string;
|
|
75
|
+
expectedRevision: string;
|
|
76
|
+
}];
|
|
77
|
+
result: DeleteAgentResult;
|
|
78
|
+
};
|
|
79
|
+
getCommand: {
|
|
80
|
+
args: [name: string];
|
|
81
|
+
result: CommandDetail;
|
|
82
|
+
};
|
|
83
|
+
listMcpServers: {
|
|
84
|
+
args: [];
|
|
85
|
+
result: McpServerInfo[];
|
|
86
|
+
};
|
|
87
|
+
mcpAction: {
|
|
88
|
+
args: [action: McpAction, serverName: string];
|
|
89
|
+
result: McpActionResult;
|
|
90
|
+
};
|
|
91
|
+
listWorkspaceMemories: {
|
|
92
|
+
args: [];
|
|
93
|
+
result: WorkspaceMemorySummary[];
|
|
94
|
+
};
|
|
95
|
+
getWorkspaceMemory: {
|
|
96
|
+
args: [slug: string];
|
|
97
|
+
result: WorkspaceMemoryDetail;
|
|
98
|
+
};
|
|
99
|
+
removeWorkspaceMemory: {
|
|
100
|
+
args: [slug: string];
|
|
101
|
+
result: {
|
|
102
|
+
removed: boolean;
|
|
103
|
+
slug: string;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
listConsolidateProposals: {
|
|
107
|
+
args: [];
|
|
108
|
+
result: ConsolidateProposalSummary[];
|
|
109
|
+
};
|
|
110
|
+
getConsolidateProposal: {
|
|
111
|
+
args: [proposalId: string];
|
|
112
|
+
result: ConsolidateProposalDetail;
|
|
113
|
+
};
|
|
114
|
+
decideConsolidateProposal: {
|
|
115
|
+
args: [
|
|
116
|
+
proposalId: string,
|
|
117
|
+
decision: "approve" | "reject",
|
|
118
|
+
selectedOperationIds?: readonly string[]
|
|
119
|
+
];
|
|
120
|
+
result: {
|
|
121
|
+
status: string;
|
|
122
|
+
id?: string;
|
|
123
|
+
error?: string;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
runConsolidate: {
|
|
127
|
+
args: [];
|
|
128
|
+
result: ConsolidateRunOutcome;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
export type ControlCenterRequest = {
|
|
132
|
+
[K in keyof ControlCenterOperationSchema]: {
|
|
133
|
+
scope: ControlCenterScope;
|
|
134
|
+
operation: K;
|
|
135
|
+
args: ControlCenterOperationSchema[K]["args"];
|
|
136
|
+
};
|
|
137
|
+
}[keyof ControlCenterOperationSchema];
|
|
138
|
+
export type ControlCenterResult = ControlCenterOperationSchema[keyof ControlCenterOperationSchema]["result"];
|
|
139
|
+
/** Validate the session-free wire envelope before daemon domain validation. */
|
|
140
|
+
export declare function parseControlCenterRequest(value: unknown): ControlCenterRequest;
|
|
141
|
+
//# sourceMappingURL=control-center.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"control-center.d.ts","sourceRoot":"","sources":["../../src/protocol/control-center.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,WA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AI,EAAE,EAAE,CAAC;QAAC,MAAM,EAAE,qBAAqB,CAAA;KAAE,CAAC;CAC7D,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;KAChC,CAAC,IAAI,MAAM,4BAA4B,GAAG;QACzC,KAAK,EAAE,kBAAkB,CAAC;QAC1B,SAAS,EAAE,CAAC,CAAC;QACb,IAAI,EAAE,4BAA4B,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;KAC/C;CACF,CAAC,MAAM,4BAA4B,CAAC,CAAC;AAEtC,MAAM,MAAM,mBAAmB,GAC7B,4BAA4B,CAAC,MAAM,4BAA4B,CAAC,CAAC,QAAQ,CAAC,CAAC;AAwF7E,+EAA+E;AAC/E,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,OAAO,GAAG,oBAAoB,CAY9E"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ControlCenterRequest, ControlCenterResult } from "./control-center.ts";
|
|
1
2
|
import type { AgentModelSetsView, AgentModelTierMappings, ConfigMutationResult, HistoryPage, ListHistoryParams, ListHistoryWorkspacesParams, ListHistoryWorkspacesResult, ListWorkspaceHistoryParams, ModelReasoningCapabilityView, PersistenceIdentity, ProfileSummary, ProviderConfigSummary, ProviderCredentialInput, ProviderSurfaceId, SessionSnapshot, WorkspaceConfigSummary, WorkspaceHistoryPage } from "./types.ts";
|
|
2
3
|
export type DataRpcErrorCode = "invalid-input" | "not-found" | "conflict" | "unsupported" | "unauthorized" | "daemon-offline" | "transcript-unavailable" | "transcript-corrupt" | "history-state-conflict" | "ambiguous-session-identity" | "invalid-history-cursor" | "internal";
|
|
3
4
|
export type DataRpcError = {
|
|
@@ -30,6 +31,10 @@ export type UpdateWorkspaceInput = ProfileScope & {
|
|
|
30
31
|
* RelayRpcDeps is the complete recipe for a new read operation.
|
|
31
32
|
*/
|
|
32
33
|
export type DataRpcSchema = {
|
|
34
|
+
"control-center": {
|
|
35
|
+
params: ControlCenterRequest;
|
|
36
|
+
result: ControlCenterResult;
|
|
37
|
+
};
|
|
33
38
|
"get-transcript": {
|
|
34
39
|
params: {
|
|
35
40
|
identity: PersistenceIdentity;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-rpc.d.ts","sourceRoot":"","sources":["../../src/protocol/data-rpc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,sBAAsB,EACtB,oBAAoB,EACpB,WAAW,EACX,iBAAiB,EACjB,2BAA2B,EAC3B,2BAA2B,EAC3B,0BAA0B,EAC1B,4BAA4B,EAC5B,mBAAmB,EACnB,cAAc,EACd,qBAAqB,EACrB,uBAAuB,EACvB,iBAAiB,EACjB,eAAe,EACf,sBAAsB,EACtB,oBAAoB,EACrB,MAAM,YAAY,CAAC;AAEpB,MAAM,MAAM,gBAAgB,GACxB,eAAe,GACf,WAAW,GACX,UAAU,GACV,aAAa,GACb,cAAc,GACd,gBAAgB,GAChB,wBAAwB,GACxB,oBAAoB,GACpB,wBAAwB,GACxB,4BAA4B,GAC5B,wBAAwB,GACxB,UAAU,CAAC;AAEf,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,gBAAgB,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEhD,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG;IAC5C,IAAI,EAAE,MAAM,CAAC;IACb,wEAAwE;IACxE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,iBAAiB,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,uBAAuB,CAAC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,YAAY,GAAG;IAChD,cAAc,CAAC,EA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AE;QAC7B,MAAM,EAAE;YAAE,OAAO,EAAE,MAAM,CAAC;YAAC,IAAI,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;QAC3C,MAAM,EAAE,oBAAoB,CAAC,IAAI,CAAC,CAAC;KACpC,CAAC;IACF,+BAA+B,EAAE;QAC/B,MAAM,EAAE;YAAE,OAAO,EAAE,MAAM,CAAC;YAAC,SAAS,EAAE,MAAM,CAAC;YAAC,IAAI,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;QAC9D,MAAM,EAAE,oBAAoB,CAAC,IAAI,CAAC,CAAC;KACpC,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,MAAM,aAAa,CAAC;AAChD,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,aAAa,IAAI,aAAa,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;AAChF,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,aAAa,IAAI,aAAa,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC"}
|
package/dist/protocol/index.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export * from "./background-work.ts";
|
|
2
|
+
export * from "./control-center.ts";
|
|
2
3
|
export * from "./daemon-directory.ts";
|
|
3
4
|
export * from "./data-rpc.ts";
|
|
4
5
|
export * from "./history-text.ts";
|
|
5
6
|
export * from "./model-identity.ts";
|
|
7
|
+
export * from "./submission-recovery.ts";
|
|
6
8
|
export type { BackgroundAttemptState, BackgroundWorkActiveState, BackgroundWorkInspection, BackgroundWorkOwner, BackgroundWorkPage, BackgroundWorkState, BackgroundWorkSummary, BackgroundWorkUsageSummary, } from "./types.ts";
|
|
7
9
|
export * from "./types.ts";
|
|
8
10
|
export * from "./version.ts";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/protocol/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,YAAY,EACV,sBAAsB,EACtB,yBAAyB,EACzB,wBAAwB,EACxB,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,0BAA0B,GAC3B,MAAM,YAAY,CAAC;AACpB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/protocol/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,YAAY,EACV,sBAAsB,EACtB,yBAAyB,EACzB,wBAAwB,EACxB,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,0BAA0B,GAC3B,MAAM,YAAY,CAAC;AACpB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC"}
|
package/dist/protocol/index.js
CHANGED
|
@@ -2,18 +2,23 @@ import {
|
|
|
2
2
|
escapeLikeLiteral,
|
|
3
3
|
modelNameFromIdentity,
|
|
4
4
|
normalizeHistoryText,
|
|
5
|
+
parseControlCenterRequest,
|
|
5
6
|
providerFromIdentity,
|
|
6
7
|
sanitizeHistoryDisplayText
|
|
7
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-4AOFJGGN.js";
|
|
8
9
|
import {
|
|
9
10
|
BACKGROUND_WORK_PROTOCOL_LIMITS,
|
|
10
11
|
BackgroundWorkResultValidationError,
|
|
11
12
|
PROTOCOL_VERSION,
|
|
13
|
+
isSubmissionKey,
|
|
14
|
+
parseAbortRecoveryRequest,
|
|
15
|
+
parseAbortRecoveryResult,
|
|
12
16
|
parseBackgroundWorkCancellation,
|
|
13
17
|
parseBackgroundWorkInspection,
|
|
14
18
|
parseBackgroundWorkPage,
|
|
19
|
+
sameSubmissionKey,
|
|
15
20
|
truncateBackgroundWorkText
|
|
16
|
-
} from "../chunk-
|
|
21
|
+
} from "../chunk-STY4IJ7W.js";
|
|
17
22
|
import {
|
|
18
23
|
AGENT_MODEL_TIERS,
|
|
19
24
|
GRANT_CAPABILITIES,
|
|
@@ -29,12 +34,17 @@ export {
|
|
|
29
34
|
PROTOCOL_VERSION,
|
|
30
35
|
PROVIDER_SURFACE_IDS,
|
|
31
36
|
escapeLikeLiteral,
|
|
37
|
+
isSubmissionKey,
|
|
32
38
|
modelNameFromIdentity,
|
|
33
39
|
normalizeHistoryText,
|
|
40
|
+
parseAbortRecoveryRequest,
|
|
41
|
+
parseAbortRecoveryResult,
|
|
34
42
|
parseBackgroundWorkCancellation,
|
|
35
43
|
parseBackgroundWorkInspection,
|
|
36
44
|
parseBackgroundWorkPage,
|
|
45
|
+
parseControlCenterRequest,
|
|
37
46
|
providerFromIdentity,
|
|
47
|
+
sameSubmissionKey,
|
|
38
48
|
sanitizeHistoryDisplayText,
|
|
39
49
|
truncateBackgroundWorkText
|
|
40
50
|
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { AbortRecoveryRequest, AbortRecoveryResult, SubmissionKey } from "./types.ts";
|
|
2
|
+
export declare function isSubmissionKey(value: unknown): value is SubmissionKey;
|
|
3
|
+
export declare function sameSubmissionKey(left: SubmissionKey | null, right: SubmissionKey | null): boolean;
|
|
4
|
+
export declare function parseAbortRecoveryRequest(value: unknown): AbortRecoveryRequest;
|
|
5
|
+
export declare function parseAbortRecoveryResult(value: unknown, request?: AbortRecoveryRequest): AbortRecoveryResult;
|
|
6
|
+
//# sourceMappingURL=submission-recovery.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"submission-recovery.d.ts","sourceRoot":"","sources":["../../src/protocol/submission-recovery.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAc3F,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,aAAa,CAWtE;AACD,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,aAAa,GAAG,IAAI,EAC1B,KAAK,EAAE,aAAa,GAAG,IAAI,GAC1B,OAAO,CAOT;AACD,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,OAAO,GAAG,oBAAoB,CAQ9E;AACD,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,OAAO,EACd,OAAO,CAAC,EAAE,oBAAoB,GAC7B,mBAAmB,CAiCrB"}
|
package/dist/protocol/types.d.ts
CHANGED
|
@@ -1,8 +1,43 @@
|
|
|
1
1
|
import type { AgentMetricsSnapshot } from "@nuvin/agent-core/agent";
|
|
2
|
-
import type { AgentEvent, AgentInput, AskUserAnswers, AskUserQuestionRequest, JsonObject, JsonValue, SubagentReportMeta, ToolPermissionClass, TurnResultStatus } from "@nuvin/agent-core/shared";
|
|
2
|
+
import type { AgentEvent, AgentInput, AskUserAnswers, AskUserQuestionRequest, HumanSubmission, JsonObject, JsonValue, SubagentReportMeta, ToolPermissionClass, TurnResultStatus } from "@nuvin/agent-core/shared";
|
|
3
3
|
import type { ApprovalQueueState, SessionApprovalMode } from "../state/approvals.ts";
|
|
4
4
|
import type { MessageState, ToolMessageStatus } from "../state/messages.ts";
|
|
5
|
+
import type { ControlCenterRequest } from "./control-center.ts";
|
|
5
6
|
import type { DataRpcError, DataRpcMethod } from "./data-rpc.ts";
|
|
7
|
+
export type SubmissionKey = Readonly<{
|
|
8
|
+
identity: PersistenceIdentity;
|
|
9
|
+
submissionId: string;
|
|
10
|
+
}>;
|
|
11
|
+
export type AbortRecoveryRequest = Readonly<{
|
|
12
|
+
target: SubmissionKey | null;
|
|
13
|
+
}>;
|
|
14
|
+
export type AbortRecoveryResult = Readonly<{
|
|
15
|
+
status: "retracted";
|
|
16
|
+
key: SubmissionKey;
|
|
17
|
+
rawText: string;
|
|
18
|
+
}> | Readonly<{
|
|
19
|
+
status: "not-retracted";
|
|
20
|
+
target: SubmissionKey | null;
|
|
21
|
+
reason: "no-active-human" | "target-mismatch" | "activity-started" | "already-finished";
|
|
22
|
+
}> | Readonly<{
|
|
23
|
+
status: "failed";
|
|
24
|
+
target: SubmissionKey | null;
|
|
25
|
+
code: "abort-failed" | "persistence-failed" | "persistence-unavailable";
|
|
26
|
+
message: string;
|
|
27
|
+
}>;
|
|
28
|
+
export type HumanSubmissionRequest = Readonly<{
|
|
29
|
+
identity: PersistenceIdentity;
|
|
30
|
+
submission: HumanSubmission;
|
|
31
|
+
}>;
|
|
32
|
+
export type RecallEntry = Readonly<{
|
|
33
|
+
key: SubmissionKey;
|
|
34
|
+
rawText: string;
|
|
35
|
+
retracted: boolean;
|
|
36
|
+
}>;
|
|
37
|
+
export type RecallState = Readonly<{
|
|
38
|
+
identity: PersistenceIdentity | null;
|
|
39
|
+
entries: readonly RecallEntry[];
|
|
40
|
+
}>;
|
|
6
41
|
/** Agent-event context for nested tool execution. */
|
|
7
42
|
export type WireAgentEventScope = {
|
|
8
43
|
agentId: string;
|
|
@@ -217,6 +252,8 @@ export type SlashCommandDescriptor = {
|
|
|
217
252
|
* never dropped — so config panels must render builtins read-only.
|
|
218
253
|
*/
|
|
219
254
|
custom?: boolean;
|
|
255
|
+
/** Persisted custom-command state in management catalogs; absent in live registries. */
|
|
256
|
+
enabled?: boolean;
|
|
220
257
|
};
|
|
221
258
|
/**
|
|
222
259
|
* Whether completing a slash-command item should submit the command (`submit`)
|
|
@@ -258,6 +295,8 @@ export type SlashCommandCompletion = {
|
|
|
258
295
|
* texts, abort controller) that never cross the wire.
|
|
259
296
|
*/
|
|
260
297
|
export type SessionViewState = {
|
|
298
|
+
activeHumanSubmission: SubmissionKey | null;
|
|
299
|
+
recall: RecallState;
|
|
261
300
|
approval: ApprovalQueueState<ApprovalDescriptor>;
|
|
262
301
|
/**
|
|
263
302
|
* Active MCP OAuth login flow (spec §10/§12), or null when no login is in
|
|
@@ -395,6 +434,18 @@ export type QueuedMessageView = {
|
|
|
395
434
|
attachmentLabels?: string[];
|
|
396
435
|
};
|
|
397
436
|
export type ServerEventBody = {
|
|
437
|
+
type: "active-human-submission";
|
|
438
|
+
key: SubmissionKey | null;
|
|
439
|
+
} | {
|
|
440
|
+
type: "submission-retracted";
|
|
441
|
+
result: Extract<AbortRecoveryResult, {
|
|
442
|
+
status: "retracted";
|
|
443
|
+
}>;
|
|
444
|
+
removedMessageIds: string[];
|
|
445
|
+
} | {
|
|
446
|
+
type: "recall-state";
|
|
447
|
+
recall: RecallState;
|
|
448
|
+
} | {
|
|
398
449
|
type: "agent-event";
|
|
399
450
|
event: AgentEvent;
|
|
400
451
|
scope?: WireAgentEventScope;
|
|
@@ -407,6 +458,7 @@ export type ServerEventBody = {
|
|
|
407
458
|
toolStatus?: ToolMessageStatus;
|
|
408
459
|
} | {
|
|
409
460
|
type: "user-message";
|
|
461
|
+
submissionId?: string;
|
|
410
462
|
text: string;
|
|
411
463
|
attachmentLabels?: string[];
|
|
412
464
|
/**
|
|
@@ -609,7 +661,7 @@ export type AgentToolCapability = {
|
|
|
609
661
|
mcp?: {
|
|
610
662
|
serverId: string;
|
|
611
663
|
toolName: string;
|
|
612
|
-
serverStatus: "connected" | "disabled" | "authRequired" | "error";
|
|
664
|
+
serverStatus: "connected" | "disconnected" | "disabled" | "authRequired" | "error";
|
|
613
665
|
};
|
|
614
666
|
};
|
|
615
667
|
export type AgentSkillCapability = {
|
|
@@ -644,8 +696,12 @@ export type AgentMutationResult = {
|
|
|
644
696
|
catalogEntry: AgentCatalogEntry;
|
|
645
697
|
detail: AgentDetail;
|
|
646
698
|
editorData: AgentEditorData;
|
|
699
|
+
} & AgentMutationApplyState;
|
|
700
|
+
type AgentMutationApplyState = {
|
|
647
701
|
activePersonaId: string;
|
|
648
702
|
liveApply: "applied" | "stagedForNextTurn";
|
|
703
|
+
} | {
|
|
704
|
+
liveApply: "saved";
|
|
649
705
|
};
|
|
650
706
|
export type DeleteAgentResult = {
|
|
651
707
|
revealed?: {
|
|
@@ -654,9 +710,7 @@ export type DeleteAgentResult = {
|
|
|
654
710
|
editorData: AgentEditorData;
|
|
655
711
|
};
|
|
656
712
|
selectedAgentId: string;
|
|
657
|
-
|
|
658
|
-
liveApply: "applied" | "stagedForNextTurn";
|
|
659
|
-
};
|
|
713
|
+
} & AgentMutationApplyState;
|
|
660
714
|
/** One MCP tool row in the MCP-tab server detail. */
|
|
661
715
|
export type McpToolInfo = {
|
|
662
716
|
name: string;
|
|
@@ -676,7 +730,7 @@ export type McpServerActionError = {
|
|
|
676
730
|
code: McpActionErrorCode;
|
|
677
731
|
message: string;
|
|
678
732
|
};
|
|
679
|
-
export type McpServerStatus = "authRequired" | "connected" | "connecting" | "disabled" | "disconnecting" | "error" | "reloading";
|
|
733
|
+
export type McpServerStatus = "authRequired" | "connected" | "disconnected" | "connecting" | "disabled" | "disconnecting" | "error" | "reloading";
|
|
680
734
|
export type McpViewState = {
|
|
681
735
|
revision: number;
|
|
682
736
|
servers: McpServerInfo[];
|
|
@@ -786,6 +840,7 @@ export type ConsolidateRunOutcome = {
|
|
|
786
840
|
export type ClientCommand = {
|
|
787
841
|
id: string;
|
|
788
842
|
type: "submit";
|
|
843
|
+
human?: HumanSubmissionRequest;
|
|
789
844
|
submission?: never;
|
|
790
845
|
deliveryKind?: never;
|
|
791
846
|
transcriptVisibility?: never;
|
|
@@ -817,6 +872,10 @@ export type ClientCommand = {
|
|
|
817
872
|
} | {
|
|
818
873
|
id: string;
|
|
819
874
|
type: "abort";
|
|
875
|
+
} | {
|
|
876
|
+
id: string;
|
|
877
|
+
type: "abort-with-recovery";
|
|
878
|
+
request: AbortRecoveryRequest;
|
|
820
879
|
} | {
|
|
821
880
|
id: string;
|
|
822
881
|
type: "list-background-work";
|
|
@@ -840,6 +899,7 @@ export type ClientCommand = {
|
|
|
840
899
|
id: string;
|
|
841
900
|
type: "slash-command";
|
|
842
901
|
raw: string;
|
|
902
|
+
human?: HumanSubmissionRequest;
|
|
843
903
|
} | {
|
|
844
904
|
id: string;
|
|
845
905
|
type: "complete-path";
|
|
@@ -1383,6 +1443,10 @@ export type DaemonAdminCommand =
|
|
|
1383
1443
|
};
|
|
1384
1444
|
/** Pre-attach session management and operator commands (spec §4.2). */
|
|
1385
1445
|
export type DaemonCommand = {
|
|
1446
|
+
id: string;
|
|
1447
|
+
type: "control-center";
|
|
1448
|
+
input: ControlCenterRequest;
|
|
1449
|
+
} | {
|
|
1386
1450
|
id: string;
|
|
1387
1451
|
type: "list-sessions";
|
|
1388
1452
|
} | {
|
|
@@ -1547,4 +1611,5 @@ export type DetachedFrame = {
|
|
|
1547
1611
|
export type DaemonClientMessage = ClientCommand | DaemonCommand | HelloFrame;
|
|
1548
1612
|
/** Everything a daemon may send over a socket. */
|
|
1549
1613
|
export type DaemonServerMessage = DetachedFrame | RejectedFrame | ReplayFrame | ServerFrame | SessionCreatedFrame | SessionListFrame | SessionListUpdateFrame | WelcomeFrame;
|
|
1614
|
+
export {};
|
|
1550
1615
|
//# sourceMappingURL=types.d.ts.map
|