@intentic/sandbox-contract 1.226.0 → 1.227.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/activity.contract.d.ts.map +1 -1
- package/dist/contracts/activity.contract.js +17 -2
- package/dist/contracts/activity.contract.js.map +1 -1
- package/dist/contracts/agent.contract.d.ts +19 -2
- package/dist/contracts/agent.contract.d.ts.map +1 -1
- package/dist/contracts/agent.contract.js +71 -8
- package/dist/contracts/agent.contract.js.map +1 -1
- package/dist/contracts/agents.contract.d.ts +59 -0
- package/dist/contracts/agents.contract.d.ts.map +1 -1
- package/dist/contracts/agents.contract.js +164 -19
- package/dist/contracts/agents.contract.js.map +1 -1
- package/dist/contracts/automations.contract.d.ts.map +1 -1
- package/dist/contracts/automations.contract.js +78 -9
- package/dist/contracts/automations.contract.js.map +1 -1
- package/dist/contracts/capabilities.contract.d.ts.map +1 -1
- package/dist/contracts/capabilities.contract.js +98 -11
- package/dist/contracts/capabilities.contract.js.map +1 -1
- package/dist/contracts/chores.contract.d.ts.map +1 -1
- package/dist/contracts/chores.contract.js +26 -3
- package/dist/contracts/chores.contract.js.map +1 -1
- package/dist/contracts/ci.contract.d.ts.map +1 -1
- package/dist/contracts/ci.contract.js +52 -6
- package/dist/contracts/ci.contract.js.map +1 -1
- package/dist/contracts/claude.contract.d.ts.map +1 -1
- package/dist/contracts/claude.contract.js +44 -5
- package/dist/contracts/claude.contract.js.map +1 -1
- package/dist/contracts/drafts.contract.d.ts.map +1 -1
- package/dist/contracts/drafts.contract.js +26 -3
- package/dist/contracts/drafts.contract.js.map +1 -1
- package/dist/contracts/endpoints.contract.d.ts +1 -0
- package/dist/contracts/endpoints.contract.d.ts.map +1 -1
- package/dist/contracts/endpoints.contract.js +17 -2
- package/dist/contracts/endpoints.contract.js.map +1 -1
- package/dist/contracts/exit.contract.d.ts.map +1 -1
- package/dist/contracts/exit.contract.js +62 -7
- package/dist/contracts/exit.contract.js.map +1 -1
- package/dist/contracts/extensions.contract.d.ts +1 -0
- package/dist/contracts/extensions.contract.d.ts.map +1 -1
- package/dist/contracts/extensions.contract.js +124 -15
- package/dist/contracts/extensions.contract.js.map +1 -1
- package/dist/contracts/git.contract.d.ts.map +1 -1
- package/dist/contracts/git.contract.js +384 -43
- package/dist/contracts/git.contract.js.map +1 -1
- package/dist/contracts/grok.contract.d.ts.map +1 -1
- package/dist/contracts/grok.contract.js +25 -3
- package/dist/contracts/grok.contract.js.map +1 -1
- package/dist/contracts/history.contract.d.ts.map +1 -1
- package/dist/contracts/history.contract.js +35 -4
- package/dist/contracts/history.contract.js.map +1 -1
- package/dist/contracts/intentic.contract.d.ts.map +1 -1
- package/dist/contracts/intentic.contract.js +25 -3
- package/dist/contracts/intentic.contract.js.map +1 -1
- package/dist/contracts/inventory.contract.d.ts.map +1 -1
- package/dist/contracts/inventory.contract.js +26 -3
- package/dist/contracts/inventory.contract.js.map +1 -1
- package/dist/contracts/logs.contract.d.ts +17 -0
- package/dist/contracts/logs.contract.d.ts.map +1 -1
- package/dist/contracts/logs.contract.js +27 -3
- package/dist/contracts/logs.contract.js.map +1 -1
- package/dist/contracts/loops.contract.d.ts.map +1 -1
- package/dist/contracts/loops.contract.js +52 -6
- package/dist/contracts/loops.contract.js.map +1 -1
- package/dist/contracts/panels.contract.d.ts.map +1 -1
- package/dist/contracts/panels.contract.js +26 -3
- package/dist/contracts/panels.contract.js.map +1 -1
- package/dist/contracts/personas.contract.d.ts.map +1 -1
- package/dist/contracts/personas.contract.js +71 -8
- package/dist/contracts/personas.contract.js.map +1 -1
- package/dist/contracts/ports.contract.d.ts.map +1 -1
- package/dist/contracts/ports.contract.js +26 -3
- package/dist/contracts/ports.contract.js.map +1 -1
- package/dist/contracts/prepush.contract.d.ts.map +1 -1
- package/dist/contracts/prepush.contract.js +24 -3
- package/dist/contracts/prepush.contract.js.map +1 -1
- package/dist/contracts/providers.contract.d.ts +1 -0
- package/dist/contracts/providers.contract.d.ts.map +1 -1
- package/dist/contracts/providers.contract.js +9 -1
- package/dist/contracts/providers.contract.js.map +1 -1
- package/dist/contracts/public.contract.d.ts.map +1 -1
- package/dist/contracts/public.contract.js +26 -3
- package/dist/contracts/public.contract.js.map +1 -1
- package/dist/contracts/push.contract.d.ts.map +1 -1
- package/dist/contracts/push.contract.js +35 -4
- package/dist/contracts/push.contract.js.map +1 -1
- package/dist/contracts/secrets.contract.d.ts.map +1 -1
- package/dist/contracts/secrets.contract.js +43 -5
- package/dist/contracts/secrets.contract.js.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/sessions.contract.js +15 -2
- package/dist/contracts/sessions.contract.js.map +1 -1
- package/dist/contracts/settings.contract.d.ts +19 -0
- package/dist/contracts/settings.contract.d.ts.map +1 -1
- package/dist/contracts/settings.contract.js +43 -5
- package/dist/contracts/settings.contract.js.map +1 -1
- package/dist/contracts/share.contract.d.ts.map +1 -1
- package/dist/contracts/share.contract.js +35 -4
- package/dist/contracts/share.contract.js.map +1 -1
- package/dist/contracts/skills.contract.d.ts.map +1 -1
- package/dist/contracts/skills.contract.js +35 -4
- package/dist/contracts/skills.contract.js.map +1 -1
- package/dist/contracts/system.contract.d.ts +7 -0
- package/dist/contracts/system.contract.d.ts.map +1 -1
- package/dist/contracts/system.contract.js +107 -14
- package/dist/contracts/system.contract.js.map +1 -1
- package/dist/contracts/translator.contract.d.ts.map +1 -1
- package/dist/contracts/translator.contract.js +29 -4
- package/dist/contracts/translator.contract.js.map +1 -1
- package/dist/contracts/usage.contract.d.ts.map +1 -1
- package/dist/contracts/usage.contract.js +9 -1
- package/dist/contracts/usage.contract.js.map +1 -1
- package/dist/contracts/vpn.contract.d.ts.map +1 -1
- package/dist/contracts/vpn.contract.js +32 -4
- package/dist/contracts/vpn.contract.js.map +1 -1
- package/dist/contracts/workflows.contract.d.ts.map +1 -1
- package/dist/contracts/workflows.contract.js +70 -8
- package/dist/contracts/workflows.contract.js.map +1 -1
- package/dist/contracts/workspace.contract.d.ts.map +1 -1
- package/dist/contracts/workspace.contract.js +216 -25
- package/dist/contracts/workspace.contract.js.map +1 -1
- package/dist/events.d.ts +46 -0
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +193 -88
- package/dist/events.js.map +1 -1
- package/dist/history-state.d.ts.map +1 -1
- package/dist/history-state.js +1 -0
- package/dist/history-state.js.map +1 -1
- package/dist/index.d.ts +197 -70
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/prompt-complexity.d.ts +9 -1
- package/dist/prompt-complexity.d.ts.map +1 -1
- package/dist/prompt-complexity.js +13 -5
- package/dist/prompt-complexity.js.map +1 -1
- package/dist/request-id.d.ts +3 -0
- package/dist/request-id.d.ts.map +1 -0
- package/dist/request-id.js +3 -0
- package/dist/request-id.js.map +1 -0
- package/dist/schemas.d.ts +89 -0
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +2912 -1276
- package/dist/schemas.js.map +1 -1
- package/dist/starter.d.ts +3 -0
- package/dist/starter.d.ts.map +1 -0
- package/dist/starter.js +3 -0
- package/dist/starter.js.map +1 -0
- package/package.json +5 -4
- package/src/contract-lock.test.ts +8 -2
- package/src/contracts/activity.contract.ts +18 -2
- package/src/contracts/agent.contract.ts +78 -8
- package/src/contracts/agents.contract.ts +180 -19
- package/src/contracts/automations.contract.ts +80 -9
- package/src/contracts/capabilities.contract.ts +106 -11
- package/src/contracts/chores.contract.ts +29 -3
- package/src/contracts/ci.contract.ts +55 -6
- package/src/contracts/claude.contract.ts +47 -5
- package/src/contracts/drafts.contract.ts +26 -3
- package/src/contracts/endpoints.contract.ts +19 -2
- package/src/contracts/exit.contract.ts +69 -7
- package/src/contracts/extensions.contract.ts +134 -15
- package/src/contracts/git.contract.ts +421 -43
- package/src/contracts/grok.contract.ts +26 -3
- package/src/contracts/history.contract.ts +37 -4
- package/src/contracts/intentic.contract.ts +28 -3
- package/src/contracts/inventory.contract.ts +27 -3
- package/src/contracts/logs.contract.ts +41 -4
- package/src/contracts/loops.contract.ts +58 -6
- package/src/contracts/panels.contract.ts +26 -3
- package/src/contracts/personas.contract.ts +77 -8
- package/src/contracts/ports.contract.ts +27 -3
- package/src/contracts/prepush.contract.ts +26 -3
- package/src/contracts/providers.contract.ts +10 -1
- package/src/contracts/public.contract.ts +29 -3
- package/src/contracts/push.contract.ts +37 -4
- package/src/contracts/secrets.contract.ts +46 -5
- package/src/contracts/sessions.contract.ts +16 -2
- package/src/contracts/settings.contract.ts +46 -5
- package/src/contracts/share.contract.ts +37 -4
- package/src/contracts/skills.contract.ts +39 -4
- package/src/contracts/system.contract.ts +119 -14
- package/src/contracts/translator.contract.ts +32 -4
- package/src/contracts/usage.contract.ts +10 -1
- package/src/contracts/vpn.contract.ts +35 -4
- package/src/contracts/workflows.contract.ts +77 -8
- package/src/contracts/workspace.contract.ts +231 -25
- package/src/events.ts +259 -89
- package/src/history-state.ts +6 -0
- package/src/index.ts +2 -0
- package/src/prompt-complexity.test.ts +69 -0
- package/src/prompt-complexity.ts +102 -39
- package/src/request-id.ts +41 -0
- package/src/schemas.ts +3700 -1260
- package/src/starter.ts +13 -0
|
@@ -2,8 +2,30 @@ import { eventIterator, oc } from "@orpc/contract";
|
|
|
2
2
|
import { IntenticLineSchema } from "../events.js";
|
|
3
3
|
import { IntenticRunSchema, OkSchema } from "../schemas.js";
|
|
4
4
|
export const intenticContract = {
|
|
5
|
-
run: oc
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
run: oc
|
|
6
|
+
.route({
|
|
7
|
+
method: "POST",
|
|
8
|
+
path: "/intentic",
|
|
9
|
+
summary: "Run an infrastructure command",
|
|
10
|
+
description: "Runs the sandbox's own command-line tool and streams its output as it arrives, so progress is visible rather than arriving all at once at the end. A failure surfaces once the stream closes.",
|
|
11
|
+
})
|
|
12
|
+
.input(IntenticRunSchema)
|
|
13
|
+
.output(eventIterator(IntenticLineSchema)),
|
|
14
|
+
apply: oc
|
|
15
|
+
.route({
|
|
16
|
+
method: "POST",
|
|
17
|
+
path: "/intentic/apply",
|
|
18
|
+
summary: "Bring the infrastructure into line",
|
|
19
|
+
description: "Starts the long reconcile that makes the running world match what was declared, and answers immediately. It takes minutes, so it runs in a terminal you attach to rather than on a held-open request.",
|
|
20
|
+
})
|
|
21
|
+
.output(OkSchema),
|
|
22
|
+
applyEvents: oc
|
|
23
|
+
.route({
|
|
24
|
+
method: "GET",
|
|
25
|
+
path: "/intentic/apply/events",
|
|
26
|
+
summary: "Follow the reconcile",
|
|
27
|
+
description: "The same progress the terminal shows, as structured events, kept on disk so a page refresh does not lose it. It replays from the start of the run and then follows live, closing when the run ends.",
|
|
28
|
+
})
|
|
29
|
+
.output(eventIterator(IntenticLineSchema)),
|
|
8
30
|
};
|
|
9
31
|
//# sourceMappingURL=intentic.contract.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intentic.contract.js","sourceRoot":"","sources":["../../src/contracts/intentic.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAI5D,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC5B,GAAG,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"intentic.contract.js","sourceRoot":"","sources":["../../src/contracts/intentic.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAI5D,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC5B,GAAG,EAAE,EAAE;SACF,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE,+BAA+B;QACxC,WAAW,EACP,+LAA+L;KACtM,CAAC;SACD,KAAK,CAAC,iBAAiB,CAAC;SACxB,MAAM,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC;IAG9C,KAAK,EAAE,EAAE;SACJ,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,iBAAiB;QACvB,OAAO,EAAE,oCAAoC;QAC7C,WAAW,EACP,uMAAuM;KAC9M,CAAC;SACD,MAAM,CAAC,QAAQ,CAAC;IAKrB,WAAW,EAAE,EAAE;SACV,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,wBAAwB;QAC9B,OAAO,EAAE,sBAAsB;QAC/B,WAAW,EACP,qMAAqM;KAC5M,CAAC;SACD,MAAM,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC;CACjD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inventory.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/inventory.contract.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,iBAAiB;IAC1B,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"inventory.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/inventory.contract.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,iBAAiB;IAC1B,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAQJ,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUH,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAST,CAAC"}
|
|
@@ -1,8 +1,31 @@
|
|
|
1
1
|
import { oc } from "@orpc/contract";
|
|
2
2
|
import { AddInventoryInputSchema, InventoryListSchema, InventoryNameParamSchema } from "../schemas.js";
|
|
3
3
|
export const inventoryContract = {
|
|
4
|
-
list: oc
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
list: oc
|
|
5
|
+
.route({
|
|
6
|
+
method: "GET",
|
|
7
|
+
path: "/inventory",
|
|
8
|
+
summary: "Machines and services you have declared",
|
|
9
|
+
description: "What the deployment configuration says this setup owns and what it wants provisioned.",
|
|
10
|
+
})
|
|
11
|
+
.output(InventoryListSchema),
|
|
12
|
+
add: oc
|
|
13
|
+
.route({
|
|
14
|
+
method: "POST",
|
|
15
|
+
path: "/inventory",
|
|
16
|
+
summary: "Declare a machine or service",
|
|
17
|
+
description: "Writes the entry into the configuration file and commits it, exactly as an agent editing that file by hand would. Answers with the whole updated list, so a screen redraws from one response.",
|
|
18
|
+
})
|
|
19
|
+
.input(AddInventoryInputSchema)
|
|
20
|
+
.output(InventoryListSchema),
|
|
21
|
+
remove: oc
|
|
22
|
+
.route({
|
|
23
|
+
method: "DELETE",
|
|
24
|
+
path: "/inventory/{name}",
|
|
25
|
+
summary: "Undeclare a machine or service",
|
|
26
|
+
description: "Takes the entry back out of the configuration and commits that too. Answers with the whole updated list.",
|
|
27
|
+
})
|
|
28
|
+
.input(InventoryNameParamSchema)
|
|
29
|
+
.output(InventoryListSchema),
|
|
7
30
|
};
|
|
8
31
|
//# sourceMappingURL=inventory.contract.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inventory.contract.js","sourceRoot":"","sources":["../../src/contracts/inventory.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAC;AAKvG,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC7B,IAAI,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"inventory.contract.js","sourceRoot":"","sources":["../../src/contracts/inventory.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAC;AAKvG,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC7B,IAAI,EAAE,EAAE;SACH,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,yCAAyC;QAClD,WAAW,EAAE,uFAAuF;KACvG,CAAC;SACD,MAAM,CAAC,mBAAmB,CAAC;IAChC,GAAG,EAAE,EAAE;SACF,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,8BAA8B;QACvC,WAAW,EACP,+LAA+L;KACtM,CAAC;SACD,KAAK,CAAC,uBAAuB,CAAC;SAC9B,MAAM,CAAC,mBAAmB,CAAC;IAChC,MAAM,EAAE,EAAE;SACL,KAAK,CAAC;QACH,MAAM,EAAE,QAAQ;QAChB,IAAI,EAAE,mBAAmB;QACzB,OAAO,EAAE,gCAAgC;QACzC,WAAW,EAAE,0GAA0G;KAC1H,CAAC;SACD,KAAK,CAAC,wBAAwB,CAAC;SAC/B,MAAM,CAAC,mBAAmB,CAAC;CACnC,CAAC"}
|
|
@@ -15,5 +15,22 @@ export declare const logsContract: {
|
|
|
15
15
|
text: import("zod").ZodString;
|
|
16
16
|
truncated: import("zod").ZodBoolean;
|
|
17
17
|
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
18
|
+
report: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
19
|
+
events: import("zod").ZodArray<import("zod").ZodObject<{
|
|
20
|
+
seenAt: import("zod").ZodNumber;
|
|
21
|
+
level: import("zod").ZodEnum<{
|
|
22
|
+
error: "error";
|
|
23
|
+
warn: "warn";
|
|
24
|
+
}>;
|
|
25
|
+
event: import("zod").ZodString;
|
|
26
|
+
message: import("zod").ZodString;
|
|
27
|
+
route: import("zod").ZodOptional<import("zod").ZodString>;
|
|
28
|
+
requestId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
29
|
+
build: import("zod").ZodOptional<import("zod").ZodString>;
|
|
30
|
+
fields: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean]>>>;
|
|
31
|
+
}, import("zod/v4/core").$strip>>;
|
|
32
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
33
|
+
recorded: import("zod").ZodNumber;
|
|
34
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
18
35
|
};
|
|
19
36
|
//# sourceMappingURL=logs.contract.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logs.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/logs.contract.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"logs.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/logs.contract.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,YAAY;IACrB,IAAI;;;;;;;IASJ,IAAI;;;;;;;;;IAkBJ,MAAM;;;;;;;;;;;;;;;;;CAUT,CAAC"}
|
|
@@ -1,7 +1,31 @@
|
|
|
1
1
|
import { oc } from "@orpc/contract";
|
|
2
|
-
import { LogReadQuerySchema, LogReadSchema, LogsListSchema } from "../schemas.js";
|
|
2
|
+
import { ClientDiagnosticsAcceptedSchema, ClientDiagnosticsReportSchema, LogReadQuerySchema, LogReadSchema, LogsListSchema } from "../schemas.js";
|
|
3
3
|
export const logsContract = {
|
|
4
|
-
list: oc
|
|
5
|
-
|
|
4
|
+
list: oc
|
|
5
|
+
.route({
|
|
6
|
+
method: "GET",
|
|
7
|
+
path: "/logs",
|
|
8
|
+
summary: "Logs the sandbox keeps",
|
|
9
|
+
description: "Every log file the daemon owns: captured terminal output, command runs, and the daemon's own log. Read-only, because only the sandbox writes them.",
|
|
10
|
+
})
|
|
11
|
+
.output(LogsListSchema),
|
|
12
|
+
read: oc
|
|
13
|
+
.route({
|
|
14
|
+
method: "GET",
|
|
15
|
+
path: "/logs/file",
|
|
16
|
+
summary: "Read part of a log",
|
|
17
|
+
description: "A window of one log file's text. A window rather than the whole thing, because a busy log outgrows any single answer.",
|
|
18
|
+
})
|
|
19
|
+
.input(LogReadQuerySchema)
|
|
20
|
+
.output(LogReadSchema),
|
|
21
|
+
report: oc
|
|
22
|
+
.route({
|
|
23
|
+
method: "POST",
|
|
24
|
+
path: "/logs/client",
|
|
25
|
+
summary: "Report what the browser saw",
|
|
26
|
+
description: "Errors the app caught, stalls it measured, and recoveries it performed, written to a log of their own. The browser is the only witness to these, so without it a bug someone hit in their own browser leaves no record at all.",
|
|
27
|
+
})
|
|
28
|
+
.input(ClientDiagnosticsReportSchema)
|
|
29
|
+
.output(ClientDiagnosticsAcceptedSchema),
|
|
6
30
|
};
|
|
7
31
|
//# sourceMappingURL=logs.contract.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logs.contract.js","sourceRoot":"","sources":["../../src/contracts/logs.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"logs.contract.js","sourceRoot":"","sources":["../../src/contracts/logs.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,+BAA+B,EAAE,6BAA6B,EAAE,kBAAkB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAMlJ,MAAM,CAAC,MAAM,YAAY,GAAG;IACxB,IAAI,EAAE,EAAE;SACH,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,wBAAwB;QACjC,WAAW,EACP,oJAAoJ;KAC3J,CAAC;SACD,MAAM,CAAC,cAAc,CAAC;IAC3B,IAAI,EAAE,EAAE;SACH,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,oBAAoB;QAC7B,WAAW,EAAE,uHAAuH;KACvI,CAAC;SACD,KAAK,CAAC,kBAAkB,CAAC;SACzB,MAAM,CAAC,aAAa,CAAC;IAU1B,MAAM,EAAE,EAAE;SACL,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,cAAc;QACpB,OAAO,EAAE,6BAA6B;QACtC,WAAW,EACP,gOAAgO;KACvO,CAAC;SACD,KAAK,CAAC,6BAA6B,CAAC;SACpC,MAAM,CAAC,+BAA+B,CAAC;CAC/C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loops.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/loops.contract.ts"],"names":[],"mappings":"AA+BA,eAAO,MAAM,aAAa;IAGtB,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"loops.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/loops.contract.ts"],"names":[],"mappings":"AA+BA,eAAO,MAAM,aAAa;IAGtB,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAeJ,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAgBL,IAAI;;;;;IAaJ,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAaP,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAYV,YAAY;;;;;CAUf,CAAC"}
|
|
@@ -1,11 +1,57 @@
|
|
|
1
1
|
import { oc } from "@orpc/contract";
|
|
2
2
|
import { LoopDesignIdParamSchema, LoopDesignSaveSchema, LoopDesignSchema, LoopDesignsListSchema, LoopIdParamSchema, LoopRecordSchema, LoopSchema, LoopsListSchema, OkSchema, } from "../schemas.js";
|
|
3
3
|
export const loopsContract = {
|
|
4
|
-
list: oc
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
list: oc
|
|
5
|
+
.route({
|
|
6
|
+
method: "GET",
|
|
7
|
+
path: "/loops",
|
|
8
|
+
summary: "Every loop that has run",
|
|
9
|
+
description: "The loops this workspace has run, newest first, kept after they end. Why it stopped on the fourth round is the question a loop gets read for, and the round-by-round history is the answer.",
|
|
10
|
+
})
|
|
11
|
+
.output(LoopsListSchema),
|
|
12
|
+
start: oc
|
|
13
|
+
.route({
|
|
14
|
+
method: "POST",
|
|
15
|
+
path: "/loops",
|
|
16
|
+
summary: "Run a conversation until it is done",
|
|
17
|
+
description: "Starts repeating a conversation towards a goal and answers straight away with the loop as recorded; the work carries on without you. The conversation need not exist yet, so run this until it passes can be the first thing you ever say to a new agent. A conversation already looping is refused.",
|
|
18
|
+
})
|
|
19
|
+
.input(LoopSchema)
|
|
20
|
+
.output(LoopRecordSchema),
|
|
21
|
+
stop: oc
|
|
22
|
+
.route({
|
|
23
|
+
method: "POST",
|
|
24
|
+
path: "/loops/{conversationId}/stop",
|
|
25
|
+
summary: "Make this round the last",
|
|
26
|
+
description: "Means do not start another round, not stop what is running. Somebody watching the sixth round do good work can say this is the last one without throwing that work away. To cut the current round off as well, stop the conversation too.",
|
|
27
|
+
})
|
|
28
|
+
.input(LoopIdParamSchema)
|
|
29
|
+
.output(OkSchema),
|
|
30
|
+
designs: oc
|
|
31
|
+
.route({
|
|
32
|
+
method: "GET",
|
|
33
|
+
path: "/loops/designs",
|
|
34
|
+
summary: "Saved loop designs",
|
|
35
|
+
description: "Loops somebody authored once and can point at a different job each time. A saved loop is the same loop with its goal left blank until you type one, not a different feature.",
|
|
36
|
+
})
|
|
37
|
+
.output(LoopDesignsListSchema),
|
|
38
|
+
saveDesign: oc
|
|
39
|
+
.route({
|
|
40
|
+
method: "POST",
|
|
41
|
+
path: "/loops/designs",
|
|
42
|
+
summary: "Create or replace a saved loop",
|
|
43
|
+
description: "Say which of the two you mean, so a name that happens to collide cannot silently overwrite somebody's work. A design that could never finish, with nothing to produce and nothing to check, is refused in the same words an ad-hoc loop would be: catching that at save time is the whole advantage of saving.",
|
|
44
|
+
})
|
|
45
|
+
.input(LoopDesignSaveSchema)
|
|
46
|
+
.output(LoopDesignSchema),
|
|
47
|
+
removeDesign: oc
|
|
48
|
+
.route({
|
|
49
|
+
method: "DELETE",
|
|
50
|
+
path: "/loops/designs/{id}",
|
|
51
|
+
summary: "Delete a saved loop",
|
|
52
|
+
description: "Removes the design. A loop already running from it keeps going on its own terms, because it took a copy of what it needed when it started.",
|
|
53
|
+
})
|
|
54
|
+
.input(LoopDesignIdParamSchema)
|
|
55
|
+
.output(OkSchema),
|
|
10
56
|
};
|
|
11
57
|
//# sourceMappingURL=loops.contract.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loops.contract.js","sourceRoot":"","sources":["../../src/contracts/loops.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EACH,uBAAuB,EACvB,oBAAoB,EACpB,gBAAgB,EAChB,qBAAqB,EACrB,iBAAiB,EACjB,gBAAgB,EAChB,UAAU,EACV,eAAe,EACf,QAAQ,GACX,MAAM,eAAe,CAAC;AAoBvB,MAAM,CAAC,MAAM,aAAa,GAAG;IAGzB,IAAI,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"loops.contract.js","sourceRoot":"","sources":["../../src/contracts/loops.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EACH,uBAAuB,EACvB,oBAAoB,EACpB,gBAAgB,EAChB,qBAAqB,EACrB,iBAAiB,EACjB,gBAAgB,EAChB,UAAU,EACV,eAAe,EACf,QAAQ,GACX,MAAM,eAAe,CAAC;AAoBvB,MAAM,CAAC,MAAM,aAAa,GAAG;IAGzB,IAAI,EAAE,EAAE;SACH,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,yBAAyB;QAClC,WAAW,EACP,6LAA6L;KACpM,CAAC;SACD,MAAM,CAAC,eAAe,CAAC;IAO5B,KAAK,EAAE,EAAE;SACJ,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,qCAAqC;QAC9C,WAAW,EACP,sSAAsS;KAC7S,CAAC;SACD,KAAK,CAAC,UAAU,CAAC;SACjB,MAAM,CAAC,gBAAgB,CAAC;IAO7B,IAAI,EAAE,EAAE;SACH,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,8BAA8B;QACpC,OAAO,EAAE,0BAA0B;QACnC,WAAW,EACP,2OAA2O;KAClP,CAAC;SACD,KAAK,CAAC,iBAAiB,CAAC;SACxB,MAAM,CAAC,QAAQ,CAAC;IAIrB,OAAO,EAAE,EAAE;SACN,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,gBAAgB;QACtB,OAAO,EAAE,oBAAoB;QAC7B,WAAW,EACP,8KAA8K;KACrL,CAAC;SACD,MAAM,CAAC,qBAAqB,CAAC;IAKlC,UAAU,EAAE,EAAE;SACT,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,gBAAgB;QACtB,OAAO,EAAE,gCAAgC;QACzC,WAAW,EACP,gTAAgT;KACvT,CAAC;SACD,KAAK,CAAC,oBAAoB,CAAC;SAC3B,MAAM,CAAC,gBAAgB,CAAC;IAG7B,YAAY,EAAE,EAAE;SACX,KAAK,CAAC;QACH,MAAM,EAAE,QAAQ;QAChB,IAAI,EAAE,qBAAqB;QAC3B,OAAO,EAAE,qBAAqB;QAC9B,WAAW,EACP,4IAA4I;KACnJ,CAAC;SACD,KAAK,CAAC,uBAAuB,CAAC;SAC9B,MAAM,CAAC,QAAQ,CAAC;CACxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"panels.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/panels.contract.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,cAAc;IACvB,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"panels.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/panels.contract.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,cAAc;IACvB,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;IAQJ,KAAK;;;;;IASL,IAAI;;;;;CASP,CAAC"}
|
|
@@ -1,8 +1,31 @@
|
|
|
1
1
|
import { oc } from "@orpc/contract";
|
|
2
2
|
import { OkSchema, PanelRepoParamSchema, PanelsListSchema } from "../schemas.js";
|
|
3
3
|
export const panelsContract = {
|
|
4
|
-
list: oc
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
list: oc
|
|
5
|
+
.route({
|
|
6
|
+
method: "GET",
|
|
7
|
+
path: "/panels",
|
|
8
|
+
summary: "Repos you can run and preview",
|
|
9
|
+
description: "Every repo with whether its dev server is up and what the sandbox worked out about its contents.",
|
|
10
|
+
})
|
|
11
|
+
.output(PanelsListSchema),
|
|
12
|
+
start: oc
|
|
13
|
+
.route({
|
|
14
|
+
method: "POST",
|
|
15
|
+
path: "/panels/{repo}/start",
|
|
16
|
+
summary: "Start a repo's dev server",
|
|
17
|
+
description: "Brings the repo's own runnable app up in a terminal you can attach to, so its preview address starts answering.",
|
|
18
|
+
})
|
|
19
|
+
.input(PanelRepoParamSchema)
|
|
20
|
+
.output(OkSchema),
|
|
21
|
+
stop: oc
|
|
22
|
+
.route({
|
|
23
|
+
method: "POST",
|
|
24
|
+
path: "/panels/{repo}/stop",
|
|
25
|
+
summary: "Stop a repo's dev server",
|
|
26
|
+
description: "Shuts it down and frees the port.",
|
|
27
|
+
})
|
|
28
|
+
.input(PanelRepoParamSchema)
|
|
29
|
+
.output(OkSchema),
|
|
7
30
|
};
|
|
8
31
|
//# sourceMappingURL=panels.contract.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"panels.contract.js","sourceRoot":"","sources":["../../src/contracts/panels.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAMjF,MAAM,CAAC,MAAM,cAAc,GAAG;IAC1B,IAAI,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"panels.contract.js","sourceRoot":"","sources":["../../src/contracts/panels.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAMjF,MAAM,CAAC,MAAM,cAAc,GAAG;IAC1B,IAAI,EAAE,EAAE;SACH,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,+BAA+B;QACxC,WAAW,EAAE,kGAAkG;KAClH,CAAC;SACD,MAAM,CAAC,gBAAgB,CAAC;IAC7B,KAAK,EAAE,EAAE;SACJ,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,sBAAsB;QAC5B,OAAO,EAAE,2BAA2B;QACpC,WAAW,EAAE,iHAAiH;KACjI,CAAC;SACD,KAAK,CAAC,oBAAoB,CAAC;SAC3B,MAAM,CAAC,QAAQ,CAAC;IACrB,IAAI,EAAE,EAAE;SACH,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,qBAAqB;QAC3B,OAAO,EAAE,0BAA0B;QACnC,WAAW,EAAE,mCAAmC;KACnD,CAAC;SACD,KAAK,CAAC,oBAAoB,CAAC;SAC3B,MAAM,CAAC,QAAQ,CAAC;CACxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"personas.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/personas.contract.ts"],"names":[],"mappings":"AA8BA,eAAO,MAAM,gBAAgB;IACzB,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"personas.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/personas.contract.ts"],"names":[],"mappings":"AA8BA,eAAO,MAAM,gBAAgB;IACzB,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUJ,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAkBJ,MAAM;;;;;IAaN,GAAG;;;;;;;;;IAYH,UAAU;;;;;;IAUV,SAAS;;;;;;;;IAWT,SAAS;;;;;;;;IAUT,WAAW;;;;;;CASd,CAAC"}
|
|
@@ -1,13 +1,76 @@
|
|
|
1
1
|
import { oc } from "@orpc/contract";
|
|
2
2
|
import { OkSchema, PersonaIdParamSchema, PersonaKitSchema, PersonaPromptSchema, PersonaSchema, PersonasListSchema, PersonaSkillBodySchema, PersonaSkillNameSchema, PersonaSkillSchema, } from "../schemas.js";
|
|
3
3
|
export const personasContract = {
|
|
4
|
-
list: oc
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
list: oc
|
|
5
|
+
.route({
|
|
6
|
+
method: "GET",
|
|
7
|
+
path: "/personas",
|
|
8
|
+
summary: "The characters an agent can wear",
|
|
9
|
+
description: "Each persona with the connected accounts it speaks for, what a conversation wearing it is allowed to do, and where it works.",
|
|
10
|
+
})
|
|
11
|
+
.output(PersonasListSchema),
|
|
12
|
+
save: oc
|
|
13
|
+
.route({
|
|
14
|
+
method: "POST",
|
|
15
|
+
path: "/personas",
|
|
16
|
+
summary: "Create or edit a persona",
|
|
17
|
+
description: "Writes the whole card; sending an id that exists edits it. Nothing is connected, installed or spent by saving one, because a persona only records a decision about accounts that already exist. It is stored as a file you can equally well edit by hand, which is why this writes the card whole rather than patching a field: a round trip through a screen should leave a change a reviewer recognises.",
|
|
18
|
+
})
|
|
19
|
+
.input(PersonaSchema)
|
|
20
|
+
.output(OkSchema),
|
|
21
|
+
remove: oc
|
|
22
|
+
.route({
|
|
23
|
+
method: "DELETE",
|
|
24
|
+
path: "/personas/{id}",
|
|
25
|
+
summary: "Delete a persona",
|
|
26
|
+
description: "Takes away the character, never the accounts: every login it named stays connected. Its own prompt and skills go with it, since a folder nothing can reach is worse than deleting what somebody just asked to delete. Anything still pointed at it goes quiet rather than falling back to speaking as everyone.",
|
|
27
|
+
})
|
|
28
|
+
.input(PersonaIdParamSchema)
|
|
29
|
+
.output(OkSchema),
|
|
30
|
+
kit: oc
|
|
31
|
+
.route({
|
|
32
|
+
method: "GET",
|
|
33
|
+
path: "/personas/{id}/kit",
|
|
34
|
+
summary: "What one persona carries",
|
|
35
|
+
description: "The instructions this persona is given and the skills only its conversations can reach. A different question from what the agent knows generally, with a different answer.",
|
|
36
|
+
})
|
|
37
|
+
.input(PersonaIdParamSchema)
|
|
38
|
+
.output(PersonaKitSchema),
|
|
39
|
+
savePrompt: oc
|
|
40
|
+
.route({
|
|
41
|
+
method: "POST",
|
|
42
|
+
path: "/personas/{id}/prompt",
|
|
43
|
+
summary: "Write a persona's instructions",
|
|
44
|
+
description: "Sets what this persona is told. Saving an empty one removes it entirely rather than storing a blank, so the persona simply falls back to the sandbox's own instructions.",
|
|
45
|
+
})
|
|
46
|
+
.input(PersonaPromptSchema)
|
|
47
|
+
.output(OkSchema),
|
|
48
|
+
readSkill: oc
|
|
49
|
+
.route({
|
|
50
|
+
method: "GET",
|
|
51
|
+
path: "/personas/{id}/skills/read",
|
|
52
|
+
summary: "Read one of a persona's skills",
|
|
53
|
+
description: "The full text of a single skill belonging to this persona.",
|
|
54
|
+
})
|
|
55
|
+
.input(PersonaSkillNameSchema)
|
|
56
|
+
.output(PersonaSkillBodySchema),
|
|
57
|
+
saveSkill: oc
|
|
58
|
+
.route({
|
|
59
|
+
method: "POST",
|
|
60
|
+
path: "/personas/{id}/skills",
|
|
61
|
+
summary: "Write one of a persona's skills",
|
|
62
|
+
description: "Creates or replaces a skill by name. There is nothing to switch on: a persona's skill is available exactly when that persona is worn, which is what belonging to it has to mean.",
|
|
63
|
+
})
|
|
64
|
+
.input(PersonaSkillSchema)
|
|
65
|
+
.output(OkSchema),
|
|
66
|
+
removeSkill: oc
|
|
67
|
+
.route({
|
|
68
|
+
method: "POST",
|
|
69
|
+
path: "/personas/{id}/skills/remove",
|
|
70
|
+
summary: "Delete one of a persona's skills",
|
|
71
|
+
description: "Removes a single skill from this persona and leaves the rest of its kit alone.",
|
|
72
|
+
})
|
|
73
|
+
.input(PersonaSkillNameSchema)
|
|
74
|
+
.output(OkSchema),
|
|
12
75
|
};
|
|
13
76
|
//# sourceMappingURL=personas.contract.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"personas.contract.js","sourceRoot":"","sources":["../../src/contracts/personas.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EACH,QAAQ,EACR,oBAAoB,EACpB,gBAAgB,EAChB,mBAAmB,EACnB,aAAa,EACb,kBAAkB,EAClB,sBAAsB,EACtB,sBAAsB,EACtB,kBAAkB,GACrB,MAAM,eAAe,CAAC;AAmBvB,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC5B,IAAI,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"personas.contract.js","sourceRoot":"","sources":["../../src/contracts/personas.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EACH,QAAQ,EACR,oBAAoB,EACpB,gBAAgB,EAChB,mBAAmB,EACnB,aAAa,EACb,kBAAkB,EAClB,sBAAsB,EACtB,sBAAsB,EACtB,kBAAkB,GACrB,MAAM,eAAe,CAAC;AAmBvB,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC5B,IAAI,EAAE,EAAE;SACH,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE,kCAAkC;QAC3C,WAAW,EACP,8HAA8H;KACrI,CAAC;SACD,MAAM,CAAC,kBAAkB,CAAC;IAE/B,IAAI,EAAE,EAAE;SACH,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE,0BAA0B;QACnC,WAAW,EACP,4YAA4Y;KACnZ,CAAC;SACD,KAAK,CAAC,aAAa,CAAC;SACpB,MAAM,CAAC,QAAQ,CAAC;IASrB,MAAM,EAAE,EAAE;SACL,KAAK,CAAC;QACH,MAAM,EAAE,QAAQ;QAChB,IAAI,EAAE,gBAAgB;QACtB,OAAO,EAAE,kBAAkB;QAC3B,WAAW,EACP,iTAAiT;KACxT,CAAC;SACD,KAAK,CAAC,oBAAoB,CAAC;SAC3B,MAAM,CAAC,QAAQ,CAAC;IAIrB,GAAG,EAAE,EAAE;SACF,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,oBAAoB;QAC1B,OAAO,EAAE,0BAA0B;QACnC,WAAW,EACP,4KAA4K;KACnL,CAAC;SACD,KAAK,CAAC,oBAAoB,CAAC;SAC3B,MAAM,CAAC,gBAAgB,CAAC;IAG7B,UAAU,EAAE,EAAE;SACT,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,uBAAuB;QAC7B,OAAO,EAAE,gCAAgC;QACzC,WAAW,EACP,0KAA0K;KACjL,CAAC;SACD,KAAK,CAAC,mBAAmB,CAAC;SAC1B,MAAM,CAAC,QAAQ,CAAC;IACrB,SAAS,EAAE,EAAE;SACR,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,4BAA4B;QAClC,OAAO,EAAE,gCAAgC;QACzC,WAAW,EAAE,4DAA4D;KAC5E,CAAC;SACD,KAAK,CAAC,sBAAsB,CAAC;SAC7B,MAAM,CAAC,sBAAsB,CAAC;IAGnC,SAAS,EAAE,EAAE;SACR,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,uBAAuB;QAC7B,OAAO,EAAE,iCAAiC;QAC1C,WAAW,EACP,kLAAkL;KACzL,CAAC;SACD,KAAK,CAAC,kBAAkB,CAAC;SACzB,MAAM,CAAC,QAAQ,CAAC;IACrB,WAAW,EAAE,EAAE;SACV,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,8BAA8B;QACpC,OAAO,EAAE,kCAAkC;QAC3C,WAAW,EAAE,gFAAgF;KAChG,CAAC;SACD,KAAK,CAAC,sBAAsB,CAAC;SAC7B,MAAM,CAAC,QAAQ,CAAC;CACxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ports.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/ports.contract.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,aAAa;IACtB,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"ports.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/ports.contract.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,aAAa;IACtB,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAQJ,OAAO;;;;;IAUP,SAAS;;;;;CASZ,CAAC"}
|
|
@@ -1,8 +1,31 @@
|
|
|
1
1
|
import { oc } from "@orpc/contract";
|
|
2
2
|
import { OkSchema, PortForwardResultSchema, PortParamSchema, PortsListSchema } from "../schemas.js";
|
|
3
3
|
export const portsContract = {
|
|
4
|
-
list: oc
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
list: oc
|
|
5
|
+
.route({
|
|
6
|
+
method: "GET",
|
|
7
|
+
path: "/ports",
|
|
8
|
+
summary: "What is listening inside the sandbox",
|
|
9
|
+
description: "Every port something is answering on, and whether each one is reachable from outside.",
|
|
10
|
+
})
|
|
11
|
+
.output(PortsListSchema),
|
|
12
|
+
forward: oc
|
|
13
|
+
.route({
|
|
14
|
+
method: "POST",
|
|
15
|
+
path: "/ports/forward",
|
|
16
|
+
summary: "Make a port reachable",
|
|
17
|
+
description: "Gives one port an address on the outside. Asking twice is harmless: the second call hands back the address the first one made.",
|
|
18
|
+
})
|
|
19
|
+
.input(PortParamSchema)
|
|
20
|
+
.output(PortForwardResultSchema),
|
|
21
|
+
unforward: oc
|
|
22
|
+
.route({
|
|
23
|
+
method: "POST",
|
|
24
|
+
path: "/ports/unforward",
|
|
25
|
+
summary: "Stop exposing a port",
|
|
26
|
+
description: "Frees the slot at once. The address keeps resolving; it simply stops leading anywhere.",
|
|
27
|
+
})
|
|
28
|
+
.input(PortParamSchema)
|
|
29
|
+
.output(OkSchema),
|
|
7
30
|
};
|
|
8
31
|
//# sourceMappingURL=ports.contract.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ports.contract.js","sourceRoot":"","sources":["../../src/contracts/ports.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,uBAAuB,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAKpG,MAAM,CAAC,MAAM,aAAa,GAAG;IACzB,IAAI,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"ports.contract.js","sourceRoot":"","sources":["../../src/contracts/ports.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,uBAAuB,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAKpG,MAAM,CAAC,MAAM,aAAa,GAAG;IACzB,IAAI,EAAE,EAAE;SACH,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,sCAAsC;QAC/C,WAAW,EAAE,uFAAuF;KACvG,CAAC;SACD,MAAM,CAAC,eAAe,CAAC;IAC5B,OAAO,EAAE,EAAE;SACN,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,gBAAgB;QACtB,OAAO,EAAE,uBAAuB;QAChC,WAAW,EACP,gIAAgI;KACvI,CAAC;SACD,KAAK,CAAC,eAAe,CAAC;SACtB,MAAM,CAAC,uBAAuB,CAAC;IACpC,SAAS,EAAE,EAAE;SACR,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,kBAAkB;QACxB,OAAO,EAAE,sBAAsB;QAC/B,WAAW,EAAE,wFAAwF;KACxG,CAAC;SACD,KAAK,CAAC,eAAe,CAAC;SACtB,MAAM,CAAC,QAAQ,CAAC;CACxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prepush.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/prepush.contract.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,eAAe;IACxB,KAAK;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"prepush.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/prepush.contract.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,eAAe;IACxB,KAAK;;;;;;;;;;;;;;;;;IASL,GAAG;;;IASH,MAAM;;;CAQT,CAAC"}
|
|
@@ -1,8 +1,29 @@
|
|
|
1
1
|
import { oc } from "@orpc/contract";
|
|
2
2
|
import { OkSchema, PrepushRunSchema } from "../schemas.js";
|
|
3
3
|
export const prepushContract = {
|
|
4
|
-
state: oc
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
state: oc
|
|
5
|
+
.route({
|
|
6
|
+
method: "GET",
|
|
7
|
+
path: "/prepush/state",
|
|
8
|
+
summary: "How the pre-push check is going",
|
|
9
|
+
description: "The verdict, or the progress so far. Nothing is addressed by id here, because there is one working tree and so exactly one check.",
|
|
10
|
+
})
|
|
11
|
+
.output(PrepushRunSchema),
|
|
12
|
+
run: oc
|
|
13
|
+
.route({
|
|
14
|
+
method: "POST",
|
|
15
|
+
path: "/prepush/run",
|
|
16
|
+
summary: "Run the checks before pushing",
|
|
17
|
+
description: "Starts the suite the workspace runs before anything leaves the machine, and answers immediately. A suite takes minutes, and a request held open that long dies at the first proxy. It runs in a real terminal, so watch it there and poll for the verdict.",
|
|
18
|
+
})
|
|
19
|
+
.output(OkSchema),
|
|
20
|
+
cancel: oc
|
|
21
|
+
.route({
|
|
22
|
+
method: "POST",
|
|
23
|
+
path: "/prepush/cancel",
|
|
24
|
+
summary: "Stop the pre-push check",
|
|
25
|
+
description: "Kills the run. It settles as cancelled and the push it was gating does not go.",
|
|
26
|
+
})
|
|
27
|
+
.output(OkSchema),
|
|
7
28
|
};
|
|
8
29
|
//# sourceMappingURL=prepush.contract.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prepush.contract.js","sourceRoot":"","sources":["../../src/contracts/prepush.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAW3D,MAAM,CAAC,MAAM,eAAe,GAAG;IAC3B,KAAK,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"prepush.contract.js","sourceRoot":"","sources":["../../src/contracts/prepush.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAW3D,MAAM,CAAC,MAAM,eAAe,GAAG;IAC3B,KAAK,EAAE,EAAE;SACJ,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,gBAAgB;QACtB,OAAO,EAAE,iCAAiC;QAC1C,WAAW,EACP,mIAAmI;KAC1I,CAAC;SACD,MAAM,CAAC,gBAAgB,CAAC;IAC7B,GAAG,EAAE,EAAE;SACF,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,cAAc;QACpB,OAAO,EAAE,+BAA+B;QACxC,WAAW,EACP,4PAA4P;KACnQ,CAAC;SACD,MAAM,CAAC,QAAQ,CAAC;IACrB,MAAM,EAAE,EAAE;SACL,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,iBAAiB;QACvB,OAAO,EAAE,yBAAyB;QAClC,WAAW,EAAE,gFAAgF;KAChG,CAAC;SACD,MAAM,CAAC,QAAQ,CAAC;CACxB,CAAC"}
|
|
@@ -17,6 +17,7 @@ export declare const providersContract: {
|
|
|
17
17
|
fast: "fast";
|
|
18
18
|
reasoning: "reasoning";
|
|
19
19
|
}>>>;
|
|
20
|
+
contextWindow: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
20
21
|
}, import("zod/v4/core").$strip>>;
|
|
21
22
|
default: import("zod").ZodString;
|
|
22
23
|
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"providers.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/providers.contract.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,iBAAiB;IAG1B,MAAM
|
|
1
|
+
{"version":3,"file":"providers.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/providers.contract.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,iBAAiB;IAG1B,MAAM;;;;;;;;;;;;;;;;;;;;;;CAUT,CAAC"}
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import { oc } from "@orpc/contract";
|
|
2
2
|
import { ModelsSchema, NativeProviderParamSchema } from "../schemas.js";
|
|
3
3
|
export const providersContract = {
|
|
4
|
-
models: oc
|
|
4
|
+
models: oc
|
|
5
|
+
.route({
|
|
6
|
+
method: "GET",
|
|
7
|
+
path: "/providers/{provider}/models",
|
|
8
|
+
summary: "Models one provider offers",
|
|
9
|
+
description: "Every model this provider serves and which one it defaults to. Never empty: it is discovered live with a stored list behind it. The order is the provider's own preference and is not rearranged here.",
|
|
10
|
+
})
|
|
11
|
+
.input(NativeProviderParamSchema)
|
|
12
|
+
.output(ModelsSchema),
|
|
5
13
|
};
|
|
6
14
|
//# sourceMappingURL=providers.contract.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"providers.contract.js","sourceRoot":"","sources":["../../src/contracts/providers.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAiBxE,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAG7B,MAAM,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"providers.contract.js","sourceRoot":"","sources":["../../src/contracts/providers.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAiBxE,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAG7B,MAAM,EAAE,EAAE;SACL,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,8BAA8B;QACpC,OAAO,EAAE,4BAA4B;QACrC,WAAW,EACP,wMAAwM;KAC/M,CAAC;SACD,KAAK,CAAC,yBAAyB,CAAC;SAChC,MAAM,CAAC,YAAY,CAAC;CAC5B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/public.contract.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,cAAc;IACvB,IAAI;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"public.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/public.contract.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,cAAc;IACvB,IAAI;;;;;;;;;;IASJ,OAAO;;;;;;IAUP,SAAS;;;;;CAUZ,CAAC"}
|
|
@@ -1,8 +1,31 @@
|
|
|
1
1
|
import { oc } from "@orpc/contract";
|
|
2
2
|
import { OkSchema, PublicListSchema, PublishResultSchema, PublishSchema, UnpublishSchema } from "../schemas.js";
|
|
3
3
|
export const publicContract = {
|
|
4
|
-
list: oc
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
list: oc
|
|
5
|
+
.route({
|
|
6
|
+
method: "GET",
|
|
7
|
+
path: "/public",
|
|
8
|
+
summary: "What is published to the internet",
|
|
9
|
+
description: "Everything currently in the outbox and the address it answers on. There is no call to read a published file back: it is served openly to anyone with the link, which is the entire point of having put it there.",
|
|
10
|
+
})
|
|
11
|
+
.output(PublicListSchema),
|
|
12
|
+
publish: oc
|
|
13
|
+
.route({
|
|
14
|
+
method: "POST",
|
|
15
|
+
path: "/public/publish",
|
|
16
|
+
summary: "Put a file on the internet",
|
|
17
|
+
description: "Copies a workspace file or folder into the outbox, where it is served to anyone with the link and no sign-in. Answers with the address.",
|
|
18
|
+
})
|
|
19
|
+
.input(PublishSchema)
|
|
20
|
+
.output(PublishResultSchema),
|
|
21
|
+
unpublish: oc
|
|
22
|
+
.route({
|
|
23
|
+
method: "POST",
|
|
24
|
+
path: "/public/unpublish",
|
|
25
|
+
summary: "Take something off the internet",
|
|
26
|
+
description: "Withdraws one published entry. When the last one goes, the outbox goes with it, so its existing at all always means something is published.",
|
|
27
|
+
})
|
|
28
|
+
.input(UnpublishSchema)
|
|
29
|
+
.output(OkSchema),
|
|
7
30
|
};
|
|
8
31
|
//# sourceMappingURL=public.contract.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public.contract.js","sourceRoot":"","sources":["../../src/contracts/public.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAQhH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC1B,IAAI,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"public.contract.js","sourceRoot":"","sources":["../../src/contracts/public.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAQhH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC1B,IAAI,EAAE,EAAE;SACH,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,mCAAmC;QAC5C,WAAW,EACP,kNAAkN;KACzN,CAAC;SACD,MAAM,CAAC,gBAAgB,CAAC;IAC7B,OAAO,EAAE,EAAE;SACN,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,iBAAiB;QACvB,OAAO,EAAE,4BAA4B;QACrC,WAAW,EACP,yIAAyI;KAChJ,CAAC;SACD,KAAK,CAAC,aAAa,CAAC;SACpB,MAAM,CAAC,mBAAmB,CAAC;IAChC,SAAS,EAAE,EAAE;SACR,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,mBAAmB;QACzB,OAAO,EAAE,iCAAiC;QAC1C,WAAW,EACP,6IAA6I;KACpJ,CAAC;SACD,KAAK,CAAC,eAAe,CAAC;SACtB,MAAM,CAAC,QAAQ,CAAC;CACxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"push.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/push.contract.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,YAAY;IACrB,MAAM;;;;;;
|
|
1
|
+
{"version":3,"file":"push.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/push.contract.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,YAAY;IACrB,MAAM;;;;;;IASN,SAAS;;;;;;;;;;;;;;;IAUT,WAAW;;;;;IASX,IAAI;;;CASP,CAAC"}
|