@intentic/sandbox-contract 0.0.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/LICENSE +21 -0
- package/dist/contracts/agent.contract.d.ts +89 -0
- package/dist/contracts/agent.contract.d.ts.map +1 -0
- package/dist/contracts/agent.contract.js +9 -0
- package/dist/contracts/agent.contract.js.map +1 -0
- package/dist/contracts/claude.contract.d.ts +23 -0
- package/dist/contracts/claude.contract.d.ts.map +1 -0
- package/dist/contracts/claude.contract.js +9 -0
- package/dist/contracts/claude.contract.js.map +1 -0
- package/dist/contracts/git.contract.d.ts +41 -0
- package/dist/contracts/git.contract.d.ts.map +1 -0
- package/dist/contracts/git.contract.js +11 -0
- package/dist/contracts/git.contract.js.map +1 -0
- package/dist/contracts/intentic.contract.d.ts +12 -0
- package/dist/contracts/intentic.contract.d.ts.map +1 -0
- package/dist/contracts/intentic.contract.js +7 -0
- package/dist/contracts/intentic.contract.js.map +1 -0
- package/dist/contracts/inventory.contract.d.ts +93 -0
- package/dist/contracts/inventory.contract.d.ts.map +1 -0
- package/dist/contracts/inventory.contract.js +9 -0
- package/dist/contracts/inventory.contract.js.map +1 -0
- package/dist/contracts/sessions.contract.d.ts +21 -0
- package/dist/contracts/sessions.contract.d.ts.map +1 -0
- package/dist/contracts/sessions.contract.js +7 -0
- package/dist/contracts/sessions.contract.js.map +1 -0
- package/dist/contracts/system.contract.d.ts +28 -0
- package/dist/contracts/system.contract.d.ts.map +1 -0
- package/dist/contracts/system.contract.js +10 -0
- package/dist/contracts/system.contract.js.map +1 -0
- package/dist/contracts/workspace.contract.d.ts +53 -0
- package/dist/contracts/workspace.contract.d.ts.map +1 -0
- package/dist/contracts/workspace.contract.js +12 -0
- package/dist/contracts/workspace.contract.js.map +1 -0
- package/dist/events.d.ts +61 -0
- package/dist/events.d.ts.map +1 -0
- package/dist/events.js +24 -0
- package/dist/events.js.map +1 -0
- package/dist/index.d.ts +365 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +29 -0
- package/dist/index.js.map +1 -0
- package/dist/schemas.d.ts +305 -0
- package/dist/schemas.d.ts.map +1 -0
- package/dist/schemas.js +92 -0
- package/dist/schemas.js.map +1 -0
- package/package.json +45 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Artur Kurowski
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
export declare const agentContract: {
|
|
2
|
+
run: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
3
|
+
prompt: import("zod").ZodString;
|
|
4
|
+
sessionId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5
|
+
model: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6
|
+
plan: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
7
|
+
effort: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8
|
+
thinking: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
9
|
+
}, import("zod/v4/core").$strip>, import("@orpc/contract").Schema<AsyncIteratorObject<{
|
|
10
|
+
kind: "session";
|
|
11
|
+
sessionId: string;
|
|
12
|
+
} | {
|
|
13
|
+
kind: "delta";
|
|
14
|
+
text: string;
|
|
15
|
+
} | {
|
|
16
|
+
kind: "tool";
|
|
17
|
+
name: string;
|
|
18
|
+
target?: string | undefined;
|
|
19
|
+
} | {
|
|
20
|
+
kind: "plan";
|
|
21
|
+
decisionId: string;
|
|
22
|
+
text: string;
|
|
23
|
+
} | {
|
|
24
|
+
kind: "question";
|
|
25
|
+
requestId: string;
|
|
26
|
+
questions: {
|
|
27
|
+
question: string;
|
|
28
|
+
header: string;
|
|
29
|
+
multiSelect: boolean;
|
|
30
|
+
options: {
|
|
31
|
+
label: string;
|
|
32
|
+
description: string;
|
|
33
|
+
preview?: string | undefined;
|
|
34
|
+
}[];
|
|
35
|
+
}[];
|
|
36
|
+
} | {
|
|
37
|
+
kind: "error";
|
|
38
|
+
message: string;
|
|
39
|
+
} | {
|
|
40
|
+
kind: "done";
|
|
41
|
+
}, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
|
|
42
|
+
kind: "session";
|
|
43
|
+
sessionId: string;
|
|
44
|
+
} | {
|
|
45
|
+
kind: "delta";
|
|
46
|
+
text: string;
|
|
47
|
+
} | {
|
|
48
|
+
kind: "tool";
|
|
49
|
+
name: string;
|
|
50
|
+
target?: string | undefined;
|
|
51
|
+
} | {
|
|
52
|
+
kind: "plan";
|
|
53
|
+
decisionId: string;
|
|
54
|
+
text: string;
|
|
55
|
+
} | {
|
|
56
|
+
kind: "question";
|
|
57
|
+
requestId: string;
|
|
58
|
+
questions: {
|
|
59
|
+
question: string;
|
|
60
|
+
header: string;
|
|
61
|
+
multiSelect: boolean;
|
|
62
|
+
options: {
|
|
63
|
+
label: string;
|
|
64
|
+
description: string;
|
|
65
|
+
preview?: string | undefined;
|
|
66
|
+
}[];
|
|
67
|
+
}[];
|
|
68
|
+
} | {
|
|
69
|
+
kind: "error";
|
|
70
|
+
message: string;
|
|
71
|
+
} | {
|
|
72
|
+
kind: "done";
|
|
73
|
+
}, unknown, void>>, Record<never, never>, Record<never, never>>;
|
|
74
|
+
decision: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
75
|
+
decisionId: import("zod").ZodString;
|
|
76
|
+
approve: import("zod").ZodBoolean;
|
|
77
|
+
feedback: import("zod").ZodOptional<import("zod").ZodString>;
|
|
78
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
79
|
+
ok: import("zod").ZodLiteral<true>;
|
|
80
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
81
|
+
answer: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
82
|
+
requestId: import("zod").ZodString;
|
|
83
|
+
answers: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>>>;
|
|
84
|
+
cancelled: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
85
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
86
|
+
ok: import("zod").ZodLiteral<true>;
|
|
87
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
88
|
+
};
|
|
89
|
+
//# sourceMappingURL=agent.contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/agent.contract.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIzB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { eventIterator, oc } from "@orpc/contract";
|
|
2
|
+
import { AgentEventSchema } from "../events.js";
|
|
3
|
+
import { AgentTurnSchema, AnswerSchema, DecisionSchema, OkSchema } from "../schemas.js";
|
|
4
|
+
export const agentContract = {
|
|
5
|
+
run: oc.route({ method: "POST", path: "/agent" }).input(AgentTurnSchema).output(eventIterator(AgentEventSchema)),
|
|
6
|
+
decision: oc.route({ method: "POST", path: "/agent/decision" }).input(DecisionSchema).output(OkSchema),
|
|
7
|
+
answer: oc.route({ method: "POST", path: "/agent/answer" }).input(AnswerSchema).output(OkSchema),
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=agent.contract.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent.contract.js","sourceRoot":"","sources":["../../src/contracts/agent.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAIxF,MAAM,CAAC,MAAM,aAAa,GAAG;IACzB,GAAG,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAC;IAChH,QAAQ,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;IACtG,MAAM,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;CACnG,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare const claudeContract: {
|
|
2
|
+
start: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
|
|
3
|
+
authorizeUrl: import("zod").ZodString;
|
|
4
|
+
verifier: import("zod").ZodString;
|
|
5
|
+
state: import("zod").ZodString;
|
|
6
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
7
|
+
exchange: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
8
|
+
code: import("zod").ZodString;
|
|
9
|
+
verifier: import("zod").ZodString;
|
|
10
|
+
state: import("zod").ZodString;
|
|
11
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
12
|
+
connected: import("zod").ZodBoolean;
|
|
13
|
+
scope: import("zod").ZodOptional<import("zod").ZodString>;
|
|
14
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
15
|
+
account: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
|
|
16
|
+
connected: import("zod").ZodBoolean;
|
|
17
|
+
scope: import("zod").ZodOptional<import("zod").ZodString>;
|
|
18
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
19
|
+
disconnect: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
|
|
20
|
+
ok: import("zod").ZodLiteral<true>;
|
|
21
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=claude.contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"claude.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/claude.contract.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;CAK1B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { oc } from "@orpc/contract";
|
|
2
|
+
import { AuthorizeChallengeSchema, ClaudeAccountSchema, ClaudeExchangeSchema, OkSchema } from "../schemas.js";
|
|
3
|
+
export const claudeContract = {
|
|
4
|
+
start: oc.route({ method: "POST", path: "/claude/oauth/start" }).output(AuthorizeChallengeSchema),
|
|
5
|
+
exchange: oc.route({ method: "POST", path: "/claude/oauth/exchange" }).input(ClaudeExchangeSchema).output(ClaudeAccountSchema),
|
|
6
|
+
account: oc.route({ method: "GET", path: "/claude/account" }).output(ClaudeAccountSchema),
|
|
7
|
+
disconnect: oc.route({ method: "POST", path: "/claude/account/disconnect" }).output(OkSchema),
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=claude.contract.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"claude.contract.js","sourceRoot":"","sources":["../../src/contracts/claude.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAI9G,MAAM,CAAC,MAAM,cAAc,GAAG;IAC1B,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,qBAAqB,EAAE,CAAC,CAAC,MAAM,CAAC,wBAAwB,CAAC;IACjG,QAAQ,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,wBAAwB,EAAE,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,MAAM,CAAC,mBAAmB,CAAC;IAC9H,OAAO,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC,CAAC,MAAM,CAAC,mBAAmB,CAAC;IACzF,UAAU,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,4BAA4B,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;CAChG,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export declare const gitContract: {
|
|
2
|
+
status: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
3
|
+
repo: import("zod").ZodString;
|
|
4
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
5
|
+
branch: import("zod").ZodString;
|
|
6
|
+
dirty: import("zod").ZodBoolean;
|
|
7
|
+
files: import("zod").ZodArray<import("zod").ZodString>;
|
|
8
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
9
|
+
commit: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
10
|
+
repo: import("zod").ZodString;
|
|
11
|
+
message: import("zod").ZodString;
|
|
12
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
13
|
+
committed: import("zod").ZodBoolean;
|
|
14
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
15
|
+
push: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
16
|
+
repo: import("zod").ZodString;
|
|
17
|
+
branch: import("zod").ZodString;
|
|
18
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
19
|
+
ok: import("zod").ZodLiteral<true>;
|
|
20
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
21
|
+
files: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
22
|
+
repo: import("zod").ZodString;
|
|
23
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
24
|
+
files: import("zod").ZodArray<import("zod").ZodString>;
|
|
25
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
26
|
+
readFile: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
27
|
+
repo: import("zod").ZodString;
|
|
28
|
+
path: import("zod").ZodString;
|
|
29
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
30
|
+
path: import("zod").ZodString;
|
|
31
|
+
content: import("zod").ZodString;
|
|
32
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
33
|
+
writeFile: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
34
|
+
repo: import("zod").ZodString;
|
|
35
|
+
path: import("zod").ZodString;
|
|
36
|
+
content: import("zod").ZodString;
|
|
37
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
38
|
+
ok: import("zod").ZodLiteral<true>;
|
|
39
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=git.contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"git.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/git.contract.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOvB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { oc } from "@orpc/contract";
|
|
2
|
+
import { CommitResultSchema, CommitSchema, GitFileQuerySchema, GitFileSchema, GitFilesSchema, GitFileWriteSchema, GitStatusSchema, OkSchema, PushSchema, RepoParamSchema, } from "../schemas.js";
|
|
3
|
+
export const gitContract = {
|
|
4
|
+
status: oc.route({ method: "GET", path: "/git/{repo}/status" }).input(RepoParamSchema).output(GitStatusSchema),
|
|
5
|
+
commit: oc.route({ method: "POST", path: "/git/{repo}/commit" }).input(CommitSchema).output(CommitResultSchema),
|
|
6
|
+
push: oc.route({ method: "POST", path: "/git/{repo}/push" }).input(PushSchema).output(OkSchema),
|
|
7
|
+
files: oc.route({ method: "GET", path: "/git/{repo}/files" }).input(RepoParamSchema).output(GitFilesSchema),
|
|
8
|
+
readFile: oc.route({ method: "GET", path: "/git/{repo}/file" }).input(GitFileQuerySchema).output(GitFileSchema),
|
|
9
|
+
writeFile: oc.route({ method: "PUT", path: "/git/{repo}/file" }).input(GitFileWriteSchema).output(OkSchema),
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=git.contract.js.map
|
|
@@ -0,0 +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,kBAAkB,EAClB,aAAa,EACb,cAAc,EACd,kBAAkB,EAClB,eAAe,EACf,QAAQ,EACR,UAAU,EACV,eAAe,GAClB,MAAM,eAAe,CAAC;AAIvB,MAAM,CAAC,MAAM,WAAW,GAAG;IACvB,MAAM,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,oBAAoB,EAAE,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,MAAM,CAAC,eAAe,CAAC;IAC9G,MAAM,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,EAAE,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,kBAAkB,CAAC;IAC/G,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;IAC/F,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,mBAAmB,EAAE,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC;IAC3G,QAAQ,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC;IAC/G,SAAS,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;CAC9G,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const intenticContract: {
|
|
2
|
+
run: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
3
|
+
args: import("zod").ZodArray<import("zod").ZodString>;
|
|
4
|
+
}, import("zod/v4/core").$strip>, import("@orpc/contract").Schema<AsyncIteratorObject<{
|
|
5
|
+
[x: string]: unknown;
|
|
6
|
+
kind: string;
|
|
7
|
+
}, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
|
|
8
|
+
[x: string]: unknown;
|
|
9
|
+
kind: string;
|
|
10
|
+
}, unknown, void>>, Record<never, never>, Record<never, never>>;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=intentic.contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"intentic.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/intentic.contract.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,gBAAgB;;;;;;;;;;CAE5B,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { eventIterator, oc } from "@orpc/contract";
|
|
2
|
+
import { IntenticLineSchema } from "../events.js";
|
|
3
|
+
import { IntenticRunSchema } from "../schemas.js";
|
|
4
|
+
export const intenticContract = {
|
|
5
|
+
run: oc.route({ method: "POST", path: "/intentic" }).input(IntenticRunSchema).output(eventIterator(IntenticLineSchema)),
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=intentic.contract.js.map
|
|
@@ -0,0 +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,MAAM,eAAe,CAAC;AAIlD,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC5B,GAAG,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC;CAC1H,CAAC"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
export declare const inventoryContract: {
|
|
2
|
+
list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
|
|
3
|
+
entries: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
4
|
+
kind: import("zod").ZodLiteral<"backend">;
|
|
5
|
+
provider: import("zod").ZodEnum<{
|
|
6
|
+
host: "host";
|
|
7
|
+
cloudflare: "cloudflare";
|
|
8
|
+
github: "github";
|
|
9
|
+
stripe: "stripe";
|
|
10
|
+
}>;
|
|
11
|
+
name: import("zod").ZodString;
|
|
12
|
+
values: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
13
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
14
|
+
kind: import("zod").ZodLiteral<"service">;
|
|
15
|
+
service: import("zod").ZodEnum<{
|
|
16
|
+
signoz: "signoz";
|
|
17
|
+
}>;
|
|
18
|
+
name: import("zod").ZodString;
|
|
19
|
+
values: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
20
|
+
on: import("zod").ZodString;
|
|
21
|
+
expose: import("zod").ZodString;
|
|
22
|
+
}, import("zod/v4/core").$strip>], "kind">>;
|
|
23
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
24
|
+
add: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
25
|
+
kind: import("zod").ZodLiteral<"backend">;
|
|
26
|
+
provider: import("zod").ZodEnum<{
|
|
27
|
+
host: "host";
|
|
28
|
+
cloudflare: "cloudflare";
|
|
29
|
+
github: "github";
|
|
30
|
+
stripe: "stripe";
|
|
31
|
+
}>;
|
|
32
|
+
values: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
33
|
+
name: import("zod").ZodString;
|
|
34
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
35
|
+
kind: import("zod").ZodLiteral<"service">;
|
|
36
|
+
service: import("zod").ZodEnum<{
|
|
37
|
+
signoz: "signoz";
|
|
38
|
+
}>;
|
|
39
|
+
values: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
40
|
+
on: import("zod").ZodString;
|
|
41
|
+
expose: import("zod").ZodString;
|
|
42
|
+
name: import("zod").ZodString;
|
|
43
|
+
}, import("zod/v4/core").$strip>], "kind">, import("zod").ZodObject<{
|
|
44
|
+
entries: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
45
|
+
kind: import("zod").ZodLiteral<"backend">;
|
|
46
|
+
provider: import("zod").ZodEnum<{
|
|
47
|
+
host: "host";
|
|
48
|
+
cloudflare: "cloudflare";
|
|
49
|
+
github: "github";
|
|
50
|
+
stripe: "stripe";
|
|
51
|
+
}>;
|
|
52
|
+
name: import("zod").ZodString;
|
|
53
|
+
values: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
54
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
55
|
+
kind: import("zod").ZodLiteral<"service">;
|
|
56
|
+
service: import("zod").ZodEnum<{
|
|
57
|
+
signoz: "signoz";
|
|
58
|
+
}>;
|
|
59
|
+
name: import("zod").ZodString;
|
|
60
|
+
values: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
61
|
+
on: import("zod").ZodString;
|
|
62
|
+
expose: import("zod").ZodString;
|
|
63
|
+
}, import("zod/v4/core").$strip>], "kind">>;
|
|
64
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
65
|
+
remove: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
66
|
+
name: import("zod").ZodString;
|
|
67
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
68
|
+
entries: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
69
|
+
kind: import("zod").ZodLiteral<"backend">;
|
|
70
|
+
provider: import("zod").ZodEnum<{
|
|
71
|
+
host: "host";
|
|
72
|
+
cloudflare: "cloudflare";
|
|
73
|
+
github: "github";
|
|
74
|
+
stripe: "stripe";
|
|
75
|
+
}>;
|
|
76
|
+
name: import("zod").ZodString;
|
|
77
|
+
values: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
78
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
79
|
+
kind: import("zod").ZodLiteral<"service">;
|
|
80
|
+
service: import("zod").ZodEnum<{
|
|
81
|
+
signoz: "signoz";
|
|
82
|
+
}>;
|
|
83
|
+
name: import("zod").ZodString;
|
|
84
|
+
values: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
85
|
+
on: import("zod").ZodString;
|
|
86
|
+
expose: import("zod").ZodString;
|
|
87
|
+
}, import("zod/v4/core").$strip>], "kind">>;
|
|
88
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
89
|
+
selfHost: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
|
|
90
|
+
ok: import("zod").ZodLiteral<true>;
|
|
91
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
92
|
+
};
|
|
93
|
+
//# sourceMappingURL=inventory.contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inventory.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/inventory.contract.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAK7B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { oc } from "@orpc/contract";
|
|
2
|
+
import { AddInventoryInputSchema, InventoryListSchema, InventoryNameParamSchema, OkSchema } from "../schemas.js";
|
|
3
|
+
export const inventoryContract = {
|
|
4
|
+
list: oc.route({ method: "GET", path: "/inventory" }).output(InventoryListSchema),
|
|
5
|
+
add: oc.route({ method: "POST", path: "/inventory" }).input(AddInventoryInputSchema).output(InventoryListSchema),
|
|
6
|
+
remove: oc.route({ method: "DELETE", path: "/inventory/{name}" }).input(InventoryNameParamSchema).output(InventoryListSchema),
|
|
7
|
+
selfHost: oc.route({ method: "POST", path: "/inventory/self-host" }).output(OkSchema),
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=inventory.contract.js.map
|
|
@@ -0,0 +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,QAAQ,EAAE,MAAM,eAAe,CAAC;AAKjH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC7B,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,CAAC,MAAM,CAAC,mBAAmB,CAAC;IACjF,GAAG,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC,MAAM,CAAC,mBAAmB,CAAC;IAChH,MAAM,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,mBAAmB,EAAE,CAAC,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC,MAAM,CAAC,mBAAmB,CAAC;IAC7H,QAAQ,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,sBAAsB,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;CACxF,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const sessionsContract: {
|
|
2
|
+
list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
|
|
3
|
+
sessions: import("zod").ZodArray<import("zod").ZodObject<{
|
|
4
|
+
id: import("zod").ZodString;
|
|
5
|
+
title: import("zod").ZodString;
|
|
6
|
+
updatedAt: import("zod").ZodNumber;
|
|
7
|
+
}, import("zod/v4/core").$strip>>;
|
|
8
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
9
|
+
get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
10
|
+
id: import("zod").ZodString;
|
|
11
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
12
|
+
messages: import("zod").ZodArray<import("zod").ZodObject<{
|
|
13
|
+
role: import("zod").ZodEnum<{
|
|
14
|
+
user: "user";
|
|
15
|
+
assistant: "assistant";
|
|
16
|
+
}>;
|
|
17
|
+
text: import("zod").ZodString;
|
|
18
|
+
}, import("zod/v4/core").$strip>>;
|
|
19
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=sessions.contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sessions.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/sessions.contract.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;CAG5B,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { oc } from "@orpc/contract";
|
|
2
|
+
import { SessionIdParamSchema, SessionsListSchema, SessionTranscriptSchema } from "../schemas.js";
|
|
3
|
+
export const sessionsContract = {
|
|
4
|
+
list: oc.route({ method: "GET", path: "/sessions" }).output(SessionsListSchema),
|
|
5
|
+
get: oc.route({ method: "GET", path: "/sessions/{id}" }).input(SessionIdParamSchema).output(SessionTranscriptSchema),
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=sessions.contract.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sessions.contract.js","sourceRoot":"","sources":["../../src/contracts/sessions.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAIlG,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC5B,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,kBAAkB,CAAC;IAC/E,GAAG,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,MAAM,CAAC,uBAAuB,CAAC;CACvH,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare const systemContract: {
|
|
2
|
+
preview: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
|
|
3
|
+
running: import("zod").ZodBoolean;
|
|
4
|
+
healthy: import("zod").ZodBoolean;
|
|
5
|
+
port: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
6
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
7
|
+
selfHost: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
|
|
8
|
+
selfHost: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
9
|
+
user: import("zod").ZodString;
|
|
10
|
+
address: import("zod").ZodString;
|
|
11
|
+
port: import("zod").ZodNumber;
|
|
12
|
+
via: import("zod").ZodEnum<{
|
|
13
|
+
direct: "direct";
|
|
14
|
+
cloudflared: "cloudflared";
|
|
15
|
+
}>;
|
|
16
|
+
}, import("zod/v4/core").$strip>>;
|
|
17
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
18
|
+
info: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
|
|
19
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
20
|
+
image: import("zod").ZodOptional<import("zod").ZodString>;
|
|
21
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
22
|
+
events: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("@orpc/contract").Schema<AsyncIteratorObject<{
|
|
23
|
+
kind: "heartbeat";
|
|
24
|
+
}, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
|
|
25
|
+
kind: "heartbeat";
|
|
26
|
+
}, unknown, void>>, Record<never, never>, Record<never, never>>;
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=system.contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"system.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/system.contract.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;CAK1B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { eventIterator, oc } from "@orpc/contract";
|
|
2
|
+
import { HeartbeatSchema } from "../events.js";
|
|
3
|
+
import { InfoSchema, PreviewSchema, SelfHostResponseSchema } from "../schemas.js";
|
|
4
|
+
export const systemContract = {
|
|
5
|
+
preview: oc.route({ method: "GET", path: "/preview" }).output(PreviewSchema),
|
|
6
|
+
selfHost: oc.route({ method: "GET", path: "/self-host" }).output(SelfHostResponseSchema),
|
|
7
|
+
info: oc.route({ method: "GET", path: "/info" }).output(InfoSchema),
|
|
8
|
+
events: oc.route({ method: "GET", path: "/events" }).output(eventIterator(HeartbeatSchema)),
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=system.contract.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"system.contract.js","sourceRoot":"","sources":["../../src/contracts/system.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAIlF,MAAM,CAAC,MAAM,cAAc,GAAG;IAC1B,OAAO,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC;IAC5E,QAAQ,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,CAAC,MAAM,CAAC,sBAAsB,CAAC;IACxF,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC;IACnE,MAAM,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC;CAC9F,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export declare const workspaceContract: {
|
|
2
|
+
tree: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
|
|
3
|
+
root: import("zod").ZodString;
|
|
4
|
+
tree: import("zod").ZodArray<import("zod").ZodObject<{
|
|
5
|
+
name: import("zod").ZodString;
|
|
6
|
+
path: import("zod").ZodString;
|
|
7
|
+
type: import("zod").ZodEnum<{
|
|
8
|
+
file: "file";
|
|
9
|
+
dir: "dir";
|
|
10
|
+
}>;
|
|
11
|
+
size: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
12
|
+
children: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<any, import("zod/v4/core").$strip>>>;
|
|
13
|
+
}, import("zod/v4/core").$strip>>;
|
|
14
|
+
truncated: import("zod").ZodBoolean;
|
|
15
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
16
|
+
file: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
17
|
+
path: import("zod").ZodString;
|
|
18
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
19
|
+
path: import("zod").ZodString;
|
|
20
|
+
content: import("zod").ZodString;
|
|
21
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
22
|
+
repos: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
|
|
23
|
+
repos: import("zod").ZodArray<import("zod").ZodString>;
|
|
24
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
25
|
+
addRepo: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
26
|
+
name: import("zod").ZodString;
|
|
27
|
+
cloneUrl: import("zod").ZodString;
|
|
28
|
+
branch: import("zod").ZodOptional<import("zod").ZodString>;
|
|
29
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
30
|
+
name: import("zod").ZodString;
|
|
31
|
+
path: import("zod").ZodString;
|
|
32
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
33
|
+
tools: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
|
|
34
|
+
tools: import("zod").ZodArray<import("zod").ZodObject<{
|
|
35
|
+
name: import("zod").ZodString;
|
|
36
|
+
url: import("zod").ZodString;
|
|
37
|
+
hasToken: import("zod").ZodBoolean;
|
|
38
|
+
}, import("zod/v4/core").$strip>>;
|
|
39
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
40
|
+
addTool: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
41
|
+
name: import("zod").ZodString;
|
|
42
|
+
url: import("zod").ZodString;
|
|
43
|
+
token: import("zod").ZodOptional<import("zod").ZodString>;
|
|
44
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
45
|
+
name: import("zod").ZodString;
|
|
46
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
47
|
+
removeTool: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
48
|
+
name: import("zod").ZodString;
|
|
49
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
50
|
+
ok: import("zod").ZodLiteral<true>;
|
|
51
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=workspace.contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/workspace.contract.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQ7B,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { oc } from "@orpc/contract";
|
|
2
|
+
import { CloneRepoSchema, CloneResultSchema, OkSchema, ReposListSchema, ToolAddResultSchema, ToolInputSchema, ToolNameParamSchema, ToolsListSchema, WorkspaceFileQuerySchema, WorkspaceFileSchema, WorkspaceTreeSchema, } from "../schemas.js";
|
|
3
|
+
export const workspaceContract = {
|
|
4
|
+
tree: oc.route({ method: "GET", path: "/workspace/tree" }).output(WorkspaceTreeSchema),
|
|
5
|
+
file: oc.route({ method: "GET", path: "/workspace/file" }).input(WorkspaceFileQuerySchema).output(WorkspaceFileSchema),
|
|
6
|
+
repos: oc.route({ method: "GET", path: "/workspace/repos" }).output(ReposListSchema),
|
|
7
|
+
addRepo: oc.route({ method: "POST", path: "/workspace/repos" }).input(CloneRepoSchema).output(CloneResultSchema),
|
|
8
|
+
tools: oc.route({ method: "GET", path: "/workspace/tools" }).output(ToolsListSchema),
|
|
9
|
+
addTool: oc.route({ method: "POST", path: "/workspace/tools" }).input(ToolInputSchema).output(ToolAddResultSchema),
|
|
10
|
+
removeTool: oc.route({ method: "DELETE", path: "/workspace/tools/{name}" }).input(ToolNameParamSchema).output(OkSchema),
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=workspace.contract.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace.contract.js","sourceRoot":"","sources":["../../src/contracts/workspace.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EACH,eAAe,EACf,iBAAiB,EACjB,QAAQ,EACR,eAAe,EACf,mBAAmB,EACnB,eAAe,EACf,mBAAmB,EACnB,eAAe,EACf,wBAAwB,EACxB,mBAAmB,EACnB,mBAAmB,GACtB,MAAM,eAAe,CAAC;AAKvB,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC7B,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC,CAAC,MAAM,CAAC,mBAAmB,CAAC;IACtF,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC,MAAM,CAAC,mBAAmB,CAAC;IACtH,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC,CAAC,MAAM,CAAC,eAAe,CAAC;IACpF,OAAO,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,MAAM,CAAC,iBAAiB,CAAC;IAChH,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC,CAAC,MAAM,CAAC,eAAe,CAAC;IACpF,OAAO,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,MAAM,CAAC,mBAAmB,CAAC;IAClH,UAAU,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,yBAAyB,EAAE,CAAC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;CAC1H,CAAC"}
|
package/dist/events.d.ts
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const AskOptionSchema: z.ZodObject<{
|
|
3
|
+
label: z.ZodString;
|
|
4
|
+
description: z.ZodString;
|
|
5
|
+
preview: z.ZodOptional<z.ZodString>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export type AskOption = z.infer<typeof AskOptionSchema>;
|
|
8
|
+
export declare const AskQuestionSchema: z.ZodObject<{
|
|
9
|
+
question: z.ZodString;
|
|
10
|
+
header: z.ZodString;
|
|
11
|
+
multiSelect: z.ZodBoolean;
|
|
12
|
+
options: z.ZodArray<z.ZodObject<{
|
|
13
|
+
label: z.ZodString;
|
|
14
|
+
description: z.ZodString;
|
|
15
|
+
preview: z.ZodOptional<z.ZodString>;
|
|
16
|
+
}, z.core.$strip>>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
export type AskQuestion = z.infer<typeof AskQuestionSchema>;
|
|
19
|
+
export declare const AgentEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
20
|
+
kind: z.ZodLiteral<"session">;
|
|
21
|
+
sessionId: z.ZodString;
|
|
22
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
23
|
+
kind: z.ZodLiteral<"delta">;
|
|
24
|
+
text: z.ZodString;
|
|
25
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
26
|
+
kind: z.ZodLiteral<"tool">;
|
|
27
|
+
name: z.ZodString;
|
|
28
|
+
target: z.ZodOptional<z.ZodString>;
|
|
29
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
30
|
+
kind: z.ZodLiteral<"plan">;
|
|
31
|
+
decisionId: z.ZodString;
|
|
32
|
+
text: z.ZodString;
|
|
33
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
34
|
+
kind: z.ZodLiteral<"question">;
|
|
35
|
+
requestId: z.ZodString;
|
|
36
|
+
questions: z.ZodArray<z.ZodObject<{
|
|
37
|
+
question: z.ZodString;
|
|
38
|
+
header: z.ZodString;
|
|
39
|
+
multiSelect: z.ZodBoolean;
|
|
40
|
+
options: z.ZodArray<z.ZodObject<{
|
|
41
|
+
label: z.ZodString;
|
|
42
|
+
description: z.ZodString;
|
|
43
|
+
preview: z.ZodOptional<z.ZodString>;
|
|
44
|
+
}, z.core.$strip>>;
|
|
45
|
+
}, z.core.$strip>>;
|
|
46
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
47
|
+
kind: z.ZodLiteral<"error">;
|
|
48
|
+
message: z.ZodString;
|
|
49
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
50
|
+
kind: z.ZodLiteral<"done">;
|
|
51
|
+
}, z.core.$strip>], "kind">;
|
|
52
|
+
export type AgentEvent = z.infer<typeof AgentEventSchema>;
|
|
53
|
+
export declare const IntenticLineSchema: z.ZodObject<{
|
|
54
|
+
kind: z.ZodString;
|
|
55
|
+
}, z.core.$loose>;
|
|
56
|
+
export type IntenticLine = z.infer<typeof IntenticLineSchema>;
|
|
57
|
+
export declare const HeartbeatSchema: z.ZodObject<{
|
|
58
|
+
kind: z.ZodLiteral<"heartbeat">;
|
|
59
|
+
}, z.core.$strip>;
|
|
60
|
+
export type Heartbeat = z.infer<typeof HeartbeatSchema>;
|
|
61
|
+
//# sourceMappingURL=events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,eAAe;;;;iBAI1B,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,eAAO,MAAM,iBAAiB;;;;;;;;;iBAK5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAK5D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAQ3B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAK1D,eAAO,MAAM,kBAAkB;;iBAAsC,CAAC;AACtE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAI9D,eAAO,MAAM,eAAe;;iBAA6C,CAAC;AAC1E,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
|