@miao-ai/protocol 0.1.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/README.md +21 -0
- package/dist/LICENSE-APACHE +201 -0
- package/dist/LICENSE-MIT +21 -0
- package/dist/codec.d.ts +30 -0
- package/dist/codec.d.ts.map +1 -0
- package/dist/codec.js +296 -0
- package/dist/codec.js.map +1 -0
- package/dist/generated/fixture.d.ts +336 -0
- package/dist/generated/fixture.d.ts.map +1 -0
- package/dist/generated/fixture.js +351 -0
- package/dist/generated/fixture.js.map +1 -0
- package/dist/generated/protocol.d.ts +110 -0
- package/dist/generated/protocol.d.ts.map +1 -0
- package/dist/generated/protocol.js +50 -0
- package/dist/generated/protocol.js.map +1 -0
- package/dist/generated/schema.d.ts +357 -0
- package/dist/generated/schema.d.ts.map +1 -0
- package/dist/generated/schema.js +511 -0
- package/dist/generated/schema.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -0
- package/fixtures/runtime-v1.fixture.json +349 -0
- package/package.json +49 -0
- package/schemas/runtime-v1.schema.json +508 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fixture.js","sourceRoot":"","sources":["../../src/generated/fixture.ts"],"names":[],"mappings":"AAAA,mEAAmE;AAEnE,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,SAAS,EAAE;QACT,MAAM,EAAE,SAAS;QACjB,UAAU,EAAE,iBAAiB;QAC7B,WAAW,EAAE,YAAY;QACzB,WAAW,EAAE,kBAAkB;QAC/B,SAAS,EAAE,EAAE;KACd;IACD,mBAAmB,EAAE;QACnB,kBAAkB,EAAE;YAClB,MAAM,EAAE,SAAS;YACjB,UAAU,EAAE,iBAAiB;YAC7B,WAAW,EAAE,eAAe;YAC5B,WAAW,EAAE,kBAAkB;YAC/B,SAAS,EAAE,EAAE;SACd;QACD,eAAe,EAAE;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AAE,iBAAiB;YAC7B,WAAW,EAAE,eAAe;YAC5B,WAAW,EAAE,eAAe;YAC5B,SAAS,EAAE,EAAE;SACd;QACD,iBAAiB,EAAE;YACjB,MAAM,EAAE,SAAS;YACjB,UAAU,EAAE,iBAAiB;YAC7B,WAAW,EAAE,eAAe;YAC5B,WAAW,EAAE,iBAAiB;YAC9B,SAAS,EAAE,EAAE;SACd;QACD,gBAAgB,EAAE;YAChB,MAAM,EAAE,SAAS;YACjB,UAAU,EAAE,iBAAiB;YAC7B,WAAW,EAAE,eAAe;YAC5B,WAAW,EAAE,gBAAgB;YAC7B,SAAS,EAAE,EAAE;SACd;KACF;IACD,YAAY,EAAE;QACZ,iBAAiB,EAAE,iBAAiB;QACpC,iBAAiB,EAAE,QAAQ;QAC3B,MAAM,EAAE,SAAS;QACjB,SAAS,EAAE,SAAS;QACpB,YAAY,EAAE;YACZ,kBAAkB;YAClB,eAAe;YACf,WAAW;SACZ;QACD,UAAU,EAAE;YACV,KAAK;YACL,WAAW;YACX,mBAAmB;YACnB,QAAQ;YACR,UAAU;YACV,cAAc;YACd,cAAc;SACf;QACD,YAAY,EAAE;YACZ,OAAO;SACR;KACF;CACO,CAAC"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
export declare const RUNTIME_PROTOCOL_VERSION: "miao.runtime/v1";
|
|
2
|
+
export declare const RUNTIME_OPERATIONS: readonly ["runtime.describe", "apps.register", "apps.list", "agents.list", "agents.launch", "runs.start", "runs.get", "runs.pause", "runs.resume", "runs.cancel", "runs.signal", "events.subscribe", "events.unsubscribe", "approvals.list", "approvals.decide", "capabilities.register", "capabilities.renew", "capabilities.unregister", "state.get", "state.put", "memory.list", "memory.remember", "memory.forget", "artifacts.list", "artifacts.get", "scheduler.list", "scheduler.create", "scheduler.pause", "scheduler.resume", "scheduler.delete", "scheduler.history", "skills.list", "skills.reload", "mcp.list", "mcp.reload", "plugins.list", "plugins.install", "plugins.set_enabled", "bindings.list", "bindings.create", "messages.deliver", "delegations.create", "gateway.serve", "triggers.create", "workbench.open"];
|
|
3
|
+
export type RuntimeProfile = "minimal" | "stable" | "full";
|
|
4
|
+
export type RuntimeMode = "embedded" | "process" | "server";
|
|
5
|
+
export type RuntimeFeature = "app" | "agent_run" | "host_capabilities" | "policy" | "approval" | "cancellation" | "event_stream" | "persistence" | "workflow" | "operational_state" | "memory" | "artifact" | "scheduler" | "skills" | "mcp" | "multi_agent" | "bindings" | "workspace_sandbox" | "plugin_wasm" | "audit" | "local_socket" | "http_server" | "sse" | "web_socket" | "triggers" | "workbench" | "admin_cli" | "server_supervisor" | "remote_plugin_management" | "full_sandbox";
|
|
6
|
+
export type RuntimeTransport = "stdio" | "local_socket" | "http" | "sse" | "web_socket";
|
|
7
|
+
export type RuntimeOperation = (typeof RUNTIME_OPERATIONS)[number];
|
|
8
|
+
export interface RuntimeDescriptor {
|
|
9
|
+
protocolVersion: typeof RUNTIME_PROTOCOL_VERSION;
|
|
10
|
+
platformVersion: string;
|
|
11
|
+
mode: RuntimeMode;
|
|
12
|
+
profile: RuntimeProfile;
|
|
13
|
+
operations: RuntimeOperation[];
|
|
14
|
+
features: RuntimeFeature[];
|
|
15
|
+
transports: RuntimeTransport[];
|
|
16
|
+
}
|
|
17
|
+
export type RuntimeRequest = {
|
|
18
|
+
type: "request";
|
|
19
|
+
protocol: typeof RUNTIME_PROTOCOL_VERSION;
|
|
20
|
+
requestId: string;
|
|
21
|
+
operation: RuntimeOperation;
|
|
22
|
+
payload: unknown;
|
|
23
|
+
};
|
|
24
|
+
export type RuntimeResponse = {
|
|
25
|
+
type: "response";
|
|
26
|
+
protocol: typeof RUNTIME_PROTOCOL_VERSION;
|
|
27
|
+
requestId: string;
|
|
28
|
+
} & RuntimeResponseStatus;
|
|
29
|
+
export type RuntimeEventFrame = {
|
|
30
|
+
type: "event";
|
|
31
|
+
protocol: typeof RUNTIME_PROTOCOL_VERSION;
|
|
32
|
+
subscriptionId: string;
|
|
33
|
+
sequence: number;
|
|
34
|
+
event: RuntimeEvent;
|
|
35
|
+
};
|
|
36
|
+
export type HostCallRequest = {
|
|
37
|
+
type: "host_call";
|
|
38
|
+
protocol: typeof RUNTIME_PROTOCOL_VERSION;
|
|
39
|
+
callId: string;
|
|
40
|
+
capability: string;
|
|
41
|
+
input: unknown;
|
|
42
|
+
deadlineMs: number;
|
|
43
|
+
context: HostCallContext;
|
|
44
|
+
};
|
|
45
|
+
export type HostCallResponse = {
|
|
46
|
+
type: "host_result";
|
|
47
|
+
protocol: typeof RUNTIME_PROTOCOL_VERSION;
|
|
48
|
+
callId: string;
|
|
49
|
+
} & HostCallStatus;
|
|
50
|
+
export type CancellationFrame = {
|
|
51
|
+
type: "cancel";
|
|
52
|
+
protocol: typeof RUNTIME_PROTOCOL_VERSION;
|
|
53
|
+
target: CancellationTarget;
|
|
54
|
+
reason?: string;
|
|
55
|
+
};
|
|
56
|
+
export type HeartbeatFrame = {
|
|
57
|
+
type: "ping" | "pong";
|
|
58
|
+
protocol: typeof RUNTIME_PROTOCOL_VERSION;
|
|
59
|
+
nonce: string;
|
|
60
|
+
};
|
|
61
|
+
export type RuntimeFrame = RuntimeRequest | RuntimeResponse | RuntimeEventFrame | HostCallRequest | HostCallResponse | CancellationFrame | HeartbeatFrame;
|
|
62
|
+
export type RuntimeResponseStatus = {
|
|
63
|
+
status: "success";
|
|
64
|
+
result: unknown;
|
|
65
|
+
} | {
|
|
66
|
+
status: "error";
|
|
67
|
+
error: RuntimeError;
|
|
68
|
+
};
|
|
69
|
+
export interface RuntimeError {
|
|
70
|
+
code: string;
|
|
71
|
+
message: string;
|
|
72
|
+
retryable: boolean;
|
|
73
|
+
runId?: string;
|
|
74
|
+
details?: unknown;
|
|
75
|
+
}
|
|
76
|
+
export interface RuntimeEvent {
|
|
77
|
+
type: string;
|
|
78
|
+
runId?: string;
|
|
79
|
+
payload: unknown;
|
|
80
|
+
}
|
|
81
|
+
export interface HostCallContext {
|
|
82
|
+
runId: string;
|
|
83
|
+
principal: string;
|
|
84
|
+
namespace: string;
|
|
85
|
+
traceId?: string;
|
|
86
|
+
}
|
|
87
|
+
export type HostCallStatus = {
|
|
88
|
+
status: "success";
|
|
89
|
+
output: unknown;
|
|
90
|
+
} | {
|
|
91
|
+
status: "error";
|
|
92
|
+
error: RuntimeError;
|
|
93
|
+
} | {
|
|
94
|
+
status: "cancelled";
|
|
95
|
+
reason: string;
|
|
96
|
+
};
|
|
97
|
+
export type CancellationTarget = {
|
|
98
|
+
kind: "request";
|
|
99
|
+
requestId: string;
|
|
100
|
+
} | {
|
|
101
|
+
kind: "run";
|
|
102
|
+
runId: string;
|
|
103
|
+
} | {
|
|
104
|
+
kind: "host_call";
|
|
105
|
+
callId: string;
|
|
106
|
+
} | {
|
|
107
|
+
kind: "subscription";
|
|
108
|
+
subscriptionId: string;
|
|
109
|
+
};
|
|
110
|
+
//# sourceMappingURL=protocol.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"protocol.d.ts","sourceRoot":"","sources":["../../src/generated/protocol.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,wBAAwB,EAAG,iBAA0B,CAAC;AACnE,eAAO,MAAM,kBAAkB,0yBA8CrB,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAC;AAC3D,MAAM,MAAM,WAAW,GAAG,UAAU,GAAG,SAAS,GAAG,QAAQ,CAAC;AAC5D,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,WAAW,GAAG,mBAAmB,GAAG,QAAQ,GAAG,UAAU,GAAG,cAAc,GAAG,cAAc,GAAG,aAAa,GAAG,UAAU,GAAG,mBAAmB,GAAG,QAAQ,GAAG,UAAU,GAAG,WAAW,GAAG,QAAQ,GAAG,KAAK,GAAG,aAAa,GAAG,UAAU,GAAG,mBAAmB,GAAG,aAAa,GAAG,OAAO,GAAG,cAAc,GAAG,aAAa,GAAG,KAAK,GAAG,YAAY,GAAG,UAAU,GAAG,WA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ChF,MAAM,WAAW,eAAe;IAAG,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE;AAC1G,MAAM,MAAM,cAAc,GAAG;IAAE,MAAM,EAAE,SAAS,CAAC;IAAC,MAAM,EAAE,OAAO,CAAA;CAAE,GAAG;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,YAAY,CAAA;CAAE,GAAG;IAAE,MAAM,EAAE,WAAW,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AACzJ,MAAM,MAAM,kBAAkB,GAAG;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,cAAc,CAAC;IAAC,cAAc,EAAE,MAAM,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// Generated by scripts/generate-runtime-protocol.mjs. Do not edit.
|
|
2
|
+
export const RUNTIME_PROTOCOL_VERSION = "miao.runtime/v1";
|
|
3
|
+
export const RUNTIME_OPERATIONS = [
|
|
4
|
+
"runtime.describe",
|
|
5
|
+
"apps.register",
|
|
6
|
+
"apps.list",
|
|
7
|
+
"agents.list",
|
|
8
|
+
"agents.launch",
|
|
9
|
+
"runs.start",
|
|
10
|
+
"runs.get",
|
|
11
|
+
"runs.pause",
|
|
12
|
+
"runs.resume",
|
|
13
|
+
"runs.cancel",
|
|
14
|
+
"runs.signal",
|
|
15
|
+
"events.subscribe",
|
|
16
|
+
"events.unsubscribe",
|
|
17
|
+
"approvals.list",
|
|
18
|
+
"approvals.decide",
|
|
19
|
+
"capabilities.register",
|
|
20
|
+
"capabilities.renew",
|
|
21
|
+
"capabilities.unregister",
|
|
22
|
+
"state.get",
|
|
23
|
+
"state.put",
|
|
24
|
+
"memory.list",
|
|
25
|
+
"memory.remember",
|
|
26
|
+
"memory.forget",
|
|
27
|
+
"artifacts.list",
|
|
28
|
+
"artifacts.get",
|
|
29
|
+
"scheduler.list",
|
|
30
|
+
"scheduler.create",
|
|
31
|
+
"scheduler.pause",
|
|
32
|
+
"scheduler.resume",
|
|
33
|
+
"scheduler.delete",
|
|
34
|
+
"scheduler.history",
|
|
35
|
+
"skills.list",
|
|
36
|
+
"skills.reload",
|
|
37
|
+
"mcp.list",
|
|
38
|
+
"mcp.reload",
|
|
39
|
+
"plugins.list",
|
|
40
|
+
"plugins.install",
|
|
41
|
+
"plugins.set_enabled",
|
|
42
|
+
"bindings.list",
|
|
43
|
+
"bindings.create",
|
|
44
|
+
"messages.deliver",
|
|
45
|
+
"delegations.create",
|
|
46
|
+
"gateway.serve",
|
|
47
|
+
"triggers.create",
|
|
48
|
+
"workbench.open"
|
|
49
|
+
];
|
|
50
|
+
//# sourceMappingURL=protocol.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"protocol.js","sourceRoot":"","sources":["../../src/generated/protocol.ts"],"names":[],"mappings":"AAAA,mEAAmE;AAEnE,MAAM,CAAC,MAAM,wBAAwB,GAAG,iBAA0B,CAAC;AACnE,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,kBAAkB;IAClB,eAAe;IACf,WAAW;IACX,aAAa;IACb,eAAe;IACf,YAAY;IACZ,UAAU;IACV,YAAY;IACZ,aAAa;IACb,aAAa;IACb,aAAa;IACb,kBAAkB;IAClB,oBAAoB;IACpB,gBAAgB;IAChB,kBAAkB;IAClB,uBAAuB;IACvB,oBAAoB;IACpB,yBAAyB;IACzB,WAAW;IACX,WAAW;IACX,aAAa;IACb,iBAAiB;IACjB,eAAe;IACf,gBAAgB;IAChB,eAAe;IACf,gBAAgB;IAChB,kBAAkB;IAClB,iBAAiB;IACjB,kBAAkB;IAClB,kBAAkB;IAClB,mBAAmB;IACnB,aAAa;IACb,eAAe;IACf,UAAU;IACV,YAAY;IACZ,cAAc;IACd,iBAAiB;IACjB,qBAAqB;IACrB,eAAe;IACf,iBAAiB;IACjB,kBAAkB;IAClB,oBAAoB;IACpB,eAAe;IACf,iBAAiB;IACjB,gBAAgB;CACR,CAAC"}
|
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
export declare const RUNTIME_PROTOCOL_SCHEMA_SHA256: "fdf7439605a3a20a88da4ac89a1b92bc2a880c112f116ffa006b8d5765bb678b";
|
|
2
|
+
export declare const runtimeV1Schema: {
|
|
3
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
4
|
+
readonly title: "Miao Runtime Protocol v1";
|
|
5
|
+
readonly oneOf: readonly [{
|
|
6
|
+
readonly type: "object";
|
|
7
|
+
readonly required: readonly ["type", "protocol", "requestId", "operation", "payload"];
|
|
8
|
+
readonly properties: {
|
|
9
|
+
readonly type: {
|
|
10
|
+
readonly const: "request";
|
|
11
|
+
};
|
|
12
|
+
readonly protocol: {
|
|
13
|
+
readonly const: "miao.runtime/v1";
|
|
14
|
+
};
|
|
15
|
+
readonly requestId: {
|
|
16
|
+
readonly type: "string";
|
|
17
|
+
readonly minLength: 1;
|
|
18
|
+
};
|
|
19
|
+
readonly operation: {
|
|
20
|
+
readonly enum: readonly ["runtime.describe", "apps.register", "apps.list", "agents.list", "agents.launch", "runs.start", "runs.get", "runs.pause", "runs.resume", "runs.cancel", "runs.signal", "events.subscribe", "events.unsubscribe", "approvals.list", "approvals.decide", "capabilities.register", "capabilities.renew", "capabilities.unregister", "state.get", "state.put", "memory.list", "memory.remember", "memory.forget", "artifacts.list", "artifacts.get", "scheduler.list", "scheduler.create", "scheduler.pause", "scheduler.resume", "scheduler.delete", "scheduler.history", "skills.list", "skills.reload", "mcp.list", "mcp.reload", "plugins.list", "plugins.install", "plugins.set_enabled", "bindings.list", "bindings.create", "messages.deliver", "delegations.create", "gateway.serve", "triggers.create", "workbench.open"];
|
|
21
|
+
};
|
|
22
|
+
readonly payload: {};
|
|
23
|
+
};
|
|
24
|
+
readonly additionalProperties: true;
|
|
25
|
+
}, {
|
|
26
|
+
readonly type: "object";
|
|
27
|
+
readonly required: readonly ["type", "protocol", "requestId", "status"];
|
|
28
|
+
readonly properties: {
|
|
29
|
+
readonly type: {
|
|
30
|
+
readonly const: "response";
|
|
31
|
+
};
|
|
32
|
+
readonly protocol: {
|
|
33
|
+
readonly const: "miao.runtime/v1";
|
|
34
|
+
};
|
|
35
|
+
readonly requestId: {
|
|
36
|
+
readonly type: "string";
|
|
37
|
+
readonly minLength: 1;
|
|
38
|
+
};
|
|
39
|
+
readonly status: {
|
|
40
|
+
readonly enum: readonly ["success", "error"];
|
|
41
|
+
};
|
|
42
|
+
readonly result: {};
|
|
43
|
+
readonly error: {
|
|
44
|
+
readonly type: "object";
|
|
45
|
+
readonly required: readonly ["code", "message", "retryable"];
|
|
46
|
+
readonly properties: {
|
|
47
|
+
readonly code: {
|
|
48
|
+
readonly type: "string";
|
|
49
|
+
readonly minLength: 1;
|
|
50
|
+
};
|
|
51
|
+
readonly message: {
|
|
52
|
+
readonly type: "string";
|
|
53
|
+
};
|
|
54
|
+
readonly retryable: {
|
|
55
|
+
readonly type: "boolean";
|
|
56
|
+
};
|
|
57
|
+
readonly runId: {
|
|
58
|
+
readonly type: "string";
|
|
59
|
+
readonly minLength: 1;
|
|
60
|
+
};
|
|
61
|
+
readonly details: {};
|
|
62
|
+
};
|
|
63
|
+
readonly additionalProperties: true;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
readonly allOf: readonly [{
|
|
67
|
+
readonly if: {
|
|
68
|
+
readonly properties: {
|
|
69
|
+
readonly status: {
|
|
70
|
+
readonly const: "success";
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
readonly then: {
|
|
75
|
+
readonly required: readonly ["result"];
|
|
76
|
+
};
|
|
77
|
+
}, {
|
|
78
|
+
readonly if: {
|
|
79
|
+
readonly properties: {
|
|
80
|
+
readonly status: {
|
|
81
|
+
readonly const: "error";
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
readonly then: {
|
|
86
|
+
readonly required: readonly ["error"];
|
|
87
|
+
};
|
|
88
|
+
}];
|
|
89
|
+
readonly additionalProperties: true;
|
|
90
|
+
}, {
|
|
91
|
+
readonly type: "object";
|
|
92
|
+
readonly required: readonly ["type", "protocol", "subscriptionId", "sequence", "event"];
|
|
93
|
+
readonly properties: {
|
|
94
|
+
readonly type: {
|
|
95
|
+
readonly const: "event";
|
|
96
|
+
};
|
|
97
|
+
readonly protocol: {
|
|
98
|
+
readonly const: "miao.runtime/v1";
|
|
99
|
+
};
|
|
100
|
+
readonly subscriptionId: {
|
|
101
|
+
readonly type: "string";
|
|
102
|
+
readonly minLength: 1;
|
|
103
|
+
};
|
|
104
|
+
readonly sequence: {
|
|
105
|
+
readonly type: "integer";
|
|
106
|
+
readonly minimum: 0;
|
|
107
|
+
};
|
|
108
|
+
readonly event: {
|
|
109
|
+
readonly type: "object";
|
|
110
|
+
readonly required: readonly ["type", "payload"];
|
|
111
|
+
readonly properties: {
|
|
112
|
+
readonly type: {
|
|
113
|
+
readonly type: "string";
|
|
114
|
+
readonly minLength: 1;
|
|
115
|
+
};
|
|
116
|
+
readonly runId: {
|
|
117
|
+
readonly type: "string";
|
|
118
|
+
readonly minLength: 1;
|
|
119
|
+
};
|
|
120
|
+
readonly payload: {};
|
|
121
|
+
};
|
|
122
|
+
readonly additionalProperties: true;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
readonly additionalProperties: true;
|
|
126
|
+
}, {
|
|
127
|
+
readonly type: "object";
|
|
128
|
+
readonly required: readonly ["type", "protocol", "callId", "capability", "input", "deadlineMs", "context"];
|
|
129
|
+
readonly properties: {
|
|
130
|
+
readonly type: {
|
|
131
|
+
readonly const: "host_call";
|
|
132
|
+
};
|
|
133
|
+
readonly protocol: {
|
|
134
|
+
readonly const: "miao.runtime/v1";
|
|
135
|
+
};
|
|
136
|
+
readonly callId: {
|
|
137
|
+
readonly type: "string";
|
|
138
|
+
readonly minLength: 1;
|
|
139
|
+
};
|
|
140
|
+
readonly capability: {
|
|
141
|
+
readonly type: "string";
|
|
142
|
+
readonly minLength: 1;
|
|
143
|
+
};
|
|
144
|
+
readonly input: {};
|
|
145
|
+
readonly deadlineMs: {
|
|
146
|
+
readonly type: "integer";
|
|
147
|
+
readonly minimum: 1;
|
|
148
|
+
};
|
|
149
|
+
readonly context: {
|
|
150
|
+
readonly type: "object";
|
|
151
|
+
readonly required: readonly ["runId", "principal", "namespace"];
|
|
152
|
+
readonly properties: {
|
|
153
|
+
readonly runId: {
|
|
154
|
+
readonly type: "string";
|
|
155
|
+
readonly minLength: 1;
|
|
156
|
+
};
|
|
157
|
+
readonly principal: {
|
|
158
|
+
readonly type: "string";
|
|
159
|
+
readonly minLength: 1;
|
|
160
|
+
};
|
|
161
|
+
readonly namespace: {
|
|
162
|
+
readonly type: "string";
|
|
163
|
+
readonly minLength: 1;
|
|
164
|
+
};
|
|
165
|
+
readonly traceId: {
|
|
166
|
+
readonly type: "string";
|
|
167
|
+
readonly minLength: 1;
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
readonly additionalProperties: true;
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
readonly additionalProperties: true;
|
|
174
|
+
}, {
|
|
175
|
+
readonly type: "object";
|
|
176
|
+
readonly required: readonly ["type", "protocol", "callId", "status"];
|
|
177
|
+
readonly properties: {
|
|
178
|
+
readonly type: {
|
|
179
|
+
readonly const: "host_result";
|
|
180
|
+
};
|
|
181
|
+
readonly protocol: {
|
|
182
|
+
readonly const: "miao.runtime/v1";
|
|
183
|
+
};
|
|
184
|
+
readonly callId: {
|
|
185
|
+
readonly type: "string";
|
|
186
|
+
readonly minLength: 1;
|
|
187
|
+
};
|
|
188
|
+
readonly status: {
|
|
189
|
+
readonly enum: readonly ["success", "error", "cancelled"];
|
|
190
|
+
};
|
|
191
|
+
readonly output: {};
|
|
192
|
+
readonly error: {
|
|
193
|
+
readonly type: "object";
|
|
194
|
+
readonly required: readonly ["code", "message", "retryable"];
|
|
195
|
+
readonly properties: {
|
|
196
|
+
readonly code: {
|
|
197
|
+
readonly type: "string";
|
|
198
|
+
readonly minLength: 1;
|
|
199
|
+
};
|
|
200
|
+
readonly message: {
|
|
201
|
+
readonly type: "string";
|
|
202
|
+
};
|
|
203
|
+
readonly retryable: {
|
|
204
|
+
readonly type: "boolean";
|
|
205
|
+
};
|
|
206
|
+
readonly runId: {
|
|
207
|
+
readonly type: "string";
|
|
208
|
+
readonly minLength: 1;
|
|
209
|
+
};
|
|
210
|
+
readonly details: {};
|
|
211
|
+
};
|
|
212
|
+
readonly additionalProperties: true;
|
|
213
|
+
};
|
|
214
|
+
readonly reason: {
|
|
215
|
+
readonly type: "string";
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
readonly allOf: readonly [{
|
|
219
|
+
readonly if: {
|
|
220
|
+
readonly properties: {
|
|
221
|
+
readonly status: {
|
|
222
|
+
readonly const: "success";
|
|
223
|
+
};
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
readonly then: {
|
|
227
|
+
readonly required: readonly ["output"];
|
|
228
|
+
};
|
|
229
|
+
}, {
|
|
230
|
+
readonly if: {
|
|
231
|
+
readonly properties: {
|
|
232
|
+
readonly status: {
|
|
233
|
+
readonly const: "error";
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
readonly then: {
|
|
238
|
+
readonly required: readonly ["error"];
|
|
239
|
+
};
|
|
240
|
+
}, {
|
|
241
|
+
readonly if: {
|
|
242
|
+
readonly properties: {
|
|
243
|
+
readonly status: {
|
|
244
|
+
readonly const: "cancelled";
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
readonly then: {
|
|
249
|
+
readonly required: readonly ["reason"];
|
|
250
|
+
};
|
|
251
|
+
}];
|
|
252
|
+
readonly additionalProperties: true;
|
|
253
|
+
}, {
|
|
254
|
+
readonly type: "object";
|
|
255
|
+
readonly required: readonly ["type", "protocol", "target"];
|
|
256
|
+
readonly properties: {
|
|
257
|
+
readonly type: {
|
|
258
|
+
readonly const: "cancel";
|
|
259
|
+
};
|
|
260
|
+
readonly protocol: {
|
|
261
|
+
readonly const: "miao.runtime/v1";
|
|
262
|
+
};
|
|
263
|
+
readonly target: {
|
|
264
|
+
readonly oneOf: readonly [{
|
|
265
|
+
readonly type: "object";
|
|
266
|
+
readonly required: readonly ["kind", "requestId"];
|
|
267
|
+
readonly properties: {
|
|
268
|
+
readonly kind: {
|
|
269
|
+
readonly const: "request";
|
|
270
|
+
};
|
|
271
|
+
readonly requestId: {
|
|
272
|
+
readonly type: "string";
|
|
273
|
+
readonly minLength: 1;
|
|
274
|
+
};
|
|
275
|
+
};
|
|
276
|
+
readonly additionalProperties: true;
|
|
277
|
+
}, {
|
|
278
|
+
readonly type: "object";
|
|
279
|
+
readonly required: readonly ["kind", "runId"];
|
|
280
|
+
readonly properties: {
|
|
281
|
+
readonly kind: {
|
|
282
|
+
readonly const: "run";
|
|
283
|
+
};
|
|
284
|
+
readonly runId: {
|
|
285
|
+
readonly type: "string";
|
|
286
|
+
readonly minLength: 1;
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
readonly additionalProperties: true;
|
|
290
|
+
}, {
|
|
291
|
+
readonly type: "object";
|
|
292
|
+
readonly required: readonly ["kind", "callId"];
|
|
293
|
+
readonly properties: {
|
|
294
|
+
readonly kind: {
|
|
295
|
+
readonly const: "host_call";
|
|
296
|
+
};
|
|
297
|
+
readonly callId: {
|
|
298
|
+
readonly type: "string";
|
|
299
|
+
readonly minLength: 1;
|
|
300
|
+
};
|
|
301
|
+
};
|
|
302
|
+
readonly additionalProperties: true;
|
|
303
|
+
}, {
|
|
304
|
+
readonly type: "object";
|
|
305
|
+
readonly required: readonly ["kind", "subscriptionId"];
|
|
306
|
+
readonly properties: {
|
|
307
|
+
readonly kind: {
|
|
308
|
+
readonly const: "subscription";
|
|
309
|
+
};
|
|
310
|
+
readonly subscriptionId: {
|
|
311
|
+
readonly type: "string";
|
|
312
|
+
readonly minLength: 1;
|
|
313
|
+
};
|
|
314
|
+
};
|
|
315
|
+
readonly additionalProperties: true;
|
|
316
|
+
}];
|
|
317
|
+
};
|
|
318
|
+
readonly reason: {
|
|
319
|
+
readonly type: "string";
|
|
320
|
+
};
|
|
321
|
+
};
|
|
322
|
+
readonly additionalProperties: true;
|
|
323
|
+
}, {
|
|
324
|
+
readonly type: "object";
|
|
325
|
+
readonly required: readonly ["type", "protocol", "nonce"];
|
|
326
|
+
readonly properties: {
|
|
327
|
+
readonly type: {
|
|
328
|
+
readonly const: "ping";
|
|
329
|
+
};
|
|
330
|
+
readonly protocol: {
|
|
331
|
+
readonly const: "miao.runtime/v1";
|
|
332
|
+
};
|
|
333
|
+
readonly nonce: {
|
|
334
|
+
readonly type: "string";
|
|
335
|
+
readonly minLength: 1;
|
|
336
|
+
};
|
|
337
|
+
};
|
|
338
|
+
readonly additionalProperties: true;
|
|
339
|
+
}, {
|
|
340
|
+
readonly type: "object";
|
|
341
|
+
readonly required: readonly ["type", "protocol", "nonce"];
|
|
342
|
+
readonly properties: {
|
|
343
|
+
readonly type: {
|
|
344
|
+
readonly const: "pong";
|
|
345
|
+
};
|
|
346
|
+
readonly protocol: {
|
|
347
|
+
readonly const: "miao.runtime/v1";
|
|
348
|
+
};
|
|
349
|
+
readonly nonce: {
|
|
350
|
+
readonly type: "string";
|
|
351
|
+
readonly minLength: 1;
|
|
352
|
+
};
|
|
353
|
+
};
|
|
354
|
+
readonly additionalProperties: true;
|
|
355
|
+
}];
|
|
356
|
+
};
|
|
357
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/generated/schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,8BAA8B,EAAG,kEAA2E,CAAC;AAC1H,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2flB,CAAC"}
|