@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/syncs/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
defineSync2,
|
|
4
4
|
resolveSyncConnectorSources2,
|
|
5
5
|
isSyncDefinition2
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-rp9wwk7b.js";
|
|
7
7
|
import"../chunk-fntqb7qy.js";
|
|
8
8
|
import"../chunk-fb3feg1e.js";
|
|
9
9
|
import"../chunk-9mab3dvg.js";
|
|
@@ -12,15 +12,15 @@ import {
|
|
|
12
12
|
SyncValidationError2,
|
|
13
13
|
SyncRunDispatcher2,
|
|
14
14
|
requestSyncRun2
|
|
15
|
-
} from "../chunk-
|
|
16
|
-
import"../chunk-
|
|
17
|
-
import"../chunk-
|
|
15
|
+
} from "../chunk-62a63pr6.js";
|
|
16
|
+
import"../chunk-vrf90dkv.js";
|
|
17
|
+
import"../chunk-1j6j0rht.js";
|
|
18
18
|
import"../chunk-c844dkwd.js";
|
|
19
19
|
import"../chunk-48jezz3j.js";
|
|
20
20
|
import"../chunk-npcr0228.js";
|
|
21
|
-
import"../chunk-
|
|
21
|
+
import"../chunk-68wghpdf.js";
|
|
22
22
|
import"../chunk-qf954wje.js";
|
|
23
|
-
import"../chunk-
|
|
23
|
+
import"../chunk-97wr6p2g.js";
|
|
24
24
|
import"../chunk-fe8zwt8b.js";
|
|
25
25
|
import"../chunk-hqsp2sx4.js";
|
|
26
26
|
import"../chunk-2adz0h75.js";
|
|
@@ -34,7 +34,7 @@ import"../chunk-0xmt5p5y.js";
|
|
|
34
34
|
import"../chunk-pgrf64hp.js";
|
|
35
35
|
import"../chunk-4ymrcdbm.js";
|
|
36
36
|
import"../chunk-eptrvnby.js";
|
|
37
|
-
import"../chunk-
|
|
37
|
+
import"../chunk-24bqx0dx.js";
|
|
38
38
|
import"../chunk-h89wz928.js";
|
|
39
39
|
import"../chunk-x0v3jd47.js";
|
|
40
40
|
import"../chunk-c0vk1djt.js";
|
|
@@ -42,14 +42,14 @@ import"../chunk-mbsbxarb.js";
|
|
|
42
42
|
import"../chunk-cswhawa2.js";
|
|
43
43
|
import"../chunk-tdxfsg1c.js";
|
|
44
44
|
import"../chunk-pdt5cw8z.js";
|
|
45
|
-
import"../chunk-
|
|
45
|
+
import"../chunk-gqm0b7vd.js";
|
|
46
46
|
import"../chunk-6n69k945.js";
|
|
47
47
|
import"../chunk-cdk3egjj.js";
|
|
48
48
|
import"../chunk-bab05bhg.js";
|
|
49
49
|
import"../chunk-zrvhsq7f.js";
|
|
50
50
|
import"../chunk-73v685wb.js";
|
|
51
51
|
import"../chunk-5grk14e5.js";
|
|
52
|
-
import"../chunk-
|
|
52
|
+
import"../chunk-n9w3n38q.js";
|
|
53
53
|
import"../chunk-rap5w0x0.js";
|
|
54
54
|
import"../chunk-65pyhyas.js";
|
|
55
55
|
import"../chunk-4y26vs3v.js";
|
package/dist/testing/index.js
CHANGED
|
@@ -7,13 +7,13 @@ import {
|
|
|
7
7
|
validateObjectQuery2,
|
|
8
8
|
AuthStorageError2,
|
|
9
9
|
SYSTEM_PRINCIPAL2
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-gqm0b7vd.js";
|
|
11
11
|
import"../chunk-vhbw5sqm.js";
|
|
12
12
|
import {
|
|
13
13
|
agentServiceAccountId2,
|
|
14
14
|
MAX_OBJECT_READ_FACETS2,
|
|
15
15
|
defineProjection2
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-n9w3n38q.js";
|
|
17
17
|
import"../chunk-4y26vs3v.js";
|
|
18
18
|
import {
|
|
19
19
|
compileSelectedObjectReadScope2,
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
import {
|
|
55
55
|
DEFAULT_FILE_UPLOAD_TERMINAL_SESSION_TTL_MS2
|
|
56
56
|
} from "../chunk-h89wz928.js";
|
|
57
|
-
import"../chunk-
|
|
57
|
+
import"../chunk-24bqx0dx.js";
|
|
58
58
|
import {
|
|
59
59
|
ArtifactStorageError
|
|
60
60
|
} from "../chunk-fe8zwt8b.js";
|
|
@@ -80,7 +80,7 @@ import {
|
|
|
80
80
|
WorkflowInterventionError2,
|
|
81
81
|
InMemoryStorage2,
|
|
82
82
|
migrateStorage2
|
|
83
|
-
} from "../chunk-
|
|
83
|
+
} from "../chunk-68wghpdf.js";
|
|
84
84
|
import"../chunk-hqsp2sx4.js";
|
|
85
85
|
import"../chunk-2adz0h75.js";
|
|
86
86
|
import"../chunk-mmagke4x.js";
|
|
@@ -89,18 +89,18 @@ import"../chunk-g663fahq.js";
|
|
|
89
89
|
import"../chunk-jmfet9r4.js";
|
|
90
90
|
import"../chunk-qf954wje.js";
|
|
91
91
|
import"../chunk-x0v3jd47.js";
|
|
92
|
-
import"../chunk-
|
|
92
|
+
import"../chunk-97wr6p2g.js";
|
|
93
93
|
import {
|
|
94
94
|
ProjectionRegistry2,
|
|
95
95
|
createLinkScopeFingerprint2,
|
|
96
96
|
createOntologyMaterializer2
|
|
97
|
-
} from "../chunk-
|
|
97
|
+
} from "../chunk-xe0732g0.js";
|
|
98
98
|
import {
|
|
99
99
|
bindModelExecutionAttempt,
|
|
100
100
|
isBoundSixb
|
|
101
|
-
} from "../chunk-
|
|
101
|
+
} from "../chunk-et017krg.js";
|
|
102
102
|
import"../chunk-48jezz3j.js";
|
|
103
|
-
import"../chunk-
|
|
103
|
+
import"../chunk-vr3j63jq.js";
|
|
104
104
|
import {
|
|
105
105
|
planObjectQuery2,
|
|
106
106
|
executeObjectQuery2,
|
|
@@ -108,18 +108,18 @@ import {
|
|
|
108
108
|
existsObjects2,
|
|
109
109
|
facetObjects2,
|
|
110
110
|
executeObjectQueryLinks2
|
|
111
|
-
} from "../chunk-
|
|
112
|
-
import"../chunk-
|
|
111
|
+
} from "../chunk-hk38wahh.js";
|
|
112
|
+
import"../chunk-z3ryd53f.js";
|
|
113
113
|
import"../chunk-r6szek0x.js";
|
|
114
114
|
import"../chunk-3fqxbn31.js";
|
|
115
115
|
import"../chunk-waqk73p1.js";
|
|
116
116
|
import"../chunk-qx00vjrj.js";
|
|
117
|
-
import"../chunk-
|
|
117
|
+
import"../chunk-8z4726jz.js";
|
|
118
118
|
import"../chunk-dp0cdtj2.js";
|
|
119
119
|
import"../chunk-sgx82nnt.js";
|
|
120
120
|
import"../chunk-8ncg20rd.js";
|
|
121
121
|
import"../chunk-5a4a52tq.js";
|
|
122
|
-
import"../chunk-
|
|
122
|
+
import"../chunk-vrf90dkv.js";
|
|
123
123
|
import {
|
|
124
124
|
col2,
|
|
125
125
|
defineDataset2,
|
|
@@ -133,12 +133,12 @@ import"../chunk-3qms4nax.js";
|
|
|
133
133
|
import"../chunk-m427qgq0.js";
|
|
134
134
|
import {
|
|
135
135
|
SixbHost2
|
|
136
|
-
} from "../chunk-
|
|
136
|
+
} from "../chunk-yecwnwpq.js";
|
|
137
137
|
import"../chunk-45ngkxkp.js";
|
|
138
138
|
import"../chunk-t5608tkq.js";
|
|
139
139
|
import"../chunk-9mab3dvg.js";
|
|
140
|
-
import"../chunk-
|
|
141
|
-
import"../chunk-
|
|
140
|
+
import"../chunk-3p93tb91.js";
|
|
141
|
+
import"../chunk-sqfvnvqj.js";
|
|
142
142
|
import"../chunk-fb3feg1e.js";
|
|
143
143
|
import"../chunk-yw9pyg66.js";
|
|
144
144
|
import"../chunk-5tfev0fv.js";
|
|
@@ -149,7 +149,7 @@ import"../chunk-fntqb7qy.js";
|
|
|
149
149
|
import"../chunk-661ezhks.js";
|
|
150
150
|
import {
|
|
151
151
|
workflowAgentStepActorId2
|
|
152
|
-
} from "../chunk-
|
|
152
|
+
} from "../chunk-vd1rk42q.js";
|
|
153
153
|
import {
|
|
154
154
|
BrokerError2,
|
|
155
155
|
InMemoryBroker2
|
|
@@ -160,25 +160,25 @@ import {
|
|
|
160
160
|
} from "../chunk-nzapm6p0.js";
|
|
161
161
|
import"../chunk-2fn60nvs.js";
|
|
162
162
|
import"../chunk-vabga7fk.js";
|
|
163
|
-
import"../chunk-
|
|
163
|
+
import"../chunk-rp9wwk7b.js";
|
|
164
164
|
import"../chunk-m2nevja0.js";
|
|
165
165
|
import"../chunk-c69nj7se.js";
|
|
166
|
-
import"../chunk-
|
|
166
|
+
import"../chunk-bnr4a734.js";
|
|
167
167
|
import {
|
|
168
168
|
createTestingScope
|
|
169
|
-
} from "../chunk-
|
|
169
|
+
} from "../chunk-7ny9mjgm.js";
|
|
170
170
|
import"../chunk-m36fw8ft.js";
|
|
171
|
-
import"../chunk-
|
|
171
|
+
import"../chunk-62a63pr6.js";
|
|
172
172
|
import {
|
|
173
173
|
SandboxNotRunningError2
|
|
174
174
|
} from "../chunk-d2m879s4.js";
|
|
175
|
-
import"../chunk-
|
|
176
|
-
import"../chunk-
|
|
175
|
+
import"../chunk-6bkbyer5.js";
|
|
176
|
+
import"../chunk-9ntbsnke.js";
|
|
177
177
|
import {
|
|
178
178
|
restoreTrustedPrimitiveExecutionScope
|
|
179
|
-
} from "../chunk-
|
|
179
|
+
} from "../chunk-1j6j0rht.js";
|
|
180
180
|
import"../chunk-07kkp2e1.js";
|
|
181
|
-
import"../chunk-
|
|
181
|
+
import"../chunk-2x19q6k6.js";
|
|
182
182
|
import"../chunk-1t6k1avb.js";
|
|
183
183
|
import {
|
|
184
184
|
LakeStorageError2
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import"../chunk-zbc929zg.js";
|
|
3
3
|
import"../chunk-6eqsgvxk.js";
|
|
4
4
|
import"../chunk-vhbw5sqm.js";
|
|
5
|
-
import"../chunk-
|
|
5
|
+
import"../chunk-n9w3n38q.js";
|
|
6
6
|
import"../chunk-4y26vs3v.js";
|
|
7
7
|
import"../chunk-rap5w0x0.js";
|
|
8
8
|
import"../chunk-wkv3h3q7.js";
|
|
@@ -10,10 +10,10 @@ import"../chunk-65pyhyas.js";
|
|
|
10
10
|
import {
|
|
11
11
|
createConnectorCodedError,
|
|
12
12
|
getConnectorExecutionSourceResolver
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-vrf90dkv.js";
|
|
14
14
|
import"../chunk-mbsbxarb.js";
|
|
15
15
|
import"../chunk-c0vk1djt.js";
|
|
16
|
-
import"../chunk-
|
|
16
|
+
import"../chunk-gqm0b7vd.js";
|
|
17
17
|
import"../chunk-73v685wb.js";
|
|
18
18
|
import"../chunk-bab05bhg.js";
|
|
19
19
|
import"../chunk-cdk3egjj.js";
|
|
@@ -25,7 +25,7 @@ import"../chunk-nydf3dbe.js";
|
|
|
25
25
|
import"../chunk-0xmt5p5y.js";
|
|
26
26
|
import"../chunk-4ymrcdbm.js";
|
|
27
27
|
import"../chunk-h89wz928.js";
|
|
28
|
-
import"../chunk-
|
|
28
|
+
import"../chunk-24bqx0dx.js";
|
|
29
29
|
import {
|
|
30
30
|
isStorageSerializationFailure2
|
|
31
31
|
} from "../chunk-fe8zwt8b.js";
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
import"../chunk-cswhawa2.js";
|
|
39
39
|
import {
|
|
40
40
|
canRetryWebhookRun2
|
|
41
|
-
} from "../chunk-
|
|
41
|
+
} from "../chunk-68wghpdf.js";
|
|
42
42
|
import"../chunk-hqsp2sx4.js";
|
|
43
43
|
import"../chunk-2adz0h75.js";
|
|
44
44
|
import"../chunk-mmagke4x.js";
|
|
@@ -49,10 +49,10 @@ import {
|
|
|
49
49
|
WebhookRunError2
|
|
50
50
|
} from "../chunk-qf954wje.js";
|
|
51
51
|
import"../chunk-x0v3jd47.js";
|
|
52
|
-
import"../chunk-
|
|
52
|
+
import"../chunk-97wr6p2g.js";
|
|
53
53
|
import {
|
|
54
54
|
createPrimitiveExecutionRecord
|
|
55
|
-
} from "../chunk-
|
|
55
|
+
} from "../chunk-1j6j0rht.js";
|
|
56
56
|
import {
|
|
57
57
|
isOAuthConnectorDefinition2,
|
|
58
58
|
isStaticConnectorDefinition2
|
package/dist/workflows/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
defineWorkflow2,
|
|
9
9
|
createWorkflowNodeFailure2,
|
|
10
10
|
unwrapWorkflowNodeFailure2
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-vd1rk42q.js";
|
|
12
12
|
import"../chunk-fntqb7qy.js";
|
|
13
13
|
import"../chunk-fb3feg1e.js";
|
|
14
14
|
import"../chunk-9mab3dvg.js";
|
|
@@ -44,18 +44,18 @@ import {
|
|
|
44
44
|
snapshotWorkflowActionInput2,
|
|
45
45
|
WorkflowRunDispatcher2,
|
|
46
46
|
requestWorkflowRun2
|
|
47
|
-
} from "../chunk-
|
|
48
|
-
import"../chunk-
|
|
49
|
-
import"../chunk-
|
|
47
|
+
} from "../chunk-et017krg.js";
|
|
48
|
+
import"../chunk-62a63pr6.js";
|
|
49
|
+
import"../chunk-vrf90dkv.js";
|
|
50
50
|
import"../chunk-d2m879s4.js";
|
|
51
|
-
import"../chunk-
|
|
52
|
-
import"../chunk-
|
|
53
|
-
import"../chunk-
|
|
51
|
+
import"../chunk-6bkbyer5.js";
|
|
52
|
+
import"../chunk-9ntbsnke.js";
|
|
53
|
+
import"../chunk-vr3j63jq.js";
|
|
54
54
|
import"../chunk-3qms4nax.js";
|
|
55
|
-
import"../chunk-
|
|
56
|
-
import"../chunk-
|
|
55
|
+
import"../chunk-xe0732g0.js";
|
|
56
|
+
import"../chunk-1j6j0rht.js";
|
|
57
57
|
import"../chunk-07kkp2e1.js";
|
|
58
|
-
import"../chunk-
|
|
58
|
+
import"../chunk-2x19q6k6.js";
|
|
59
59
|
import"../chunk-2gjj5dx3.js";
|
|
60
60
|
import"../chunk-dp0cdtj2.js";
|
|
61
61
|
import"../chunk-5a4a52tq.js";
|
|
@@ -68,12 +68,12 @@ import"../chunk-npcr0228.js";
|
|
|
68
68
|
import"../chunk-8ncg20rd.js";
|
|
69
69
|
import"../chunk-sgx82nnt.js";
|
|
70
70
|
import"../chunk-r6szek0x.js";
|
|
71
|
-
import"../chunk-
|
|
72
|
-
import"../chunk-
|
|
73
|
-
import"../chunk-
|
|
74
|
-
import"../chunk-
|
|
71
|
+
import"../chunk-8z4726jz.js";
|
|
72
|
+
import"../chunk-z3ryd53f.js";
|
|
73
|
+
import"../chunk-hk38wahh.js";
|
|
74
|
+
import"../chunk-68wghpdf.js";
|
|
75
75
|
import"../chunk-qf954wje.js";
|
|
76
|
-
import"../chunk-
|
|
76
|
+
import"../chunk-97wr6p2g.js";
|
|
77
77
|
import"../chunk-fe8zwt8b.js";
|
|
78
78
|
import"../chunk-hqsp2sx4.js";
|
|
79
79
|
import"../chunk-2adz0h75.js";
|
|
@@ -87,7 +87,7 @@ import"../chunk-0xmt5p5y.js";
|
|
|
87
87
|
import"../chunk-pgrf64hp.js";
|
|
88
88
|
import"../chunk-4ymrcdbm.js";
|
|
89
89
|
import"../chunk-eptrvnby.js";
|
|
90
|
-
import"../chunk-
|
|
90
|
+
import"../chunk-24bqx0dx.js";
|
|
91
91
|
import"../chunk-h89wz928.js";
|
|
92
92
|
import"../chunk-x0v3jd47.js";
|
|
93
93
|
import"../chunk-c0vk1djt.js";
|
|
@@ -95,14 +95,14 @@ import"../chunk-mbsbxarb.js";
|
|
|
95
95
|
import"../chunk-cswhawa2.js";
|
|
96
96
|
import"../chunk-tdxfsg1c.js";
|
|
97
97
|
import"../chunk-pdt5cw8z.js";
|
|
98
|
-
import"../chunk-
|
|
98
|
+
import"../chunk-gqm0b7vd.js";
|
|
99
99
|
import"../chunk-6n69k945.js";
|
|
100
100
|
import"../chunk-cdk3egjj.js";
|
|
101
101
|
import"../chunk-bab05bhg.js";
|
|
102
102
|
import"../chunk-zrvhsq7f.js";
|
|
103
103
|
import"../chunk-73v685wb.js";
|
|
104
104
|
import"../chunk-5grk14e5.js";
|
|
105
|
-
import"../chunk-
|
|
105
|
+
import"../chunk-n9w3n38q.js";
|
|
106
106
|
import"../chunk-rap5w0x0.js";
|
|
107
107
|
import"../chunk-65pyhyas.js";
|
|
108
108
|
import"../chunk-4y26vs3v.js";
|
package/package.json
CHANGED
|
@@ -130,6 +130,13 @@ export function layoutProbe(scope: number | "page"): LayoutProblem[] {
|
|
|
130
130
|
Number.parseFloat(footer.paddingTop) -
|
|
131
131
|
Number.parseFloat(footer.lineHeight) -
|
|
132
132
|
Number.parseFloat(footer.borderTopWidth)
|
|
133
|
+
// The footer's rule spans these columns; a deck may narrow it beside an edge-to-edge image.
|
|
134
|
+
const footerLeft = box.left + (Number.parseFloat(footer.left) || 0)
|
|
135
|
+
const footerRight = box.right - (Number.parseFloat(footer.right) || 0)
|
|
136
|
+
// An image that reaches the slide's bottom edge is drawn behind the footer on purpose: a
|
|
137
|
+
// backdrop or an edge-to-edge photo. The kit's footer sits over it.
|
|
138
|
+
const bleeds = (element: Element, rect: DOMRect) =>
|
|
139
|
+
/^(img|picture|video|canvas)$/i.test(element.tagName) && rect.bottom >= box.bottom - 1
|
|
133
140
|
const outside: Element[] = []
|
|
134
141
|
// A box that scrolls sideways holds what is wider than the window, as a wide table's does.
|
|
135
142
|
const scrolls = (element: Element) => {
|
|
@@ -156,7 +163,13 @@ export function layoutProbe(scope: number | "page"): LayoutProblem[] {
|
|
|
156
163
|
) {
|
|
157
164
|
outside.push(element)
|
|
158
165
|
report("outside", element)
|
|
159
|
-
} else if (
|
|
166
|
+
} else if (
|
|
167
|
+
rect.bottom > footerTop + 1 &&
|
|
168
|
+
rect.top < box.bottom &&
|
|
169
|
+
rect.right > footerLeft + 1 &&
|
|
170
|
+
rect.left < footerRight - 1 &&
|
|
171
|
+
!bleeds(element, rect)
|
|
172
|
+
) {
|
|
160
173
|
outside.push(element)
|
|
161
174
|
report("footer", element)
|
|
162
175
|
}
|
|
@@ -272,13 +272,13 @@ export function assertModelAccess(
|
|
|
272
272
|
execution: ExecutionContext,
|
|
273
273
|
operation: string
|
|
274
274
|
): void {
|
|
275
|
+
if (canAccessModels(runtime, execution)) return
|
|
276
|
+
|
|
275
277
|
const resolved = resolveExecutionScopeAuthorization(runtime.projectId, {
|
|
276
278
|
execution,
|
|
277
279
|
authorization: runtime.runtimeAuthorization,
|
|
278
280
|
})
|
|
279
|
-
if (resolved.type === "unrestricted" || execution.executor.type === "agent") return
|
|
280
281
|
if (resolved.type === "principal") {
|
|
281
|
-
if (isAllowed(resolved.context, { kind: "models.run" })) return
|
|
282
282
|
throw new AuthorizationError(
|
|
283
283
|
"run:models",
|
|
284
284
|
deniedMessage(resolved.context, { kind: "models.run" })
|
|
@@ -290,6 +290,19 @@ export function assertModelAccess(
|
|
|
290
290
|
)
|
|
291
291
|
}
|
|
292
292
|
|
|
293
|
+
/** Whether {@link assertModelAccess} lets this execution call a model. */
|
|
294
|
+
export function canAccessModels(
|
|
295
|
+
runtime: AuthorizedRuntime & { readonly runtimeAuthorization: RuntimeAuthorization },
|
|
296
|
+
execution: ExecutionContext
|
|
297
|
+
): boolean {
|
|
298
|
+
const resolved = resolveExecutionScopeAuthorization(runtime.projectId, {
|
|
299
|
+
execution,
|
|
300
|
+
authorization: runtime.runtimeAuthorization,
|
|
301
|
+
})
|
|
302
|
+
if (resolved.type === "unrestricted" || execution.executor.type === "agent") return true
|
|
303
|
+
return resolved.type === "principal" && isAllowed(resolved.context, { kind: "models.run" })
|
|
304
|
+
}
|
|
305
|
+
|
|
293
306
|
function deniedMessage(
|
|
294
307
|
authorization: AuthorizationContext | null | undefined,
|
|
295
308
|
request: AuthzRequest
|
package/src/index.ts
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { randomUUID } from "node:crypto"
|
|
2
2
|
import { assertModelAccess } from "../../authorization"
|
|
3
|
-
import type { BlobStorage } from "../../blob-storage/types"
|
|
3
|
+
import type { BlobStorage, FileRef } from "../../blob-storage/types"
|
|
4
4
|
import type { ExecutionContext } from "../../execution"
|
|
5
5
|
import type { SixbRuntimeContext } from "../../runtime/types"
|
|
6
6
|
import type { ModelCatalog } from "../catalog"
|
|
7
7
|
import type { ModelCallEndEvent } from "../events"
|
|
8
8
|
import type { AiModelCallRecorder } from "../execution/model-call-recorder"
|
|
9
9
|
import type { ModelExecutionSession } from "../execution/session"
|
|
10
|
-
import { prepareModelInputFile, readModelInputFile } from "../input-file"
|
|
10
|
+
import { prepareModelInputBytes, prepareModelInputFile, readModelInputFile } from "../input-file"
|
|
11
11
|
import { estimateModelCall, type ModelMoney } from "../pricing"
|
|
12
12
|
import { assertTranscriptionModel } from "./catalog"
|
|
13
13
|
import { TranscriptionModelResponseError } from "./errors"
|
|
14
14
|
import { createSpeak } from "./speech"
|
|
15
15
|
import type {
|
|
16
|
+
AudioData,
|
|
16
17
|
AudioModelsRuntime,
|
|
17
18
|
TranscriptionModel,
|
|
18
19
|
TranscriptionModelResponseMetadata,
|
|
@@ -31,17 +32,14 @@ export function createAudioRuntime(
|
|
|
31
32
|
async transcribe(input) {
|
|
32
33
|
assertModelAccess(runtime, execution, "models.audio.transcribe")
|
|
33
34
|
|
|
34
|
-
const {
|
|
35
|
-
if (!blobs) {
|
|
36
|
-
throw new Error("[SixbModels] Transcription requires blob storage.")
|
|
37
|
-
}
|
|
35
|
+
const { mediaType, sizeBytes, read } = prepareAudio(input.audio, blobs)
|
|
38
36
|
|
|
39
37
|
const signal = session.signal(input.signal)
|
|
40
38
|
signal.throwIfAborted()
|
|
41
39
|
|
|
42
40
|
const binding = selectModel(catalog, input.model)
|
|
43
41
|
assertTranscriptionModel(binding)
|
|
44
|
-
assertFileSupport(binding,
|
|
42
|
+
assertFileSupport(binding, sizeBytes, mediaType)
|
|
45
43
|
|
|
46
44
|
const accounting = await session.accounting()
|
|
47
45
|
accounting.assertHealthy()
|
|
@@ -53,10 +51,10 @@ export function createAudioRuntime(
|
|
|
53
51
|
"[SixbModels] Resolved transcription model identity does not match the selected model."
|
|
54
52
|
)
|
|
55
53
|
}
|
|
56
|
-
assertFileSupport(model,
|
|
54
|
+
assertFileSupport(model, sizeBytes, mediaType)
|
|
57
55
|
|
|
58
56
|
signal.throwIfAborted()
|
|
59
|
-
const bytes = await
|
|
57
|
+
const bytes = await read(signal)
|
|
60
58
|
accounting.assertHealthy()
|
|
61
59
|
|
|
62
60
|
const reservationCost = estimateReservationCost(model, bytes.byteLength, mediaType)
|
|
@@ -107,6 +105,31 @@ export function createAudioRuntime(
|
|
|
107
105
|
}
|
|
108
106
|
}
|
|
109
107
|
|
|
108
|
+
interface PreparedAudio {
|
|
109
|
+
readonly mediaType: string
|
|
110
|
+
readonly sizeBytes: number
|
|
111
|
+
read(signal: AbortSignal): Promise<Uint8Array>
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/** Snapshot the caller's audio before the first await: its bytes, or a stored file's reference. */
|
|
115
|
+
function prepareAudio(input: FileRef | AudioData, blobs: BlobStorage | undefined): PreparedAudio {
|
|
116
|
+
if (typeof input === "object" && input !== null && "data" in input) {
|
|
117
|
+
const { bytes, mediaType } = prepareModelInputBytes(input, "audio")
|
|
118
|
+
return { mediaType, sizeBytes: bytes.byteLength, read: async () => bytes }
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
const { file, mediaType } = prepareModelInputFile(input, "audio")
|
|
122
|
+
if (!blobs) {
|
|
123
|
+
throw new Error("[SixbModels] Transcribing a stored file requires blob storage.")
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
return {
|
|
127
|
+
mediaType,
|
|
128
|
+
sizeBytes: file.sizeBytes,
|
|
129
|
+
read: (signal) => readModelInputFile(blobs, file, signal),
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
110
133
|
function selectModel(
|
|
111
134
|
catalog: ModelCatalog | undefined,
|
|
112
135
|
requested: TranscriptionModel | undefined
|
|
@@ -57,8 +57,16 @@ export interface TranscriptionModel {
|
|
|
57
57
|
transcribe(request: TranscriptionModelRequest): Promise<TranscriptionModelResult>
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
+
/** Audio bytes sent straight to the model, never written to blob storage. */
|
|
61
|
+
export interface AudioData {
|
|
62
|
+
readonly data: Uint8Array
|
|
63
|
+
/** An `audio/*` type, such as `audio/webm`. */
|
|
64
|
+
readonly mediaType: string
|
|
65
|
+
}
|
|
66
|
+
|
|
60
67
|
export interface AudioTranscribeInput {
|
|
61
|
-
|
|
68
|
+
/** A stored file, or bytes such as a dictation that should not be kept. */
|
|
69
|
+
readonly audio: FileRef | AudioData
|
|
62
70
|
readonly model?: TranscriptionModel
|
|
63
71
|
readonly signal?: AbortSignal
|
|
64
72
|
}
|
package/src/models/execution.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { runModelLoop } from "../agents/model-loop"
|
|
2
|
-
import { assertModelAccess } from "../authorization"
|
|
2
|
+
import { assertModelAccess, canAccessModels } from "../authorization"
|
|
3
3
|
import type { BlobStorage } from "../blob-storage/types"
|
|
4
4
|
import type { ExecutionContext } from "../execution"
|
|
5
5
|
import type { SixbRuntimeContext } from "../runtime/types"
|
|
@@ -124,6 +124,7 @@ export function createModelsRuntime(
|
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
const models: ModelsRuntime = {
|
|
127
|
+
canRun: () => canAccessModels(runtime, execution),
|
|
127
128
|
language: { generate },
|
|
128
129
|
decision: createDecisionRuntime(runtime, execution, catalog, session, "models"),
|
|
129
130
|
audio: createAudioRuntime(runtime, execution, catalog, session, blobs),
|
|
@@ -52,6 +52,11 @@ export interface LanguageModelsRuntime {
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
export interface ModelsRuntime {
|
|
55
|
+
/**
|
|
56
|
+
* Whether this execution may call the models: always for project code and the Agent, and for a
|
|
57
|
+
* user or service account granted `can.run(project.models)`.
|
|
58
|
+
*/
|
|
59
|
+
canRun(): boolean
|
|
55
60
|
readonly audio: AudioModelsRuntime
|
|
56
61
|
readonly language: LanguageModelsRuntime
|
|
57
62
|
readonly decision: DecisionModelsRuntime
|
package/src/models/index.ts
CHANGED
package/src/models/input-file.ts
CHANGED
|
@@ -12,8 +12,8 @@ export function prepareModelInputFile(
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
const file = { ...input }
|
|
15
|
-
const mediaType = file.mediaType
|
|
16
|
-
if (!mediaType
|
|
15
|
+
const mediaType = modelInputMediaType(file.mediaType, type)
|
|
16
|
+
if (!mediaType) {
|
|
17
17
|
throw new TypeError(
|
|
18
18
|
`[SixbModels] ${capitalize(type)} FileRef must declare an ${type} mediaType.`
|
|
19
19
|
)
|
|
@@ -22,6 +22,31 @@ export function prepareModelInputFile(
|
|
|
22
22
|
return { file, mediaType }
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
/** Copy caller-owned bytes, so changing the array after the call cannot reach the model. */
|
|
26
|
+
export function prepareModelInputBytes(
|
|
27
|
+
input: { readonly data: unknown; readonly mediaType: unknown },
|
|
28
|
+
type: "audio"
|
|
29
|
+
): { bytes: Uint8Array; mediaType: string } {
|
|
30
|
+
if (!(input.data instanceof Uint8Array) || input.data.byteLength === 0) {
|
|
31
|
+
throw new TypeError(`[SixbModels] ${capitalize(type)} data must be a nonempty Uint8Array.`)
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const mediaType = modelInputMediaType(input.mediaType, type)
|
|
35
|
+
if (!mediaType) {
|
|
36
|
+
throw new TypeError(`[SixbModels] ${capitalize(type)} data must declare an ${type} mediaType.`)
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
return { bytes: input.data.slice(), mediaType }
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/** The essence of a media type, such as `audio/webm` for `audio/webm;codecs=opus`. */
|
|
43
|
+
function modelInputMediaType(value: unknown, type: "audio" | "image"): string | undefined {
|
|
44
|
+
if (typeof value !== "string") return undefined
|
|
45
|
+
|
|
46
|
+
const mediaType = value.split(";", 1)[0]?.trim().toLowerCase()
|
|
47
|
+
return mediaType && new RegExp(`^${type}/[a-z0-9.+-]+$`).test(mediaType) ? mediaType : undefined
|
|
48
|
+
}
|
|
49
|
+
|
|
25
50
|
function capitalize(type: "audio" | "image"): string {
|
|
26
51
|
return type === "audio" ? "Audio" : "Image"
|
|
27
52
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|