@intentic/sandbox-contract 1.226.0 → 1.226.1
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.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 +1 -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.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.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.map +1 -1
- package/dist/contracts/logs.contract.js +17 -2
- 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.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.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.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.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.map +1 -1
- package/dist/events.js +179 -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 +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/schemas.d.ts +1 -0
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +2856 -1276
- package/dist/schemas.js.map +1 -1
- package/package.json +4 -4
- 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 +18 -2
- 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 +207 -88
- package/src/history-state.ts +6 -0
- package/src/schemas.ts +3506 -1260
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git.contract.js","sourceRoot":"","sources":["../../src/contracts/git.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EACH,kBAAkB,EAClB,YAAY,EACZ,aAAa,EACb,cAAc,EACd,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,EACrB,qBAAqB,EACrB,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,wBAAwB,EACxB,mBAAmB,EACnB,4BAA4B,EAC5B,sBAAsB,EACtB,kBAAkB,EAClB,aAAa,EACb,cAAc,EACd,kBAAkB,EAClB,iBAAiB,EACjB,YAAY,EACZ,uBAAuB,EACvB,0BAA0B,EAC1B,oBAAoB,EACpB,aAAa,EACb,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,EACpB,cAAc,EACd,cAAc,EACd,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,QAAQ,EACR,UAAU,EACV,eAAe,EACf,gBAAgB,EAChB,oBAAoB,EACpB,eAAe,EACf,eAAe,EACf,mBAAmB,GACtB,MAAM,eAAe,CAAC;AAMvB,MAAM,CAAC,MAAM,WAAW,GAAG;IACvB,OAAO,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"git.contract.js","sourceRoot":"","sources":["../../src/contracts/git.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EACH,kBAAkB,EAClB,YAAY,EACZ,aAAa,EACb,cAAc,EACd,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,EACrB,qBAAqB,EACrB,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,wBAAwB,EACxB,mBAAmB,EACnB,4BAA4B,EAC5B,sBAAsB,EACtB,kBAAkB,EAClB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MAAM,EAAE,MAAM;QACd,IAAI,EAAE,kBAAkB;QACxB,OAAO,EAAE,4BAA4B;QACrC,WAAW,EACP,mLAAmL;KAC1L,CAAC;SACD,KAAK,CAAC,UAAU,CAAC;SACjB,MAAM,CAAC,qBAAqB,CAAC;IAClC,KAAK,EAAE,EAAE;SACJ,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,mBAAmB;QACzB,OAAO,EAAE,gCAAgC;QACzC,WAAW,EACP,kIAAkI;KACzI,CAAC;SACD,KAAK,CAAC,eAAe,CAAC;SACtB,MAAM,CAAC,cAAc,CAAC;IAC3B,QAAQ,EAAE,EAAE;SACP,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,kBAAkB;QACxB,OAAO,EAAE,2BAA2B;QACpC,WAAW,EAAE,+FAA+F;KAC/G,CAAC;SACD,KAAK,CAAC,kBAAkB,CAAC;SACzB,MAAM,CAAC,aAAa,CAAC;IAC1B,SAAS,EAAE,EAAE;SACR,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,kBAAkB;QACxB,OAAO,EAAE,4BAA4B;QACrC,WAAW,EACP,kJAAkJ;KACzJ,CAAC;SACD,KAAK,CAAC,kBAAkB,CAAC;SACzB,MAAM,CAAC,QAAQ,CAAC;IAIrB,WAAW,EAAE,EAAE;SACV,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,0BAA0B;QAChC,OAAO,EAAE,iCAAiC;QAC1C,WAAW,EACP,6OAA6O;KACpP,CAAC;SACD,KAAK,CAAC,oBAAoB,CAAC;SAC3B,MAAM,CAAC,0BAA0B,CAAC;CAC1C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grok.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/grok.contract.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,YAAY;IACrB,KAAK;;;;
|
|
1
|
+
{"version":3,"file":"grok.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/grok.contract.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,YAAY;IACrB,KAAK;;;;IASL,QAAQ;;;;;;;;;;;;;;;;;;;;;IAQR,UAAU;;;;;CASb,CAAC"}
|
|
@@ -1,8 +1,30 @@
|
|
|
1
1
|
import { oc } from "@orpc/contract";
|
|
2
2
|
import { AccountIdSchema, DeviceStartSchema, OauthAccountListSchema, OkSchema } from "../schemas.js";
|
|
3
3
|
export const grokContract = {
|
|
4
|
-
start: oc
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
start: oc
|
|
5
|
+
.route({
|
|
6
|
+
method: "POST",
|
|
7
|
+
path: "/grok/oauth/start",
|
|
8
|
+
summary: "Begin connecting a Grok account",
|
|
9
|
+
description: "Hands back the page to open and the one-time code to type there. Nothing is pasted back afterwards: the sandbox waits for the sign-in to complete on its own, so poll the accounts call until it appears.",
|
|
10
|
+
})
|
|
11
|
+
.output(DeviceStartSchema),
|
|
12
|
+
accounts: oc
|
|
13
|
+
.route({
|
|
14
|
+
method: "GET",
|
|
15
|
+
path: "/grok/accounts",
|
|
16
|
+
summary: "Connected Grok account",
|
|
17
|
+
description: "What is signed in. A list for consistency with the other providers, though there is at most one.",
|
|
18
|
+
})
|
|
19
|
+
.output(OauthAccountListSchema),
|
|
20
|
+
disconnect: oc
|
|
21
|
+
.route({
|
|
22
|
+
method: "POST",
|
|
23
|
+
path: "/grok/account/disconnect",
|
|
24
|
+
summary: "Disconnect the Grok account",
|
|
25
|
+
description: "Clears the stored tokens.",
|
|
26
|
+
})
|
|
27
|
+
.input(AccountIdSchema)
|
|
28
|
+
.output(OkSchema),
|
|
7
29
|
};
|
|
8
30
|
//# sourceMappingURL=grok.contract.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grok.contract.js","sourceRoot":"","sources":["../../src/contracts/grok.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAWrG,MAAM,CAAC,MAAM,YAAY,GAAG;IACxB,KAAK,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"grok.contract.js","sourceRoot":"","sources":["../../src/contracts/grok.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAWrG,MAAM,CAAC,MAAM,YAAY,GAAG;IACxB,KAAK,EAAE,EAAE;SACJ,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,mBAAmB;QACzB,OAAO,EAAE,iCAAiC;QAC1C,WAAW,EACP,2MAA2M;KAClN,CAAC;SACD,MAAM,CAAC,iBAAiB,CAAC;IAC9B,QAAQ,EAAE,EAAE;SACP,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,gBAAgB;QACtB,OAAO,EAAE,wBAAwB;QACjC,WAAW,EAAE,kGAAkG;KAClH,CAAC;SACD,MAAM,CAAC,sBAAsB,CAAC;IACnC,UAAU,EAAE,EAAE;SACT,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,0BAA0B;QAChC,OAAO,EAAE,6BAA6B;QACtC,WAAW,EAAE,2BAA2B;KAC3C,CAAC;SACD,KAAK,CAAC,eAAe,CAAC;SACtB,MAAM,CAAC,QAAQ,CAAC;CACxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"history.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/history.contract.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,eAAe;IACxB,IAAI;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"history.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/history.contract.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,eAAe;IACxB,IAAI;;;;;;;;;;;;;;IASJ,IAAI;;;;;;;;;;;;;;IASJ,QAAQ;;;;;;;;;;IASR,OAAO;;;;;CAUV,CAAC"}
|
|
@@ -1,9 +1,40 @@
|
|
|
1
1
|
import { oc } from "@orpc/contract";
|
|
2
2
|
import { FileDiffSchema, OkSchema, SnapshotDiffSchema, SnapshotFileDiffQuerySchema, SnapshotIdSchema, SnapshotsListSchema } from "../schemas.js";
|
|
3
3
|
export const historyContract = {
|
|
4
|
-
list: oc
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
list: oc
|
|
5
|
+
.route({
|
|
6
|
+
method: "GET",
|
|
7
|
+
path: "/history/snapshots",
|
|
8
|
+
summary: "Points you can go back to",
|
|
9
|
+
description: "The saved states of the whole workspace, taken automatically as work happens. This is the timeline behind undoing a change that was never committed.",
|
|
10
|
+
})
|
|
11
|
+
.output(SnapshotsListSchema),
|
|
12
|
+
diff: oc
|
|
13
|
+
.route({
|
|
14
|
+
method: "GET",
|
|
15
|
+
path: "/history/diff",
|
|
16
|
+
summary: "What changed since a saved point",
|
|
17
|
+
description: "The files that differ between one saved point and the one before it, taking in everything that happened in between.",
|
|
18
|
+
})
|
|
19
|
+
.input(SnapshotIdSchema)
|
|
20
|
+
.output(SnapshotDiffSchema),
|
|
21
|
+
fileDiff: oc
|
|
22
|
+
.route({
|
|
23
|
+
method: "GET",
|
|
24
|
+
path: "/history/file-diff",
|
|
25
|
+
summary: "One file's before and after across a saved point",
|
|
26
|
+
description: "Both sides of a single file at one point in the timeline.",
|
|
27
|
+
})
|
|
28
|
+
.input(SnapshotFileDiffQuerySchema)
|
|
29
|
+
.output(FileDiffSchema),
|
|
30
|
+
restore: oc
|
|
31
|
+
.route({
|
|
32
|
+
method: "POST",
|
|
33
|
+
path: "/history/restore",
|
|
34
|
+
summary: "Put the workspace back",
|
|
35
|
+
description: "Returns every file to how it stood at a saved point. This restores the files; moving a branch is a different thing and lives with the git calls.",
|
|
36
|
+
})
|
|
37
|
+
.input(SnapshotIdSchema)
|
|
38
|
+
.output(OkSchema),
|
|
8
39
|
};
|
|
9
40
|
//# sourceMappingURL=history.contract.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"history.contract.js","sourceRoot":"","sources":["../../src/contracts/history.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,kBAAkB,EAAE,2BAA2B,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAKjJ,MAAM,CAAC,MAAM,eAAe,GAAG;IAC3B,IAAI,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"history.contract.js","sourceRoot":"","sources":["../../src/contracts/history.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,kBAAkB,EAAE,2BAA2B,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAKjJ,MAAM,CAAC,MAAM,eAAe,GAAG;IAC3B,IAAI,EAAE,EAAE;SACH,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,oBAAoB;QAC1B,OAAO,EAAE,2BAA2B;QACpC,WAAW,EACP,sJAAsJ;KAC7J,CAAC;SACD,MAAM,CAAC,mBAAmB,CAAC;IAChC,IAAI,EAAE,EAAE;SACH,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,kCAAkC;QAC3C,WAAW,EAAE,qHAAqH;KACrI,CAAC;SACD,KAAK,CAAC,gBAAgB,CAAC;SACvB,MAAM,CAAC,kBAAkB,CAAC;IAC/B,QAAQ,EAAE,EAAE;SACP,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,oBAAoB;QAC1B,OAAO,EAAE,kDAAkD;QAC3D,WAAW,EAAE,2DAA2D;KAC3E,CAAC;SACD,KAAK,CAAC,2BAA2B,CAAC;SAClC,MAAM,CAAC,cAAc,CAAC;IAC3B,OAAO,EAAE,EAAE;SACN,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,kBAAkB;QACxB,OAAO,EAAE,wBAAwB;QACjC,WAAW,EACP,kJAAkJ;KACzJ,CAAC;SACD,KAAK,CAAC,gBAAgB,CAAC;SACvB,MAAM,CAAC,QAAQ,CAAC;CACxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intentic.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/intentic.contract.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,gBAAgB;IACzB,GAAG;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"intentic.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/intentic.contract.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,gBAAgB;IACzB,GAAG;;;;;;;;;IAYH,KAAK;;;IAaL,WAAW;;;;;;;CASd,CAAC"}
|
|
@@ -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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logs.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/logs.contract.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,YAAY;IACrB,IAAI;;;;;;;
|
|
1
|
+
{"version":3,"file":"logs.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/logs.contract.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,YAAY;IACrB,IAAI;;;;;;;IASJ,IAAI;;;;;;;;;CASP,CAAC"}
|
|
@@ -1,7 +1,22 @@
|
|
|
1
1
|
import { oc } from "@orpc/contract";
|
|
2
2
|
import { 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),
|
|
6
21
|
};
|
|
7
22
|
//# 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;AAIlF,MAAM,CAAC,MAAM,YAAY,GAAG;IACxB,IAAI,EAAE,EAAE,
|
|
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;AAIlF,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;CAC7B,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,oB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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":[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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"}
|