@sixb/core 0.1.23 → 0.1.25
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/actions/index.js +17 -17
- package/dist/agents/index.js +17 -17
- package/dist/artifacts/frames/index.js +5 -2
- package/dist/artifacts/frames/index.js.map +3 -3
- package/dist/artifacts/frames/probe.d.ts.map +1 -1
- package/dist/artifacts/publish/index.js +8 -8
- package/dist/auth/index.js +2 -2
- package/dist/authorization/decision.d.ts +4 -0
- package/dist/authorization/decision.d.ts.map +1 -1
- package/dist/authorization/index.d.ts +1 -1
- package/dist/authorization/index.d.ts.map +1 -1
- package/dist/authorization/index.js +4 -2
- package/dist/authorization/index.js.map +1 -1
- package/dist/bootstrap/index.js +20 -20
- package/dist/{chunk-hyesv9dv.js → chunk-1j6j0rht.js} +1 -1
- package/dist/{chunk-hwarjrgf.js → chunk-24bqx0dx.js} +1 -1
- package/dist/{chunk-fp2kq35z.js → chunk-2x19q6k6.js} +1 -1
- package/dist/{chunk-bktev1ds.js → chunk-3p93tb91.js} +5 -5
- package/dist/{chunk-6p0pastb.js → chunk-62a63pr6.js} +3 -3
- package/dist/{chunk-ezne9wc9.js → chunk-68wghpdf.js} +4 -4
- package/dist/{chunk-0phpbbvm.js → chunk-6bkbyer5.js} +1 -1
- package/dist/{chunk-q4pmvkg0.js → chunk-7ny9mjgm.js} +1 -1
- package/dist/{chunk-qhqgp4jf.js → chunk-8z4726jz.js} +3 -3
- package/dist/{chunk-6rrtzea3.js → chunk-97wr6p2g.js} +2 -2
- package/dist/{chunk-h33shhq6.js → chunk-9ntbsnke.js} +3 -3
- package/dist/{chunk-f55hgmm0.js → chunk-bnr4a734.js} +5 -5
- package/dist/{chunk-fssz2sen.js → chunk-et017krg.js} +55 -25
- package/dist/{chunk-fssz2sen.js.map → chunk-et017krg.js.map} +5 -5
- package/dist/{chunk-h3pbv7n8.js → chunk-gqm0b7vd.js} +1 -1
- package/dist/{chunk-efmm01gj.js → chunk-hk38wahh.js} +3 -3
- package/dist/{chunk-yc9ners4.js → chunk-n9w3n38q.js} +13 -6
- package/dist/{chunk-yc9ners4.js.map → chunk-n9w3n38q.js.map} +3 -3
- package/dist/{chunk-n9zpx9c6.js → chunk-rp9wwk7b.js} +2 -2
- package/dist/{chunk-098anw4f.js → chunk-sqfvnvqj.js} +2 -2
- package/dist/{chunk-s6bf06z3.js → chunk-vd1rk42q.js} +2 -2
- package/dist/{chunk-2626mh4m.js → chunk-vr3j63jq.js} +5 -5
- package/dist/{chunk-02bzjgnt.js → chunk-vrf90dkv.js} +1 -1
- package/dist/{chunk-7mc2wkre.js → chunk-xe0732g0.js} +4 -4
- package/dist/{chunk-qdv3xc93.js → chunk-yecwnwpq.js} +14 -14
- package/dist/{chunk-7z5p905k.js → chunk-z3ryd53f.js} +4 -4
- package/dist/execution/agent.js +17 -17
- package/dist/execution/primitive.js +17 -17
- package/dist/execution/request.js +18 -18
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +23 -23
- package/dist/materializer/index.js +7 -7
- package/dist/models/audio/runtime.d.ts.map +1 -1
- package/dist/models/audio/types.d.ts +8 -1
- package/dist/models/audio/types.d.ts.map +1 -1
- package/dist/models/execution/index.js +6 -6
- package/dist/models/execution.d.ts.map +1 -1
- package/dist/models/generation-types.d.ts +5 -0
- package/dist/models/generation-types.d.ts.map +1 -1
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/input-file.d.ts +8 -0
- package/dist/models/input-file.d.ts.map +1 -1
- package/dist/objects/index.js +17 -17
- package/dist/objects/query/index.js +6 -6
- package/dist/pipelines/index.js +7 -7
- package/dist/projections/internal.js +7 -7
- package/dist/runtime/internal.js +11 -11
- package/dist/shares/internal.js +6 -6
- package/dist/storage/file-upload-sessions/provider.js +3 -3
- package/dist/storage/index.js +5 -5
- package/dist/storage/workflow-runs/provider.js +3 -3
- package/dist/syncs/index.js +9 -9
- package/dist/testing/index.js +24 -24
- package/dist/webhooks/internal.js +7 -7
- package/dist/workflows/index.js +18 -18
- package/package.json +1 -1
- package/src/artifacts/frames/probe.ts +14 -1
- package/src/authorization/decision.ts +15 -2
- package/src/authorization/index.ts +1 -0
- package/src/index.ts +1 -0
- package/src/models/audio/runtime.ts +32 -9
- package/src/models/audio/types.ts +9 -1
- package/src/models/execution.ts +2 -1
- package/src/models/generation-types.ts +5 -0
- package/src/models/index.ts +1 -0
- package/src/models/input-file.ts +27 -2
- /package/dist/{chunk-hyesv9dv.js.map → chunk-1j6j0rht.js.map} +0 -0
- /package/dist/{chunk-hwarjrgf.js.map → chunk-24bqx0dx.js.map} +0 -0
- /package/dist/{chunk-fp2kq35z.js.map → chunk-2x19q6k6.js.map} +0 -0
- /package/dist/{chunk-bktev1ds.js.map → chunk-3p93tb91.js.map} +0 -0
- /package/dist/{chunk-6p0pastb.js.map → chunk-62a63pr6.js.map} +0 -0
- /package/dist/{chunk-ezne9wc9.js.map → chunk-68wghpdf.js.map} +0 -0
- /package/dist/{chunk-0phpbbvm.js.map → chunk-6bkbyer5.js.map} +0 -0
- /package/dist/{chunk-q4pmvkg0.js.map → chunk-7ny9mjgm.js.map} +0 -0
- /package/dist/{chunk-qhqgp4jf.js.map → chunk-8z4726jz.js.map} +0 -0
- /package/dist/{chunk-6rrtzea3.js.map → chunk-97wr6p2g.js.map} +0 -0
- /package/dist/{chunk-h33shhq6.js.map → chunk-9ntbsnke.js.map} +0 -0
- /package/dist/{chunk-f55hgmm0.js.map → chunk-bnr4a734.js.map} +0 -0
- /package/dist/{chunk-h3pbv7n8.js.map → chunk-gqm0b7vd.js.map} +0 -0
- /package/dist/{chunk-efmm01gj.js.map → chunk-hk38wahh.js.map} +0 -0
- /package/dist/{chunk-n9zpx9c6.js.map → chunk-rp9wwk7b.js.map} +0 -0
- /package/dist/{chunk-098anw4f.js.map → chunk-sqfvnvqj.js.map} +0 -0
- /package/dist/{chunk-s6bf06z3.js.map → chunk-vd1rk42q.js.map} +0 -0
- /package/dist/{chunk-2626mh4m.js.map → chunk-vr3j63jq.js.map} +0 -0
- /package/dist/{chunk-02bzjgnt.js.map → chunk-vrf90dkv.js.map} +0 -0
- /package/dist/{chunk-7mc2wkre.js.map → chunk-xe0732g0.js.map} +0 -0
- /package/dist/{chunk-qdv3xc93.js.map → chunk-yecwnwpq.js.map} +0 -0
- /package/dist/{chunk-7z5p905k.js.map → chunk-z3ryd53f.js.map} +0 -0
package/dist/bootstrap/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
listProjectModules2,
|
|
6
6
|
discoverProjectDefinitions2,
|
|
7
7
|
listOntologyModuleFiles
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-bnr4a734.js";
|
|
9
9
|
import"../chunk-4y26vs3v.js";
|
|
10
10
|
import"../chunk-wkv3h3q7.js";
|
|
11
11
|
import"../chunk-6eqsgvxk.js";
|
|
@@ -13,11 +13,11 @@ import"../chunk-65pyhyas.js";
|
|
|
13
13
|
import"../chunk-bab05bhg.js";
|
|
14
14
|
import"../chunk-vhbw5sqm.js";
|
|
15
15
|
import"../chunk-zbc929zg.js";
|
|
16
|
-
import"../chunk-
|
|
16
|
+
import"../chunk-n9w3n38q.js";
|
|
17
17
|
import"../chunk-rap5w0x0.js";
|
|
18
18
|
import"../chunk-mbsbxarb.js";
|
|
19
19
|
import"../chunk-c0vk1djt.js";
|
|
20
|
-
import"../chunk-
|
|
20
|
+
import"../chunk-gqm0b7vd.js";
|
|
21
21
|
import"../chunk-73v685wb.js";
|
|
22
22
|
import"../chunk-cdk3egjj.js";
|
|
23
23
|
import"../chunk-zrvhsq7f.js";
|
|
@@ -28,14 +28,14 @@ import"../chunk-nydf3dbe.js";
|
|
|
28
28
|
import"../chunk-0xmt5p5y.js";
|
|
29
29
|
import"../chunk-4ymrcdbm.js";
|
|
30
30
|
import"../chunk-h89wz928.js";
|
|
31
|
-
import"../chunk-
|
|
31
|
+
import"../chunk-24bqx0dx.js";
|
|
32
32
|
import"../chunk-fe8zwt8b.js";
|
|
33
33
|
import"../chunk-hz5d43gn.js";
|
|
34
34
|
import"../chunk-gfdh9kqa.js";
|
|
35
35
|
import"../chunk-cwdzcv37.js";
|
|
36
36
|
import"../chunk-eptrvnby.js";
|
|
37
37
|
import"../chunk-cswhawa2.js";
|
|
38
|
-
import"../chunk-
|
|
38
|
+
import"../chunk-68wghpdf.js";
|
|
39
39
|
import"../chunk-hqsp2sx4.js";
|
|
40
40
|
import"../chunk-2adz0h75.js";
|
|
41
41
|
import"../chunk-mmagke4x.js";
|
|
@@ -44,26 +44,26 @@ import"../chunk-g663fahq.js";
|
|
|
44
44
|
import"../chunk-jmfet9r4.js";
|
|
45
45
|
import"../chunk-qf954wje.js";
|
|
46
46
|
import"../chunk-x0v3jd47.js";
|
|
47
|
-
import"../chunk-
|
|
48
|
-
import"../chunk-
|
|
49
|
-
import"../chunk-
|
|
47
|
+
import"../chunk-97wr6p2g.js";
|
|
48
|
+
import"../chunk-hk38wahh.js";
|
|
49
|
+
import"../chunk-z3ryd53f.js";
|
|
50
50
|
import"../chunk-48jezz3j.js";
|
|
51
|
-
import"../chunk-
|
|
52
|
-
import"../chunk-
|
|
51
|
+
import"../chunk-et017krg.js";
|
|
52
|
+
import"../chunk-vr3j63jq.js";
|
|
53
53
|
import"../chunk-r6szek0x.js";
|
|
54
54
|
import"../chunk-3fqxbn31.js";
|
|
55
55
|
import"../chunk-waqk73p1.js";
|
|
56
56
|
import"../chunk-qx00vjrj.js";
|
|
57
|
-
import"../chunk-
|
|
57
|
+
import"../chunk-8z4726jz.js";
|
|
58
58
|
import"../chunk-dp0cdtj2.js";
|
|
59
59
|
import"../chunk-sgx82nnt.js";
|
|
60
60
|
import"../chunk-8ncg20rd.js";
|
|
61
61
|
import"../chunk-5a4a52tq.js";
|
|
62
|
-
import"../chunk-
|
|
62
|
+
import"../chunk-vrf90dkv.js";
|
|
63
63
|
import"../chunk-c844dkwd.js";
|
|
64
64
|
import"../chunk-6y0mkhex.js";
|
|
65
65
|
import"../chunk-2gjj5dx3.js";
|
|
66
|
-
import"../chunk-
|
|
66
|
+
import"../chunk-xe0732g0.js";
|
|
67
67
|
import"../chunk-3qms4nax.js";
|
|
68
68
|
import"../chunk-m427qgq0.js";
|
|
69
69
|
import"../chunk-m2nevja0.js";
|
|
@@ -71,18 +71,18 @@ import"../chunk-t5608tkq.js";
|
|
|
71
71
|
import"../chunk-9mab3dvg.js";
|
|
72
72
|
import"../chunk-fntqb7qy.js";
|
|
73
73
|
import"../chunk-fb3feg1e.js";
|
|
74
|
-
import"../chunk-
|
|
74
|
+
import"../chunk-rp9wwk7b.js";
|
|
75
75
|
import"../chunk-661ezhks.js";
|
|
76
76
|
import"../chunk-vpgwq5nf.js";
|
|
77
|
-
import"../chunk-
|
|
77
|
+
import"../chunk-vd1rk42q.js";
|
|
78
78
|
import"../chunk-m36fw8ft.js";
|
|
79
|
-
import"../chunk-
|
|
79
|
+
import"../chunk-62a63pr6.js";
|
|
80
80
|
import"../chunk-d2m879s4.js";
|
|
81
|
-
import"../chunk-
|
|
82
|
-
import"../chunk-
|
|
83
|
-
import"../chunk-
|
|
81
|
+
import"../chunk-6bkbyer5.js";
|
|
82
|
+
import"../chunk-9ntbsnke.js";
|
|
83
|
+
import"../chunk-1j6j0rht.js";
|
|
84
84
|
import"../chunk-07kkp2e1.js";
|
|
85
|
-
import"../chunk-
|
|
85
|
+
import"../chunk-2x19q6k6.js";
|
|
86
86
|
import"../chunk-1t6k1avb.js";
|
|
87
87
|
import"../chunk-npcr0228.js";
|
|
88
88
|
import"../chunk-fm62y49k.js";
|
|
@@ -9,26 +9,26 @@ import {
|
|
|
9
9
|
} from "./chunk-48jezz3j.js";
|
|
10
10
|
import {
|
|
11
11
|
createKernelRuntimeAuthorization
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-n9w3n38q.js";
|
|
13
13
|
import {
|
|
14
14
|
INDEXING_EMBEDDING_TIMEOUT_MS,
|
|
15
15
|
vectorConfiguration,
|
|
16
16
|
vectorSources,
|
|
17
17
|
normalizeVector2
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-gqm0b7vd.js";
|
|
19
19
|
import {
|
|
20
20
|
estimateModelCall
|
|
21
21
|
} from "./chunk-tdxfsg1c.js";
|
|
22
22
|
import {
|
|
23
23
|
VECTOR_INDEXING_FAILURE_CODES2
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-68wghpdf.js";
|
|
25
25
|
import {
|
|
26
26
|
ModelExecutionSession
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-vr3j63jq.js";
|
|
28
28
|
import {
|
|
29
29
|
executionRecordInputFromRuntime,
|
|
30
30
|
ensureExecutionRecord2
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-1j6j0rht.js";
|
|
32
32
|
import {
|
|
33
33
|
MaterializationConflictError2
|
|
34
34
|
} from "./chunk-y7dbmaqh.js";
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
resolveExecutionScopeAuthorization,
|
|
11
11
|
assertAuthorized2
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-n9w3n38q.js";
|
|
13
13
|
import {
|
|
14
14
|
SYNC_RUN_FAILURE_CODES2
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-68wghpdf.js";
|
|
16
16
|
import {
|
|
17
17
|
SyncRunError2
|
|
18
18
|
} from "./chunk-jmfet9r4.js";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
executionRecordInputFromRuntime,
|
|
21
21
|
ensureExecutionRecord2,
|
|
22
22
|
createPrimitiveExecutionRecord
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-1j6j0rht.js";
|
|
24
24
|
|
|
25
25
|
// src/syncs/errors.ts
|
|
26
26
|
class SyncValidationError2 extends Error {
|
|
@@ -13,13 +13,13 @@ import {
|
|
|
13
13
|
paginate,
|
|
14
14
|
InMemoryAuthStorage2,
|
|
15
15
|
principalsEqual2
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-gqm0b7vd.js";
|
|
17
17
|
import {
|
|
18
18
|
ObjectReadLimitExceededError2,
|
|
19
19
|
snapshotObjectReadExecutionLimits2,
|
|
20
20
|
assertObjectReadFacetCount2,
|
|
21
21
|
assertObjectReadOutputWithinLimit2
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-n9w3n38q.js";
|
|
23
23
|
import {
|
|
24
24
|
assertObjectReaderProject2
|
|
25
25
|
} from "./chunk-rap5w0x0.js";
|
|
@@ -115,7 +115,7 @@ import {
|
|
|
115
115
|
} from "./chunk-h89wz928.js";
|
|
116
116
|
import {
|
|
117
117
|
DurableFileUploadSessions2
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-24bqx0dx.js";
|
|
119
119
|
import {
|
|
120
120
|
actionSubjectsEqual,
|
|
121
121
|
normalizeRecordActionRunInput2,
|
|
@@ -252,7 +252,7 @@ import {
|
|
|
252
252
|
WorkflowRunError2,
|
|
253
253
|
assertWorkflowRunExecution2,
|
|
254
254
|
assertWorkflowAgentNodeRunExecution2
|
|
255
|
-
} from "./chunk-
|
|
255
|
+
} from "./chunk-97wr6p2g.js";
|
|
256
256
|
import {
|
|
257
257
|
ShareGrantStorageError2,
|
|
258
258
|
normalizeShareGrantCreate2,
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
validateObjectQueryWithAdmission,
|
|
5
5
|
SYSTEM_PRINCIPAL2,
|
|
6
6
|
principalsEqual2
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-gqm0b7vd.js";
|
|
8
8
|
import {
|
|
9
9
|
resolveRuntimeAuthorizationForProject,
|
|
10
10
|
AuthorizationError2,
|
|
11
11
|
isRuntimeAllowed2
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-n9w3n38q.js";
|
|
13
13
|
import {
|
|
14
14
|
inferFileMediaType2
|
|
15
15
|
} from "./chunk-wkv3h3q7.js";
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
import {
|
|
55
55
|
getAuthorizedOntologyView,
|
|
56
56
|
readerClearance
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-z3ryd53f.js";
|
|
58
58
|
import {
|
|
59
59
|
ArtifactRequestError2,
|
|
60
60
|
checkArtifactFiles,
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
AuthStorageError2,
|
|
4
4
|
SYSTEM_PRINCIPAL2,
|
|
5
5
|
principalsEqual2
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-gqm0b7vd.js";
|
|
7
7
|
import {
|
|
8
8
|
createSixbError2
|
|
9
9
|
} from "./chunk-zbc929zg.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
AuthorizationError2,
|
|
13
13
|
isAllowed2,
|
|
14
14
|
resolveAuthorizationContext2
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-n9w3n38q.js";
|
|
16
16
|
import {
|
|
17
17
|
appliedLinkKey,
|
|
18
18
|
NO_APPLIED_MARKINGS
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
resolveExecutionScopeAuthorization,
|
|
11
11
|
assertAuthorized2
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-n9w3n38q.js";
|
|
13
13
|
import {
|
|
14
14
|
PIPELINE_RUN_FAILURE_CODES2
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-68wghpdf.js";
|
|
16
16
|
import {
|
|
17
17
|
PipelineRunError2
|
|
18
18
|
} from "./chunk-mmagke4x.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
executionRecordInputFromRuntime,
|
|
24
24
|
ensureExecutionRecord2,
|
|
25
25
|
createPrimitiveExecutionRecord
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-1j6j0rht.js";
|
|
27
27
|
|
|
28
28
|
// src/pipelines/run-dispatch.ts
|
|
29
29
|
import { randomUUID } from "crypto";
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
ShareDefinitionError2,
|
|
14
14
|
isShareDefinition,
|
|
15
15
|
snapshotShareDefinition
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-gqm0b7vd.js";
|
|
17
17
|
import {
|
|
18
18
|
isProjectionDefinition2
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-n9w3n38q.js";
|
|
20
20
|
import {
|
|
21
21
|
isMarkingDefinition,
|
|
22
22
|
isGroupDefinition,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
} from "./chunk-73v685wb.js";
|
|
26
26
|
import {
|
|
27
27
|
isWorkflowDefinition2
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-et017krg.js";
|
|
29
29
|
import {
|
|
30
30
|
isDatasetDefinition2
|
|
31
31
|
} from "./chunk-c844dkwd.js";
|
|
@@ -34,10 +34,10 @@ import {
|
|
|
34
34
|
} from "./chunk-m2nevja0.js";
|
|
35
35
|
import {
|
|
36
36
|
isSyncDefinition2
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-rp9wwk7b.js";
|
|
38
38
|
import {
|
|
39
39
|
compileShareAccessPlan
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-6bkbyer5.js";
|
|
41
41
|
import {
|
|
42
42
|
isConnectorDefinition
|
|
43
43
|
} from "./chunk-9x8dybsb.js";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
createUsersRuntime,
|
|
19
19
|
SYSTEM_PRINCIPAL2,
|
|
20
20
|
principalsEqual2
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-gqm0b7vd.js";
|
|
22
22
|
import {
|
|
23
23
|
ActionValidationError2,
|
|
24
24
|
SIXB_ERROR_CODES2,
|
|
@@ -50,13 +50,14 @@ import {
|
|
|
50
50
|
assertPrivileged2,
|
|
51
51
|
assertProviderAccess2,
|
|
52
52
|
assertModelAccess2,
|
|
53
|
+
canAccessModels2,
|
|
53
54
|
canViewEvent2,
|
|
54
55
|
canViewWorkflowRun2,
|
|
55
56
|
canViewWorkflowIntervention2,
|
|
56
57
|
canViewPipelineRun2,
|
|
57
58
|
canViewProjectionRun2,
|
|
58
59
|
canViewProjection2
|
|
59
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-n9w3n38q.js";
|
|
60
61
|
import {
|
|
61
62
|
collectUserRefIds,
|
|
62
63
|
userReferenceProblem
|
|
@@ -99,7 +100,7 @@ import {
|
|
|
99
100
|
resolveAgentExecutionAuthorization2,
|
|
100
101
|
userCanRunAgent2,
|
|
101
102
|
resolveInheritedAgentExecutionAuthorization2
|
|
102
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-97wr6p2g.js";
|
|
103
104
|
import {
|
|
104
105
|
ACTION_RUN_FAILURE_CODES2,
|
|
105
106
|
parseActionRunFailure2
|
|
@@ -158,10 +159,10 @@ import {
|
|
|
158
159
|
objectBatchKey2,
|
|
159
160
|
matchesPredicate,
|
|
160
161
|
WORKFLOW_RUN_FAILURE_CODES2
|
|
161
|
-
} from "./chunk-
|
|
162
|
+
} from "./chunk-68wghpdf.js";
|
|
162
163
|
import {
|
|
163
164
|
explainObjectQuery2
|
|
164
|
-
} from "./chunk-
|
|
165
|
+
} from "./chunk-hk38wahh.js";
|
|
165
166
|
import {
|
|
166
167
|
redactDomainEvent,
|
|
167
168
|
uniqueLookupKeyOf,
|
|
@@ -170,7 +171,7 @@ import {
|
|
|
170
171
|
readerClearance,
|
|
171
172
|
readerEventClearance,
|
|
172
173
|
readerViewConditions
|
|
173
|
-
} from "./chunk-
|
|
174
|
+
} from "./chunk-z3ryd53f.js";
|
|
174
175
|
import {
|
|
175
176
|
shareSixbErrorReporter2,
|
|
176
177
|
reportActionPhaseFailure2,
|
|
@@ -192,14 +193,14 @@ import {
|
|
|
192
193
|
createActivityCaptureRuntime,
|
|
193
194
|
registerActivityCaptureRuntime,
|
|
194
195
|
ModelExecutionSession
|
|
195
|
-
} from "./chunk-
|
|
196
|
+
} from "./chunk-vr3j63jq.js";
|
|
196
197
|
import {
|
|
197
198
|
resolveLoggingService2
|
|
198
199
|
} from "./chunk-3qms4nax.js";
|
|
199
200
|
import {
|
|
200
201
|
createLinkScopeFingerprint2,
|
|
201
202
|
normalizeJsonProperties2
|
|
202
|
-
} from "./chunk-
|
|
203
|
+
} from "./chunk-xe0732g0.js";
|
|
203
204
|
import {
|
|
204
205
|
EditBatchError2,
|
|
205
206
|
lowerEditBatch2
|
|
@@ -219,7 +220,7 @@ import {
|
|
|
219
220
|
agentThreadViews,
|
|
220
221
|
createRuntimeArtifactAccessRule,
|
|
221
222
|
createArtifactsRuntime
|
|
222
|
-
} from "./chunk-
|
|
223
|
+
} from "./chunk-8z4726jz.js";
|
|
223
224
|
import {
|
|
224
225
|
aiLimitSubjectsFromAttribution2,
|
|
225
226
|
applicableAiLimitPolicyStatuses2,
|
|
@@ -238,14 +239,14 @@ import {
|
|
|
238
239
|
} from "./chunk-5a4a52tq.js";
|
|
239
240
|
import {
|
|
240
241
|
createConnectorRuntime
|
|
241
|
-
} from "./chunk-
|
|
242
|
+
} from "./chunk-vrf90dkv.js";
|
|
242
243
|
import {
|
|
243
244
|
writeDataset2
|
|
244
245
|
} from "./chunk-6y0mkhex.js";
|
|
245
246
|
import {
|
|
246
247
|
SyncValidationError2,
|
|
247
248
|
requestSyncRun2
|
|
248
|
-
} from "./chunk-
|
|
249
|
+
} from "./chunk-62a63pr6.js";
|
|
249
250
|
import {
|
|
250
251
|
SandboxError2,
|
|
251
252
|
sandboxCredentialIssue2,
|
|
@@ -253,13 +254,13 @@ import {
|
|
|
253
254
|
} from "./chunk-d2m879s4.js";
|
|
254
255
|
import {
|
|
255
256
|
compileShareAccessPlan
|
|
256
|
-
} from "./chunk-
|
|
257
|
+
} from "./chunk-6bkbyer5.js";
|
|
257
258
|
import {
|
|
258
259
|
schemaRecordToJsonSchema2
|
|
259
260
|
} from "./chunk-e5wf5vz0.js";
|
|
260
261
|
import {
|
|
261
262
|
requestPipelineRun2
|
|
262
|
-
} from "./chunk-
|
|
263
|
+
} from "./chunk-9ntbsnke.js";
|
|
263
264
|
import {
|
|
264
265
|
PipelineError2
|
|
265
266
|
} from "./chunk-hke9aeen.js";
|
|
@@ -272,14 +273,14 @@ import {
|
|
|
272
273
|
ensureExecutionRecord2,
|
|
273
274
|
createPrimitiveExecutionRecord,
|
|
274
275
|
restoreTrustedPrimitiveExecutionScope
|
|
275
|
-
} from "./chunk-
|
|
276
|
+
} from "./chunk-1j6j0rht.js";
|
|
276
277
|
import {
|
|
277
278
|
resolveLanguageModel2
|
|
278
279
|
} from "./chunk-07kkp2e1.js";
|
|
279
280
|
import {
|
|
280
281
|
AI_MODEL_CALL_OUTPUT_TOKEN_ALLOWANCE,
|
|
281
282
|
aiModelCallOutputTokenAllowance
|
|
282
|
-
} from "./chunk-
|
|
283
|
+
} from "./chunk-2x19q6k6.js";
|
|
283
284
|
import {
|
|
284
285
|
getDatasetPrimaryKeyColumns2
|
|
285
286
|
} from "./chunk-1t6k1avb.js";
|
|
@@ -7694,12 +7695,28 @@ function prepareModelInputFile(input, type) {
|
|
|
7694
7695
|
throw new TypeError(`[SixbModels] ${capitalize(type)} input must be a nonempty FileRef.`);
|
|
7695
7696
|
}
|
|
7696
7697
|
const file = { ...input };
|
|
7697
|
-
const mediaType = file.mediaType
|
|
7698
|
-
if (!mediaType
|
|
7698
|
+
const mediaType = modelInputMediaType(file.mediaType, type);
|
|
7699
|
+
if (!mediaType) {
|
|
7699
7700
|
throw new TypeError(`[SixbModels] ${capitalize(type)} FileRef must declare an ${type} mediaType.`);
|
|
7700
7701
|
}
|
|
7701
7702
|
return { file, mediaType };
|
|
7702
7703
|
}
|
|
7704
|
+
function prepareModelInputBytes(input, type) {
|
|
7705
|
+
if (!(input.data instanceof Uint8Array) || input.data.byteLength === 0) {
|
|
7706
|
+
throw new TypeError(`[SixbModels] ${capitalize(type)} data must be a nonempty Uint8Array.`);
|
|
7707
|
+
}
|
|
7708
|
+
const mediaType = modelInputMediaType(input.mediaType, type);
|
|
7709
|
+
if (!mediaType) {
|
|
7710
|
+
throw new TypeError(`[SixbModels] ${capitalize(type)} data must declare an ${type} mediaType.`);
|
|
7711
|
+
}
|
|
7712
|
+
return { bytes: input.data.slice(), mediaType };
|
|
7713
|
+
}
|
|
7714
|
+
function modelInputMediaType(value, type) {
|
|
7715
|
+
if (typeof value !== "string")
|
|
7716
|
+
return;
|
|
7717
|
+
const mediaType = value.split(";", 1)[0]?.trim().toLowerCase();
|
|
7718
|
+
return mediaType && new RegExp(`^${type}/[a-z0-9.+-]+$`).test(mediaType) ? mediaType : undefined;
|
|
7719
|
+
}
|
|
7703
7720
|
function capitalize(type) {
|
|
7704
7721
|
return type === "audio" ? "Audio" : "Image";
|
|
7705
7722
|
}
|
|
@@ -7916,15 +7933,12 @@ function createAudioRuntime(runtime, execution, catalog, session, blobs) {
|
|
|
7916
7933
|
speak: createSpeak(runtime, execution, catalog, session, blobs),
|
|
7917
7934
|
async transcribe(input) {
|
|
7918
7935
|
assertModelAccess2(runtime, execution, "models.audio.transcribe");
|
|
7919
|
-
const {
|
|
7920
|
-
if (!blobs) {
|
|
7921
|
-
throw new Error("[SixbModels] Transcription requires blob storage.");
|
|
7922
|
-
}
|
|
7936
|
+
const { mediaType, sizeBytes, read } = prepareAudio(input.audio, blobs);
|
|
7923
7937
|
const signal = session.signal(input.signal);
|
|
7924
7938
|
signal.throwIfAborted();
|
|
7925
7939
|
const binding = selectModel2(catalog, input.model);
|
|
7926
7940
|
assertTranscriptionModel(binding);
|
|
7927
|
-
assertFileSupport(binding,
|
|
7941
|
+
assertFileSupport(binding, sizeBytes, mediaType);
|
|
7928
7942
|
const accounting = await session.accounting();
|
|
7929
7943
|
accounting.assertHealthy();
|
|
7930
7944
|
const model = binding.resolve ? await binding.resolve() : binding;
|
|
@@ -7932,9 +7946,9 @@ function createAudioRuntime(runtime, execution, catalog, session, blobs) {
|
|
|
7932
7946
|
if (model.providerId !== binding.providerId || model.modelId !== binding.modelId) {
|
|
7933
7947
|
throw new TypeError("[SixbModels] Resolved transcription model identity does not match the selected model.");
|
|
7934
7948
|
}
|
|
7935
|
-
assertFileSupport(model,
|
|
7949
|
+
assertFileSupport(model, sizeBytes, mediaType);
|
|
7936
7950
|
signal.throwIfAborted();
|
|
7937
|
-
const bytes = await
|
|
7951
|
+
const bytes = await read(signal);
|
|
7938
7952
|
accounting.assertHealthy();
|
|
7939
7953
|
const reservationCost = estimateReservationCost2(model, bytes.byteLength, mediaType);
|
|
7940
7954
|
const callId = `call_${randomUUID11()}`;
|
|
@@ -7969,6 +7983,21 @@ function createAudioRuntime(runtime, execution, catalog, session, blobs) {
|
|
|
7969
7983
|
}
|
|
7970
7984
|
};
|
|
7971
7985
|
}
|
|
7986
|
+
function prepareAudio(input, blobs) {
|
|
7987
|
+
if (typeof input === "object" && input !== null && "data" in input) {
|
|
7988
|
+
const { bytes, mediaType } = prepareModelInputBytes(input, "audio");
|
|
7989
|
+
return { mediaType, sizeBytes: bytes.byteLength, read: async () => bytes };
|
|
7990
|
+
}
|
|
7991
|
+
const { file, mediaType } = prepareModelInputFile(input, "audio");
|
|
7992
|
+
if (!blobs) {
|
|
7993
|
+
throw new Error("[SixbModels] Transcribing a stored file requires blob storage.");
|
|
7994
|
+
}
|
|
7995
|
+
return {
|
|
7996
|
+
mediaType,
|
|
7997
|
+
sizeBytes: file.sizeBytes,
|
|
7998
|
+
read: (signal) => readModelInputFile(blobs, file, signal)
|
|
7999
|
+
};
|
|
8000
|
+
}
|
|
7972
8001
|
function selectModel2(catalog, requested) {
|
|
7973
8002
|
const selected = requested ?? catalog?.audio?.transcription?.default.model;
|
|
7974
8003
|
if (!selected) {
|
|
@@ -8380,6 +8409,7 @@ function createModelsRuntime(runtime, execution, catalog, session, runs, blobs)
|
|
|
8380
8409
|
};
|
|
8381
8410
|
}
|
|
8382
8411
|
const models = {
|
|
8412
|
+
canRun: () => canAccessModels2(runtime, execution),
|
|
8383
8413
|
language: { generate },
|
|
8384
8414
|
decision: createDecisionRuntime(runtime, execution, catalog, session, "models"),
|
|
8385
8415
|
audio: createAudioRuntime(runtime, execution, catalog, session, blobs),
|
|
@@ -10766,4 +10796,4 @@ function invalidAgentExecution(executionId, runId) {
|
|
|
10766
10796
|
|
|
10767
10797
|
export { defineAction2, param2, optional2, ActionRegistry2, bindModelExecutionAttempt, canInheritAgentRequestAuthorization2, createAgentExecutionRecord2, createInheritedAgentExecutionRecord2, bindDurableAgentExecution2, bindAgentGatewayRequestExecution2, bindAgentModelExecution2, restoreAgentExecutionScope2, assertAgentExecutionRecord2, resumeDecidedAgentTurn2, agentRunApprovalMode2, holdAgentApprovalCall2, approvalCallSummary2, listChildApprovalsAwaiting2, isAwaitingApprovalRun2, isPausedSubagentRun2, AGENT_APPROVAL_EXECUTION_LEASE_MS2, turnResumeReadiness2, turnPausesOnHeldCalls2, hasActiveChildren2, listTurnApprovals2, stopAgentTurn2, announceAgentApprovals2, agentApprovalCallers2, AgentRunScopeError2, resolveAgentRunExecutionScope2, createAgentApprovalExecutor, registerAgentApprovalExecutor, getAgentApprovalExecutor2, isAwaitingAnswerRun2, deferredChildQuestion2, listSubagentThreadRuns2, assertTurnModelRouting, DEFAULT_PROJECT_LOCALE, DEFAULT_PROJECT_TIME_ZONE, canonicalLocale, canonicalTimeZone, resolveAgentContextParts2, agentRunQueueJobId2, subagentRunQueueJobId2, workflowAgentNodeQueueJobId2, dispatchQueuedAgentRuns2, dispatchQueuedSubagentRuns2, assertNoAgentDefinitions, requestAgentRun2, isRetryableAgentRun2, retryAgentRun2, WorkflowDefinitionError2, WorkflowValidationError2, assertNonEmpty, isStepDefinition2, isAgentStepDefinition2, isInterventionDefinition2, isWorkflowDefinition2, validateWorkflowDefinition2, validateWorkflowsAtStartup2, validateWorkflowAgentStepGroupReferences2, validateWorkflowInput2, validateWorkflowStepInput2, validateWorkflowStepOutput2, validateWorkflowInterventionInput2, validateWorkflowInterventionResponse2, validateWorkflowInterventionDefaultResponse2, assertAgentStepSandbox, validateWorkflowAgentStepInput2, validateWorkflowAgentStepOutput2, snapshotWorkflowAgentStepInput2, snapshotWorkflowAgentStepOutput2, snapshotWorkflowInput2, snapshotWorkflowStepInput2, snapshotWorkflowStepOutput2, snapshotWorkflowInterventionInput2, snapshotWorkflowInterventionResponse2, snapshotWorkflowInterventionDefaultResponse2, snapshotWorkflowActionInput2, WorkflowRunDispatcher2, requestWorkflowRun2, prepareBoundActionRequest2, prepareBoundWorkflowRequest2, runModelLoop2, requestAction2, ObjectError2, removeLink2, upsertLink2, upsertLinkBatch2, deleteObject2, restoreObject2, upsertObject2, upsertObjectBatch2, writeTelemetryBatch2, appendTelemetryBatch2, getTelemetryHistoryBatch2, requireLinkDefinition2, resolveObjectContext2, resolveLinkContext2, createObjectSet2, exports_service, ShareError2, createBoundSixb, isBoundSixb, bindDurablePrimitiveExecution2, ACTION_RUN_DRAIN_TIMEOUT_MS2, ActionRunExecutor, registerActionRunExecutor, drainActionRuns2, requestAction3 };
|
|
10768
10798
|
|
|
10769
|
-
//# debugId=
|
|
10799
|
+
//# debugId=655683BB59481CF264756E2164756E21
|