@intentic/sandbox-contract 1.322.0 → 1.323.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/dist/contracts/agent.contract.d.ts +61 -6
- package/dist/contracts/agent.contract.d.ts.map +1 -1
- package/dist/contracts/agent.contract.js +13 -3
- package/dist/contracts/agent.contract.js.map +1 -1
- package/dist/contracts/agents.contract.d.ts +40 -0
- package/dist/contracts/agents.contract.d.ts.map +1 -1
- package/dist/contracts/loops.contract.d.ts +2 -0
- package/dist/contracts/loops.contract.d.ts.map +1 -1
- package/dist/contracts/needs.contract.d.ts +4 -0
- package/dist/contracts/needs.contract.d.ts.map +1 -1
- package/dist/contracts/privacy.contract.d.ts +187 -0
- package/dist/contracts/privacy.contract.d.ts.map +1 -0
- package/dist/contracts/privacy.contract.js +76 -0
- package/dist/contracts/privacy.contract.js.map +1 -0
- package/dist/contracts/runner.contract.d.ts +29 -18
- package/dist/contracts/runner.contract.d.ts.map +1 -1
- package/dist/contracts/sessions.contract.d.ts +3 -0
- package/dist/contracts/sessions.contract.d.ts.map +1 -1
- package/dist/contracts/system.contract.d.ts +36 -32
- package/dist/contracts/system.contract.d.ts.map +1 -1
- package/dist/contracts/usage.contract.d.ts +1 -0
- package/dist/contracts/usage.contract.d.ts.map +1 -1
- package/dist/contracts/workflows.contract.d.ts +3 -0
- package/dist/contracts/workflows.contract.d.ts.map +1 -1
- package/dist/events/agent-events.d.ts +14 -0
- package/dist/events/agent-events.d.ts.map +1 -1
- package/dist/events/agent-events.js +2 -0
- package/dist/events/agent-events.js.map +1 -1
- package/dist/events/requests.d.ts +3 -0
- package/dist/events/requests.d.ts.map +1 -1
- package/dist/events/requests.js +4 -0
- package/dist/events/requests.js.map +1 -1
- package/dist/events/resume.d.ts +1 -0
- package/dist/events/resume.d.ts.map +1 -1
- package/dist/events/resume.js +7 -1
- package/dist/events/resume.js.map +1 -1
- package/dist/events/sandbox-notice.d.ts +2 -0
- package/dist/events/sandbox-notice.d.ts.map +1 -1
- package/dist/events/sandbox-notice.js +1 -1
- package/dist/events/sandbox-notice.js.map +1 -1
- package/dist/events/system-events.d.ts +4 -0
- package/dist/events/system-events.d.ts.map +1 -1
- package/dist/events/transcript.d.ts +22 -0
- package/dist/events/transcript.d.ts.map +1 -1
- package/dist/events/transcript.js +42 -14
- package/dist/events/transcript.js.map +1 -1
- package/dist/front/generated/browser-wire.d.ts +4 -0
- package/dist/front/generated/browser-wire.d.ts.map +1 -1
- package/dist/index.d.ts +338 -38
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/models/agent-runtimes.d.ts +1 -0
- package/dist/models/agent-runtimes.d.ts.map +1 -1
- package/dist/models/agent-runtimes.js +6 -0
- package/dist/models/agent-runtimes.js.map +1 -1
- package/dist/policy/request-status.d.ts.map +1 -1
- package/dist/policy/request-status.js +16 -7
- package/dist/policy/request-status.js.map +1 -1
- package/dist/policy/turned-away.d.ts.map +1 -1
- package/dist/policy/turned-away.js +1 -0
- package/dist/policy/turned-away.js.map +1 -1
- package/dist/protocol/raw-routes.d.ts +12 -0
- package/dist/protocol/raw-routes.d.ts.map +1 -1
- package/dist/protocol/raw-routes.js +3 -0
- package/dist/protocol/raw-routes.js.map +1 -1
- package/dist/schemas/agent.d.ts +97 -0
- package/dist/schemas/agent.d.ts.map +1 -1
- package/dist/schemas/agent.js +20 -2
- package/dist/schemas/agent.js.map +1 -1
- package/dist/schemas/agents.d.ts +6 -0
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/agents.js +1 -1
- package/dist/schemas/agents.js.map +1 -1
- package/dist/schemas/automations.d.ts +2 -0
- package/dist/schemas/automations.d.ts.map +1 -1
- package/dist/schemas/git/git.d.ts.map +1 -1
- package/dist/schemas/git/git.js.map +1 -1
- package/dist/schemas/loops.d.ts +3 -0
- package/dist/schemas/loops.d.ts.map +1 -1
- package/dist/schemas/loops.js +1 -1
- package/dist/schemas/loops.js.map +1 -1
- package/dist/schemas/needs.d.ts +6 -0
- package/dist/schemas/needs.d.ts.map +1 -1
- package/dist/schemas/needs.js +13 -3
- package/dist/schemas/needs.js.map +1 -1
- package/dist/schemas/platform-link.d.ts +50 -0
- package/dist/schemas/platform-link.d.ts.map +1 -0
- package/dist/schemas/platform-link.js +19 -0
- package/dist/schemas/platform-link.js.map +1 -0
- package/dist/schemas/privacy.d.ts +277 -0
- package/dist/schemas/privacy.d.ts.map +1 -0
- package/dist/schemas/privacy.js +127 -0
- package/dist/schemas/privacy.js.map +1 -0
- package/dist/schemas/providers/plan-limits.d.ts +8 -0
- package/dist/schemas/providers/plan-limits.d.ts.map +1 -1
- package/dist/schemas/providers/plan-limits.js +25 -4
- package/dist/schemas/providers/plan-limits.js.map +1 -1
- package/dist/schemas/providers/usage.d.ts +3 -0
- package/dist/schemas/providers/usage.d.ts.map +1 -1
- package/dist/schemas/providers/usage.js +4 -2
- package/dist/schemas/providers/usage.js.map +1 -1
- package/dist/schemas/push.d.ts +1 -0
- package/dist/schemas/push.d.ts.map +1 -1
- package/dist/schemas/push.js +4 -0
- package/dist/schemas/push.js.map +1 -1
- package/dist/schemas/workflows.d.ts +5 -0
- package/dist/schemas/workflows.d.ts.map +1 -1
- package/dist/state/workspace-state.d.ts +17 -1
- package/dist/state/workspace-state.d.ts.map +1 -1
- package/dist/state/workspace-state.js +20 -1
- package/dist/state/workspace-state.js.map +1 -1
- package/package.json +5 -5
- package/src/contracts/agent.contract.ts +16 -3
- package/src/contracts/privacy.contract.ts +95 -0
- package/src/events/agent-events.ts +5 -0
- package/src/events/requests.ts +6 -0
- package/src/events/resume.test.ts +13 -0
- package/src/events/resume.ts +11 -2
- package/src/events/sandbox-notice.ts +1 -1
- package/src/events/transcript.ts +79 -20
- package/src/front/generated/browser-wire.json +27 -0
- package/src/front/generated/browser-wire.ts +1 -1
- package/src/index.ts +5 -0
- package/src/models/agent-catalog.test.ts +1 -0
- package/src/models/agent-runtimes.ts +17 -0
- package/src/models/capability-ledger.test.ts +3 -0
- package/src/policy/request-status.ts +19 -9
- package/src/policy/turned-away.ts +2 -0
- package/src/protocol/raw-routes.ts +9 -0
- package/src/schemas/agent.ts +36 -4
- package/src/schemas/agents.ts +1 -1
- package/src/schemas/automations.ts +4 -4
- package/src/schemas/git/git.ts +1 -0
- package/src/schemas/loops.ts +2 -1
- package/src/schemas/needs.ts +18 -3
- package/src/schemas/platform-link.ts +42 -0
- package/src/schemas/privacy.ts +204 -0
- package/src/schemas/providers/plan-limits.ts +38 -5
- package/src/schemas/providers/usage.ts +10 -2
- package/src/schemas/push.ts +7 -0
- package/src/state/workspace-state.test.ts +8 -2
- package/src/state/workspace-state.ts +32 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-state.js","sourceRoot":"","sources":["../../src/state/workspace-state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAwC9D,MAAM,WAAW,GAAG;IAKhB;QACI,IAAI,EAAE,oCAAoC;QAC1C,WAAW,EAAE,CAAC,cAAc,EAAE,aAAa,EAAE,QAAQ,EAAE,WAAW,CAAC;QACnE,WAAW,EAAE,OAAO;QACpB,SAAS,EAAE,IAAI;KAClB;IAID,EAAE,IAAI,EAAE,6CAA6C,EAAE,WAAW,EAAE,CAAC,cAAc,CAAC,EAAE,WAAW,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE;IAI7H,EAAE,IAAI,EAAE,oCAAoC,EAAE,WAAW,EAAE,CAAC,SAAS,CAAC,EAAE,WAAW,EAAE,OAAO,EAAE;IAI9F;QACI,IAAI,EAAE,sCAAsC;QAC5C,WAAW,EAAE,EAAE;QACf,GAAG,EAAE,4GAA4G;QACjH,WAAW,EAAE,OAAO;KACvB;IAKD,EAAE,IAAI,EAAE,gCAAgC,EAAE,WAAW,EAAE,CAAC,UAAU,EAAE,cAAc,EAAE,WAAW,CAAC,EAAE,WAAW,E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
|
1
1
|
{
|
|
2
2
|
"name": "@intentic/sandbox-contract",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.323.0",
|
|
4
4
|
"description": "oRPC wire contract for the intentic sandbox daemon, shared by the daemon and its browser client",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -251,10 +251,10 @@
|
|
|
251
251
|
}
|
|
252
252
|
},
|
|
253
253
|
"dependencies": {
|
|
254
|
-
"@intentic/base": "1.
|
|
255
|
-
"@intentic/constants": "1.
|
|
256
|
-
"@intentic/extension-manifest": "1.
|
|
257
|
-
"@intentic/registry": "1.
|
|
254
|
+
"@intentic/base": "1.323.0",
|
|
255
|
+
"@intentic/constants": "1.323.0",
|
|
256
|
+
"@intentic/extension-manifest": "1.323.0",
|
|
257
|
+
"@intentic/registry": "1.323.0",
|
|
258
258
|
"@orpc/contract": "1.15.4",
|
|
259
259
|
"tslib": "2.8.1",
|
|
260
260
|
"zod": "4.6.5"
|
|
@@ -2,7 +2,7 @@ import { procedure } from "../protocol/route-meta.js";
|
|
|
2
2
|
import { streamOf } from "../protocol/routes.js";
|
|
3
3
|
import { AgentCommandsQuerySchema, AgentCommandsSchema } from "../events/requests.js";
|
|
4
4
|
import { AttachFrameSchema } from "../events/agent-events.js";
|
|
5
|
-
import {
|
|
5
|
+
import { AgentRunSchema, AttachTurnSchema, ConversationQueueSchema, MessageReceiptSchema, QueueResumedSchema, StartedTurnSchema } from "../schemas/agent.js";
|
|
6
6
|
import { ChatRouteAskSchema, ChatRouteSchema } from "../schemas/chat-route.js";
|
|
7
7
|
import { RewindResultSchema, RewindTurnSchema } from "../schemas/history.js";
|
|
8
8
|
import {
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
QueuedMessageRefSchema,
|
|
12
12
|
QueueEditSchema,
|
|
13
13
|
QueueResumeSchema,
|
|
14
|
+
QueueScheduleSchema,
|
|
14
15
|
ResumeTurnSchema,
|
|
15
16
|
AccountSwitchedSchema,
|
|
16
17
|
SteerSchema,
|
|
@@ -22,7 +23,7 @@ import { OkSchema } from "../schemas/shared.js";
|
|
|
22
23
|
|
|
23
24
|
// A turn executes as a detached daemon-side run. `run` starts it, or says the message into the running turn, or queues it
|
|
24
25
|
// for the next; `attach` streams it to any number of clients (replay then live, no special stream for the initiator),
|
|
25
|
-
// `reply` un-parks it, `steer` injects a message, `stop` hard-cancels it, and the queue's
|
|
26
|
+
// `reply` un-parks it, `steer` injects a message, `stop` hard-cancels it, and the queue's four doors change what waits.
|
|
26
27
|
export const agentContract = {
|
|
27
28
|
run: procedure
|
|
28
29
|
.route({
|
|
@@ -34,7 +35,7 @@ export const agentContract = {
|
|
|
34
35
|
})
|
|
35
36
|
// Driving agents is the collaborator grant; what leaves the sandbox stays at the maintainer default.
|
|
36
37
|
.meta({ floor: "collaborator", guest: true, control: "editor" })
|
|
37
|
-
.input(
|
|
38
|
+
.input(AgentRunSchema)
|
|
38
39
|
.output(MessageReceiptSchema),
|
|
39
40
|
attach: procedure
|
|
40
41
|
.route({
|
|
@@ -116,6 +117,18 @@ export const agentContract = {
|
|
|
116
117
|
.meta({ floor: "collaborator", guest: true })
|
|
117
118
|
.input(QueueResumeSchema)
|
|
118
119
|
.output(QueueResumedSchema),
|
|
120
|
+
// NOT_FOUND when nothing waits; BAD_REQUEST when the conversation named to wait for is unknown or archived.
|
|
121
|
+
queueSchedule: procedure
|
|
122
|
+
.route({
|
|
123
|
+
method: "POST",
|
|
124
|
+
path: "/agent/queue/schedule",
|
|
125
|
+
summary: "Reschedule waiting messages",
|
|
126
|
+
description:
|
|
127
|
+
"Books what waits in the conversation's queue to go out by itself at another instant, or once another conversation has finished and its work has landed, holding it until then. Works on a queue that is held for any reason, or on messages waiting behind a running turn. A time already past, or a conversation with nothing left to land, lets them go now.",
|
|
128
|
+
})
|
|
129
|
+
.meta({ floor: "collaborator", guest: true })
|
|
130
|
+
.input(QueueScheduleSchema)
|
|
131
|
+
.output(ConversationQueueSchema),
|
|
119
132
|
// CONFLICT while a turn already runs (the client follows it); NOT_FOUND when nothing is held (it falls back to `run`).
|
|
120
133
|
resume: procedure
|
|
121
134
|
.route({
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { procedure } from "../protocol/route-meta.js";
|
|
3
|
+
import {
|
|
4
|
+
PRIVACY_KNOWN_BATCH_MAX,
|
|
5
|
+
PrivacyDictionarySchema,
|
|
6
|
+
PrivacyKnownSourceSchema,
|
|
7
|
+
PrivacyKnownValueSchema,
|
|
8
|
+
PrivacyLedgerEntrySchema,
|
|
9
|
+
PrivacyShieldPolicySchema,
|
|
10
|
+
PrivacyShieldStatusSchema,
|
|
11
|
+
} from "../schemas/privacy.js";
|
|
12
|
+
import { OkSchema } from "../schemas/shared.js";
|
|
13
|
+
|
|
14
|
+
// The privacy shield's policy, its log, and the datasets taught to it. The policy is the owner's alone: it is stored
|
|
15
|
+
// off the workspace (an agent could otherwise turn off the shield it is held to), and only the owner may change it.
|
|
16
|
+
// Teaching values only ever masks more, so the agent's CLI may do it; forgetting them is the owner's.
|
|
17
|
+
export const privacyContract = {
|
|
18
|
+
status: procedure
|
|
19
|
+
.route({
|
|
20
|
+
method: "GET",
|
|
21
|
+
path: "/privacy/shield",
|
|
22
|
+
summary: "The privacy shield and what it covers",
|
|
23
|
+
description:
|
|
24
|
+
"Whether personal data is kept from untrusted model providers, which providers are trusted, which local readers are installed, and how many values it has learned.",
|
|
25
|
+
})
|
|
26
|
+
.meta({ agent: true })
|
|
27
|
+
.output(PrivacyShieldStatusSchema),
|
|
28
|
+
setPolicy: procedure
|
|
29
|
+
.route({
|
|
30
|
+
method: "POST",
|
|
31
|
+
path: "/privacy/shield",
|
|
32
|
+
summary: "Change the privacy shield",
|
|
33
|
+
description:
|
|
34
|
+
"Replaces the policy whole. Turning the shield on puts every turn that starts from then on, whose runtime can be shielded, behind the gateway, and refuses the turns that cannot be shielded on an untrusted provider; a turn already running keeps the route it started with. A change to what is masked or trusted holds from the next model request.",
|
|
35
|
+
})
|
|
36
|
+
.meta({ floor: "owner", control: "never", panel: false })
|
|
37
|
+
.input(PrivacyShieldPolicySchema)
|
|
38
|
+
.output(OkSchema),
|
|
39
|
+
log: procedure
|
|
40
|
+
.route({
|
|
41
|
+
method: "GET",
|
|
42
|
+
path: "/privacy/log",
|
|
43
|
+
summary: "What the privacy shield did lately",
|
|
44
|
+
description:
|
|
45
|
+
"Each model request the gateway handled: which provider, whether it was trusted, and how many of each kind of personal data it found. Never the values.",
|
|
46
|
+
})
|
|
47
|
+
.output(z.array(PrivacyLedgerEntrySchema)),
|
|
48
|
+
dictionary: procedure
|
|
49
|
+
.route({
|
|
50
|
+
method: "GET",
|
|
51
|
+
path: "/privacy/dictionary",
|
|
52
|
+
summary: "The name lists the shield finds names by",
|
|
53
|
+
description:
|
|
54
|
+
"Every list the dictionary holds (first names, surnames, words that are names only beside other evidence, titles), how many words each has and where they come from. With a query, what the dictionary makes of it as a name, and for one word the listed words starting with it.",
|
|
55
|
+
})
|
|
56
|
+
.meta({ agent: true })
|
|
57
|
+
.input(z.object({ query: z.string().max(100).optional().describe("A word, the start of one, or a full name.") }))
|
|
58
|
+
.output(PrivacyDictionarySchema),
|
|
59
|
+
sources: procedure
|
|
60
|
+
.route({
|
|
61
|
+
method: "GET",
|
|
62
|
+
path: "/privacy/known",
|
|
63
|
+
summary: "The datasets taught to the shield",
|
|
64
|
+
description: "Each source values were taught from, and how many. The values themselves are never sent back.",
|
|
65
|
+
})
|
|
66
|
+
.meta({ agent: true })
|
|
67
|
+
.output(z.array(PrivacyKnownSourceSchema)),
|
|
68
|
+
learn: procedure
|
|
69
|
+
.route({
|
|
70
|
+
method: "POST",
|
|
71
|
+
path: "/privacy/known",
|
|
72
|
+
summary: "Teach the shield a dataset's values",
|
|
73
|
+
description:
|
|
74
|
+
"Each value is masked wherever it appears from now on, in every form it is written, whether or not the detectors would have found it. Teaching only ever masks more, so the agent may do it.",
|
|
75
|
+
})
|
|
76
|
+
.meta({ agent: true })
|
|
77
|
+
.input(
|
|
78
|
+
z.object({
|
|
79
|
+
source: z.string().min(1).max(200).describe("Where the values came from: a file and its column, a table."),
|
|
80
|
+
values: z.array(PrivacyKnownValueSchema).max(PRIVACY_KNOWN_BATCH_MAX),
|
|
81
|
+
}),
|
|
82
|
+
)
|
|
83
|
+
.output(z.object({ added: z.number().int(), known: z.number().int() })),
|
|
84
|
+
forget: procedure
|
|
85
|
+
.route({
|
|
86
|
+
method: "POST",
|
|
87
|
+
path: "/privacy/known/forget",
|
|
88
|
+
summary: "Forget a taught dataset",
|
|
89
|
+
description:
|
|
90
|
+
"Stops matching the values taught from one source. Tokens already given to them still resolve, so earlier conversations keep reading right.",
|
|
91
|
+
})
|
|
92
|
+
.meta({ floor: "owner", control: "never", panel: false })
|
|
93
|
+
.input(z.object({ source: z.string().min(1).max(200) }))
|
|
94
|
+
.output(z.object({ forgotten: z.number().int() })),
|
|
95
|
+
};
|
|
@@ -242,6 +242,8 @@ export const AgentEventSchema = z.discriminatedUnion("kind", [
|
|
|
242
242
|
// Codex ran the turn but warned about it (fallback model metadata); a notice, not a failure.
|
|
243
243
|
"codex-advisory",
|
|
244
244
|
"codex-reauth",
|
|
245
|
+
// An ACP capability requires its own loginCommand, not a native provider account reconnect.
|
|
246
|
+
"acp-auth-required",
|
|
245
247
|
// The Claude subscription credential is dead; only a reconnect fixes it, unlike no account connected.
|
|
246
248
|
"claude-reauth",
|
|
247
249
|
// The API refused this turn's token mid-flight, usually superseded by a rotation already re-minting.
|
|
@@ -269,6 +271,9 @@ export const AgentEventSchema = z.discriminatedUnion("kind", [
|
|
|
269
271
|
// The model can only write one-shot jobs (Model.helperOnly: its server says it cannot call tools, or
|
|
270
272
|
// it is the quick-jobs local model), refused before sending; the words wait for another model.
|
|
271
273
|
"model-helper-only",
|
|
274
|
+
// The privacy shield is on, the provider is untrusted, and the runtime is one its gateway cannot stand in
|
|
275
|
+
// front of (Cursor, an ACP agent, Pi), refused before sending; the words wait for a covered provider.
|
|
276
|
+
"privacy-unshielded",
|
|
272
277
|
// The session outgrew the model's context window mid-turn; resuming that session only overflows again,
|
|
273
278
|
// so the daemon re-runs the turn once in a fresh session carrying the hand-off.
|
|
274
279
|
"context-overflow",
|
package/src/events/requests.ts
CHANGED
|
@@ -95,6 +95,12 @@ export const PermissionAskSchema = z.object({
|
|
|
95
95
|
.describe(
|
|
96
96
|
"The wording for an always-allow answer. Present only when there is something an always could actually remember; without it the only answers are once and no.",
|
|
97
97
|
),
|
|
98
|
+
alwaysAsks: z
|
|
99
|
+
.literal(true)
|
|
100
|
+
.optional()
|
|
101
|
+
.describe(
|
|
102
|
+
"This request asks every time: an owner's hard rule, a sandbox restart other conversations would feel, or a change only the owner may make. Allow everything in this conversation is not offered on it and never answers it.",
|
|
103
|
+
),
|
|
98
104
|
program: ProgramAskSchema.optional().describe(
|
|
99
105
|
"The program this request is holding, when the request is about one. Present on a command gate's request and absent on every other permission ask.",
|
|
100
106
|
),
|
|
@@ -73,3 +73,16 @@ test("a re-run's notice row names its reason beside its words", () => {
|
|
|
73
73
|
noticeCode: { code: "resumed", params: { reason: "restart" } },
|
|
74
74
|
});
|
|
75
75
|
});
|
|
76
|
+
|
|
77
|
+
// A Continue on a turn the sandbox kept nothing of sends the note alone: no words of the person's to strip back out, and
|
|
78
|
+
// the row it records is the sandbox's line, never a message from them.
|
|
79
|
+
test("a carried-on turn's note stands alone, leaves no words, and records as a notice", () => {
|
|
80
|
+
expect(withoutResumeNote(RESUME_NOTES.continued)).toBe("");
|
|
81
|
+
expect(withResumeNote(RESUME_NOTES.continued, RESUME_NOTES.limit)).toBe(RESUME_NOTES.continued);
|
|
82
|
+
const disclosure = resumeDisclosure(RESUME_NOTES.continued);
|
|
83
|
+
expect(disclosure?.kind === "notice" ? resumeNoticeRow(disclosure) : undefined).toEqual({
|
|
84
|
+
role: "notice",
|
|
85
|
+
text: "Carried on from where the last turn stopped.",
|
|
86
|
+
noticeCode: { code: "resumed", params: { reason: "continued" } },
|
|
87
|
+
});
|
|
88
|
+
});
|
package/src/events/resume.ts
CHANGED
|
@@ -31,6 +31,10 @@ export const RESUME_NOTES = {
|
|
|
31
31
|
// the same session with the stopped response cut away, so the model sees none of it, on whichever model the press
|
|
32
32
|
// named.
|
|
33
33
|
flagged: `The model provider's safety classifier stopped the previous attempt at this request partway, and it has been sent again after the person looking at this conversation chose to go on. The stopped response has been removed from this session. ${REPEATED}`,
|
|
34
|
+
// A person's Continue on a turn the sandbox kept nothing of (a Stop, a restart since): no request follows, since the
|
|
35
|
+
// session already holds it, and nothing of the person's is recorded, since they wrote nothing.
|
|
36
|
+
continued:
|
|
37
|
+
"The previous turn in this conversation ended before it finished (it was stopped, or something cut it short, such as a sandbox restart), and the person looking at this conversation chose to carry on without writing anything new: continue the work from where the conversation left off. Anything they declined along the way stays declined.",
|
|
34
38
|
// A turn parked on the user when the daemon died; what follows the note is their actual answer, not a repeat.
|
|
35
39
|
answered:
|
|
36
40
|
"The sandbox restarted while this conversation was waiting for the user to respond; it is back, and their response follows below: continue from where the session left off.",
|
|
@@ -41,10 +45,14 @@ export const withResumeNote = (prompt: string, note: string): string =>
|
|
|
41
45
|
Object.values(RESUME_NOTES).some((known) => prompt.startsWith(known)) ? prompt : `${note}\n\n${prompt}`;
|
|
42
46
|
|
|
43
47
|
// The user's own words inside a resumed prompt, note and explanation stripped. Returns the prompt unchanged when it
|
|
44
|
-
// isn't a resume, so any attach head can pass through it.
|
|
48
|
+
// isn't a resume, so any attach head can pass through it. A note standing alone (`continued`) leaves no words.
|
|
45
49
|
export const withoutResumeNote = (prompt: string): string => {
|
|
46
50
|
const note = Object.values(RESUME_NOTES).find((known) => prompt.startsWith(known));
|
|
47
|
-
|
|
51
|
+
if (note === undefined) {
|
|
52
|
+
return prompt;
|
|
53
|
+
}
|
|
54
|
+
const rest = prompt.slice(note.length);
|
|
55
|
+
return rest.startsWith("\n\n") ? rest.slice(2) : rest;
|
|
48
56
|
};
|
|
49
57
|
|
|
50
58
|
export type ResumeReason = keyof typeof RESUME_NOTES;
|
|
@@ -71,6 +79,7 @@ const RESUME_DISCLOSURES: Record<ResumeReason, ResumeDisclosure> = {
|
|
|
71
79
|
door: notice("door", "Sent again: the first attempt was turned away before anything ran."),
|
|
72
80
|
overflow: notice("overflow", "Sent again in a fresh session after the last one outgrew the model's context window."),
|
|
73
81
|
flagged: notice("flagged", "Sent again after the model's safeguards stopped it, without the stopped response."),
|
|
82
|
+
continued: notice("continued", "Carried on from where the last turn stopped."),
|
|
74
83
|
answered: { kind: "note", note: { title: "Picked back up after a sandbox restart", text: RESUME_NOTES.answered } },
|
|
75
84
|
};
|
|
76
85
|
|
|
@@ -26,7 +26,7 @@ const failure = {
|
|
|
26
26
|
};
|
|
27
27
|
|
|
28
28
|
// The re-runs a resumed turn's row can name (events/resume.ts); a reason a reader does not know draws the row's text.
|
|
29
|
-
const ResumeNoticeReasonSchema = z.enum(["auth", "outage", "restart", "stopped", "limit", "switched", "carried", "refused", "door", "overflow", "flagged"]);
|
|
29
|
+
const ResumeNoticeReasonSchema = z.enum(["auth", "outage", "restart", "stopped", "limit", "switched", "carried", "refused", "door", "overflow", "flagged", "continued"]);
|
|
30
30
|
export type ResumeNoticeReason = z.infer<typeof ResumeNoticeReasonSchema>;
|
|
31
31
|
|
|
32
32
|
// Every code this build writes, one per sentence shape, each with the facts that shape needs.
|
package/src/events/transcript.ts
CHANGED
|
@@ -6,8 +6,26 @@ import { SubagentKindSchema, SubagentStatusSchema, SubagentVerificationSchema }
|
|
|
6
6
|
import { NeedSchema } from "../schemas/needs.js";
|
|
7
7
|
import { HeldEndingSchema, RetryLadderSchema } from "../schemas/turn-break.js";
|
|
8
8
|
import { NoticeCodeSchema } from "./sandbox-notice.js";
|
|
9
|
-
import type { ToolCallContent, ToolCallLocation, ToolCallStatus, ToolKind} from "./requests.js";
|
|
10
|
-
import {
|
|
9
|
+
import type { ToolCallContent, ToolCallLocation, ToolCallStatus, ToolKind } from "./requests.js";
|
|
10
|
+
import {
|
|
11
|
+
browserHelpRequest,
|
|
12
|
+
capabilityOfferRequest,
|
|
13
|
+
CapabilityOutcomeSchema,
|
|
14
|
+
credentialOfferRequest,
|
|
15
|
+
CredentialReceiptSchema,
|
|
16
|
+
paymentOfferRequest,
|
|
17
|
+
PaymentReceiptSchema,
|
|
18
|
+
PermissionAskSchema,
|
|
19
|
+
permissionRequest,
|
|
20
|
+
planRequest,
|
|
21
|
+
questionRequest,
|
|
22
|
+
terminalHelpRequest,
|
|
23
|
+
TodoItemSchema,
|
|
24
|
+
ToolCallContentSchema,
|
|
25
|
+
ToolCallLocationSchema,
|
|
26
|
+
ToolCallStatusSchema,
|
|
27
|
+
ToolKindSchema,
|
|
28
|
+
} from "./requests.js";
|
|
11
29
|
|
|
12
30
|
// A conversation as recorded and replayed: the rows, the cards they carry, and the patches that change them while a
|
|
13
31
|
// turn runs. One shape for the live row and the recorded one, since they're the same row.
|
|
@@ -19,7 +37,8 @@ export const PlanStatusSchema = z.enum(["pending", "approved", "rejected", "canc
|
|
|
19
37
|
export type PlanStatus = z.infer<typeof PlanStatusSchema>;
|
|
20
38
|
export const QuestionStatusSchema = z.enum(["pending", "answered", "cancelled"]);
|
|
21
39
|
export type QuestionStatus = z.infer<typeof QuestionStatusSchema>;
|
|
22
|
-
|
|
40
|
+
// `everything`: allowed by a conversation-wide yes, the one given on this card or one already standing.
|
|
41
|
+
export const PermissionStatusSchema = z.enum(["pending", "allowed", "always", "everything", "denied", "cancelled"]);
|
|
23
42
|
export type PermissionStatus = z.infer<typeof PermissionStatusSchema>;
|
|
24
43
|
export const HelpStatusSchema = z.enum(["pending", "helped", "declined", "cancelled"]);
|
|
25
44
|
export type HelpStatus = z.infer<typeof HelpStatusSchema>;
|
|
@@ -38,10 +57,17 @@ export const TranscriptQuestionSchema = z.object({
|
|
|
38
57
|
.record(z.string(), z.array(z.string()))
|
|
39
58
|
.optional()
|
|
40
59
|
.describe("What was chosen, keyed by the question, with the chosen labels or the user's own words."),
|
|
60
|
+
attachments: z
|
|
61
|
+
.record(z.string(), z.array(z.string()))
|
|
62
|
+
.optional()
|
|
63
|
+
.describe("Files the user attached to their own-words answer, keyed by the question, as workspace-relative paths."),
|
|
41
64
|
});
|
|
42
65
|
export type TranscriptQuestion = z.infer<typeof TranscriptQuestionSchema>;
|
|
43
66
|
// `explain`, the judge's sentence, arrives via PermissionAskSchema at raise time; nothing patches it in after.
|
|
44
|
-
export const TranscriptPermissionSchema = PermissionAskSchema.extend({
|
|
67
|
+
export const TranscriptPermissionSchema = PermissionAskSchema.extend({
|
|
68
|
+
...permissionRequest,
|
|
69
|
+
status: PermissionStatusSchema.describe("Where the decision stands."),
|
|
70
|
+
});
|
|
45
71
|
export type TranscriptPermission = z.infer<typeof TranscriptPermissionSchema>;
|
|
46
72
|
export const TranscriptBrowserHelpSchema = z.object({ ...browserHelpRequest, status: HelpStatusSchema.describe("How the hand-over ended.") });
|
|
47
73
|
export type TranscriptBrowserHelp = z.infer<typeof TranscriptBrowserHelpSchema>;
|
|
@@ -297,10 +323,7 @@ export const TranscriptRowSchema = z.object({
|
|
|
297
323
|
.optional()
|
|
298
324
|
.describe("The wait this notice describes, by name, so a reader can say whether it is still on."),
|
|
299
325
|
// Which one, for a wait whose kind can have several in flight at once; without it two armed watches settle together.
|
|
300
|
-
noticeWaitId: z
|
|
301
|
-
.string()
|
|
302
|
-
.optional()
|
|
303
|
-
.describe("Which instance of the wait this notice names, for a kind that can have several running at once."),
|
|
326
|
+
noticeWaitId: z.string().optional().describe("Which instance of the wait this notice names, for a kind that can have several running at once."),
|
|
304
327
|
// The sandbox's own notice by name, beside its English `text` (sandbox-notice.ts); absent on every other row, and
|
|
305
328
|
// on the notices written before rows carried it, which a reader draws from `text` as it always did.
|
|
306
329
|
noticeCode: NoticeCodeSchema.optional().describe(
|
|
@@ -321,7 +344,9 @@ export const TranscriptRowSchema = z.object({
|
|
|
321
344
|
"Something the agent asked a person for, as it was when raised. Its live state (answered, met) is read by its id, since it outlives the turn.",
|
|
322
345
|
),
|
|
323
346
|
needWake: TranscriptNeedWakeSchema.optional().describe("The answered need that reached this conversation, and the prompt it came as."),
|
|
324
|
-
agentWords: TranscriptAgentWordsSchema.optional().describe(
|
|
347
|
+
agentWords: TranscriptAgentWordsSchema.optional().describe(
|
|
348
|
+
"Another agent's words that reached this conversation, whose they are, and the prompt they came as.",
|
|
349
|
+
),
|
|
325
350
|
backgroundJob: TranscriptBackgroundJobSchema.optional().describe("The background job this row marks the start of."),
|
|
326
351
|
credentialOffer: TranscriptCredentialOfferSchema.optional().describe(
|
|
327
352
|
"The gated credential this row asked to use, who may release it, and who did.",
|
|
@@ -352,10 +377,25 @@ export const isAwaitingDecision = (row: TranscriptRequests): boolean => REQUEST_
|
|
|
352
377
|
// everything else replaces its row; `drop` removes a row that opened and never wrote.
|
|
353
378
|
export const TranscriptPatchSchema = z.discriminatedUnion("op", [
|
|
354
379
|
z.object({ op: z.literal("append").describe("A new row at the end."), row: TranscriptRowSchema }),
|
|
355
|
-
z.object({
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
380
|
+
z.object({
|
|
381
|
+
op: z.literal("replace").describe("This row, whole, in place of the one at that index."),
|
|
382
|
+
index: z.number().int().nonnegative(),
|
|
383
|
+
row: TranscriptRowSchema,
|
|
384
|
+
}),
|
|
385
|
+
z.object({
|
|
386
|
+
op: z.literal("drop").describe("The row at that index is gone: it was opened and never written into."),
|
|
387
|
+
index: z.number().int().nonnegative(),
|
|
388
|
+
}),
|
|
389
|
+
z.object({
|
|
390
|
+
op: z.literal("text").describe("More of the agent's prose, onto that row's text."),
|
|
391
|
+
index: z.number().int().nonnegative(),
|
|
392
|
+
text: z.string(),
|
|
393
|
+
}),
|
|
394
|
+
z.object({
|
|
395
|
+
op: z.literal("thinking").describe("More of the agent's reasoning, onto that row's thinking."),
|
|
396
|
+
index: z.number().int().nonnegative(),
|
|
397
|
+
text: z.string(),
|
|
398
|
+
}),
|
|
359
399
|
z.object({
|
|
360
400
|
op: z.literal("toolThinking").describe("More of a delegated subagent's reasoning, onto the thinking of the card that started it."),
|
|
361
401
|
index: z.number().int().nonnegative(),
|
|
@@ -391,26 +431,41 @@ export const TurnEndingSchema = z.object({
|
|
|
391
431
|
resetsAt: z
|
|
392
432
|
.number()
|
|
393
433
|
.optional()
|
|
394
|
-
.describe(
|
|
434
|
+
.describe(
|
|
435
|
+
"When the spent allowance reopens, in epoch seconds. Absent for every ending that names no instant, and for a provider that publishes none.",
|
|
436
|
+
),
|
|
395
437
|
held: z
|
|
396
438
|
.object({
|
|
397
|
-
ran: z
|
|
439
|
+
ran: z
|
|
440
|
+
.boolean()
|
|
441
|
+
.describe("Whether the held turn got anywhere before it was refused, which is a different sentence from one refused at the door."),
|
|
398
442
|
contextTokens: z
|
|
399
443
|
.number()
|
|
400
444
|
.optional()
|
|
401
|
-
.describe(
|
|
445
|
+
.describe(
|
|
446
|
+
"How much context a press that keeps the session re-reads once, on this account at the reset or carried to another. Absent when no usage frame measured it.",
|
|
447
|
+
),
|
|
402
448
|
handoffTokens: z
|
|
403
449
|
.number()
|
|
404
450
|
.optional()
|
|
405
|
-
.describe(
|
|
406
|
-
|
|
451
|
+
.describe(
|
|
452
|
+
"What a press that opens a fresh session pays instead: the capped record plus the sandbox's measured brief, counted at the failure.",
|
|
453
|
+
),
|
|
454
|
+
moving: z
|
|
455
|
+
.string()
|
|
456
|
+
.optional()
|
|
457
|
+
.describe(
|
|
458
|
+
"The account the owner's policy is already moving this turn to, when it is; the surface then reports the move rather than offering a press.",
|
|
459
|
+
),
|
|
407
460
|
})
|
|
408
461
|
.optional()
|
|
409
462
|
.describe("Present when the daemon still holds the refused turn whole, so a press re-runs it rather than appending a message after it."),
|
|
410
463
|
scheduled: z
|
|
411
464
|
.boolean()
|
|
412
465
|
.optional()
|
|
413
|
-
.describe(
|
|
466
|
+
.describe(
|
|
467
|
+
"Whether something other than the user is already booked to send this turn again, so the surface reports the wait instead of offering a press.",
|
|
468
|
+
),
|
|
414
469
|
// `resetsAt` is the provider's fact about the allowance; this is the daemon's own appointment, and the two differ
|
|
415
470
|
// whenever a ladder rung falls short of the reset, or an ending with no allowance at all is armed.
|
|
416
471
|
nextAt: z
|
|
@@ -440,7 +495,11 @@ export const AgentTranscriptSchema = SessionTranscriptSchema.extend({
|
|
|
440
495
|
"How the last turn ended, when it left work behind that one press finishes. Absent for a conversation whose last turn ended on its own, and for the failures that name something to repair first.",
|
|
441
496
|
),
|
|
442
497
|
// `from` offsets every `rewindIndex` here, and is the `before` for the page above; `more` flags older messages.
|
|
443
|
-
from: z
|
|
498
|
+
from: z
|
|
499
|
+
.number()
|
|
500
|
+
.int()
|
|
501
|
+
.nonnegative()
|
|
502
|
+
.describe("Where the first message sits in the whole record, and the `before` that asks for the page above this one."),
|
|
444
503
|
more: z.boolean().describe("Whether older messages precede this page."),
|
|
445
504
|
});
|
|
446
505
|
|
|
@@ -90,6 +90,33 @@
|
|
|
90
90
|
"server": {
|
|
91
91
|
"description": "What a terminal socket sends as JSON text; the pane's own bytes travel as binary messages.",
|
|
92
92
|
"oneOf": [
|
|
93
|
+
{
|
|
94
|
+
"description": "The shared pane's grid. Viewport resize requests remain the viewer's own available size.",
|
|
95
|
+
"properties": {
|
|
96
|
+
"cols": {
|
|
97
|
+
"format": "uint16",
|
|
98
|
+
"maximum": 65535,
|
|
99
|
+
"minimum": 0,
|
|
100
|
+
"type": "integer"
|
|
101
|
+
},
|
|
102
|
+
"rows": {
|
|
103
|
+
"format": "uint16",
|
|
104
|
+
"maximum": 65535,
|
|
105
|
+
"minimum": 0,
|
|
106
|
+
"type": "integer"
|
|
107
|
+
},
|
|
108
|
+
"type": {
|
|
109
|
+
"const": "grid",
|
|
110
|
+
"type": "string"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"required": [
|
|
114
|
+
"type",
|
|
115
|
+
"cols",
|
|
116
|
+
"rows"
|
|
117
|
+
],
|
|
118
|
+
"type": "object"
|
|
119
|
+
},
|
|
93
120
|
{
|
|
94
121
|
"description": "The session is over, and the browser must not reconnect; `reason` is tmux's own words when it had any.",
|
|
95
122
|
"properties": {
|
|
@@ -49,4 +49,4 @@ export type TerminalClientMessage = { "type": "input", data: string, } | { "type
|
|
|
49
49
|
/**
|
|
50
50
|
* What a terminal socket sends as JSON text; the pane's own bytes travel as binary messages.
|
|
51
51
|
*/
|
|
52
|
-
export type TerminalServerMessage = { "type": "exit", code: number, reason?: string, } | { "type": "pong" };
|
|
52
|
+
export type TerminalServerMessage = { "type": "grid", cols: number, rows: number, } | { "type": "exit", code: number, reason?: string, } | { "type": "pong" };
|
package/src/index.ts
CHANGED
|
@@ -31,6 +31,7 @@ import { publicContract } from "./contracts/public.contract.js";
|
|
|
31
31
|
import { netdiskContract } from "./contracts/netdisk.contract.js";
|
|
32
32
|
import { providersContract } from "./contracts/providers.contract.js";
|
|
33
33
|
import { pushContract } from "./contracts/push.contract.js";
|
|
34
|
+
import { privacyContract } from "./contracts/privacy.contract.js";
|
|
34
35
|
import { safetyContract } from "./contracts/safety.contract.js";
|
|
35
36
|
import { needsContract } from "./contracts/needs.contract.js";
|
|
36
37
|
import { secretsContract } from "./contracts/secrets.contract.js";
|
|
@@ -95,6 +96,7 @@ export { portsContract } from "./contracts/ports.contract.js";
|
|
|
95
96
|
export { publicContract } from "./contracts/public.contract.js";
|
|
96
97
|
export { providersContract, type RunnableProviders, RunnableProvidersSchema } from "./contracts/providers.contract.js";
|
|
97
98
|
export { pushContract } from "./contracts/push.contract.js";
|
|
99
|
+
export { privacyContract } from "./contracts/privacy.contract.js";
|
|
98
100
|
export { safetyContract } from "./contracts/safety.contract.js";
|
|
99
101
|
export { needsContract } from "./contracts/needs.contract.js";
|
|
100
102
|
export { secretsContract } from "./contracts/secrets.contract.js";
|
|
@@ -216,7 +218,9 @@ export * from "./schemas/marketplace.js";
|
|
|
216
218
|
export * from "./schemas/metrics.js";
|
|
217
219
|
export * from "./schemas/panels.js";
|
|
218
220
|
export * from "./schemas/personas.js";
|
|
221
|
+
export * from "./schemas/privacy.js";
|
|
219
222
|
export * from "./schemas/providers/plan-limits.js";
|
|
223
|
+
export * from "./schemas/platform-link.js";
|
|
220
224
|
export * from "./schemas/ports.js";
|
|
221
225
|
export * from "./schemas/providers/provider-oauth.js";
|
|
222
226
|
export * from "./schemas/providers/provider-subscriptions.js";
|
|
@@ -277,6 +281,7 @@ export const sandboxContract = {
|
|
|
277
281
|
endpoints: endpointsContract,
|
|
278
282
|
extensions: extensionsContract,
|
|
279
283
|
personas: personasContract,
|
|
284
|
+
privacy: privacyContract,
|
|
280
285
|
safety: safetyContract,
|
|
281
286
|
sessions: sessionsContract,
|
|
282
287
|
settings: settingsContract,
|
|
@@ -162,6 +162,7 @@ test("every axis a record can lack has words for it", () => {
|
|
|
162
162
|
skillDiscovery: "prompt",
|
|
163
163
|
rulebook: "none",
|
|
164
164
|
secrets: "none",
|
|
165
|
+
privacy: "none",
|
|
165
166
|
};
|
|
166
167
|
|
|
167
168
|
// Thirteen disclosable axes, thirteen sentences; `fastMode` is disclosed via fastAllowed, and `warm` (keep-warm, off by
|