@sixb/server 0.1.19 → 0.1.21
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 +13 -22
- package/dist/artifacts/frame.d.ts +13 -0
- package/dist/artifacts/frame.d.ts.map +1 -0
- package/dist/auth/browser-origin.d.ts +9 -26
- package/dist/auth/browser-origin.d.ts.map +1 -1
- package/dist/auth/experience.d.ts +0 -3
- package/dist/auth/experience.d.ts.map +1 -1
- package/dist/auth/guard.d.ts +1 -1
- package/dist/auth/guard.d.ts.map +1 -1
- package/dist/auth/public-routes.d.ts +0 -5
- package/dist/auth/public-routes.d.ts.map +1 -1
- package/dist/auth/responses.d.ts +0 -2
- package/dist/auth/responses.d.ts.map +1 -1
- package/dist/auth/session-cookies.d.ts.map +1 -1
- package/dist/files/content.d.ts +2 -3
- package/dist/files/content.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3241 -2445
- package/dist/index.js.map +31 -26
- package/dist/openapi/tags.d.ts +10 -2
- package/dist/openapi/tags.d.ts.map +1 -1
- package/dist/registerRoutes.d.ts +3 -0
- package/dist/registerRoutes.d.ts.map +1 -1
- package/dist/routes/action-runs.d.ts +0 -2
- package/dist/routes/action-runs.d.ts.map +1 -1
- package/dist/routes/activity.d.ts +35 -0
- package/dist/routes/activity.d.ts.map +1 -0
- package/dist/routes/agents.d.ts +18 -29
- package/dist/routes/agents.d.ts.map +1 -1
- package/dist/routes/artifact-frames.d.ts +98 -0
- package/dist/routes/artifact-frames.d.ts.map +1 -0
- package/dist/routes/artifacts.d.ts +852 -0
- package/dist/routes/artifacts.d.ts.map +1 -0
- package/dist/routes/auth.d.ts +9 -18
- package/dist/routes/auth.d.ts.map +1 -1
- package/dist/routes/connector-connection-runs.d.ts +59 -59
- package/dist/routes/connector-connections.d.ts +2 -2
- package/dist/routes/datasets.d.ts +7 -7
- package/dist/routes/events.d.ts +1 -1
- package/dist/routes/objects.d.ts +0 -2
- package/dist/routes/objects.d.ts.map +1 -1
- package/dist/routes/pipelines.d.ts +31 -31
- package/dist/routes/projections.d.ts +10 -10
- package/dist/routes/share-grants.d.ts +5 -5
- package/dist/routes/syncs.d.ts +38 -38
- package/dist/routes/workflows.d.ts +30 -34
- package/dist/routes/workflows.d.ts.map +1 -1
- package/dist/routes/ws/events.d.ts.map +1 -1
- package/dist/routes/ws/subscription-hub.d.ts +8 -3
- package/dist/routes/ws/subscription-hub.d.ts.map +1 -1
- package/dist/schemas/activity.d.ts +1278 -0
- package/dist/schemas/activity.d.ts.map +1 -0
- package/dist/schemas/agents.d.ts +96 -144
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/ai-accounting.d.ts +24 -24
- package/dist/schemas/ai-limits.d.ts +26 -26
- package/dist/schemas/artifacts.d.ts +1305 -0
- package/dist/schemas/artifacts.d.ts.map +1 -0
- package/dist/schemas/auth.d.ts +34 -69
- package/dist/schemas/auth.d.ts.map +1 -1
- package/dist/schemas/connectors.d.ts +30 -30
- package/dist/schemas/datasets.d.ts +10 -10
- package/dist/schemas/events.d.ts +6 -6
- package/dist/schemas/files.d.ts +0 -3
- package/dist/schemas/files.d.ts.map +1 -1
- package/dist/schemas/pipelines.d.ts +35 -35
- package/dist/schemas/projections.d.ts +40 -40
- package/dist/schemas/share-grants.d.ts +16 -16
- package/dist/schemas/syncs.d.ts +36 -36
- package/dist/schemas/workflows.d.ts +84 -84
- package/dist/server.d.ts +1 -2
- package/dist/server.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/artifacts/frame.ts +46 -0
- package/src/auth/browser-origin.ts +40 -240
- package/src/auth/experience.ts +1 -4
- package/src/auth/guard.ts +4 -32
- package/src/auth/public-routes.ts +11 -10
- package/src/auth/responses.ts +0 -5
- package/src/auth/session-cookies.ts +1 -3
- package/src/auth/shared-access.ts +1 -1
- package/src/files/content.ts +9 -13
- package/src/index.ts +1 -1
- package/src/openapi/tags.ts +8 -0
- package/src/registerRoutes.ts +9 -0
- package/src/routes/activity.ts +327 -0
- package/src/routes/agents.ts +1 -1
- package/src/routes/artifact-frames.ts +138 -0
- package/src/routes/artifacts.ts +442 -0
- package/src/routes/auth.ts +32 -111
- package/src/routes/file-downloads.ts +1 -3
- package/src/routes/ws/events.ts +3 -2
- package/src/routes/ws/subscription-hub.ts +53 -20
- package/src/schemas/activity.ts +285 -0
- package/src/schemas/agents.ts +1 -2
- package/src/schemas/artifacts.ts +158 -0
- package/src/schemas/auth.ts +2 -15
- package/src/schemas/files.ts +0 -6
- package/src/server.ts +27 -24
- package/dist/auth/application-access.d.ts +0 -4
- package/dist/auth/application-access.d.ts.map +0 -1
- package/src/auth/application-access.ts +0 -15
package/dist/openapi/tags.d.ts
CHANGED
|
@@ -123,6 +123,10 @@ export declare const OPENAPI_TAGS: {
|
|
|
123
123
|
readonly name: "Files";
|
|
124
124
|
readonly description: "File uploads and file references";
|
|
125
125
|
};
|
|
126
|
+
readonly artifacts: {
|
|
127
|
+
readonly name: "Artifacts";
|
|
128
|
+
readonly description: "Versioned documents, sheets, slides, pages, and files";
|
|
129
|
+
};
|
|
126
130
|
readonly links: {
|
|
127
131
|
readonly name: "Links";
|
|
128
132
|
readonly description: "Object relationship links";
|
|
@@ -139,6 +143,10 @@ export declare const OPENAPI_TAGS: {
|
|
|
139
143
|
readonly name: "Logs";
|
|
140
144
|
readonly description: "Run log stream";
|
|
141
145
|
};
|
|
146
|
+
readonly activity: {
|
|
147
|
+
readonly name: "Activity";
|
|
148
|
+
readonly description: "Visits and page views in the project's app and its shared links";
|
|
149
|
+
};
|
|
142
150
|
readonly authSessions: {
|
|
143
151
|
readonly name: "Auth Sessions";
|
|
144
152
|
readonly description: "Authentication sessions and sign-out";
|
|
@@ -165,7 +173,7 @@ export declare const OPENAPI_TAGS: {
|
|
|
165
173
|
};
|
|
166
174
|
};
|
|
167
175
|
export declare const OPENAPI_TAG_METADATA: {
|
|
168
|
-
name: "Project" | "Status" | "AI Accounting" | "Ontology" | "Connectors" | "Connector Connections" | "Connector Connection Runs" | "Webhooks" | "Datasets" | "Dataset Versions" | "Dataset Rows" | "Syncs" | "Sync Runs" | "Pipelines" | "Pipeline Runs" | "Workflows" | "Workflow Runs" | "Workflow Interventions" | "Rules" | "Rule States" | "Projections" | "Projection Runs" | "Objects" | "Object Files" | "Actions" | "Action Runs" | "Agents" | "Models" | "Agent Threads" | "Agent Runs" | "Files" | "Links" | "Telemetry" | "Events" | "Logs" | "Auth Sessions" | "Auth Members" | "Auth Invitations" | "Auth Access Tokens" | "Auth Service Accounts" | "Shared Access";
|
|
169
|
-
description: "Current project metadata" | "Runtime status" | "Project AI token usage, cost analytics, and model-call accounting" | "Object type definitions" | "Connector metadata" | "Connected external accounts" | "Interactive OAuth connection runs" | "Webhook run history" | "Dataset definitions" | "Dataset version history" | "Dataset row previews" | "Sync metadata" | "Sync run history and requests" | "Pipeline metadata" | "Pipeline run history and requests" | "Workflow metadata" | "Workflow run history and requests" | "Workflow intervention tasks" | "Rule definitions" | "Active rule states" | "Projection definitions" | "Projection run history" | "Twin objects and state" | "Object-backed file content" | "Action metadata and requests" | "Action run history" | "Agent catalog" | "Project model catalog" | "Agent conversation threads and messages" | "Agent run state and cancellation" | "File uploads and file references" | "Object relationship links" | "Telemetry history and appends" | "Domain event stream" | "Run log stream" | "Authentication sessions and sign-out" | "User membership administration" | "User invitations" | "Personal access-token management" | "Service accounts and service-account access tokens" | "Scoped shared-access grant lifecycle";
|
|
176
|
+
name: "Project" | "Status" | "AI Accounting" | "Ontology" | "Connectors" | "Connector Connections" | "Connector Connection Runs" | "Webhooks" | "Datasets" | "Dataset Versions" | "Dataset Rows" | "Syncs" | "Sync Runs" | "Pipelines" | "Pipeline Runs" | "Workflows" | "Workflow Runs" | "Workflow Interventions" | "Rules" | "Rule States" | "Projections" | "Projection Runs" | "Objects" | "Object Files" | "Actions" | "Action Runs" | "Agents" | "Models" | "Agent Threads" | "Agent Runs" | "Files" | "Artifacts" | "Links" | "Telemetry" | "Events" | "Logs" | "Activity" | "Auth Sessions" | "Auth Members" | "Auth Invitations" | "Auth Access Tokens" | "Auth Service Accounts" | "Shared Access";
|
|
177
|
+
description: "Current project metadata" | "Runtime status" | "Project AI token usage, cost analytics, and model-call accounting" | "Object type definitions" | "Connector metadata" | "Connected external accounts" | "Interactive OAuth connection runs" | "Webhook run history" | "Dataset definitions" | "Dataset version history" | "Dataset row previews" | "Sync metadata" | "Sync run history and requests" | "Pipeline metadata" | "Pipeline run history and requests" | "Workflow metadata" | "Workflow run history and requests" | "Workflow intervention tasks" | "Rule definitions" | "Active rule states" | "Projection definitions" | "Projection run history" | "Twin objects and state" | "Object-backed file content" | "Action metadata and requests" | "Action run history" | "Agent catalog" | "Project model catalog" | "Agent conversation threads and messages" | "Agent run state and cancellation" | "File uploads and file references" | "Versioned documents, sheets, slides, pages, and files" | "Object relationship links" | "Telemetry history and appends" | "Domain event stream" | "Run log stream" | "Visits and page views in the project's app and its shared links" | "Authentication sessions and sign-out" | "User membership administration" | "User invitations" | "Personal access-token management" | "Service accounts and service-account access tokens" | "Scoped shared-access grant lifecycle";
|
|
170
178
|
}[];
|
|
171
179
|
//# sourceMappingURL=tags.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tags.d.ts","sourceRoot":"","sources":["../../src/openapi/tags.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"tags.d.ts","sourceRoot":"","sources":["../../src/openapi/tags.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6Kf,CAAA;AAEV,eAAO,MAAM,oBAAoB;;;GAG9B,CAAA"}
|
package/dist/registerRoutes.d.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import type { SixbHostView } from "@sixb/core";
|
|
2
2
|
import type { Elysia } from "elysia";
|
|
3
|
+
import type { ResolvedSixbApiBrowserPolicy } from "./auth/browser-origin";
|
|
3
4
|
import type { SharedAccessBoundary } from "./auth/shared-access";
|
|
4
5
|
import { type ConnectorConnectionRouteOptions } from "./routes/connector-connection-runs";
|
|
5
6
|
export interface HttpRouteOptions {
|
|
6
7
|
readonly connectorConnections: ConnectorConnectionRouteOptions;
|
|
7
8
|
readonly sharedAccess: SharedAccessBoundary;
|
|
9
|
+
/** Where frames are served from and which app origins may show them. */
|
|
10
|
+
readonly browserPolicy: ResolvedSixbApiBrowserPolicy;
|
|
8
11
|
}
|
|
9
12
|
export declare function registerHttpRoutes(app: Elysia, host: SixbHostView, options: HttpRouteOptions): Elysia<"", {
|
|
10
13
|
decorator: {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registerRoutes.d.ts","sourceRoot":"","sources":["../src/registerRoutes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACpC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"registerRoutes.d.ts","sourceRoot":"","sources":["../src/registerRoutes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACpC,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAA;AACzE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAShE,OAAO,EACL,KAAK,+BAA+B,EAErC,MAAM,oCAAoC,CAAA;AAwB3C,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,oBAAoB,EAAE,+BAA+B,CAAA;IAC9D,QAAQ,CAAC,YAAY,EAAE,oBAAoB,CAAA;IAC3C,wEAAwE;IACxE,QAAQ,CAAC,aAAa,EAAE,4BAA4B,CAAA;CACrD;AAED,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkC5F"}
|
|
@@ -157,7 +157,6 @@ export declare function registerActionRunRoutes(app: Elysia, host: SixbHostView)
|
|
|
157
157
|
};
|
|
158
158
|
query: {
|
|
159
159
|
path: string;
|
|
160
|
-
audience?: "atlas" | "app" | undefined;
|
|
161
160
|
disposition?: "inline" | "attachment" | undefined;
|
|
162
161
|
v?: string | undefined;
|
|
163
162
|
};
|
|
@@ -195,7 +194,6 @@ export declare function registerActionRunRoutes(app: Elysia, host: SixbHostView)
|
|
|
195
194
|
};
|
|
196
195
|
query: {
|
|
197
196
|
path: string;
|
|
198
|
-
audience?: "atlas" | "app" | undefined;
|
|
199
197
|
disposition?: "inline" | "attachment" | undefined;
|
|
200
198
|
v?: string | undefined;
|
|
201
199
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-runs.d.ts","sourceRoot":"","sources":["../../src/routes/action-runs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAoEpC,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY
|
|
1
|
+
{"version":3,"file":"action-runs.d.ts","sourceRoot":"","sources":["../../src/routes/action-runs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAoEpC,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0HtE"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type SixbHostView } from "@sixb/core";
|
|
2
|
+
import type { Elysia } from "elysia";
|
|
3
|
+
/**
|
|
4
|
+
* Recording and reading take different authority: a browser session records only its own visits,
|
|
5
|
+
* and reading needs `can.observe(project.activity)`.
|
|
6
|
+
*/
|
|
7
|
+
export declare function registerActivityRoutes(app: Elysia, _host: SixbHostView): Elysia<"", {
|
|
8
|
+
decorator: {};
|
|
9
|
+
store: {};
|
|
10
|
+
derive: {};
|
|
11
|
+
resolve: {};
|
|
12
|
+
}, {
|
|
13
|
+
typebox: {};
|
|
14
|
+
error: {};
|
|
15
|
+
}, {
|
|
16
|
+
schema: {};
|
|
17
|
+
standaloneSchema: {};
|
|
18
|
+
macro: {};
|
|
19
|
+
macroFn: {};
|
|
20
|
+
parser: {};
|
|
21
|
+
response: {};
|
|
22
|
+
}, {}, {
|
|
23
|
+
derive: {};
|
|
24
|
+
resolve: {};
|
|
25
|
+
schema: {};
|
|
26
|
+
standaloneSchema: {};
|
|
27
|
+
response: {};
|
|
28
|
+
}, {
|
|
29
|
+
derive: {};
|
|
30
|
+
resolve: {};
|
|
31
|
+
schema: {};
|
|
32
|
+
standaloneSchema: {};
|
|
33
|
+
response: {};
|
|
34
|
+
}>;
|
|
35
|
+
//# sourceMappingURL=activity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activity.d.ts","sourceRoot":"","sources":["../../src/routes/activity.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,YAAY,EAClB,MAAM,YAAY,CAAA;AAEnB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AA+BpC;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkNtE"}
|
package/dist/routes/agents.d.ts
CHANGED
|
@@ -409,11 +409,10 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
409
409
|
role: "user" | "system" | "assistant";
|
|
410
410
|
seq: number;
|
|
411
411
|
annotations: {
|
|
412
|
-
code: "
|
|
412
|
+
code: "step_limit_reached";
|
|
413
413
|
message: string;
|
|
414
414
|
severity: "error" | "warning";
|
|
415
|
-
scope: "
|
|
416
|
-
path?: string | undefined;
|
|
415
|
+
scope: "run";
|
|
417
416
|
}[];
|
|
418
417
|
contentVersion: number;
|
|
419
418
|
completedAt?: string | undefined;
|
|
@@ -469,7 +468,6 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
469
468
|
};
|
|
470
469
|
query: {
|
|
471
470
|
path: string;
|
|
472
|
-
audience?: "atlas" | "app" | undefined;
|
|
473
471
|
disposition?: "inline" | "attachment" | undefined;
|
|
474
472
|
v?: string | undefined;
|
|
475
473
|
};
|
|
@@ -512,7 +510,6 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
512
510
|
};
|
|
513
511
|
query: {
|
|
514
512
|
path: string;
|
|
515
|
-
audience?: "atlas" | "app" | undefined;
|
|
516
513
|
disposition?: "inline" | "attachment" | undefined;
|
|
517
514
|
v?: string | undefined;
|
|
518
515
|
};
|
|
@@ -638,11 +635,10 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
638
635
|
} | undefined;
|
|
639
636
|
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
|
|
640
637
|
diagnostics?: {
|
|
641
|
-
code: "
|
|
638
|
+
code: "step_limit_reached";
|
|
642
639
|
message: string;
|
|
643
640
|
severity: "error" | "warning";
|
|
644
|
-
scope: "
|
|
645
|
-
path?: string | undefined;
|
|
641
|
+
scope: "run";
|
|
646
642
|
}[] | undefined;
|
|
647
643
|
};
|
|
648
644
|
} | {
|
|
@@ -720,11 +716,10 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
720
716
|
} | undefined;
|
|
721
717
|
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
|
|
722
718
|
diagnostics?: {
|
|
723
|
-
code: "
|
|
719
|
+
code: "step_limit_reached";
|
|
724
720
|
message: string;
|
|
725
721
|
severity: "error" | "warning";
|
|
726
|
-
scope: "
|
|
727
|
-
path?: string | undefined;
|
|
722
|
+
scope: "run";
|
|
728
723
|
}[] | undefined;
|
|
729
724
|
};
|
|
730
725
|
};
|
|
@@ -806,11 +801,10 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
806
801
|
} | undefined;
|
|
807
802
|
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
|
|
808
803
|
diagnostics?: {
|
|
809
|
-
code: "
|
|
804
|
+
code: "step_limit_reached";
|
|
810
805
|
message: string;
|
|
811
806
|
severity: "error" | "warning";
|
|
812
|
-
scope: "
|
|
813
|
-
path?: string | undefined;
|
|
807
|
+
scope: "run";
|
|
814
808
|
}[] | undefined;
|
|
815
809
|
};
|
|
816
810
|
} | {
|
|
@@ -879,11 +873,10 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
879
873
|
} | undefined;
|
|
880
874
|
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
|
|
881
875
|
diagnostics?: {
|
|
882
|
-
code: "
|
|
876
|
+
code: "step_limit_reached";
|
|
883
877
|
message: string;
|
|
884
878
|
severity: "error" | "warning";
|
|
885
|
-
scope: "
|
|
886
|
-
path?: string | undefined;
|
|
879
|
+
scope: "run";
|
|
887
880
|
}[] | undefined;
|
|
888
881
|
};
|
|
889
882
|
};
|
|
@@ -966,11 +959,10 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
966
959
|
} | undefined;
|
|
967
960
|
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
|
|
968
961
|
diagnostics?: {
|
|
969
|
-
code: "
|
|
962
|
+
code: "step_limit_reached";
|
|
970
963
|
message: string;
|
|
971
964
|
severity: "error" | "warning";
|
|
972
|
-
scope: "
|
|
973
|
-
path?: string | undefined;
|
|
965
|
+
scope: "run";
|
|
974
966
|
}[] | undefined;
|
|
975
967
|
};
|
|
976
968
|
} | {
|
|
@@ -1044,11 +1036,10 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
1044
1036
|
} | undefined;
|
|
1045
1037
|
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
|
|
1046
1038
|
diagnostics?: {
|
|
1047
|
-
code: "
|
|
1039
|
+
code: "step_limit_reached";
|
|
1048
1040
|
message: string;
|
|
1049
1041
|
severity: "error" | "warning";
|
|
1050
|
-
scope: "
|
|
1051
|
-
path?: string | undefined;
|
|
1042
|
+
scope: "run";
|
|
1052
1043
|
}[] | undefined;
|
|
1053
1044
|
};
|
|
1054
1045
|
};
|
|
@@ -1135,11 +1126,10 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
1135
1126
|
} | undefined;
|
|
1136
1127
|
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
|
|
1137
1128
|
diagnostics?: {
|
|
1138
|
-
code: "
|
|
1129
|
+
code: "step_limit_reached";
|
|
1139
1130
|
message: string;
|
|
1140
1131
|
severity: "error" | "warning";
|
|
1141
|
-
scope: "
|
|
1142
|
-
path?: string | undefined;
|
|
1132
|
+
scope: "run";
|
|
1143
1133
|
}[] | undefined;
|
|
1144
1134
|
}[];
|
|
1145
1135
|
hasMore: boolean;
|
|
@@ -1228,11 +1218,10 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
1228
1218
|
} | undefined;
|
|
1229
1219
|
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
|
|
1230
1220
|
diagnostics?: {
|
|
1231
|
-
code: "
|
|
1221
|
+
code: "step_limit_reached";
|
|
1232
1222
|
message: string;
|
|
1233
1223
|
severity: "error" | "warning";
|
|
1234
|
-
scope: "
|
|
1235
|
-
path?: string | undefined;
|
|
1224
|
+
scope: "run";
|
|
1236
1225
|
}[] | undefined;
|
|
1237
1226
|
};
|
|
1238
1227
|
404: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../src/routes/agents.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,qBAAqB,EAC1B,KAAK,YAAY,EAEjB,KAAK,YAAY,EAClB,MAAM,YAAY,CAAA;AAkBnB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAWpC,OAAO,EAUL,cAAc,EAYf,MAAM,mBAAmB,CAAA;AAmE1B,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,YAAY,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,KAAK,CAAC,CAsB5F;AA+JD,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,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@sixb/core";
|
|
2
|
+
import type { Elysia } from "elysia";
|
|
3
|
+
import type { ResolvedSixbApiBrowserPolicy } from "../auth/browser-origin";
|
|
4
|
+
/**
|
|
5
|
+
* Serves a deck's files to its sandboxed frame, under the token a frame link carries: the token
|
|
6
|
+
* is the credential, so the route is public. The entry gets the kit and the runtime, and the kit
|
|
7
|
+
* and runtime are served beside the files. Hidden from OpenAPI: clients receive frame links, they
|
|
8
|
+
* never build them.
|
|
9
|
+
*/
|
|
10
|
+
export declare function registerArtifactFrameRoutes(app: Elysia, host: SixbHostView, policy: ResolvedSixbApiBrowserPolicy): Elysia<"", {
|
|
11
|
+
decorator: {};
|
|
12
|
+
store: {};
|
|
13
|
+
derive: {};
|
|
14
|
+
resolve: {};
|
|
15
|
+
}, {
|
|
16
|
+
typebox: {};
|
|
17
|
+
error: {};
|
|
18
|
+
}, {
|
|
19
|
+
schema: {};
|
|
20
|
+
standaloneSchema: {};
|
|
21
|
+
macro: {};
|
|
22
|
+
macroFn: {};
|
|
23
|
+
parser: {};
|
|
24
|
+
response: {};
|
|
25
|
+
}, {
|
|
26
|
+
api: {
|
|
27
|
+
"artifact-frames": {
|
|
28
|
+
":token": {
|
|
29
|
+
"*": {
|
|
30
|
+
get: {
|
|
31
|
+
body: unknown;
|
|
32
|
+
params: {
|
|
33
|
+
"*": string;
|
|
34
|
+
token: string;
|
|
35
|
+
} & {};
|
|
36
|
+
query: unknown;
|
|
37
|
+
headers: unknown;
|
|
38
|
+
response: {
|
|
39
|
+
200: Response;
|
|
40
|
+
422: {
|
|
41
|
+
type: "validation";
|
|
42
|
+
on: string;
|
|
43
|
+
summary?: string;
|
|
44
|
+
message?: string;
|
|
45
|
+
found?: unknown;
|
|
46
|
+
property?: string;
|
|
47
|
+
expected?: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
} & {
|
|
56
|
+
api: {
|
|
57
|
+
"artifact-frames": {
|
|
58
|
+
":token": {
|
|
59
|
+
"*": {
|
|
60
|
+
head: {
|
|
61
|
+
body: unknown;
|
|
62
|
+
params: {
|
|
63
|
+
"*": string;
|
|
64
|
+
token: string;
|
|
65
|
+
} & {};
|
|
66
|
+
query: unknown;
|
|
67
|
+
headers: unknown;
|
|
68
|
+
response: {
|
|
69
|
+
200: Response;
|
|
70
|
+
422: {
|
|
71
|
+
type: "validation";
|
|
72
|
+
on: string;
|
|
73
|
+
summary?: string;
|
|
74
|
+
message?: string;
|
|
75
|
+
found?: unknown;
|
|
76
|
+
property?: string;
|
|
77
|
+
expected?: string;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
}, {
|
|
86
|
+
derive: {};
|
|
87
|
+
resolve: {};
|
|
88
|
+
schema: {};
|
|
89
|
+
standaloneSchema: {};
|
|
90
|
+
response: {};
|
|
91
|
+
}, {
|
|
92
|
+
derive: {};
|
|
93
|
+
resolve: {};
|
|
94
|
+
schema: {};
|
|
95
|
+
standaloneSchema: {};
|
|
96
|
+
response: {};
|
|
97
|
+
}>;
|
|
98
|
+
//# sourceMappingURL=artifact-frames.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"artifact-frames.d.ts","sourceRoot":"","sources":["../../src/routes/artifact-frames.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAW9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAEpC,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,wBAAwB,CAAA;AAQ1E;;;;;GAKG;AACH,wBAAgB,2BAA2B,CACzC,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,YAAY,EAClB,MAAM,EAAE,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAQrC"}
|