@desplega.ai/agent-swarm 1.119.2 → 1.119.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/{actions-6fvp3prn.js → actions-cvcf510b.js} +5 -5
- package/dist/{app-spr18zx3.js → app-05ksvyna.js} +3 -3
- package/dist/{assistant-v625bfkb.js → assistant-wqr7nmqv.js} +8 -8
- package/dist/{boot-reembed-fk1zawyh.js → boot-reembed-dx3zweeh.js} +4 -4
- package/dist/{boot-reembed-knw7ta83.js → boot-reembed-v0q84hej.js} +3 -3
- package/dist/{boot-scrub-logs-rqq0drek.js → boot-scrub-logs-3am4xegg.js} +2 -2
- package/dist/{cli-befewsnp.js → cli-0y66mw72.js} +9 -7
- package/dist/{cli-vvty0cfn.js → cli-1c5zhw9z.js} +3 -3
- package/dist/{cli-5ne5v3gy.js → cli-4xtzqzv4.js} +18 -18
- package/dist/{cli-vxesz4hy.js → cli-67e8g7bj.js} +4 -4
- package/dist/{cli-2pv9mf2n.js → cli-758zm6xy.js} +1 -1
- package/dist/{cli-jkkjjdyn.js → cli-7mvmqemc.js} +1 -1
- package/dist/{cli-ed4s7b1n.js → cli-8jjrc3ww.js} +1 -1
- package/dist/{cli-kb6wj6mf.js → cli-bzjncaf6.js} +1 -1
- package/dist/{cli-g617qdzb.js → cli-chfh8r6f.js} +2 -2
- package/dist/{cli-qfp2c1qs.js → cli-cs5g429e.js} +1 -1
- package/dist/{cli-wen3f7km.js → cli-fhmhjjh4.js} +17 -29
- package/dist/{cli-xem4ndhx.js → cli-h1bffz9b.js} +1 -1
- package/dist/{cli-62c45z8p.js → cli-jfc1jm13.js} +1 -1
- package/dist/{cli-6h60nrdw.js → cli-k0x0fvh5.js} +5 -5
- package/dist/{cli-cbz05wnr.js → cli-kmtp1rg9.js} +2 -2
- package/dist/{cli-bcev4a56.js → cli-pc276yqz.js} +1 -1
- package/dist/{cli-dd7eaykj.js → cli-pyagab0x.js} +2 -2
- package/dist/{cli-22xdkf0e.js → cli-qe43w9a5.js} +2 -2
- package/dist/{cli-0qhghy2e.js → cli-qfp17rw8.js} +1 -1
- package/dist/{cli-k2yqtwjk.js → cli-rk6fkhkk.js} +5 -5
- package/dist/{cli-3w3ay9kf.js → cli-ttb3pty1.js} +4 -4
- package/dist/{cli-cjdjcx1h.js → cli-zm2jjaq6.js} +1 -1
- package/dist/{cli-n1rag5eq.js → cli-zrxpz200.js} +1 -1
- package/dist/cli.js +9 -9
- package/dist/{commands-2nyhjm5e.js → commands-3ke60h4e.js} +2 -2
- package/dist/{db-psx972cv.js → db-a1e1nj43.js} +2 -2
- package/dist/{handlers-drzntj65.js → handlers-d86a4ypy.js} +8 -8
- package/dist/{hook-sf4wxq2j.js → hook-teegt6h5.js} +1 -1
- package/dist/{http-kbavqgsx.js → http-64jvxqnz.js} +33 -33
- package/dist/{index-fjcjdmv1.js → index-a95n0ay5.js} +8 -8
- package/dist/{index-dnajx229.js → index-bndzxk11.js} +10 -10
- package/dist/{index-1dcn9zk6.js → index-hb9j1aqr.js} +6 -6
- package/dist/{index-a2wmwh7d.js → index-z39ch6n5.js} +9 -9
- package/dist/{keepalive-t3hw5tb4.js → keepalive-ab1qpqrm.js} +4 -4
- package/dist/{lead-keecxwds.js → lead-852gtrsa.js} +18 -18
- package/dist/{maintenance-h2h5dbf4.js → maintenance-fke93wqq.js} +4 -4
- package/dist/{oauth-refresh-sweep-41nw0tkp.js → oauth-refresh-sweep-a139pm5w.js} +3 -3
- package/dist/{onboard-de1wkp0v.js → onboard-vcd22m9e.js} +2 -2
- package/dist/{otel-impl-251jnpdd.js → otel-impl-88egk5hc.js} +1 -1
- package/dist/{pricing-refresh-0n50xvtx.js → pricing-refresh-bbg7s7qs.js} +4 -4
- package/dist/{rbac-roles-z10gz1j8.js → rbac-roles-e169ndy2.js} +2 -2
- package/dist/{rbac-roles-2m5b327a.js → rbac-roles-kc9t08gp.js} +3 -3
- package/dist/{seed-pricing-vetpp3cy.js → seed-pricing-3zhtw483.js} +3 -3
- package/dist/{setup-zvayft41.js → setup-6m99ne8y.js} +2 -2
- package/dist/{worker-feez5q1v.js → worker-pwg46aav.js} +18 -18
- package/openapi.json +1 -1
- package/package.json +1 -1
- package/src/be/script-credential-broker.ts +12 -26
- package/src/scripts-runtime/credential-broker/broker.ts +15 -4
- package/src/scripts-runtime/credential-broker/index.ts +1 -0
- package/src/scripts-runtime/credential-broker/types.ts +1 -0
- package/src/scripts-runtime/egress-secrets.ts +2 -2
- package/src/scripts-runtime/loader.ts +3 -3
- package/src/tests/credential-broker.test.ts +130 -3
- package/src/tests/scripts-runtime-secret-egress.test.ts +4 -4
package/README.md
CHANGED
|
@@ -128,6 +128,7 @@ Check [our templates](https://templates.agent-swarm.dev) for a quick start.
|
|
|
128
128
|
- **Workflow engine with Human-in-the-Loop** — DAG-based automation with approval gates, retries, and structured I/O. [Workflows →](https://docs.agent-swarm.dev/docs/concepts/workflows)
|
|
129
129
|
- **Scheduled & recurring tasks** — cron-based automation for standing work, with schedules that can target agent tasks, workflows, or catalog scripts. [Scheduling →](https://docs.agent-swarm.dev/docs/concepts/scheduling)
|
|
130
130
|
- **Asset namespaces** — group tasks, workflows, schedules, pages, and mapped files under canonical shared or personal keys, with inheritance, subtree filtering, audited moves, and cross-entity discovery. [Asset namespaces →](https://docs.agent-swarm.dev/docs/guides/asset-namespaces)
|
|
131
|
+
- **Persistent shared files via agent-fs** — co-deploy agent-fs for shared task attachments, previews, and search; late provisioning or config reloads activate the provider without an API restart, and tenant-authenticated control planes can invite shared-org members without receiving the bootstrap key. [Co-deployment guide →](https://docs.agent-swarm.dev/docs/guides/agent-fs-co-deployment)
|
|
131
132
|
- **Durable script workflows** — launch background script runs, inspect their journals, and track them from the dashboard when a one-shot `script-run` is too small. [Guide →](https://docs.agent-swarm.dev/docs/guides/script-workflow-runs)
|
|
132
133
|
- **Scripts-only MCP mode (code-mode)** — reduce the external MCP surface to eight script tools while retaining the full swarm SDK through `script-run`, cutting tool-schema context for capable coordinator models. [Guide →](https://docs.agent-swarm.dev/docs/guides/scripts-only-mode)
|
|
133
134
|
- **Scripts as external APIs** — expose a saved script as a public `POST /api/x/script/<id>` endpoint with optional bearer auth, typed input validation, and per-endpoint usage tracking. [Guide →](https://docs.agent-swarm.dev/docs/guides/scripts-external-apis)
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveSlackUserId
|
|
3
|
-
} from "./cli-
|
|
4
|
-
import"./cli-
|
|
3
|
+
} from "./cli-pyagab0x.js";
|
|
4
|
+
import"./cli-cs5g429e.js";
|
|
5
5
|
import {
|
|
6
6
|
createTaskWithSiblingAwareness
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-758zm6xy.js";
|
|
8
8
|
import {
|
|
9
9
|
buildCancelledBlocks,
|
|
10
10
|
getTaskLink
|
|
@@ -19,11 +19,11 @@ import {
|
|
|
19
19
|
init_context_key,
|
|
20
20
|
init_db,
|
|
21
21
|
slackContextKey
|
|
22
|
-
} from "./cli-
|
|
22
|
+
} from "./cli-7mvmqemc.js";
|
|
23
23
|
import"./cli-z2zcxes1.js";
|
|
24
24
|
import"./cli-bw80ck94.js";
|
|
25
25
|
import"./cli-xz9aq0rf.js";
|
|
26
|
-
import"./cli-
|
|
26
|
+
import"./cli-zm2jjaq6.js";
|
|
27
27
|
import"./cli-4j2mrzag.js";
|
|
28
28
|
import"./cli-p9swy5t3.js";
|
|
29
29
|
|
|
@@ -3,17 +3,17 @@ import {
|
|
|
3
3
|
initSlackApp,
|
|
4
4
|
startSlackApp,
|
|
5
5
|
stopSlackApp
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-k0x0fvh5.js";
|
|
7
7
|
import"./cli-rkndnn90.js";
|
|
8
8
|
import"./cli-b0p7rfnd.js";
|
|
9
9
|
import"./cli-ma04faw5.js";
|
|
10
10
|
import"./cli-wspgs9bt.js";
|
|
11
11
|
import"./cli-dh55d5fg.js";
|
|
12
|
-
import"./cli-
|
|
12
|
+
import"./cli-7mvmqemc.js";
|
|
13
13
|
import"./cli-z2zcxes1.js";
|
|
14
14
|
import"./cli-bw80ck94.js";
|
|
15
15
|
import"./cli-xz9aq0rf.js";
|
|
16
|
-
import"./cli-
|
|
16
|
+
import"./cli-zm2jjaq6.js";
|
|
17
17
|
import"./cli-4j2mrzag.js";
|
|
18
18
|
import"./cli-e15jhafb.js";
|
|
19
19
|
import"./cli-7wmybrt5.js";
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
bufferThreadMessage,
|
|
3
3
|
wasEventSeen
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-rk6fkhkk.js";
|
|
5
5
|
import {
|
|
6
6
|
hasOtherUserMention
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-jfc1jm13.js";
|
|
8
8
|
import {
|
|
9
9
|
require_dist
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-k0x0fvh5.js";
|
|
11
11
|
import"./cli-rkndnn90.js";
|
|
12
12
|
import"./cli-b0p7rfnd.js";
|
|
13
13
|
import {
|
|
14
14
|
resolveSlackUserId,
|
|
15
15
|
rewriteSlackMentions
|
|
16
|
-
} from "./cli-
|
|
17
|
-
import"./cli-
|
|
16
|
+
} from "./cli-pyagab0x.js";
|
|
17
|
+
import"./cli-cs5g429e.js";
|
|
18
18
|
import {
|
|
19
19
|
createTaskWithSiblingAwareness
|
|
20
|
-
} from "./cli-
|
|
20
|
+
} from "./cli-758zm6xy.js";
|
|
21
21
|
import"./cli-ma04faw5.js";
|
|
22
22
|
import"./cli-wspgs9bt.js";
|
|
23
23
|
import"./cli-dh55d5fg.js";
|
|
@@ -30,11 +30,11 @@ import {
|
|
|
30
30
|
init_resolver,
|
|
31
31
|
resolveTemplate,
|
|
32
32
|
slackContextKey
|
|
33
|
-
} from "./cli-
|
|
33
|
+
} from "./cli-7mvmqemc.js";
|
|
34
34
|
import"./cli-z2zcxes1.js";
|
|
35
35
|
import"./cli-bw80ck94.js";
|
|
36
36
|
import"./cli-xz9aq0rf.js";
|
|
37
|
-
import"./cli-
|
|
37
|
+
import"./cli-zm2jjaq6.js";
|
|
38
38
|
import"./cli-4j2mrzag.js";
|
|
39
39
|
import"./cli-e15jhafb.js";
|
|
40
40
|
import"./cli-7wmybrt5.js";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
embedScript,
|
|
3
3
|
embeddingProvider
|
|
4
|
-
} from "./cli-
|
|
5
|
-
import"./cli-
|
|
4
|
+
} from "./cli-kmtp1rg9.js";
|
|
5
|
+
import"./cli-8jjrc3ww.js";
|
|
6
6
|
import"./cli-q25ejbyn.js";
|
|
7
7
|
import {
|
|
8
8
|
getDb,
|
|
9
9
|
init_db
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-7mvmqemc.js";
|
|
11
11
|
import"./cli-z2zcxes1.js";
|
|
12
12
|
import"./cli-bw80ck94.js";
|
|
13
13
|
import"./cli-xz9aq0rf.js";
|
|
14
|
-
import"./cli-
|
|
14
|
+
import"./cli-zm2jjaq6.js";
|
|
15
15
|
import"./cli-4j2mrzag.js";
|
|
16
16
|
import"./cli-p9swy5t3.js";
|
|
17
17
|
|
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
getEmbeddingProvider,
|
|
4
4
|
getMemoryStore,
|
|
5
5
|
init_constants
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-8jjrc3ww.js";
|
|
7
7
|
import"./cli-q25ejbyn.js";
|
|
8
8
|
import {
|
|
9
9
|
getDb,
|
|
10
10
|
init_db
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-7mvmqemc.js";
|
|
12
12
|
import"./cli-z2zcxes1.js";
|
|
13
13
|
import"./cli-bw80ck94.js";
|
|
14
14
|
import"./cli-xz9aq0rf.js";
|
|
15
|
-
import"./cli-
|
|
15
|
+
import"./cli-zm2jjaq6.js";
|
|
16
16
|
import"./cli-4j2mrzag.js";
|
|
17
17
|
import"./cli-p9swy5t3.js";
|
|
18
18
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getDb,
|
|
3
3
|
init_db
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-7mvmqemc.js";
|
|
5
5
|
import"./cli-z2zcxes1.js";
|
|
6
6
|
import"./cli-bw80ck94.js";
|
|
7
7
|
import"./cli-xz9aq0rf.js";
|
|
8
|
-
import"./cli-
|
|
8
|
+
import"./cli-zm2jjaq6.js";
|
|
9
9
|
import {
|
|
10
10
|
init_secret_scrubber,
|
|
11
11
|
scrubSecrets
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./cli-jkhwmmgg.js";
|
|
4
4
|
import {
|
|
5
5
|
embedScript
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-kmtp1rg9.js";
|
|
7
7
|
import {
|
|
8
8
|
calculatePKCECodeChallenge,
|
|
9
9
|
generateRandomCodeVerifier,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
init_date_utils,
|
|
23
23
|
init_db,
|
|
24
24
|
normalizeDateRequired
|
|
25
|
-
} from "./cli-
|
|
25
|
+
} from "./cli-7mvmqemc.js";
|
|
26
26
|
import {
|
|
27
27
|
init_zod
|
|
28
28
|
} from "./cli-bw80ck94.js";
|
|
@@ -169081,14 +169081,16 @@ function bindingHasPlaceholder(binding) {
|
|
|
169081
169081
|
|
|
169082
169082
|
class CredentialBroker {
|
|
169083
169083
|
store;
|
|
169084
|
-
|
|
169084
|
+
resolveConfigCredential;
|
|
169085
169085
|
defaults;
|
|
169086
|
-
|
|
169086
|
+
resolveOAuthCredential;
|
|
169087
|
+
constructor(store, resolveConfigCredential, defaults = [], resolveOAuthCredential) {
|
|
169087
169088
|
this.store = store;
|
|
169088
|
-
this.
|
|
169089
|
+
this.resolveConfigCredential = resolveConfigCredential;
|
|
169089
169090
|
this.defaults = defaults;
|
|
169091
|
+
this.resolveOAuthCredential = resolveOAuthCredential;
|
|
169090
169092
|
}
|
|
169091
|
-
resolveBindings(context) {
|
|
169093
|
+
async resolveBindings(context) {
|
|
169092
169094
|
const merged = [...this.defaults, ...this.store.listActiveBindings(context)];
|
|
169093
169095
|
const resolved = [];
|
|
169094
169096
|
const seen = new Set;
|
|
@@ -169097,7 +169099,7 @@ class CredentialBroker {
|
|
|
169097
169099
|
continue;
|
|
169098
169100
|
if (!bindingHasPlaceholder(binding))
|
|
169099
169101
|
continue;
|
|
169100
|
-
const value = this.
|
|
169102
|
+
const value = binding.authKind === "oauth" ? binding.oauthProvider ? await this.resolveOAuthCredential?.(binding.oauthProvider) : undefined : this.resolveConfigCredential(binding.configKey);
|
|
169101
169103
|
if (!value)
|
|
169102
169104
|
continue;
|
|
169103
169105
|
const dedupeKey = [
|
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
getPinCandidateAgent,
|
|
8
8
|
getResumeGeneration,
|
|
9
9
|
repointTrackerSyncBySwarmId
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-qfp17rw8.js";
|
|
11
11
|
import {
|
|
12
12
|
getExecutorRegistry,
|
|
13
13
|
recoverIncompleteRuns
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-fhmhjjh4.js";
|
|
15
15
|
import {
|
|
16
16
|
MAX_EMPTY_POLLS,
|
|
17
17
|
assignUnassignedTaskPending,
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
resolveTemplate,
|
|
52
52
|
supersedeTask,
|
|
53
53
|
updateAgentStatus
|
|
54
|
-
} from "./cli-
|
|
54
|
+
} from "./cli-7mvmqemc.js";
|
|
55
55
|
|
|
56
56
|
// src/heartbeat/heartbeat.ts
|
|
57
57
|
init_db();
|
|
@@ -13,17 +13,17 @@ import {
|
|
|
13
13
|
ensure,
|
|
14
14
|
require_dist,
|
|
15
15
|
runScheduleNow
|
|
16
|
-
} from "./cli-
|
|
16
|
+
} from "./cli-67e8g7bj.js";
|
|
17
17
|
import {
|
|
18
18
|
startPricingRefreshLoop
|
|
19
|
-
} from "./cli-
|
|
19
|
+
} from "./cli-chfh8r6f.js";
|
|
20
20
|
import {
|
|
21
21
|
seedPricingFromModelsDev
|
|
22
|
-
} from "./cli-
|
|
22
|
+
} from "./cli-h1bffz9b.js";
|
|
23
23
|
import {
|
|
24
24
|
ensureRbacSeedsSynced,
|
|
25
25
|
getUserGrant
|
|
26
|
-
} from "./cli-
|
|
26
|
+
} from "./cli-pc276yqz.js";
|
|
27
27
|
import {
|
|
28
28
|
can,
|
|
29
29
|
decideAdmission,
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
repointTrackerSyncBySwarmId,
|
|
44
44
|
updateTrackerSync,
|
|
45
45
|
updateTrackerSyncSwarmId
|
|
46
|
-
} from "./cli-
|
|
46
|
+
} from "./cli-qfp17rw8.js";
|
|
47
47
|
import {
|
|
48
48
|
TriggerSchemaError,
|
|
49
49
|
applyDefinitionPatch,
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
startWorkflowExecution,
|
|
58
58
|
validateDefinition,
|
|
59
59
|
validateJsonSchema
|
|
60
|
-
} from "./cli-
|
|
60
|
+
} from "./cli-fhmhjjh4.js";
|
|
61
61
|
import {
|
|
62
62
|
getApiKey
|
|
63
63
|
} from "./cli-f14fvzag.js";
|
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
getOAuthApp,
|
|
69
69
|
getOAuthTokens,
|
|
70
70
|
upsertOAuthApp
|
|
71
|
-
} from "./cli-
|
|
71
|
+
} from "./cli-bzjncaf6.js";
|
|
72
72
|
import {
|
|
73
73
|
CREDENTIAL_BINDINGS_CONFIG_KEY,
|
|
74
74
|
CredentialBindingSchema,
|
|
@@ -85,7 +85,7 @@ import {
|
|
|
85
85
|
setScriptConnectionEnabled,
|
|
86
86
|
upsertCredentialBinding,
|
|
87
87
|
upsertScriptConnection
|
|
88
|
-
} from "./cli-
|
|
88
|
+
} from "./cli-0y66mw72.js";
|
|
89
89
|
import {
|
|
90
90
|
CANDIDATE_SET_MULTIPLIER,
|
|
91
91
|
computeScore,
|
|
@@ -97,7 +97,7 @@ import {
|
|
|
97
97
|
isGraphExpansionEnabled,
|
|
98
98
|
rerank,
|
|
99
99
|
rowToCandidate
|
|
100
|
-
} from "./cli-
|
|
100
|
+
} from "./cli-8jjrc3ww.js";
|
|
101
101
|
import {
|
|
102
102
|
ZodFirstPartyTypeKind,
|
|
103
103
|
objectType
|
|
@@ -106,12 +106,12 @@ import {
|
|
|
106
106
|
createAdditiveBuffer,
|
|
107
107
|
extractSlackMessageText,
|
|
108
108
|
parseSlackTs
|
|
109
|
-
} from "./cli-
|
|
109
|
+
} from "./cli-jfc1jm13.js";
|
|
110
110
|
import {
|
|
111
111
|
getSlackApp,
|
|
112
112
|
startSlackApp,
|
|
113
113
|
stopSlackApp
|
|
114
|
-
} from "./cli-
|
|
114
|
+
} from "./cli-k0x0fvh5.js";
|
|
115
115
|
import {
|
|
116
116
|
findOrCreateUserByEmail,
|
|
117
117
|
findUserByExternalId,
|
|
@@ -127,10 +127,10 @@ import {
|
|
|
127
127
|
resolveIdentityByEmail,
|
|
128
128
|
resolveUserByToken,
|
|
129
129
|
unlinkIdentity
|
|
130
|
-
} from "./cli-
|
|
130
|
+
} from "./cli-cs5g429e.js";
|
|
131
131
|
import {
|
|
132
132
|
createTaskWithSiblingAwareness
|
|
133
|
-
} from "./cli-
|
|
133
|
+
} from "./cli-758zm6xy.js";
|
|
134
134
|
import {
|
|
135
135
|
markdownToSlack
|
|
136
136
|
} from "./cli-ma04faw5.js";
|
|
@@ -377,7 +377,7 @@ import {
|
|
|
377
377
|
upsertService,
|
|
378
378
|
upsertSwarmConfig,
|
|
379
379
|
validateConfigValue
|
|
380
|
-
} from "./cli-
|
|
380
|
+
} from "./cli-7mvmqemc.js";
|
|
381
381
|
import {
|
|
382
382
|
init_zod
|
|
383
383
|
} from "./cli-bw80ck94.js";
|
|
@@ -422,7 +422,7 @@ import {
|
|
|
422
422
|
import {
|
|
423
423
|
init_package,
|
|
424
424
|
package_default
|
|
425
|
-
} from "./cli-
|
|
425
|
+
} from "./cli-zm2jjaq6.js";
|
|
426
426
|
import {
|
|
427
427
|
init_secret_scrubber,
|
|
428
428
|
refreshSecretScrubberCache,
|
|
@@ -19710,7 +19710,7 @@ async function initOtel(serviceRole = process.env.AGENT_ROLE || "api") {
|
|
|
19710
19710
|
return;
|
|
19711
19711
|
initialized2 = true;
|
|
19712
19712
|
try {
|
|
19713
|
-
const impl = await import("./otel-impl-
|
|
19713
|
+
const impl = await import("./otel-impl-88egk5hc.js");
|
|
19714
19714
|
await impl.boot(serviceRole);
|
|
19715
19715
|
realWithSpan = impl.withSpan;
|
|
19716
19716
|
realStartSpan = impl.startSpan;
|
|
@@ -34997,7 +34997,7 @@ async function notifySlack(text) {
|
|
|
34997
34997
|
return;
|
|
34998
34998
|
}
|
|
34999
34999
|
try {
|
|
35000
|
-
const { getSlackApp: getSlackApp2 } = await import("./app-
|
|
35000
|
+
const { getSlackApp: getSlackApp2 } = await import("./app-05ksvyna.js");
|
|
35001
35001
|
const app = getSlackApp2();
|
|
35002
35002
|
if (!app) {
|
|
35003
35003
|
console.warn("[Jira webhook keepalive] Slack not available, cannot send notification");
|
|
@@ -35066,7 +35066,7 @@ async function deleteJiraWebhook(webhookId) {
|
|
|
35066
35066
|
console.log(`[Jira webhook keepalive] Deleted webhook id=${webhookId}`);
|
|
35067
35067
|
}
|
|
35068
35068
|
async function overwriteWebhookIds(next) {
|
|
35069
|
-
const { getDb: getDb2 } = await import("./db-
|
|
35069
|
+
const { getDb: getDb2 } = await import("./db-a1e1nj43.js");
|
|
35070
35070
|
const db = getDb2();
|
|
35071
35071
|
const txn = db.transaction(() => {
|
|
35072
35072
|
const row = db.query("SELECT metadata FROM oauth_apps WHERE provider = 'jira'").get();
|
|
@@ -4,15 +4,15 @@ import {
|
|
|
4
4
|
handleScheduleTrigger,
|
|
5
5
|
runScript,
|
|
6
6
|
startWorkflowExecution
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-fhmhjjh4.js";
|
|
8
8
|
import {
|
|
9
9
|
getScript,
|
|
10
10
|
getScriptApiConnectionDescriptors,
|
|
11
11
|
getScriptMcpConnectionDescriptors
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-0y66mw72.js";
|
|
13
13
|
import {
|
|
14
14
|
createTaskWithSiblingAwareness
|
|
15
|
-
} from "./cli-
|
|
15
|
+
} from "./cli-758zm6xy.js";
|
|
16
16
|
import {
|
|
17
17
|
getDb,
|
|
18
18
|
getDueScheduledTasks,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
scheduleContextKey,
|
|
25
25
|
telemetry,
|
|
26
26
|
updateScheduledTask
|
|
27
|
-
} from "./cli-
|
|
27
|
+
} from "./cli-7mvmqemc.js";
|
|
28
28
|
import {
|
|
29
29
|
__commonJS,
|
|
30
30
|
__require,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildModelsDevSeedRows
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-h1bffz9b.js";
|
|
4
4
|
import {
|
|
5
5
|
createLogEntry,
|
|
6
6
|
getActivePricingRow,
|
|
7
7
|
getDb,
|
|
8
8
|
init_db,
|
|
9
9
|
insertPricingRow
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-7mvmqemc.js";
|
|
11
11
|
import {
|
|
12
12
|
init_secret_scrubber,
|
|
13
13
|
scrubSecrets
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
getOAuthTokens,
|
|
8
8
|
isTokenExpiringSoon,
|
|
9
9
|
oauthAppRowToProviderConfig
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-bzjncaf6.js";
|
|
11
11
|
import {
|
|
12
12
|
CredentialBroker,
|
|
13
13
|
DEFAULT_CREDENTIAL_BINDINGS,
|
|
@@ -18,10 +18,10 @@ import {
|
|
|
18
18
|
getScriptVersion,
|
|
19
19
|
listRelationalCredentialBindings,
|
|
20
20
|
validateScriptImports
|
|
21
|
-
} from "./cli-
|
|
21
|
+
} from "./cli-0y66mw72.js";
|
|
22
22
|
import {
|
|
23
23
|
withSiblingAwareness
|
|
24
|
-
} from "./cli-
|
|
24
|
+
} from "./cli-758zm6xy.js";
|
|
25
25
|
import {
|
|
26
26
|
getAppUrl
|
|
27
27
|
} from "./cli-dh55d5fg.js";
|
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
updateWorkflowRun,
|
|
73
73
|
updateWorkflowRunStep,
|
|
74
74
|
workflowContextKey
|
|
75
|
-
} from "./cli-
|
|
75
|
+
} from "./cli-7mvmqemc.js";
|
|
76
76
|
import {
|
|
77
77
|
init_zod
|
|
78
78
|
} from "./cli-bw80ck94.js";
|
|
@@ -2617,7 +2617,7 @@ class HumanInTheLoopExecutor extends BaseExecutor {
|
|
|
2617
2617
|
}
|
|
2618
2618
|
if (notification.channel === "slack") {
|
|
2619
2619
|
try {
|
|
2620
|
-
const { getSlackApp } = await import("./app-
|
|
2620
|
+
const { getSlackApp } = await import("./app-05ksvyna.js");
|
|
2621
2621
|
const slackApp = getSlackApp();
|
|
2622
2622
|
if (!slackApp) {
|
|
2623
2623
|
console.warn("[HITL] Slack not initialized — cannot send notification");
|
|
@@ -2731,7 +2731,7 @@ class NotifyExecutor extends BaseExecutor {
|
|
|
2731
2731
|
}
|
|
2732
2732
|
}
|
|
2733
2733
|
case "slack": {
|
|
2734
|
-
const { getSlackApp } = await import("./app-
|
|
2734
|
+
const { getSlackApp } = await import("./app-05ksvyna.js");
|
|
2735
2735
|
const app = getSlackApp();
|
|
2736
2736
|
if (!app) {
|
|
2737
2737
|
return {
|
|
@@ -3066,28 +3066,16 @@ class RelationalCredentialBindingStore extends SwarmConfigCredentialBindingStore
|
|
|
3066
3066
|
async function buildScriptCredentialBindings(input) {
|
|
3067
3067
|
const resolvedConfigs = getResolvedConfig(input.agentId, input.repoId);
|
|
3068
3068
|
const configMap = new Map(resolvedConfigs.map((config) => [config.key, config.value]));
|
|
3069
|
-
const
|
|
3070
|
-
for (const binding of relationalBindings) {
|
|
3071
|
-
if (binding.authKind !== "oauth")
|
|
3072
|
-
continue;
|
|
3073
|
-
configMap.set(binding.configKey, "");
|
|
3074
|
-
if (!binding.oauthProvider)
|
|
3075
|
-
continue;
|
|
3076
|
-
let accessToken;
|
|
3069
|
+
const broker = new CredentialBroker(new RelationalCredentialBindingStore((filters) => getSwarmConfigs(filters)), (configKey) => configMap.get(configKey) ?? process.env[configKey], DEFAULT_CREDENTIAL_BINDINGS, async (provider) => {
|
|
3077
3070
|
try {
|
|
3078
|
-
|
|
3071
|
+
return await resolveOAuthBindingToken(provider);
|
|
3079
3072
|
} catch (err) {
|
|
3080
3073
|
const message = err instanceof Error ? err.message : String(err);
|
|
3081
|
-
console.warn(`[script-credential-broker] skipping OAuth
|
|
3082
|
-
|
|
3074
|
+
console.warn(`[script-credential-broker] skipping OAuth provider ${provider}: ${scrubSecrets(message)}`);
|
|
3075
|
+
return;
|
|
3083
3076
|
}
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
configMap.set(binding.configKey, accessToken);
|
|
3087
|
-
registerVolatileSecret(accessToken, binding.configKey);
|
|
3088
|
-
}
|
|
3089
|
-
const broker = new CredentialBroker(new RelationalCredentialBindingStore((filters) => getSwarmConfigs(filters)), (configKey) => configMap.get(configKey) ?? process.env[configKey], DEFAULT_CREDENTIAL_BINDINGS);
|
|
3090
|
-
const bindings = broker.resolveBindings({ agentId: input.agentId, repoId: input.repoId });
|
|
3077
|
+
});
|
|
3078
|
+
const bindings = await broker.resolveBindings({ agentId: input.agentId, repoId: input.repoId });
|
|
3091
3079
|
for (const binding of bindings) {
|
|
3092
3080
|
registerVolatileSecret(binding.value, binding.configKey);
|
|
3093
3081
|
}
|
|
@@ -3109,9 +3097,9 @@ var DEFAULT_SCRIPT_RESOURCES = {
|
|
|
3109
3097
|
init_secret_scrubber();
|
|
3110
3098
|
|
|
3111
3099
|
// src/scripts-runtime/egress-secrets.ts
|
|
3112
|
-
function buildEgressSecrets() {
|
|
3100
|
+
async function buildEgressSecrets() {
|
|
3113
3101
|
const broker = new CredentialBroker({ listActiveBindings: () => [] }, (configKey) => process.env[configKey], DEFAULT_CREDENTIAL_BINDINGS);
|
|
3114
|
-
return broker.resolveBindings({});
|
|
3102
|
+
return await broker.resolveBindings({});
|
|
3115
3103
|
}
|
|
3116
3104
|
|
|
3117
3105
|
// src/scripts-runtime/executors/native.ts
|
|
@@ -3345,7 +3333,7 @@ function getScriptExecutor(name = process.env.SCRIPT_EXECUTOR ?? "native") {
|
|
|
3345
3333
|
}
|
|
3346
3334
|
|
|
3347
3335
|
// src/scripts-runtime/loader.ts
|
|
3348
|
-
function buildConfigPayload(input) {
|
|
3336
|
+
async function buildConfigPayload(input) {
|
|
3349
3337
|
const apiKey = getApiKey();
|
|
3350
3338
|
if (!apiKey)
|
|
3351
3339
|
throw new Error("Swarm API key is required to run scripts");
|
|
@@ -3359,7 +3347,7 @@ function buildConfigPayload(input) {
|
|
|
3359
3347
|
}
|
|
3360
3348
|
},
|
|
3361
3349
|
user: input.userConfig ?? {},
|
|
3362
|
-
egressSecrets: input.egressSecrets ?? buildEgressSecrets(),
|
|
3350
|
+
egressSecrets: input.egressSecrets ?? await buildEgressSecrets(),
|
|
3363
3351
|
apiConnections: input.apiConnections ?? [],
|
|
3364
3352
|
mcpConnections: input.mcpConnections ?? []
|
|
3365
3353
|
};
|
|
@@ -3396,7 +3384,7 @@ async function runScript(input) {
|
|
|
3396
3384
|
const output = await getScriptExecutor().run({
|
|
3397
3385
|
source: input.source,
|
|
3398
3386
|
args: input.args ?? null,
|
|
3399
|
-
configPayload: buildConfigPayload(input),
|
|
3387
|
+
configPayload: await buildConfigPayload(input),
|
|
3400
3388
|
resources,
|
|
3401
3389
|
fsMode: input.fsMode ?? "none",
|
|
3402
3390
|
network: "open",
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
getTaskById,
|
|
28
28
|
init_db,
|
|
29
29
|
setSlackMessageTracking
|
|
30
|
-
} from "./cli-
|
|
30
|
+
} from "./cli-7mvmqemc.js";
|
|
31
31
|
import {
|
|
32
32
|
require_receiver,
|
|
33
33
|
require_sender,
|
|
@@ -55073,13 +55073,13 @@ async function initSlackApp() {
|
|
|
55073
55073
|
socketMode: true,
|
|
55074
55074
|
logLevel: import_bolt.LogLevel.DEBUG
|
|
55075
55075
|
});
|
|
55076
|
-
const { registerMessageHandler } = await import("./handlers-
|
|
55077
|
-
const { registerCommandHandler } = await import("./commands-
|
|
55078
|
-
const { registerActionHandlers } = await import("./actions-
|
|
55076
|
+
const { registerMessageHandler } = await import("./handlers-d86a4ypy.js");
|
|
55077
|
+
const { registerCommandHandler } = await import("./commands-3ke60h4e.js");
|
|
55078
|
+
const { registerActionHandlers } = await import("./actions-cvcf510b.js");
|
|
55079
55079
|
registerMessageHandler(app);
|
|
55080
55080
|
registerCommandHandler(app);
|
|
55081
55081
|
registerActionHandlers(app);
|
|
55082
|
-
const { createAssistant } = await import("./assistant-
|
|
55082
|
+
const { createAssistant } = await import("./assistant-wqr7nmqv.js");
|
|
55083
55083
|
app.assistant(createAssistant());
|
|
55084
55084
|
return app;
|
|
55085
55085
|
}
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
getEmbeddingProvider,
|
|
5
5
|
init_embedding,
|
|
6
6
|
serializeEmbedding
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-8jjrc3ww.js";
|
|
8
8
|
import {
|
|
9
9
|
getDb,
|
|
10
10
|
init_db
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-7mvmqemc.js";
|
|
12
12
|
import {
|
|
13
13
|
init_secret_scrubber,
|
|
14
14
|
scrubSecrets
|