@sixb/core 0.2.1 → 0.2.2
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 +29 -29
- package/dist/agents/cancel.d.ts.map +1 -1
- package/dist/agents/index.d.ts +5 -3
- package/dist/agents/index.d.ts.map +1 -1
- package/dist/agents/index.js +38 -32
- package/dist/agents/index.js.map +1 -1
- package/dist/agents/run-plan.d.ts +15 -1
- package/dist/agents/run-plan.d.ts.map +1 -1
- package/dist/agents/run-session-http.d.ts.map +1 -1
- package/dist/agents/run-session-serve.d.ts.map +1 -1
- package/dist/agents/run-session.d.ts +14 -2
- package/dist/agents/run-session.d.ts.map +1 -1
- package/dist/agents/skills.d.ts +3 -0
- package/dist/agents/skills.d.ts.map +1 -1
- package/dist/agents/step-limits.d.ts +6 -0
- package/dist/agents/step-limits.d.ts.map +1 -1
- package/dist/agents/streams/index.js +1 -1
- package/dist/agents/streams/internal.js +1 -1
- package/dist/agents/streams/protocol.d.ts +8 -2
- package/dist/agents/streams/protocol.d.ts.map +1 -1
- package/dist/agents/tool-files.d.ts +3 -1
- package/dist/agents/tool-files.d.ts.map +1 -1
- package/dist/agents/validation.d.ts +1 -1
- package/dist/agents/validation.d.ts.map +1 -1
- package/dist/agents/web.d.ts +47 -0
- package/dist/agents/web.d.ts.map +1 -0
- package/dist/artifacts/publish/index.js +16 -16
- package/dist/auth/index.js +3 -3
- package/dist/authorization/index.js +2 -2
- package/dist/authorization/resolve.d.ts +4 -3
- package/dist/authorization/resolve.d.ts.map +1 -1
- package/dist/authorization/types.d.ts +5 -5
- package/dist/authorization/types.d.ts.map +1 -1
- package/dist/bootstrap/index.js +34 -34
- package/dist/{chunk-neftrg0n.js → chunk-0j3crh1w.js} +2 -2
- package/dist/{chunk-tvbmh7tj.js → chunk-2ajw5rz0.js} +14 -10
- package/dist/chunk-2ajw5rz0.js.map +18 -0
- package/dist/{chunk-23s66j86.js → chunk-31kcqmhf.js} +1 -1
- package/dist/{chunk-nghc7eq0.js → chunk-3723kgba.js} +1 -1
- package/dist/{chunk-rjeeyssy.js → chunk-3sqqhpr7.js} +4 -4
- package/dist/{chunk-m3qe54bb.js → chunk-4bm0caep.js} +1 -1
- package/dist/{chunk-h05rg3bx.js → chunk-4s753g3k.js} +3 -3
- package/dist/{chunk-8wsjr52f.js → chunk-5wtnmpze.js} +1 -1
- package/dist/{chunk-edx8xcsm.js → chunk-7z5rkf0m.js} +29 -6
- package/dist/chunk-7z5rkf0m.js.map +13 -0
- package/dist/{chunk-2pk5hjj9.js → chunk-80gym75n.js} +1 -1
- package/dist/{chunk-qbrmpgvv.js → chunk-9whfmsfk.js} +1 -1
- package/dist/{chunk-z3evap21.js → chunk-a5v4gjdx.js} +27 -26
- package/dist/{chunk-z3evap21.js.map → chunk-a5v4gjdx.js.map} +3 -3
- package/dist/{chunk-w53trr0c.js → chunk-a7aa0nzj.js} +5 -5
- package/dist/{chunk-tvefbgvw.js → chunk-az95tsh3.js} +4 -2
- package/dist/chunk-az95tsh3.js.map +11 -0
- package/dist/{chunk-7hd2ez3q.js → chunk-c4nrycdy.js} +1 -1
- package/dist/{chunk-epyfm23v.js → chunk-c706qvyc.js} +3 -3
- package/dist/{chunk-t5daew4g.js → chunk-c7cfe31p.js} +6 -6
- package/dist/{chunk-qsg8rw04.js → chunk-d04g36fw.js} +1 -1
- package/dist/{chunk-ratj7t3t.js → chunk-dsv783c3.js} +305 -32
- package/dist/{chunk-ratj7t3t.js.map → chunk-dsv783c3.js.map} +12 -10
- package/dist/{chunk-cb21tx14.js → chunk-eqgr6nsa.js} +81 -25
- package/dist/{chunk-cb21tx14.js.map → chunk-eqgr6nsa.js.map} +8 -7
- package/dist/{chunk-ax10ft8d.js → chunk-f1h34y3r.js} +5 -5
- package/dist/{chunk-9rh8ncs5.js → chunk-fwsvshr5.js} +1 -1
- package/dist/{chunk-b7a97n8b.js → chunk-ga63a3dz.js} +6 -6
- package/dist/{chunk-b7a97n8b.js.map → chunk-ga63a3dz.js.map} +2 -2
- package/dist/{chunk-cgznz22f.js → chunk-gkv8r794.js} +2 -2
- package/dist/{chunk-t9xyr7y9.js → chunk-j8thxj7w.js} +3 -3
- package/dist/{chunk-31khg3g0.js → chunk-kkjfve0t.js} +73 -2
- package/dist/{chunk-31khg3g0.js.map → chunk-kkjfve0t.js.map} +3 -3
- package/dist/{chunk-8yzhjawq.js → chunk-m2vh8gh0.js} +8 -14
- package/dist/{chunk-8yzhjawq.js.map → chunk-m2vh8gh0.js.map} +3 -3
- package/dist/{chunk-nqnfz3jg.js → chunk-mbc5hvnj.js} +2 -2
- package/dist/{chunk-jk97v21j.js → chunk-n4zzaf6q.js} +3 -2
- package/dist/chunk-n4zzaf6q.js.map +10 -0
- package/dist/{chunk-y2x2935j.js → chunk-nh26e7c5.js} +2 -2
- package/dist/{chunk-jhbk10wf.js → chunk-q9nkpr8k.js} +1 -1
- package/dist/{chunk-47e09r7z.js → chunk-qttqe1ah.js} +86 -6
- package/dist/{chunk-47e09r7z.js.map → chunk-qttqe1ah.js.map} +5 -4
- package/dist/{chunk-3x3bebz7.js → chunk-s7j8ewqv.js} +161 -62
- package/dist/{chunk-3x3bebz7.js.map → chunk-s7j8ewqv.js.map} +7 -6
- package/dist/{chunk-dz7a4t3a.js → chunk-twfreyxr.js} +5 -10
- package/dist/{chunk-dz7a4t3a.js.map → chunk-twfreyxr.js.map} +4 -4
- package/dist/{chunk-ks87m383.js → chunk-w1btn96n.js} +49 -24
- package/dist/{chunk-ks87m383.js.map → chunk-w1btn96n.js.map} +6 -6
- package/dist/{chunk-fg1db9xx.js → chunk-wkq3kvzd.js} +5 -5
- package/dist/chunk-wkq3kvzd.js.map +10 -0
- package/dist/{chunk-aqyjb86c.js → chunk-wrjx1fqz.js} +6 -6
- package/dist/{chunk-agn8d8ys.js → chunk-xtztwpkh.js} +1 -1
- package/dist/{chunk-0g5nyx0k.js → chunk-zeykm8my.js} +2 -2
- package/dist/connectors/connections/runs.d.ts +7 -0
- package/dist/connectors/connections/runs.d.ts.map +1 -1
- package/dist/execution/agent.js +29 -29
- package/dist/execution/object-reader-security.d.ts.map +1 -1
- package/dist/execution/primitive.js +29 -29
- package/dist/execution/request.js +30 -30
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +37 -37
- package/dist/materializer/index.js +15 -15
- package/dist/models/catalog.d.ts +16 -0
- package/dist/models/catalog.d.ts.map +1 -1
- package/dist/models/definitions.d.ts +1 -1
- package/dist/models/definitions.d.ts.map +1 -1
- package/dist/models/execution/index.js +17 -17
- package/dist/models/execution/model-call-recorder.d.ts +1 -1
- package/dist/models/execution/model-call-recorder.d.ts.map +1 -1
- package/dist/models/execution/web-search.d.ts +7 -0
- package/dist/models/execution/web-search.d.ts.map +1 -0
- package/dist/models/index.d.ts +3 -1
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +5 -3
- package/dist/models/index.js.map +1 -1
- package/dist/models/language-model.d.ts +12 -0
- package/dist/models/language-model.d.ts.map +1 -1
- package/dist/models/web-search-model.d.ts +66 -0
- package/dist/models/web-search-model.d.ts.map +1 -0
- package/dist/objects/index.js +29 -29
- package/dist/objects/query/executor.d.ts.map +1 -1
- package/dist/objects/query/index.d.ts +1 -0
- package/dist/objects/query/index.d.ts.map +1 -1
- package/dist/objects/query/index.js +18 -15
- package/dist/objects/query/index.js.map +1 -1
- package/dist/objects/query/sort-ties.d.ts +11 -0
- package/dist/objects/query/sort-ties.d.ts.map +1 -0
- package/dist/pipelines/index.js +15 -15
- package/dist/projections/internal.js +15 -15
- package/dist/runtime/create.d.ts +1 -1
- package/dist/runtime/create.d.ts.map +1 -1
- package/dist/runtime/internal.js +21 -21
- package/dist/runtime/resolve-definitions.d.ts.map +1 -1
- package/dist/security/index.d.ts +1 -0
- package/dist/security/index.d.ts.map +1 -1
- package/dist/security/registry.d.ts +2 -0
- package/dist/security/registry.d.ts.map +1 -1
- package/dist/security/view-conditions.d.ts.map +1 -1
- package/dist/security/visibility-keys.d.ts +19 -0
- package/dist/security/visibility-keys.d.ts.map +1 -0
- package/dist/shares/internal.js +15 -15
- package/dist/storage/agents/in-memory.d.ts +8 -2
- package/dist/storage/agents/in-memory.d.ts.map +1 -1
- package/dist/storage/agents/index.d.ts +1 -1
- package/dist/storage/agents/index.d.ts.map +1 -1
- package/dist/storage/agents/provider.d.ts +8 -2
- package/dist/storage/agents/provider.d.ts.map +1 -1
- package/dist/storage/agents/provider.js +12 -6
- package/dist/storage/agents/provider.js.map +1 -1
- package/dist/storage/agents/types.d.ts +42 -2
- package/dist/storage/agents/types.d.ts.map +1 -1
- package/dist/storage/ai-cost/provider.js +4 -4
- package/dist/storage/ai-limits/enforcement.js +3 -3
- package/dist/storage/ai-limits/provider.js +2 -2
- package/dist/storage/connector-connections/provider.js +3 -3
- package/dist/storage/connector-connections/provider.js.map +3 -3
- package/dist/storage/file-upload-sessions/provider.js +4 -4
- package/dist/storage/index.d.ts +2 -2
- package/dist/storage/index.d.ts.map +1 -1
- package/dist/storage/index.js +14 -14
- package/dist/storage/internal.js +2 -2
- package/dist/storage/migrations/types.d.ts +6 -0
- package/dist/storage/migrations/types.d.ts.map +1 -1
- package/dist/storage/objects/in-memory/query.d.ts.map +1 -1
- package/dist/storage/objects/index.d.ts +1 -1
- package/dist/storage/objects/index.d.ts.map +1 -1
- package/dist/storage/objects/query-preparation.d.ts +13 -0
- package/dist/storage/objects/query-preparation.d.ts.map +1 -1
- package/dist/storage/objects/read-scope.d.ts.map +1 -1
- package/dist/storage/objects/types.d.ts +52 -0
- package/dist/storage/objects/types.d.ts.map +1 -1
- package/dist/storage/share-grants/provider.js +2 -2
- package/dist/storage/workflow-runs/provider.js +4 -4
- package/dist/syncs/index.js +17 -17
- package/dist/testing/agent-storage-contract.d.ts.map +1 -1
- package/dist/testing/ai-limit-storage-contract.d.ts.map +1 -1
- package/dist/testing/ai-usage-storage-contract.d.ts.map +1 -1
- package/dist/testing/connector-connection-storage-contract.d.ts.map +1 -1
- package/dist/testing/index.js +399 -45
- package/dist/testing/index.js.map +8 -8
- package/dist/testing/object-conditional-read-scope-contract.d.ts.map +1 -1
- package/dist/testing/object-query-contract.d.ts.map +1 -1
- package/dist/webhooks/internal.js +15 -15
- package/dist/workflows/index.js +31 -31
- package/package.json +1 -1
- package/src/agents/README.md +2 -1
- package/src/agents/cancel.ts +7 -1
- package/src/agents/index.ts +9 -1
- package/src/agents/run-plan.ts +31 -0
- package/src/agents/run-session-http.ts +15 -12
- package/src/agents/run-session-serve.ts +8 -2
- package/src/agents/run-session.ts +31 -11
- package/src/agents/skills.ts +3 -0
- package/src/agents/step-limits.ts +6 -0
- package/src/agents/streams/protocol.ts +9 -4
- package/src/agents/tool-files.ts +11 -3
- package/src/agents/validation.ts +9 -0
- package/src/agents/web.ts +218 -0
- package/src/authorization/resolve.ts +9 -11
- package/src/authorization/types.ts +5 -5
- package/src/connectors/connections/runs.ts +42 -5
- package/src/execution/object-reader-security.ts +4 -9
- package/src/index.ts +2 -0
- package/src/models/catalog.ts +52 -3
- package/src/models/definitions.ts +2 -0
- package/src/models/execution/README.md +22 -2
- package/src/models/execution/model-call-recorder.ts +1 -1
- package/src/models/execution/web-search.ts +186 -0
- package/src/models/index.ts +12 -0
- package/src/models/language-model.ts +12 -0
- package/src/models/web-search-model.ts +152 -0
- package/src/objects/query/executor.ts +7 -3
- package/src/objects/query/index.ts +1 -0
- package/src/objects/query/sort-ties.ts +16 -0
- package/src/runtime/create.ts +3 -2
- package/src/runtime/resolve-definitions.ts +4 -0
- package/src/security/index.ts +1 -0
- package/src/security/registry.ts +2 -0
- package/src/security/view-conditions.ts +4 -3
- package/src/security/visibility-keys.ts +144 -0
- package/src/storage/agents/in-memory.ts +29 -2
- package/src/storage/agents/index.ts +2 -0
- package/src/storage/agents/provider.ts +57 -1
- package/src/storage/agents/types.ts +45 -2
- package/src/storage/connector-connections/in-memory.ts +2 -2
- package/src/storage/connector-connections/provider/connections.ts +2 -2
- package/src/storage/index.ts +4 -0
- package/src/storage/migrations/types.ts +6 -0
- package/src/storage/objects/in-memory/query.ts +5 -2
- package/src/storage/objects/index.ts +2 -0
- package/src/storage/objects/query-preparation.ts +59 -1
- package/src/storage/objects/read-scope.ts +108 -2
- package/src/storage/objects/types.ts +43 -0
- package/src/testing/agent-storage-contract.ts +70 -0
- package/src/testing/ai-limit-storage-contract.ts +11 -1
- package/src/testing/ai-usage-storage-contract.ts +15 -2
- package/src/testing/connector-connection-storage-contract.ts +23 -0
- package/src/testing/object-conditional-read-scope-contract.ts +267 -5
- package/src/testing/object-query-contract.ts +75 -0
- package/dist/chunk-edx8xcsm.js.map +0 -13
- package/dist/chunk-fg1db9xx.js.map +0 -10
- package/dist/chunk-jk97v21j.js.map +0 -10
- package/dist/chunk-tvbmh7tj.js.map +0 -18
- package/dist/chunk-tvefbgvw.js.map +0 -11
- /package/dist/{chunk-neftrg0n.js.map → chunk-0j3crh1w.js.map} +0 -0
- /package/dist/{chunk-23s66j86.js.map → chunk-31kcqmhf.js.map} +0 -0
- /package/dist/{chunk-nghc7eq0.js.map → chunk-3723kgba.js.map} +0 -0
- /package/dist/{chunk-rjeeyssy.js.map → chunk-3sqqhpr7.js.map} +0 -0
- /package/dist/{chunk-m3qe54bb.js.map → chunk-4bm0caep.js.map} +0 -0
- /package/dist/{chunk-h05rg3bx.js.map → chunk-4s753g3k.js.map} +0 -0
- /package/dist/{chunk-8wsjr52f.js.map → chunk-5wtnmpze.js.map} +0 -0
- /package/dist/{chunk-2pk5hjj9.js.map → chunk-80gym75n.js.map} +0 -0
- /package/dist/{chunk-qbrmpgvv.js.map → chunk-9whfmsfk.js.map} +0 -0
- /package/dist/{chunk-w53trr0c.js.map → chunk-a7aa0nzj.js.map} +0 -0
- /package/dist/{chunk-7hd2ez3q.js.map → chunk-c4nrycdy.js.map} +0 -0
- /package/dist/{chunk-epyfm23v.js.map → chunk-c706qvyc.js.map} +0 -0
- /package/dist/{chunk-t5daew4g.js.map → chunk-c7cfe31p.js.map} +0 -0
- /package/dist/{chunk-qsg8rw04.js.map → chunk-d04g36fw.js.map} +0 -0
- /package/dist/{chunk-ax10ft8d.js.map → chunk-f1h34y3r.js.map} +0 -0
- /package/dist/{chunk-9rh8ncs5.js.map → chunk-fwsvshr5.js.map} +0 -0
- /package/dist/{chunk-cgznz22f.js.map → chunk-gkv8r794.js.map} +0 -0
- /package/dist/{chunk-t9xyr7y9.js.map → chunk-j8thxj7w.js.map} +0 -0
- /package/dist/{chunk-nqnfz3jg.js.map → chunk-mbc5hvnj.js.map} +0 -0
- /package/dist/{chunk-y2x2935j.js.map → chunk-nh26e7c5.js.map} +0 -0
- /package/dist/{chunk-jhbk10wf.js.map → chunk-q9nkpr8k.js.map} +0 -0
- /package/dist/{chunk-aqyjb86c.js.map → chunk-wrjx1fqz.js.map} +0 -0
- /package/dist/{chunk-agn8d8ys.js.map → chunk-xtztwpkh.js.map} +0 -0
- /package/dist/{chunk-0g5nyx0k.js.map → chunk-zeykm8my.js.map} +0 -0
|
@@ -13,12 +13,12 @@ import {
|
|
|
13
13
|
captureExecutionScope,
|
|
14
14
|
resolveExecutionScopeAuthorization,
|
|
15
15
|
AuthorizationError2
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-twfreyxr.js";
|
|
17
17
|
import {
|
|
18
18
|
assertViewConditionsReadable,
|
|
19
19
|
SecurityRegistry,
|
|
20
20
|
AuthRuntime2
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-s7j8ewqv.js";
|
|
22
22
|
import {
|
|
23
23
|
ActionRegistry2,
|
|
24
24
|
createAgentApprovalExecutor,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
createBoundSixb,
|
|
35
35
|
ActionRunExecutor,
|
|
36
36
|
registerActionRunExecutor
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-a5v4gjdx.js";
|
|
38
38
|
import {
|
|
39
39
|
AuthRuntimeError2,
|
|
40
40
|
isMagicLinkAuthStrategy2,
|
|
@@ -47,10 +47,10 @@ import {
|
|
|
47
47
|
RerankingModelResponseError2,
|
|
48
48
|
createModelCatalog2,
|
|
49
49
|
estimateModelCall
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-qttqe1ah.js";
|
|
51
51
|
import {
|
|
52
52
|
FileUploadSessionError2
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-31kcqmhf.js";
|
|
54
54
|
import {
|
|
55
55
|
ACTIVITY_VISIT_ID_PATTERN2,
|
|
56
56
|
ACTIVITY_ID_MAX_LENGTH2,
|
|
@@ -62,7 +62,7 @@ import {
|
|
|
62
62
|
import {
|
|
63
63
|
isMigrationCapableStorage2,
|
|
64
64
|
checkStorageSchema2
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-eqgr6nsa.js";
|
|
66
66
|
import {
|
|
67
67
|
NO_CONTRIBUTION,
|
|
68
68
|
NO_APPLIED_MARKINGS,
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
} from "./chunk-x0v3jd47.js";
|
|
72
72
|
import {
|
|
73
73
|
createAuthorizedObjectReader
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-m2vh8gh0.js";
|
|
75
75
|
import {
|
|
76
76
|
attachSixbErrorReporter2,
|
|
77
77
|
shareSixbErrorReporter2
|
|
@@ -81,7 +81,7 @@ import {
|
|
|
81
81
|
createOntologyMutationRuntime2,
|
|
82
82
|
decodeActivityConnectionsCursor,
|
|
83
83
|
ModelExecutionSession
|
|
84
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-f1h34y3r.js";
|
|
85
85
|
import {
|
|
86
86
|
registerConnectorConnectionCallbackProcess
|
|
87
87
|
} from "./chunk-5a4a52tq.js";
|
|
@@ -96,7 +96,7 @@ import {
|
|
|
96
96
|
isConnectorStorageError,
|
|
97
97
|
storageBoundaryError,
|
|
98
98
|
recoverConnectorFailure
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-fwsvshr5.js";
|
|
100
100
|
import {
|
|
101
101
|
assertDatasetDefinition2,
|
|
102
102
|
isDatasetPick2
|
|
@@ -104,7 +104,7 @@ import {
|
|
|
104
104
|
import {
|
|
105
105
|
ProjectionRegistry2,
|
|
106
106
|
createOntologyMaterializer2
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-3sqqhpr7.js";
|
|
108
108
|
import {
|
|
109
109
|
LoggingService2
|
|
110
110
|
} from "./chunk-1vg43g9q.js";
|
|
@@ -116,9 +116,11 @@ import {
|
|
|
116
116
|
validateSchedulesAtStartup2
|
|
117
117
|
} from "./chunk-57g0215c.js";
|
|
118
118
|
import {
|
|
119
|
+
resolveAgentWebOptions,
|
|
120
|
+
assertNoProviderWebTools,
|
|
119
121
|
toolsFromProjectConfig,
|
|
120
122
|
assertMaxSteps
|
|
121
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-dsv783c3.js";
|
|
122
124
|
import {
|
|
123
125
|
SchedulerRuntime2
|
|
124
126
|
} from "./chunk-yw9pyg66.js";
|
|
@@ -130,16 +132,16 @@ import {
|
|
|
130
132
|
validateSharesAtStartup,
|
|
131
133
|
discoverOntologySources,
|
|
132
134
|
discoverProjectDefinitions2
|
|
133
|
-
} from "./chunk-
|
|
135
|
+
} from "./chunk-a7aa0nzj.js";
|
|
134
136
|
import {
|
|
135
137
|
bindEmbeddingModels,
|
|
136
138
|
createVectorIndexingRuntime,
|
|
137
139
|
registerVectorIndexingRuntime,
|
|
138
140
|
getApiPublicOrigin
|
|
139
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-wrjx1fqz.js";
|
|
140
142
|
import {
|
|
141
143
|
registerProjectionRegistry2
|
|
142
|
-
} from "./chunk-
|
|
144
|
+
} from "./chunk-nh26e7c5.js";
|
|
143
145
|
import {
|
|
144
146
|
registeredSteps,
|
|
145
147
|
runStepLineages,
|
|
@@ -156,7 +158,7 @@ import {
|
|
|
156
158
|
} from "./chunk-ytzcxtpt.js";
|
|
157
159
|
import {
|
|
158
160
|
SyncValidationError2
|
|
159
|
-
} from "./chunk-
|
|
161
|
+
} from "./chunk-4s753g3k.js";
|
|
160
162
|
import {
|
|
161
163
|
SandboxError2,
|
|
162
164
|
createSandboxDefinition,
|
|
@@ -164,7 +166,7 @@ import {
|
|
|
164
166
|
} from "./chunk-r1cxq7vv.js";
|
|
165
167
|
import {
|
|
166
168
|
ensureExecutionRecord2
|
|
167
|
-
} from "./chunk-
|
|
169
|
+
} from "./chunk-9whfmsfk.js";
|
|
168
170
|
import {
|
|
169
171
|
isOAuthConnectorDefinition2
|
|
170
172
|
} from "./chunk-9x8dybsb.js";
|
|
@@ -2183,19 +2185,22 @@ class ConnectorConnectionRunService {
|
|
|
2183
2185
|
if (!account) {
|
|
2184
2186
|
throw createConnectorCodedError("connector.not_found", `Account '${input.accountId}' is not exposed by this connector connection run.`);
|
|
2185
2187
|
}
|
|
2188
|
+
return this.view(await this.connectRunAccount(run, account, input.replace === true));
|
|
2189
|
+
}
|
|
2190
|
+
async connectRunAccount(run, account, replace) {
|
|
2186
2191
|
let selected;
|
|
2187
2192
|
try {
|
|
2188
2193
|
selected = await this.connectionStorage.putConnectionFromRun({
|
|
2189
2194
|
id: `ccn_${randomUUID5()}`,
|
|
2190
2195
|
projectId: this.projectId,
|
|
2191
|
-
connectorId:
|
|
2196
|
+
connectorId: run.connectorId,
|
|
2192
2197
|
runId: run.id,
|
|
2193
2198
|
account,
|
|
2194
|
-
replace
|
|
2199
|
+
replace
|
|
2195
2200
|
});
|
|
2196
2201
|
} catch (error) {
|
|
2197
2202
|
if (isConnectorStorageError(error, "run_invalid")) {
|
|
2198
|
-
const latest = await this.readRun(
|
|
2203
|
+
const latest = await this.readRun(run.connectorId, run.id);
|
|
2199
2204
|
if (latest)
|
|
2200
2205
|
await this.continueRunCleanup(latest);
|
|
2201
2206
|
throw createConnectorCodedError("connector.operation_conflict", "Connector connection run is no longer waiting for account selection.", { cause: error });
|
|
@@ -2208,13 +2213,22 @@ class ConnectorConnectionRunService {
|
|
|
2208
2213
|
}
|
|
2209
2214
|
throw storageBoundaryError(error, "Connector account selection could not be persisted.");
|
|
2210
2215
|
}
|
|
2211
|
-
const cleanupCompleted = selected.revocationPendingAuthorizationId ? await this.continuePendingRevocation(
|
|
2216
|
+
const cleanupCompleted = selected.revocationPendingAuthorizationId ? await this.continuePendingRevocation(run.connectorId, selected.revocationPendingAuthorizationId) : true;
|
|
2212
2217
|
if (cleanupCompleted) {
|
|
2213
2218
|
this.cancelRunMaintenance(run.id);
|
|
2214
2219
|
} else {
|
|
2215
2220
|
this.scheduleRunMaintenance(selected.run, CLEANUP_RETRY_DELAY_MS);
|
|
2216
2221
|
}
|
|
2217
|
-
return
|
|
2222
|
+
return selected.run;
|
|
2223
|
+
}
|
|
2224
|
+
async connectOnlyAccount(run, account) {
|
|
2225
|
+
try {
|
|
2226
|
+
await this.connectRunAccount(run, account, false);
|
|
2227
|
+
} catch (error) {
|
|
2228
|
+
if (isSixbError2(error) && error.code === "connector.replacement_required")
|
|
2229
|
+
return;
|
|
2230
|
+
console.warn("[Sixb] Connecting the only connector account failed; the user can still select it.", error);
|
|
2231
|
+
}
|
|
2218
2232
|
}
|
|
2219
2233
|
async claimCallback(state, callbackBinding, redirectUri) {
|
|
2220
2234
|
let claimed;
|
|
@@ -2251,6 +2265,9 @@ class ConnectorConnectionRunService {
|
|
|
2251
2265
|
}
|
|
2252
2266
|
async finalizeCompletedRun(run, authorization) {
|
|
2253
2267
|
if (run.kind === "connect") {
|
|
2268
|
+
if (authorization.accounts.length === 0) {
|
|
2269
|
+
throw createConnectorCodedError("connector.not_found", "This authorization does not give access to any account. Sign in with one that has access.");
|
|
2270
|
+
}
|
|
2254
2271
|
if (!authorization.selectionExpiresAt) {
|
|
2255
2272
|
throw createConnectorCodedError("internal.unexpected", "Connector authorization is missing its account-selection deadline.");
|
|
2256
2273
|
}
|
|
@@ -2265,6 +2282,9 @@ class ConnectorConnectionRunService {
|
|
|
2265
2282
|
}));
|
|
2266
2283
|
if (waiting) {
|
|
2267
2284
|
this.scheduleRunMaintenance(waiting, this.selectionTtlMs + 1);
|
|
2285
|
+
const [account, ...others] = authorization.accounts;
|
|
2286
|
+
if (account && others.length === 0)
|
|
2287
|
+
await this.connectOnlyAccount(waiting, account);
|
|
2268
2288
|
return waiting;
|
|
2269
2289
|
}
|
|
2270
2290
|
} else {
|
|
@@ -3942,6 +3962,9 @@ function resolveDefinitions(options) {
|
|
|
3942
3962
|
const subagentMaxSteps = options.agent?.subagentMaxSteps;
|
|
3943
3963
|
assertMaxSteps(maxSteps, "agent.maxSteps");
|
|
3944
3964
|
assertMaxSteps(subagentMaxSteps, "agent.subagentMaxSteps");
|
|
3965
|
+
const web = resolveAgentWebOptions(options.agent?.web);
|
|
3966
|
+
if (web !== false)
|
|
3967
|
+
assertNoProviderWebTools(models);
|
|
3945
3968
|
const ontologyDocs = createOntologyDocsCatalog({
|
|
3946
3969
|
objectTypes: ontology.listObjectTypes(),
|
|
3947
3970
|
...options.agent?.ontologyDocs === undefined ? {} : { docs: options.agent.ontologyDocs }
|
|
@@ -4041,7 +4064,8 @@ function resolveDefinitions(options) {
|
|
|
4041
4064
|
...options.agent?.instructions === undefined ? {} : { instructions: options.agent.instructions },
|
|
4042
4065
|
ontologyDocs,
|
|
4043
4066
|
...maxSteps === undefined ? {} : { maxSteps },
|
|
4044
|
-
...subagentMaxSteps === undefined ? {} : { subagentMaxSteps }
|
|
4067
|
+
...subagentMaxSteps === undefined ? {} : { subagentMaxSteps },
|
|
4068
|
+
...web === undefined ? {} : { web }
|
|
4045
4069
|
}),
|
|
4046
4070
|
connectors: createDefinitionCatalog(connectorsById),
|
|
4047
4071
|
datasets: createDefinitionCatalog(datasetsById),
|
|
@@ -4494,7 +4518,7 @@ async function createSixb2(options) {
|
|
|
4494
4518
|
const skills = await discoverAgentSkills(projectRoot);
|
|
4495
4519
|
const instructions = await discoverProjectInstructions(projectRoot);
|
|
4496
4520
|
const ontologyFiles = await discoverOntologyFiles(projectRoot);
|
|
4497
|
-
const { maxSteps, subagentMaxSteps } = options.agent ?? {};
|
|
4521
|
+
const { maxSteps, subagentMaxSteps, web } = options.agent ?? {};
|
|
4498
4522
|
return new SixbHost2({
|
|
4499
4523
|
id: options.id,
|
|
4500
4524
|
locale: options.locale,
|
|
@@ -4531,6 +4555,7 @@ async function createSixb2(options) {
|
|
|
4531
4555
|
agent: {
|
|
4532
4556
|
...maxSteps === undefined ? {} : { maxSteps },
|
|
4533
4557
|
...subagentMaxSteps === undefined ? {} : { subagentMaxSteps },
|
|
4558
|
+
...web === undefined ? {} : { web },
|
|
4534
4559
|
skills,
|
|
4535
4560
|
...instructions === undefined ? {} : { instructions },
|
|
4536
4561
|
ontologyDocs: { modules: discoveredOntology.modules, ...ontologyFiles }
|
|
@@ -4541,4 +4566,4 @@ async function createSixb2(options) {
|
|
|
4541
4566
|
}
|
|
4542
4567
|
export { WebhookValidationError2, defineWebhook2, webhookConnector2, UnverifiedWebhookError2, resolveWebhookVerification2, warnUnverifiedWebhook2, SixbHost2, createSixb2 };
|
|
4543
4568
|
|
|
4544
|
-
//# debugId=
|
|
4569
|
+
//# debugId=C56E034BCD29B5D564756E2164756E21
|