@intentic/sandbox-contract 1.301.0 → 1.303.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/contracts/agent.contract.d.ts +6 -9
- package/dist/contracts/agent.contract.d.ts.map +1 -1
- package/dist/contracts/agents.contract.d.ts +193 -433
- package/dist/contracts/agents.contract.d.ts.map +1 -1
- package/dist/contracts/agents.contract.js +6 -24
- package/dist/contracts/agents.contract.js.map +1 -1
- package/dist/contracts/areas.contract.d.ts +24 -0
- package/dist/contracts/areas.contract.d.ts.map +1 -0
- package/dist/contracts/areas.contract.js +32 -0
- package/dist/contracts/areas.contract.js.map +1 -0
- package/dist/contracts/automations.contract.d.ts +3 -0
- package/dist/contracts/automations.contract.d.ts.map +1 -1
- package/dist/contracts/capabilities.contract.d.ts +0 -46
- package/dist/contracts/capabilities.contract.d.ts.map +1 -1
- package/dist/contracts/endpoints.contract.d.ts +132 -0
- package/dist/contracts/endpoints.contract.d.ts.map +1 -1
- package/dist/contracts/endpoints.contract.js +50 -0
- package/dist/contracts/endpoints.contract.js.map +1 -1
- package/dist/contracts/providers.contract.d.ts +21 -0
- package/dist/contracts/providers.contract.d.ts.map +1 -1
- package/dist/contracts/providers.contract.js +1 -0
- package/dist/contracts/providers.contract.js.map +1 -1
- package/dist/contracts/runner.contract.d.ts +98 -95
- package/dist/contracts/runner.contract.d.ts.map +1 -1
- package/dist/contracts/sessions.contract.d.ts +0 -1
- package/dist/contracts/sessions.contract.d.ts.map +1 -1
- package/dist/contracts/settings.contract.d.ts +110 -6
- package/dist/contracts/settings.contract.d.ts.map +1 -1
- package/dist/contracts/settings.contract.js +19 -1
- package/dist/contracts/settings.contract.js.map +1 -1
- package/dist/contracts/system.contract.d.ts +23 -12
- package/dist/contracts/system.contract.d.ts.map +1 -1
- package/dist/events/agent-events.d.ts +1 -3
- package/dist/events/agent-events.d.ts.map +1 -1
- package/dist/events/agent-events.js +1 -0
- package/dist/events/agent-events.js.map +1 -1
- package/dist/events/system-events.d.ts +32 -6
- package/dist/events/system-events.d.ts.map +1 -1
- package/dist/events/transcript.d.ts +2 -6
- package/dist/events/transcript.d.ts.map +1 -1
- package/dist/events/transcript.js +5 -1
- package/dist/events/transcript.js.map +1 -1
- package/dist/index.d.ts +481 -549
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/dist/models/agent-catalog.d.ts.map +1 -1
- package/dist/models/agent-catalog.js +1 -1
- package/dist/models/agent-catalog.js.map +1 -1
- package/dist/policy/fence-paths.d.ts +10 -0
- package/dist/policy/fence-paths.d.ts.map +1 -0
- package/dist/policy/fence-paths.js +58 -0
- package/dist/policy/fence-paths.js.map +1 -0
- package/dist/protocol/routes.d.ts.map +1 -1
- package/dist/protocol/routes.js +4 -1
- package/dist/protocol/routes.js.map +1 -1
- package/dist/schemas/agents.d.ts +51 -19
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/agents.js +7 -22
- package/dist/schemas/agents.js.map +1 -1
- package/dist/schemas/areas.d.ts +21 -0
- package/dist/schemas/areas.d.ts.map +1 -0
- package/dist/schemas/areas.js +32 -0
- package/dist/schemas/areas.js.map +1 -0
- package/dist/schemas/automations.d.ts +19 -3
- package/dist/schemas/automations.d.ts.map +1 -1
- package/dist/schemas/automations.js +2 -0
- package/dist/schemas/automations.js.map +1 -1
- package/dist/schemas/capabilities.d.ts +11 -46
- package/dist/schemas/capabilities.d.ts.map +1 -1
- package/dist/schemas/capabilities.js +15 -14
- package/dist/schemas/capabilities.js.map +1 -1
- package/dist/schemas/personas.d.ts.map +1 -1
- package/dist/schemas/personas.js +5 -1
- package/dist/schemas/personas.js.map +1 -1
- package/dist/schemas/providers/provider-oauth.d.ts +2 -0
- package/dist/schemas/providers/provider-oauth.d.ts.map +1 -1
- package/dist/schemas/providers/provider-oauth.js +4 -0
- package/dist/schemas/providers/provider-oauth.js.map +1 -1
- package/dist/schemas/providers/usage.d.ts +4 -0
- package/dist/schemas/providers/usage.d.ts.map +1 -1
- package/dist/schemas/providers/usage.js +4 -0
- package/dist/schemas/providers/usage.js.map +1 -1
- package/dist/schemas/settings.d.ts +99 -3
- package/dist/schemas/settings.d.ts.map +1 -1
- package/dist/schemas/settings.js +51 -14
- package/dist/schemas/settings.js.map +1 -1
- package/dist/schemas/shared.d.ts +4 -0
- package/dist/schemas/shared.d.ts.map +1 -1
- package/dist/schemas/shared.js +3 -3
- package/dist/schemas/shared.js.map +1 -1
- package/dist/schemas/turn-break.d.ts +32 -0
- package/dist/schemas/turn-break.d.ts.map +1 -0
- package/dist/schemas/turn-break.js +16 -0
- package/dist/schemas/turn-break.js.map +1 -0
- package/dist/state/definition.d.ts +40 -56
- package/dist/state/definition.d.ts.map +1 -1
- package/dist/state/history-state.d.ts.map +1 -1
- package/dist/state/history-state.js +2 -0
- package/dist/state/history-state.js.map +1 -1
- package/dist/state/workspace-state.d.ts +5 -0
- package/dist/state/workspace-state.d.ts.map +1 -1
- package/dist/state/workspace-state.js +1 -0
- package/dist/state/workspace-state.js.map +1 -1
- package/dist/text/transcript-fold.d.ts.map +1 -1
- package/dist/text/transcript-fold.js +3 -7
- package/dist/text/transcript-fold.js.map +1 -1
- package/dist/time/zone.d.ts +27 -0
- package/dist/time/zone.d.ts.map +1 -0
- package/dist/time/zone.js +35 -0
- package/dist/time/zone.js.map +1 -0
- package/package.json +16 -5
- package/src/contracts/agents.contract.ts +7 -30
- package/src/contracts/areas.contract.ts +42 -0
- package/src/contracts/endpoints.contract.ts +82 -0
- package/src/contracts/providers.contract.ts +5 -0
- package/src/contracts/settings.contract.ts +28 -0
- package/src/events/agent-events.ts +4 -1
- package/src/events/transcript.ts +9 -1
- package/src/index.ts +19 -1
- package/src/models/agent-catalog.ts +1 -1
- package/src/policy/fence-paths.test.ts +114 -0
- package/src/policy/fence-paths.ts +99 -0
- package/src/protocol/routes.test.ts +12 -0
- package/src/protocol/routes.ts +8 -1
- package/src/schemas/agents.ts +14 -35
- package/src/schemas/areas.test.ts +40 -0
- package/src/schemas/areas.ts +49 -0
- package/src/schemas/automations.ts +8 -0
- package/src/schemas/capabilities.ts +37 -19
- package/src/schemas/personas.ts +15 -4
- package/src/schemas/providers/provider-oauth.ts +9 -0
- package/src/schemas/providers/usage.ts +9 -0
- package/src/schemas/settings.ts +107 -26
- package/src/schemas/shared.ts +9 -6
- package/src/schemas/turn-break.ts +49 -0
- package/src/state/history-state.ts +7 -0
- package/src/state/workspace-state.test.ts +7 -3
- package/src/state/workspace-state.ts +9 -2
- package/src/text/transcript-fold.test.ts +3 -5
- package/src/text/transcript-fold.ts +3 -7
- package/src/time/zone.test.ts +90 -0
- package/src/time/zone.ts +118 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/agents.contract.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"agents.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/agents.contract.ts"],"names":[],"mappings":"AAiCA,eAAO,MAAM,cAAc;IACvB,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASJ,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUR,MAAM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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUT,KAAK;;;CASR,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { oc } from "@orpc/contract";
|
|
2
2
|
import { AgentToolChildrenSchema, AgentTranscriptSchema } from "../events/transcript.js";
|
|
3
|
-
import { AgentArchiveSchema, AgentAssignSchema, AgentAutoLandSchema, AgentFileDiffQuerySchema, AgentIdSchema, AgentToolChildrenQuerySchema, AgentTranscriptQuerySchema, AgentIdsSchema, AgentLandSchema, AgentPlaceSchema, AgentReactSchema, AgentRenameSchema,
|
|
3
|
+
import { AgentArchiveSchema, AgentAssignSchema, AgentAutoLandSchema, AgentBreakPolicySchema, AgentFileDiffQuerySchema, AgentIdSchema, AgentToolChildrenQuerySchema, AgentTranscriptQuerySchema, AgentIdsSchema, AgentLandSchema, AgentPlaceSchema, AgentReactSchema, AgentRenameSchema, AgentStopWatchingSchema, AgentsArchivedSchema, AgentSearchQuerySchema, AgentSearchResultSchema, AgentsMovedSchema, AgentsRemovedSchema, AgentSummarySchema, LandResultSchema, } from "../schemas/agents.js";
|
|
4
4
|
import { AgentsListSchema } from "../schemas/automations.js";
|
|
5
5
|
import { AgentChangesSchema, AgentHistorySchema } from "../schemas/git/git.js";
|
|
6
6
|
import { FileDiffSchema } from "../schemas/history.js";
|
|
@@ -85,32 +85,14 @@ export const agentsContract = {
|
|
|
85
85
|
})
|
|
86
86
|
.input(AgentAutoLandSchema)
|
|
87
87
|
.output(AgentSummarySchema),
|
|
88
|
-
|
|
88
|
+
breakPolicy: oc
|
|
89
89
|
.route({
|
|
90
90
|
method: "POST",
|
|
91
|
-
path: "/agents/{id}/
|
|
92
|
-
summary: "
|
|
93
|
-
description: "
|
|
91
|
+
path: "/agents/{id}/break-policy",
|
|
92
|
+
summary: "What this conversation does when a turn stops before it finished",
|
|
93
|
+
description: "One answer per ending — a spent usage limit, a provider outage, a turn that stopped short — overriding the sandbox-wide policy for one conversation; clear it to follow the default again. The answers are mutually exclusive by construction, so nothing here can arm two automations over the same wall. Every ending starts at `wait` unless asked otherwise, because a re-run spends the user's own allowance on a turn they sent once.",
|
|
94
94
|
})
|
|
95
|
-
.input(
|
|
96
|
-
.output(AgentSummarySchema),
|
|
97
|
-
resumeAfterLimit: oc
|
|
98
|
-
.route({
|
|
99
|
-
method: "POST",
|
|
100
|
-
path: "/agents/{id}/resume-after-limit",
|
|
101
|
-
summary: "Whether this conversation sends itself again when its allowance comes back",
|
|
102
|
-
description: "Overrides the sandbox-wide setting for one conversation; clear it to follow the default again. Off unless asked for, because the allowance is the user's own budget and a turn that spends it the moment it reopens is not a decision to make on their behalf.",
|
|
103
|
-
})
|
|
104
|
-
.input(AgentResumeAfterLimitSchema)
|
|
105
|
-
.output(AgentSummarySchema),
|
|
106
|
-
moveAfterLimit: oc
|
|
107
|
-
.route({
|
|
108
|
-
method: "POST",
|
|
109
|
-
path: "/agents/{id}/move-after-limit",
|
|
110
|
-
summary: "Whether this conversation moves to another account when its allowance is spent",
|
|
111
|
-
description: "Overrides the sandbox-wide setting for one conversation; clear it to follow the default again. A move spends a second account of the same provider on this conversation's behalf, so it is off unless asked for.",
|
|
112
|
-
})
|
|
113
|
-
.input(AgentMoveAfterLimitSchema)
|
|
95
|
+
.input(AgentBreakPolicySchema)
|
|
114
96
|
.output(AgentSummarySchema),
|
|
115
97
|
seen: oc
|
|
116
98
|
.route({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.contract.js","sourceRoot":"","sources":["../../src/contracts/agents.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACzF,OAAO,EACH,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,wBAAwB,EACxB,aAAa,EACb,4BAA4B,EAC5B,0BAA0B,EAC1B,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,
|
|
1
|
+
{"version":3,"file":"agents.contract.js","sourceRoot":"","sources":["../../src/contracts/agents.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACzF,OAAO,EACH,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,sBAAsB,EACtB,wBAAwB,EACxB,aAAa,EACb,4BAA4B,EAC5B,0BAA0B,EAC1B,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,uBAAuB,EACvB,oBAAoB,EACpB,sBAAsB,EACtB,uBAAuB,EACvB,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,EAClB,gBAAgB,GACnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC/E,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAKhD,MAAM,CAAC,MAAM,cAAc,GAAG;IAC1B,IAAI,EAAE,EAAE;SACH,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,yBAAyB;QAClC,WAAW,EACP,wLAAwL;KAC/L,CAAC;SACD,MAAM,CAAC,gBAAgB,CAAC;IAC7B,QAAQ,EAAE,EAAE;SACP,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,kBAAkB;QACxB,OAAO,EAAE,wBAAwB;QACjC,WAAW,EACP,yJAAyJ;KAChK,CAAC;SACD,MAAM,CAAC,gBAAgB,CAAC;IAE7B,MA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AE;SACJ,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,oBAAoB;QAC1B,OAAO,EAAE,mCAAmC;QAC5C,WAAW,EACP,0PAA0P;KACjQ,CAAC;SACD,KAAK,CAAC,gBAAgB,CAAC;SACvB,MAAM,CAAC,kBAAkB,CAAC;IAC/B,OAAO,EAAE,EAAE;SACN,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,sBAAsB;QAC5B,OAAO,EAAE,kCAAkC;QAC3C,WAAW,EACP,qLAAqL;KAC5L,CAAC;SACD,KAAK,CAAC,aAAa,CAAC;SACpB,MAAM,CAAC,QAAQ,CAAC;IACrB,OAAO,EAAE,EAAE;SACN,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,iBAAiB;QACvB,OAAO,EAAE,wBAAwB;QACjC,WAAW,EACP,+QAA+Q;KACtR,CAAC;SACD,KAAK,CAAC,kBAAkB,CAAC;SACzB,MAAM,CAAC,oBAAoB,CAAC;IACjC,SAAS,EAAE,EAAE;SACR,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,mBAAmB;QACzB,OAAO,EAAE,0BAA0B;QACnC,WAAW,EACP,8HAA8H;KACrI,CAAC;SACD,KAAK,CAAC,cAAc,CAAC;SACrB,MAAM,CAAC,iBAAiB,CAAC;IAC9B,KAAK,EAAE,EAAE;SACJ,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,4BAA4B;QACrC,WAAW,EACP,uTAAuT;KAC9T,CAAC;SACD,MAAM,CAAC,mBAAmB,CAAC;CACnC,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare const areasContract: {
|
|
2
|
+
list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
|
|
3
|
+
areas: import("zod").ZodArray<import("zod").ZodObject<{
|
|
4
|
+
id: import("zod").ZodString;
|
|
5
|
+
label: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6
|
+
brief: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7
|
+
folders: import("zod").ZodArray<import("zod").ZodString>;
|
|
8
|
+
}, import("zod/v4/core").$strip>>;
|
|
9
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
10
|
+
save: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
11
|
+
id: import("zod").ZodString;
|
|
12
|
+
label: import("zod").ZodOptional<import("zod").ZodString>;
|
|
13
|
+
brief: import("zod").ZodOptional<import("zod").ZodString>;
|
|
14
|
+
folders: import("zod").ZodArray<import("zod").ZodString>;
|
|
15
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
16
|
+
ok: import("zod").ZodLiteral<true>;
|
|
17
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
18
|
+
remove: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
19
|
+
id: import("zod").ZodString;
|
|
20
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
21
|
+
ok: import("zod").ZodLiteral<true>;
|
|
22
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=areas.contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"areas.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/areas.contract.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,aAAa;IACtB,IAAI;;;;;;;;IAUJ,IAAI;;;;;;;;IAYJ,MAAM;;;;;CAUT,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { oc } from "@orpc/contract";
|
|
2
|
+
import { OkSchema } from "../schemas/shared.js";
|
|
3
|
+
import { AreaIdParamSchema, AreaSchema, AreasListSchema } from "../schemas/areas.js";
|
|
4
|
+
export const areasContract = {
|
|
5
|
+
list: oc
|
|
6
|
+
.route({
|
|
7
|
+
method: "GET",
|
|
8
|
+
path: "/areas",
|
|
9
|
+
summary: "The named parts of the workspace",
|
|
10
|
+
description: "Each area with the folders it admits. Access is granted in these rather than in folder lists per person, so widening what a team sees is one edit here instead of one edit per member.",
|
|
11
|
+
})
|
|
12
|
+
.output(AreasListSchema),
|
|
13
|
+
save: oc
|
|
14
|
+
.route({
|
|
15
|
+
method: "POST",
|
|
16
|
+
path: "/areas",
|
|
17
|
+
summary: "Create or edit an area",
|
|
18
|
+
description: "Writes the whole area; sending an id that exists edits it. Editing the folders of an area people already hold changes what those people see on their next request, which is why this is the sandbox owner's to do and why the file it writes is tracked and reviewable.",
|
|
19
|
+
})
|
|
20
|
+
.input(AreaSchema)
|
|
21
|
+
.output(OkSchema),
|
|
22
|
+
remove: oc
|
|
23
|
+
.route({
|
|
24
|
+
method: "DELETE",
|
|
25
|
+
path: "/areas/{id}",
|
|
26
|
+
summary: "Delete an area",
|
|
27
|
+
description: "Removes the name and the folders behind it. Refused while a member still points at it, since nobody chose what such a row should then mean; move them onto another area first, or off areas entirely.",
|
|
28
|
+
})
|
|
29
|
+
.input(AreaIdParamSchema)
|
|
30
|
+
.output(OkSchema),
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=areas.contract.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"areas.contract.js","sourceRoot":"","sources":["../../src/contracts/areas.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAMrF,MAAM,CAAC,MAAM,aAAa,GAAG;IACzB,IAAI,EAAE,EAAE;SACH,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,kCAAkC;QAC3C,WAAW,EACP,wLAAwL;KAC/L,CAAC;SACD,MAAM,CAAC,eAAe,CAAC;IAE5B,IAAI,EAAE,EAAE;SACH,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,wBAAwB;QACjC,WAAW,EACP,yQAAyQ;KAChR,CAAC;SACD,KAAK,CAAC,UAAU,CAAC;SACjB,MAAM,CAAC,QAAQ,CAAC;IAGrB,MAAM,EAAE,EAAE;SACL,KAAK,CAAC;QACH,MAAM,EAAE,QAAQ;QAChB,IAAI,EAAE,aAAa;QACnB,OAAO,EAAE,gBAAgB;QACzB,WAAW,EACP,uMAAuM;KAC9M,CAAC;SACD,KAAK,CAAC,iBAAiB,CAAC;SACxB,MAAM,CAAC,QAAQ,CAAC;CACxB,CAAC"}
|
|
@@ -5,6 +5,7 @@ export declare const automationsContract: {
|
|
|
5
5
|
trigger: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
6
6
|
kind: import("zod").ZodLiteral<"schedule">;
|
|
7
7
|
cron: import("zod").ZodString;
|
|
8
|
+
tz: import("zod").ZodOptional<import("zod").ZodString & import("zod").ZodType<import("../index.js").Zone, string, import("zod/v4/core").$ZodTypeInternals<import("../index.js").Zone, string>>>;
|
|
8
9
|
afterSessions: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
9
10
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
10
11
|
kind: import("zod").ZodLiteral<"once">;
|
|
@@ -164,6 +165,7 @@ export declare const automationsContract: {
|
|
|
164
165
|
trigger: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
165
166
|
kind: import("zod").ZodLiteral<"schedule">;
|
|
166
167
|
cron: import("zod").ZodString;
|
|
168
|
+
tz: import("zod").ZodOptional<import("zod").ZodString & import("zod").ZodType<import("../index.js").Zone, string, import("zod/v4/core").$ZodTypeInternals<import("../index.js").Zone, string>>>;
|
|
167
169
|
afterSessions: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
168
170
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
169
171
|
kind: import("zod").ZodLiteral<"once">;
|
|
@@ -207,6 +209,7 @@ export declare const automationsContract: {
|
|
|
207
209
|
trigger: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
208
210
|
kind: import("zod").ZodLiteral<"schedule">;
|
|
209
211
|
cron: import("zod").ZodString;
|
|
212
|
+
tz: import("zod").ZodOptional<import("zod").ZodString & import("zod").ZodType<import("../index.js").Zone, string, import("zod/v4/core").$ZodTypeInternals<import("../index.js").Zone, string>>>;
|
|
210
213
|
afterSessions: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
211
214
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
212
215
|
kind: import("zod").ZodLiteral<"once">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"automations.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/automations.contract.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,mBAAmB;IAC5B,IAAI
|
|
1
|
+
{"version":3,"file":"automations.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/automations.contract.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,mBAAmB;IAC5B,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAQJ,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASP,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASN,UAAU;;;;;;IASV,MAAM;;;;;IASN,WAAW;;;;;IAWX,GAAG;;;;;IAUH,OAAO;;;;;;;;;;;;IAUP,WAAW;;;;;;;;;;;;;;;;;;;;IAQX,OAAO;;;;;IASP,MAAM;;;;;CAST,CAAC"}
|
|
@@ -13,13 +13,11 @@ export declare const capabilitiesContract: {
|
|
|
13
13
|
extension: "extension";
|
|
14
14
|
host: "host";
|
|
15
15
|
identity: "identity";
|
|
16
|
-
integration: "integration";
|
|
17
16
|
localmodel: "localmodel";
|
|
18
17
|
mcp: "mcp";
|
|
19
18
|
monorepo: "monorepo";
|
|
20
19
|
netdisk: "netdisk";
|
|
21
20
|
plugin: "plugin";
|
|
22
|
-
service: "service";
|
|
23
21
|
ssh: "ssh";
|
|
24
22
|
vpn: "vpn";
|
|
25
23
|
wallet: "wallet";
|
|
@@ -60,28 +58,6 @@ export declare const capabilitiesContract: {
|
|
|
60
58
|
url: import("zod").ZodURL;
|
|
61
59
|
token: import("zod").ZodOptional<import("zod").ZodString>;
|
|
62
60
|
}, import("zod/v4/core").$strip>;
|
|
63
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
64
|
-
id: import("zod").ZodString;
|
|
65
|
-
kind: import("zod").ZodLiteral<"service">;
|
|
66
|
-
config: import("zod").ZodObject<{
|
|
67
|
-
service: import("zod").ZodEnum<{
|
|
68
|
-
infisical: "infisical";
|
|
69
|
-
invoiceninja: "invoiceninja";
|
|
70
|
-
openproject: "openproject";
|
|
71
|
-
outline: "outline";
|
|
72
|
-
paperless: "paperless";
|
|
73
|
-
signoz: "signoz";
|
|
74
|
-
}>;
|
|
75
|
-
domain: import("zod").ZodString;
|
|
76
|
-
on: import("zod").ZodString;
|
|
77
|
-
expose: import("zod").ZodString;
|
|
78
|
-
}, import("zod/v4/core").$strip>;
|
|
79
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
80
|
-
id: import("zod").ZodString;
|
|
81
|
-
kind: import("zod").ZodLiteral<"integration">;
|
|
82
|
-
config: import("zod").ZodObject<{
|
|
83
|
-
provider: import("zod").ZodLiteral<"stripe">;
|
|
84
|
-
}, import("zod/v4/core").$strip>;
|
|
85
61
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
86
62
|
id: import("zod").ZodString;
|
|
87
63
|
kind: import("zod").ZodLiteral<"cli">;
|
|
@@ -409,28 +385,6 @@ export declare const capabilitiesContract: {
|
|
|
409
385
|
url: import("zod").ZodURL;
|
|
410
386
|
token: import("zod").ZodOptional<import("zod").ZodString>;
|
|
411
387
|
}, import("zod/v4/core").$strip>;
|
|
412
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
413
|
-
id: import("zod").ZodString;
|
|
414
|
-
kind: import("zod").ZodLiteral<"service">;
|
|
415
|
-
config: import("zod").ZodObject<{
|
|
416
|
-
service: import("zod").ZodEnum<{
|
|
417
|
-
infisical: "infisical";
|
|
418
|
-
invoiceninja: "invoiceninja";
|
|
419
|
-
openproject: "openproject";
|
|
420
|
-
outline: "outline";
|
|
421
|
-
paperless: "paperless";
|
|
422
|
-
signoz: "signoz";
|
|
423
|
-
}>;
|
|
424
|
-
domain: import("zod").ZodString;
|
|
425
|
-
on: import("zod").ZodString;
|
|
426
|
-
expose: import("zod").ZodString;
|
|
427
|
-
}, import("zod/v4/core").$strip>;
|
|
428
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
429
|
-
id: import("zod").ZodString;
|
|
430
|
-
kind: import("zod").ZodLiteral<"integration">;
|
|
431
|
-
config: import("zod").ZodObject<{
|
|
432
|
-
provider: import("zod").ZodLiteral<"stripe">;
|
|
433
|
-
}, import("zod/v4/core").$strip>;
|
|
434
388
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
435
389
|
id: import("zod").ZodString;
|
|
436
390
|
kind: import("zod").ZodLiteral<"cli">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capabilities.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/capabilities.contract.ts"],"names":[],"mappings":"AAsBA,eAAO,MAAM,oBAAoB;IAC7B,IAAI
|
|
1
|
+
{"version":3,"file":"capabilities.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/capabilities.contract.ts"],"names":[],"mappings":"AAsBA,eAAO,MAAM,oBAAoB;IAC7B,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASJ,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAWH,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUL,MAAM;;;;;IAUN,MAAM;;;;;;IAWN,SAAS;;;;;;IAST,MAAM;;;;;;;;;;;;IAUN,UAAU;;;;;;;IAUV,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUX,IAAI;;;;;;;;;;;;;;;IAUJ,OAAO;;;;;IAWP,KAAK;;;;;IAWL,GAAG;;;;;;CAUN,CAAC"}
|
|
@@ -22,6 +22,73 @@ export declare const TrialStatusSchema: z.ZodObject<{
|
|
|
22
22
|
servedModel: z.ZodOptional<z.ZodString>;
|
|
23
23
|
}, z.core.$strip>;
|
|
24
24
|
export type TrialStatusResponse = z.infer<typeof TrialStatusSchema>;
|
|
25
|
+
export declare const LocalModelGpuSchema: z.ZodEnum<{
|
|
26
|
+
absent: "absent";
|
|
27
|
+
granted: "granted";
|
|
28
|
+
unsupported: "unsupported";
|
|
29
|
+
}>;
|
|
30
|
+
export type LocalModelGpu = z.infer<typeof LocalModelGpuSchema>;
|
|
31
|
+
export declare const LocalModelPrefetchSchema: z.ZodObject<{
|
|
32
|
+
model: z.ZodString;
|
|
33
|
+
state: z.ZodEnum<{
|
|
34
|
+
downloading: "downloading";
|
|
35
|
+
failed: "failed";
|
|
36
|
+
held: "held";
|
|
37
|
+
idle: "idle";
|
|
38
|
+
}>;
|
|
39
|
+
receivedBytes: z.ZodNumber;
|
|
40
|
+
totalBytes: z.ZodNumber;
|
|
41
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
export type LocalModelPrefetch = z.infer<typeof LocalModelPrefetchSchema>;
|
|
44
|
+
export declare const LocalModelFitSchema: z.ZodObject<{
|
|
45
|
+
memoryBytes: z.ZodNumber;
|
|
46
|
+
memoryCapped: z.ZodBoolean;
|
|
47
|
+
gpu: z.ZodEnum<{
|
|
48
|
+
absent: "absent";
|
|
49
|
+
granted: "granted";
|
|
50
|
+
unsupported: "unsupported";
|
|
51
|
+
}>;
|
|
52
|
+
gpuMemoryBytes: z.ZodNumber;
|
|
53
|
+
budgetBytes: z.ZodNumber;
|
|
54
|
+
serverReady: z.ZodBoolean;
|
|
55
|
+
options: z.ZodArray<z.ZodObject<{
|
|
56
|
+
model: z.ZodString;
|
|
57
|
+
label: z.ZodString;
|
|
58
|
+
tier: z.ZodEnum<{
|
|
59
|
+
instant: "instant";
|
|
60
|
+
work: "work";
|
|
61
|
+
}>;
|
|
62
|
+
weightsBytes: z.ZodNumber;
|
|
63
|
+
held: z.ZodBoolean;
|
|
64
|
+
windows: z.ZodArray<z.ZodObject<{
|
|
65
|
+
tokens: z.ZodNumber;
|
|
66
|
+
totalBytes: z.ZodNumber;
|
|
67
|
+
fits: z.ZodBoolean;
|
|
68
|
+
}, z.core.$strip>>;
|
|
69
|
+
}, z.core.$strip>>;
|
|
70
|
+
instant: z.ZodOptional<z.ZodObject<{
|
|
71
|
+
model: z.ZodString;
|
|
72
|
+
context: z.ZodString;
|
|
73
|
+
}, z.core.$strip>>;
|
|
74
|
+
best: z.ZodOptional<z.ZodObject<{
|
|
75
|
+
model: z.ZodString;
|
|
76
|
+
context: z.ZodString;
|
|
77
|
+
}, z.core.$strip>>;
|
|
78
|
+
prefetch: z.ZodObject<{
|
|
79
|
+
model: z.ZodString;
|
|
80
|
+
state: z.ZodEnum<{
|
|
81
|
+
downloading: "downloading";
|
|
82
|
+
failed: "failed";
|
|
83
|
+
held: "held";
|
|
84
|
+
idle: "idle";
|
|
85
|
+
}>;
|
|
86
|
+
receivedBytes: z.ZodNumber;
|
|
87
|
+
totalBytes: z.ZodNumber;
|
|
88
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
89
|
+
}, z.core.$strip>;
|
|
90
|
+
}, z.core.$strip>;
|
|
91
|
+
export type LocalModelFitResponse = z.infer<typeof LocalModelFitSchema>;
|
|
25
92
|
export declare const endpointsContract: {
|
|
26
93
|
models: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
27
94
|
id: z.ZodString;
|
|
@@ -36,6 +103,7 @@ export declare const endpointsContract: {
|
|
|
36
103
|
reasoning: "reasoning";
|
|
37
104
|
}>>>;
|
|
38
105
|
contextWindow: z.ZodOptional<z.ZodNumber>;
|
|
106
|
+
availableAt: z.ZodOptional<z.ZodNumber>;
|
|
39
107
|
}, z.core.$strip>>;
|
|
40
108
|
default: z.ZodString;
|
|
41
109
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
@@ -54,6 +122,70 @@ export declare const endpointsContract: {
|
|
|
54
122
|
retryAt: z.ZodOptional<z.ZodString>;
|
|
55
123
|
servedModel: z.ZodOptional<z.ZodString>;
|
|
56
124
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
125
|
+
localModelFit: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
|
|
126
|
+
memoryBytes: z.ZodNumber;
|
|
127
|
+
memoryCapped: z.ZodBoolean;
|
|
128
|
+
gpu: z.ZodEnum<{
|
|
129
|
+
absent: "absent";
|
|
130
|
+
granted: "granted";
|
|
131
|
+
unsupported: "unsupported";
|
|
132
|
+
}>;
|
|
133
|
+
gpuMemoryBytes: z.ZodNumber;
|
|
134
|
+
budgetBytes: z.ZodNumber;
|
|
135
|
+
serverReady: z.ZodBoolean;
|
|
136
|
+
options: z.ZodArray<z.ZodObject<{
|
|
137
|
+
model: z.ZodString;
|
|
138
|
+
label: z.ZodString;
|
|
139
|
+
tier: z.ZodEnum<{
|
|
140
|
+
instant: "instant";
|
|
141
|
+
work: "work";
|
|
142
|
+
}>;
|
|
143
|
+
weightsBytes: z.ZodNumber;
|
|
144
|
+
held: z.ZodBoolean;
|
|
145
|
+
windows: z.ZodArray<z.ZodObject<{
|
|
146
|
+
tokens: z.ZodNumber;
|
|
147
|
+
totalBytes: z.ZodNumber;
|
|
148
|
+
fits: z.ZodBoolean;
|
|
149
|
+
}, z.core.$strip>>;
|
|
150
|
+
}, z.core.$strip>>;
|
|
151
|
+
instant: z.ZodOptional<z.ZodObject<{
|
|
152
|
+
model: z.ZodString;
|
|
153
|
+
context: z.ZodString;
|
|
154
|
+
}, z.core.$strip>>;
|
|
155
|
+
best: z.ZodOptional<z.ZodObject<{
|
|
156
|
+
model: z.ZodString;
|
|
157
|
+
context: z.ZodString;
|
|
158
|
+
}, z.core.$strip>>;
|
|
159
|
+
prefetch: z.ZodObject<{
|
|
160
|
+
model: z.ZodString;
|
|
161
|
+
state: z.ZodEnum<{
|
|
162
|
+
downloading: "downloading";
|
|
163
|
+
failed: "failed";
|
|
164
|
+
held: "held";
|
|
165
|
+
idle: "idle";
|
|
166
|
+
}>;
|
|
167
|
+
receivedBytes: z.ZodNumber;
|
|
168
|
+
totalBytes: z.ZodNumber;
|
|
169
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
170
|
+
}, z.core.$strip>;
|
|
171
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
172
|
+
localModelPrefetch: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
173
|
+
action: z.ZodEnum<{
|
|
174
|
+
start: "start";
|
|
175
|
+
stop: "stop";
|
|
176
|
+
}>;
|
|
177
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
178
|
+
model: z.ZodString;
|
|
179
|
+
state: z.ZodEnum<{
|
|
180
|
+
downloading: "downloading";
|
|
181
|
+
failed: "failed";
|
|
182
|
+
held: "held";
|
|
183
|
+
idle: "idle";
|
|
184
|
+
}>;
|
|
185
|
+
receivedBytes: z.ZodNumber;
|
|
186
|
+
totalBytes: z.ZodNumber;
|
|
187
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
188
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
57
189
|
};
|
|
58
190
|
export {};
|
|
59
191
|
//# sourceMappingURL=endpoints.contract.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoints.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/endpoints.contract.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAWb,kBAAkB;;;;;;;;;;;;;;;;;CAUrB,CAAC"}
|
|
@@ -13,6 +13,39 @@ export const TrialStatusSchema = z.object({
|
|
|
13
13
|
retryAt: z.string().optional(),
|
|
14
14
|
servedModel: z.string().optional(),
|
|
15
15
|
});
|
|
16
|
+
export const LocalModelGpuSchema = z.enum(["granted", "unsupported", "absent"]);
|
|
17
|
+
const LocalModelWindowFitSchema = z.object({
|
|
18
|
+
tokens: z.number().int().positive(),
|
|
19
|
+
totalBytes: z.number().int().nonnegative(),
|
|
20
|
+
fits: z.boolean(),
|
|
21
|
+
});
|
|
22
|
+
const LocalModelOptionFitSchema = z.object({
|
|
23
|
+
model: z.string(),
|
|
24
|
+
label: z.string(),
|
|
25
|
+
tier: z.enum(["instant", "work"]),
|
|
26
|
+
weightsBytes: z.number().int().nonnegative(),
|
|
27
|
+
held: z.boolean(),
|
|
28
|
+
windows: z.array(LocalModelWindowFitSchema),
|
|
29
|
+
});
|
|
30
|
+
export const LocalModelPrefetchSchema = z.object({
|
|
31
|
+
model: z.string(),
|
|
32
|
+
state: z.enum(["idle", "downloading", "held", "failed"]),
|
|
33
|
+
receivedBytes: z.number().int().nonnegative(),
|
|
34
|
+
totalBytes: z.number().int().nonnegative(),
|
|
35
|
+
detail: z.string().optional(),
|
|
36
|
+
});
|
|
37
|
+
export const LocalModelFitSchema = z.object({
|
|
38
|
+
memoryBytes: z.number().int().nonnegative(),
|
|
39
|
+
memoryCapped: z.boolean(),
|
|
40
|
+
gpu: LocalModelGpuSchema,
|
|
41
|
+
gpuMemoryBytes: z.number().int().nonnegative(),
|
|
42
|
+
budgetBytes: z.number().int().nonnegative(),
|
|
43
|
+
serverReady: z.boolean(),
|
|
44
|
+
options: z.array(LocalModelOptionFitSchema),
|
|
45
|
+
instant: z.object({ model: z.string(), context: z.string() }).optional(),
|
|
46
|
+
best: z.object({ model: z.string(), context: z.string() }).optional(),
|
|
47
|
+
prefetch: LocalModelPrefetchSchema,
|
|
48
|
+
});
|
|
16
49
|
export const endpointsContract = {
|
|
17
50
|
models: oc
|
|
18
51
|
.route({
|
|
@@ -31,5 +64,22 @@ export const endpointsContract = {
|
|
|
31
64
|
description: "The allowance, what has been used, when it resets, and which model actually answered the last message. Not being available is the ordinary answer rather than a failure: most sandboxes run against a platform that offers no trial at all.",
|
|
32
65
|
})
|
|
33
66
|
.output(TrialStatusSchema),
|
|
67
|
+
localModelFit: oc
|
|
68
|
+
.route({
|
|
69
|
+
method: "GET",
|
|
70
|
+
path: "/endpoints/local-model/fit",
|
|
71
|
+
summary: "Which local models this machine can actually run",
|
|
72
|
+
description: "The memory this sandbox may use, whether a GPU reached it, and every curated model priced against both, plus the two the connect view offers: one that downloads in a minute and one that is the best this machine can hold. Nothing here is a preference; it is what a start would be admitted or refused on.",
|
|
73
|
+
})
|
|
74
|
+
.output(LocalModelFitSchema),
|
|
75
|
+
localModelPrefetch: oc
|
|
76
|
+
.route({
|
|
77
|
+
method: "POST",
|
|
78
|
+
path: "/endpoints/local-model/prefetch",
|
|
79
|
+
summary: "Fetch the small model's weights ahead of being asked",
|
|
80
|
+
description: "Downloads the curated instant model into the workspace cache so that adding it later costs nothing. Stopping leaves the part file, so a later start resumes from where this one stopped rather than beginning again.",
|
|
81
|
+
})
|
|
82
|
+
.input(z.object({ action: z.enum(["start", "stop"]) }))
|
|
83
|
+
.output(LocalModelPrefetchSchema),
|
|
34
84
|
};
|
|
35
85
|
//# sourceMappingURL=endpoints.contract.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoints.contract.js","sourceRoot":"","sources":["../../src/contracts/endpoints.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,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AAE,MAAM;QACd,IAAI,EAAE,iCAAiC;QACvC,OAAO,EAAE,sDAAsD;QAC/D,WAAW,EACP,sNAAsN;KAC7N,CAAC;SACD,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC;SACtD,MAAM,CAAC,wBAAwB,CAAC;CACxC,CAAC"}
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const RunnableProvidersSchema: z.ZodObject<{
|
|
3
|
+
native: z.ZodArray<z.ZodEnum<{
|
|
4
|
+
claude: "claude";
|
|
5
|
+
codex: "codex";
|
|
6
|
+
cursor: "cursor";
|
|
7
|
+
gemini: "gemini";
|
|
8
|
+
grok: "grok";
|
|
9
|
+
kimi: "kimi";
|
|
10
|
+
meta: "meta";
|
|
11
|
+
zai: "zai";
|
|
12
|
+
}>>;
|
|
3
13
|
agents: z.ZodArray<z.ZodObject<{
|
|
4
14
|
id: z.ZodString;
|
|
5
15
|
label: z.ZodString;
|
|
@@ -16,6 +26,16 @@ export declare const RunnableProvidersSchema: z.ZodObject<{
|
|
|
16
26
|
export type RunnableProviders = z.infer<typeof RunnableProvidersSchema>;
|
|
17
27
|
export declare const providersContract: {
|
|
18
28
|
list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
|
|
29
|
+
native: z.ZodArray<z.ZodEnum<{
|
|
30
|
+
claude: "claude";
|
|
31
|
+
codex: "codex";
|
|
32
|
+
cursor: "cursor";
|
|
33
|
+
gemini: "gemini";
|
|
34
|
+
grok: "grok";
|
|
35
|
+
kimi: "kimi";
|
|
36
|
+
meta: "meta";
|
|
37
|
+
zai: "zai";
|
|
38
|
+
}>>;
|
|
19
39
|
agents: z.ZodArray<z.ZodObject<{
|
|
20
40
|
id: z.ZodString;
|
|
21
41
|
label: z.ZodString;
|
|
@@ -51,6 +71,7 @@ export declare const providersContract: {
|
|
|
51
71
|
reasoning: "reasoning";
|
|
52
72
|
}>>>;
|
|
53
73
|
contextWindow: z.ZodOptional<z.ZodNumber>;
|
|
74
|
+
availableAt: z.ZodOptional<z.ZodNumber>;
|
|
54
75
|
}, z.core.$strip>>;
|
|
55
76
|
default: z.ZodString;
|
|
56
77
|
}, z.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":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"providers.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/providers.contract.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;iBAoBlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAKxE,eAAO,MAAM,iBAAiB;IAC1B,IAAI;;;;;;;;;;;;;;;;;;;;;;;;IAUJ,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;CAUT,CAAC"}
|
|
@@ -3,6 +3,7 @@ import { z } from "zod";
|
|
|
3
3
|
import { NativeProviderParamSchema } from "../schemas/agent.js";
|
|
4
4
|
import { ModelsSchema } from "../schemas/providers/provider-oauth.js";
|
|
5
5
|
export const RunnableProvidersSchema = z.object({
|
|
6
|
+
native: z.array(NativeProviderParamSchema.shape.provider).describe("Native providers with a working credential here, by id; never what holds it."),
|
|
6
7
|
agents: z
|
|
7
8
|
.array(z.object({ id: z.string(), label: z.string() }))
|
|
8
9
|
.describe("ACP agents installed here. The id is the provider id itself, the label its display name."),
|
|
@@ -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,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAC;AAKtE,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;
|
|
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,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAC;AAKtE,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAK5C,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,yBAAyB,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,8EAA8E,CAAC;IAClJ,MAAM,EAAE,CAAC;SACJ,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;SACtD,QAAQ,CAAC,0FAA0F,CAAC;IACzG,SAAS,EAAE,CAAC;SACP,KAAK,CACF,CAAC,CAAC,MAAM,CAAC;QACL,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;QACd,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;QAGjB,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,UAA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