@sixb/server 0.1.5 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth/public-routes.d.ts.map +1 -1
- package/dist/auth/scope.d.ts +6 -2
- package/dist/auth/scope.d.ts.map +1 -1
- package/dist/files/content.d.ts +8 -0
- package/dist/files/content.d.ts.map +1 -1
- package/dist/index.js +2507 -1573
- package/dist/index.js.map +22 -20
- package/dist/models/display.d.ts +22 -0
- package/dist/models/display.d.ts.map +1 -0
- package/dist/routes/action-runs.d.ts +2 -0
- package/dist/routes/action-runs.d.ts.map +1 -1
- package/dist/routes/actions.d.ts +1 -0
- package/dist/routes/actions.d.ts.map +1 -1
- package/dist/routes/agent-api-gateway.d.ts.map +1 -1
- package/dist/routes/agents.d.ts +99 -89
- package/dist/routes/agents.d.ts.map +1 -1
- package/dist/routes/ai-accounting.d.ts.map +1 -1
- package/dist/routes/auth.d.ts +139 -15
- package/dist/routes/auth.d.ts.map +1 -1
- package/dist/routes/events.d.ts +3 -3
- package/dist/routes/files.d.ts +1 -0
- package/dist/routes/files.d.ts.map +1 -1
- package/dist/routes/models.d.ts +18 -1
- package/dist/routes/models.d.ts.map +1 -1
- package/dist/routes/objects.d.ts +3 -1
- package/dist/routes/objects.d.ts.map +1 -1
- package/dist/routes/pipelines.d.ts +2 -1
- package/dist/routes/pipelines.d.ts.map +1 -1
- package/dist/routes/rules.d.ts +1 -1
- package/dist/routes/syncs.d.ts +1 -0
- package/dist/routes/syncs.d.ts.map +1 -1
- package/dist/routes/workflows.d.ts +57 -54
- package/dist/routes/workflows.d.ts.map +1 -1
- package/dist/routes/ws/logs.d.ts +4 -4
- package/dist/schemas/agents.d.ts +378 -215
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/ai-accounting.d.ts +1847 -295
- package/dist/schemas/ai-accounting.d.ts.map +1 -1
- package/dist/schemas/ai-limits.d.ts +2210 -0
- package/dist/schemas/ai-limits.d.ts.map +1 -0
- package/dist/schemas/auth.d.ts +202 -72
- package/dist/schemas/auth.d.ts.map +1 -1
- package/dist/schemas/events.d.ts +6 -6
- package/dist/schemas/files.d.ts +3 -0
- package/dist/schemas/files.d.ts.map +1 -1
- package/dist/schemas/models.d.ts +214 -14
- package/dist/schemas/models.d.ts.map +1 -1
- package/dist/schemas/objects.d.ts +4 -4
- package/dist/schemas/pipelines.d.ts +6 -6
- package/dist/schemas/rules.d.ts +6 -6
- package/dist/schemas/workflows.d.ts +196 -206
- package/dist/schemas/workflows.d.ts.map +1 -1
- package/dist/utils/http.d.ts +8 -4
- package/dist/utils/http.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/auth/public-routes.ts +18 -0
- package/src/auth/scope.ts +3 -2
- package/src/files/content.ts +39 -6
- package/src/models/display.ts +91 -0
- package/src/routes/agent-api-gateway.ts +137 -38
- package/src/routes/agents.ts +58 -83
- package/src/routes/ai-accounting.ts +414 -23
- package/src/routes/auth.ts +297 -2
- package/src/routes/models.ts +12 -4
- package/src/routes/workflows.ts +3 -5
- package/src/routes/ws/agents.ts +17 -6
- package/src/schemas/agents.ts +40 -49
- package/src/schemas/ai-accounting.ts +88 -19
- package/src/schemas/ai-limits.ts +116 -0
- package/src/schemas/auth.ts +39 -0
- package/src/schemas/files.ts +1 -0
- package/src/schemas/models.ts +33 -5
- package/src/schemas/workflows.ts +0 -2
- package/src/utils/http.ts +33 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public-routes.d.ts","sourceRoot":"","sources":["../../src/auth/public-routes.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,KAAK,GAAG,MAAM,GAAG,WAAW,CAAA;AAErE,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,IAAI,EAAE,eAAe,CAAA;IAC9B,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAA;CAChC;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,WAAW,
|
|
1
|
+
{"version":3,"file":"public-routes.d.ts","sourceRoot":"","sources":["../../src/auth/public-routes.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,KAAK,GAAG,MAAM,GAAG,WAAW,CAAA;AAErE,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,IAAI,EAAE,eAAe,CAAA;IAC9B,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAA;CAChC;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,WAAW,CA4B3D;AAED,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAkFvE"}
|
package/dist/auth/scope.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { OntologySource } from "@sixb/core";
|
|
2
2
|
import type { RequestExecutionAuthorization, Sixb } from "@sixb/core/internal/request-execution";
|
|
3
|
-
import type { AgentRunRecord } from "@sixb/core/storage";
|
|
3
|
+
import type { AgentRunRecord, ConversationAgentRunRecord } from "@sixb/core/storage";
|
|
4
4
|
/**
|
|
5
5
|
* Per-request authorization state attached by the server's auth derive.
|
|
6
6
|
*
|
|
@@ -10,11 +10,15 @@ import type { AgentRunRecord } from "@sixb/core/storage";
|
|
|
10
10
|
export interface RequestAuthState {
|
|
11
11
|
readonly sixb: Sixb<readonly OntologySource[]> | null;
|
|
12
12
|
/** Present for requests proxied through the run-scoped agent API gateway. */
|
|
13
|
-
readonly agentRun?:
|
|
13
|
+
readonly agentRun?: ConversationAgentRunRecord;
|
|
14
14
|
/** Identifies which kind of active agent execution owns a gateway request. */
|
|
15
15
|
readonly agentExecution?: {
|
|
16
16
|
readonly kind: "conversation";
|
|
17
17
|
readonly runId: string;
|
|
18
|
+
} | {
|
|
19
|
+
readonly kind: "subagent";
|
|
20
|
+
readonly runId: string;
|
|
21
|
+
readonly parentRunId: string;
|
|
18
22
|
} | {
|
|
19
23
|
readonly kind: "workflow";
|
|
20
24
|
readonly nodeRunId: string;
|
package/dist/auth/scope.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scope.d.ts","sourceRoot":"","sources":["../../src/auth/scope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAChD,OAAO,KAAK,EAAE,6BAA6B,EAAE,IAAI,EAAE,MAAM,uCAAuC,CAAA;AAChG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"scope.d.ts","sourceRoot":"","sources":["../../src/auth/scope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAChD,OAAO,KAAK,EAAE,6BAA6B,EAAE,IAAI,EAAE,MAAM,uCAAuC,CAAA;AAChG,OAAO,KAAK,EAAE,cAAc,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAA;AAEpF;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,SAAS,cAAc,EAAE,CAAC,GAAG,IAAI,CAAA;IACrD,6EAA6E;IAC7E,QAAQ,CAAC,QAAQ,CAAC,EAAE,0BAA0B,CAAA;IAC9C,8EAA8E;IAC9E,QAAQ,CAAC,cAAc,CAAC,EACpB;QAAE,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;QAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;KAAE,GACzD;QAAE,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;QAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;KAAE,GACnF;QAAE,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;QAAC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAA;CAC9D;AAED,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,aAAa,EAAE,6BAA6B,CAAA;IACrD,QAAQ,CAAC,QAAQ,CAAC,EAAE,cAAc,CAAA;IAClC,QAAQ,CAAC,cAAc,CAAC,EAAE,gBAAgB,CAAC,gBAAgB,CAAC,CAAA;CAC7D;AAID,wBAAgB,gCAAgC,CAC9C,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,wBAAwB,GAClC,IAAI,CAEN;AAED,wBAAgB,+BAA+B,CAC7C,OAAO,EAAE,OAAO,GACf,wBAAwB,GAAG,SAAS,CAMtC;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,OAAO,GAAG,gBAAgB,CAOnE;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC,SAAS,cAAc,EAAE,CAAC,CAMpF"}
|
package/dist/files/content.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ export interface FileContentResponseInput {
|
|
|
6
6
|
readonly disposition?: FileContentDisposition;
|
|
7
7
|
readonly head?: boolean;
|
|
8
8
|
readonly rangeHeader?: string | null;
|
|
9
|
+
readonly ifNoneMatchHeader?: string | null;
|
|
10
|
+
readonly ifRangeHeader?: string | null;
|
|
9
11
|
}
|
|
10
12
|
export interface FileContentQuery {
|
|
11
13
|
readonly path: string;
|
|
@@ -75,6 +77,9 @@ export declare function fileContentGetResponses(options?: FileContentResponsesOp
|
|
|
75
77
|
};
|
|
76
78
|
};
|
|
77
79
|
};
|
|
80
|
+
readonly 304: {
|
|
81
|
+
readonly description: "File representation is unchanged; reuse the privately cached content";
|
|
82
|
+
};
|
|
78
83
|
readonly 400: {
|
|
79
84
|
readonly description: "Response for status 400";
|
|
80
85
|
readonly content: {
|
|
@@ -116,6 +121,9 @@ export declare function fileContentHeadResponses(options?: FileContentResponsesO
|
|
|
116
121
|
readonly 206: {
|
|
117
122
|
readonly description: "Partial file content headers";
|
|
118
123
|
};
|
|
124
|
+
readonly 304: {
|
|
125
|
+
readonly description: "File representation is unchanged; reuse the privately cached content";
|
|
126
|
+
};
|
|
119
127
|
readonly 400: {
|
|
120
128
|
readonly description: "Response for status 400";
|
|
121
129
|
readonly content: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../src/files/content.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../src/files/content.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,KAAK,WAAW,EAAE,KAAK,OAAO,EAAa,MAAM,YAAY,CAAA;AAIrF,MAAM,MAAM,sBAAsB,GAAG,QAAQ,GAAG,YAAY,CAAA;AAE5D,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAA;IACjC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,WAAW,CAAC,EAAE,sBAAsB,CAAA;IAC7C,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAA;IACvB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACpC,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1C,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACvC;AAED,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,WAAW,CAAC,EAAE,sBAAsB,CAAA;CAC9C;AAED,MAAM,WAAW,kCAAkC,CAAC,MAAM,SAAS,gBAAgB;IACjF,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAA;IACjC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAA;IACvB,QAAQ,CAAC,WAAW,EAAE;QAAE,KAAK,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAAA;KAAE,CAAA;IACvD,QA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