@desplega.ai/agent-swarm 1.104.0 → 1.105.0
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-2expzt47.js → actions-45g8tvc8.js} +6 -6
- package/dist/{app-dr8hwx7z.js → app-18x5k1cj.js} +3 -3
- package/dist/{assistant-9rhgsw7v.js → assistant-ka281qe8.js} +9 -9
- package/dist/{boot-reembed-9kt97g1z.js → boot-reembed-f38vbxw8.js} +3 -3
- package/dist/{boot-reembed-3q1aywnz.js → boot-reembed-rp2gba79.js} +4 -4
- package/dist/{boot-scrub-logs-vskq108e.js → boot-scrub-logs-nsnc9f1a.js} +2 -2
- package/dist/{cli-v1syqkcb.js → cli-0e24r2b6.js} +2 -2
- package/dist/{cli-nzc0h54v.js → cli-0n4xxmy0.js} +1 -1
- package/dist/{cli-e7bwjntj.js → cli-0s37sw3k.js} +1 -1
- package/dist/{cli-23zk7xqy.js → cli-2hg6bj31.js} +4 -4
- package/dist/{cli-q5tshxd6.js → cli-4df7btj0.js} +1 -1
- package/dist/{cli-p4cj4vhc.js → cli-634jy7sa.js} +1 -1
- package/dist/{cli-7v4y3hyd.js → cli-7esh9fda.js} +1 -1
- package/dist/{cli-s42f54ja.js → cli-87fj1jk4.js} +1 -1
- package/dist/{cli-w1nfskkg.js → cli-8y7y1vmp.js} +2 -2
- package/dist/{cli-2hap19dv.js → cli-ba47wf2q.js} +3 -3
- package/dist/{cli-gj2n2ec1.js → cli-c4h8m0m3.js} +1 -1
- package/dist/{cli-5pf0b84v.js → cli-dd6tegmp.js} +2 -2
- package/dist/{cli-yjt8a36k.js → cli-ehcjr5vs.js} +3 -1
- package/dist/{cli-zghef0em.js → cli-gq7gvvrn.js} +1 -1
- package/dist/{cli-zaxksbgj.js → cli-gzmv1371.js} +5 -5
- package/dist/{cli-qvzgncd8.js → cli-sdf2qwkt.js} +26 -19
- package/dist/{cli-t9v14cnd.js → cli-sm9yseh1.js} +1 -1
- package/dist/{cli-54h5daha.js → cli-v2fb1fxf.js} +6 -6
- package/dist/{cli-d4z1csms.js → cli-vpwffend.js} +3 -3
- package/dist/{cli-0jw6j755.js → cli-wztagmpk.js} +1 -1
- package/dist/{cli-2g9jf9ek.js → cli-yd29d4n4.js} +1 -1
- package/dist/{cli-yvektv79.js → cli-yfyqsqzj.js} +1 -1
- package/dist/{cli-y9p3e94h.js → cli-yzr0qxx1.js} +3 -3
- package/dist/{cli-etvgz5x8.js → cli-zmta7t3y.js} +4 -4
- package/dist/cli.js +10 -8
- package/dist/{commands-wfrkef57.js → commands-tn8zj0an.js} +2 -2
- package/dist/{db-c42pxt7h.js → db-gtqymk7r.js} +2 -2
- package/dist/{handlers-n36zkfvx.js → handlers-5xdqk40d.js} +9 -9
- package/dist/{hook-gw3vhv6s.js → hook-gj6j6zwj.js} +1 -1
- package/dist/{http-59ygpn2h.js → http-4pceba9h.js} +144 -33
- package/dist/{index-xf6fp4y1.js → index-0rfp6wh2.js} +5 -5
- package/dist/{index-xz8vaa5c.js → index-as4evz9g.js} +10 -10
- package/dist/{index-881c1baf.js → index-paaw4xt5.js} +8 -8
- package/dist/{index-jca7jdpt.js → index-wf0q4k03.js} +6 -6
- package/dist/{keepalive-mj4302vw.js → keepalive-akbzjt41.js} +4 -4
- package/dist/{lead-qm0xjvkv.js → lead-g8v85nf4.js} +18 -18
- package/dist/{maintenance-xppxbe4t.js → maintenance-9yrzmrh8.js} +4 -4
- package/dist/{onboard-ejx6yxh8.js → onboard-v5bx0kpy.js} +2 -2
- package/dist/{otel-impl-zs5exkpk.js → otel-impl-530442da.js} +4510 -4465
- package/dist/{pricing-refresh-nqyf8bkb.js → pricing-refresh-dt289v11.js} +4 -4
- package/dist/{seed-pricing-w3x550cj.js → seed-pricing-183er9b3.js} +3 -3
- package/dist/{setup-7729ktfj.js → setup-tjgsvznx.js} +2 -2
- package/dist/{worker-4ttemwhw.js → worker-nxcxk5pb.js} +18 -18
- package/openapi.json +1 -1
- package/package.json +3 -1
- package/src/http/pages-public.ts +123 -2
- package/src/http/session-data.ts +16 -0
- package/src/otel-impl.ts +73 -0
- package/src/otel.ts +12 -0
- package/src/tests/otel-impl-secret-scrubbing.test.ts +101 -3
- package/src/tests/otel-session-cost-metrics.test.ts +281 -0
- package/src/tests/pages-authed-mode.test.ts +50 -0
package/README.md
CHANGED
|
@@ -131,6 +131,7 @@ Check [our templates](https://templates.agent-swarm.dev) for a quick start.
|
|
|
131
131
|
- **Typed script API connections** — lead-managed OpenAPI connections let scripts call approved external APIs through generated `ctx.api.*` clients while credential bindings keep raw secrets out of source and args. [Guide →](https://docs.agent-swarm.dev/docs/guides/scripts-credential-broker)
|
|
132
132
|
- **E2B-backed eval harness** — run a scenario × harness-config matrix against real swarm stacks, capture transcripts/artifacts, and grade outcomes with deterministic checks plus LLM or agentic judges. [Guide →](https://docs.agent-swarm.dev/docs/guides/evals-harness)
|
|
133
133
|
- **Harness & LLM agnostic** — run with Claude Code, Claude Bridge, OpenAI Codex, pi-mono (Anthropic, OpenRouter, or Amazon Bedrock), Devin, Claude Managed Agents, raw LLMs, or opencode. Tasks, schedules, and workflow agent-task nodes can use portable `modelTier` intent (`smol`, `regular`, `smart`, `ultra`) and resolve it per worker/provider at run time. [Harness config →](https://docs.agent-swarm.dev/docs/guides/harness-configuration) · [Add a new provider →](https://docs.agent-swarm.dev/docs/guides/harness-providers)
|
|
134
|
+
- **OpenTelemetry traces plus OTLP cost/token metrics** — export API + worker traces and finalized session cost/token counters through the same OTLP pipeline for dashboarding in SigNoz, Datadog, Tempo, or another compatible backend. [Observability →](https://docs.agent-swarm.dev/docs/guides/observability-opentelemetry)
|
|
134
135
|
- **Follow-up continuity across all harnesses** — child tasks inherit a bounded prior-task context preamble built from the task chain, so continuity survives restarts and works the same across every provider. [Task lifecycle →](https://docs.agent-swarm.dev/docs/concepts/task-lifecycle)
|
|
135
136
|
- **Skills & MCP servers** — reusable procedural knowledge, bundled skill reference files, and per-agent MCP servers with scope cascade. [MCP tools →](https://docs.agent-swarm.dev/docs/reference/mcp-tools)
|
|
136
137
|
- **External tool-router access** — the `x` command and `swarm_x` MCP tool let humans and agents execute approved third-party routes such as Composio without baking bespoke MCP servers first. [CLI →](https://docs.agent-swarm.dev/docs/reference/cli) · [Composio →](https://docs.agent-swarm.dev/docs/integrations/composio)
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveSlackUserId
|
|
3
|
-
} from "./cli-
|
|
4
|
-
import"./cli-
|
|
5
|
-
import"./cli-
|
|
3
|
+
} from "./cli-ba47wf2q.js";
|
|
4
|
+
import"./cli-c4h8m0m3.js";
|
|
5
|
+
import"./cli-yfyqsqzj.js";
|
|
6
6
|
import {
|
|
7
7
|
buildCancelledBlocks,
|
|
8
8
|
getTaskLink
|
|
@@ -11,18 +11,18 @@ import"./cli-dh55d5fg.js";
|
|
|
11
11
|
import {
|
|
12
12
|
createTaskWithSiblingAwareness,
|
|
13
13
|
slackContextKey
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-0s37sw3k.js";
|
|
15
15
|
import {
|
|
16
16
|
cancelTask,
|
|
17
17
|
getAgentById,
|
|
18
18
|
getLeadAgent,
|
|
19
19
|
getTaskById,
|
|
20
20
|
init_db
|
|
21
|
-
} from "./cli-
|
|
21
|
+
} from "./cli-wztagmpk.js";
|
|
22
22
|
import"./cli-z2zcxes1.js";
|
|
23
23
|
import"./cli-q21d49ac.js";
|
|
24
24
|
import"./cli-anrj584m.js";
|
|
25
|
-
import"./cli-
|
|
25
|
+
import"./cli-ehcjr5vs.js";
|
|
26
26
|
import"./cli-3pp1362w.js";
|
|
27
27
|
import"./cli-p9swy5t3.js";
|
|
28
28
|
|
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
initSlackApp,
|
|
4
4
|
startSlackApp,
|
|
5
5
|
stopSlackApp
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-gzmv1371.js";
|
|
7
7
|
import"./cli-fete3y1e.js";
|
|
8
8
|
import"./cli-b0p7rfnd.js";
|
|
9
9
|
import"./cli-z92pkwzn.js";
|
|
10
10
|
import"./cli-dh55d5fg.js";
|
|
11
|
-
import"./cli-
|
|
11
|
+
import"./cli-wztagmpk.js";
|
|
12
12
|
import"./cli-z2zcxes1.js";
|
|
13
13
|
import"./cli-q21d49ac.js";
|
|
14
14
|
import"./cli-anrj584m.js";
|
|
15
|
-
import"./cli-
|
|
15
|
+
import"./cli-ehcjr5vs.js";
|
|
16
16
|
import"./cli-3pp1362w.js";
|
|
17
17
|
import"./cli-e15jhafb.js";
|
|
18
18
|
import"./cli-p9swy5t3.js";
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
bufferThreadMessage,
|
|
3
3
|
wasEventSeen
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-zmta7t3y.js";
|
|
5
5
|
import {
|
|
6
6
|
hasOtherUserMention
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-0n4xxmy0.js";
|
|
8
8
|
import {
|
|
9
9
|
require_dist
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-gzmv1371.js";
|
|
11
11
|
import"./cli-fete3y1e.js";
|
|
12
12
|
import"./cli-b0p7rfnd.js";
|
|
13
13
|
import {
|
|
14
14
|
resolveSlackUserId
|
|
15
|
-
} from "./cli-
|
|
16
|
-
import"./cli-
|
|
17
|
-
import"./cli-
|
|
15
|
+
} from "./cli-ba47wf2q.js";
|
|
16
|
+
import"./cli-c4h8m0m3.js";
|
|
17
|
+
import"./cli-yfyqsqzj.js";
|
|
18
18
|
import"./cli-z92pkwzn.js";
|
|
19
19
|
import"./cli-dh55d5fg.js";
|
|
20
20
|
import {
|
|
21
21
|
createTaskWithSiblingAwareness,
|
|
22
22
|
slackContextKey
|
|
23
|
-
} from "./cli-
|
|
23
|
+
} from "./cli-0s37sw3k.js";
|
|
24
24
|
import {
|
|
25
25
|
getAgentWorkingOnThread,
|
|
26
26
|
getLeadAgent,
|
|
@@ -28,11 +28,11 @@ import {
|
|
|
28
28
|
init_db,
|
|
29
29
|
init_resolver,
|
|
30
30
|
resolveTemplate
|
|
31
|
-
} from "./cli-
|
|
31
|
+
} from "./cli-wztagmpk.js";
|
|
32
32
|
import"./cli-z2zcxes1.js";
|
|
33
33
|
import"./cli-q21d49ac.js";
|
|
34
34
|
import"./cli-anrj584m.js";
|
|
35
|
-
import"./cli-
|
|
35
|
+
import"./cli-ehcjr5vs.js";
|
|
36
36
|
import"./cli-3pp1362w.js";
|
|
37
37
|
import"./cli-e15jhafb.js";
|
|
38
38
|
import {
|
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
getEmbeddingProvider,
|
|
4
4
|
getMemoryStore,
|
|
5
5
|
init_constants
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-634jy7sa.js";
|
|
7
7
|
import"./cli-3j01d33e.js";
|
|
8
8
|
import {
|
|
9
9
|
getDb,
|
|
10
10
|
init_db
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-wztagmpk.js";
|
|
12
12
|
import"./cli-z2zcxes1.js";
|
|
13
13
|
import"./cli-q21d49ac.js";
|
|
14
14
|
import"./cli-anrj584m.js";
|
|
15
|
-
import"./cli-
|
|
15
|
+
import"./cli-ehcjr5vs.js";
|
|
16
16
|
import"./cli-3pp1362w.js";
|
|
17
17
|
import"./cli-p9swy5t3.js";
|
|
18
18
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
embedScript,
|
|
3
3
|
embeddingProvider
|
|
4
|
-
} from "./cli-
|
|
5
|
-
import"./cli-
|
|
4
|
+
} from "./cli-dd6tegmp.js";
|
|
5
|
+
import"./cli-634jy7sa.js";
|
|
6
6
|
import"./cli-3j01d33e.js";
|
|
7
7
|
import {
|
|
8
8
|
getDb,
|
|
9
9
|
init_db
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-wztagmpk.js";
|
|
11
11
|
import"./cli-z2zcxes1.js";
|
|
12
12
|
import"./cli-q21d49ac.js";
|
|
13
13
|
import"./cli-anrj584m.js";
|
|
14
|
-
import"./cli-
|
|
14
|
+
import"./cli-ehcjr5vs.js";
|
|
15
15
|
import"./cli-3pp1362w.js";
|
|
16
16
|
import"./cli-p9swy5t3.js";
|
|
17
17
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getDb,
|
|
3
3
|
init_db
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-wztagmpk.js";
|
|
5
5
|
import"./cli-z2zcxes1.js";
|
|
6
6
|
import"./cli-q21d49ac.js";
|
|
7
7
|
import"./cli-anrj584m.js";
|
|
8
|
-
import"./cli-
|
|
8
|
+
import"./cli-ehcjr5vs.js";
|
|
9
9
|
import {
|
|
10
10
|
init_secret_scrubber,
|
|
11
11
|
scrubSecrets
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
embedScript
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-dd6tegmp.js";
|
|
4
4
|
import {
|
|
5
5
|
computeContentHash,
|
|
6
6
|
getDb,
|
|
7
7
|
getSwarmConfigs,
|
|
8
8
|
init_db
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-wztagmpk.js";
|
|
10
10
|
import {
|
|
11
11
|
init_zod
|
|
12
12
|
} from "./cli-q21d49ac.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
withSpan,
|
|
24
24
|
withSpanContext,
|
|
25
25
|
writeSkillsToFilesystem
|
|
26
|
-
} from "./cli-
|
|
26
|
+
} from "./cli-sdf2qwkt.js";
|
|
27
27
|
import {
|
|
28
28
|
checkClaudeCredentials
|
|
29
29
|
} from "./cli-p04j6hjv.js";
|
|
@@ -50,10 +50,10 @@ import {
|
|
|
50
50
|
import {
|
|
51
51
|
ensure,
|
|
52
52
|
initialize
|
|
53
|
-
} from "./cli-
|
|
53
|
+
} from "./cli-yzr0qxx1.js";
|
|
54
54
|
import {
|
|
55
55
|
validateJsonSchema
|
|
56
|
-
} from "./cli-
|
|
56
|
+
} from "./cli-gq7gvvrn.js";
|
|
57
57
|
import {
|
|
58
58
|
getMcpBaseUrl
|
|
59
59
|
} from "./cli-dh55d5fg.js";
|
|
@@ -76,7 +76,7 @@ import {
|
|
|
76
76
|
resolveTaskModelSelection,
|
|
77
77
|
resolveTemplateAsync,
|
|
78
78
|
telemetry
|
|
79
|
-
} from "./cli-
|
|
79
|
+
} from "./cli-wztagmpk.js";
|
|
80
80
|
import {
|
|
81
81
|
init_credentials,
|
|
82
82
|
resolveCredentialPools
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildModelsDevSeedRows
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-7esh9fda.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-wztagmpk.js";
|
|
11
11
|
import {
|
|
12
12
|
init_secret_scrubber,
|
|
13
13
|
scrubSecrets
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
recordUnmappedIdentity
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-c4h8m0m3.js";
|
|
4
4
|
import {
|
|
5
5
|
findOrCreateUserByEmail,
|
|
6
6
|
findUserByExternalId,
|
|
7
7
|
linkIdentity
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-yfyqsqzj.js";
|
|
9
9
|
import {
|
|
10
10
|
getKv,
|
|
11
11
|
init_db,
|
|
12
12
|
upsertKv
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-wztagmpk.js";
|
|
14
14
|
|
|
15
15
|
// src/slack/enrich.ts
|
|
16
16
|
init_db();
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
getEmbeddingProvider,
|
|
5
5
|
init_embedding,
|
|
6
6
|
serializeEmbedding
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-634jy7sa.js";
|
|
8
8
|
import {
|
|
9
9
|
getDb,
|
|
10
10
|
init_db
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-wztagmpk.js";
|
|
12
12
|
import {
|
|
13
13
|
init_secret_scrubber,
|
|
14
14
|
scrubSecrets
|
|
@@ -7,7 +7,7 @@ var package_default;
|
|
|
7
7
|
var init_package = __esm(() => {
|
|
8
8
|
package_default = {
|
|
9
9
|
name: "@desplega.ai/agent-swarm",
|
|
10
|
-
version: "1.
|
|
10
|
+
version: "1.105.0",
|
|
11
11
|
description: "Multi-agent orchestration for Claude Code, Codex, Gemini CLI, and other AI coding assistants",
|
|
12
12
|
license: "MIT",
|
|
13
13
|
author: "desplega.sh <contact@desplega.sh>",
|
|
@@ -131,8 +131,10 @@ var init_package = __esm(() => {
|
|
|
131
131
|
"@opencode-ai/sdk": "^1.17.11",
|
|
132
132
|
"@openfort/openfort-node": "^0.9.1",
|
|
133
133
|
"@opentelemetry/api": "^1.9.1",
|
|
134
|
+
"@opentelemetry/exporter-metrics-otlp-http": "^0.218.0",
|
|
134
135
|
"@opentelemetry/exporter-trace-otlp-http": "^0.218.0",
|
|
135
136
|
"@opentelemetry/resources": "^2.7.1",
|
|
137
|
+
"@opentelemetry/sdk-metrics": "^2.7.1",
|
|
136
138
|
"@opentelemetry/sdk-node": "^0.218.0",
|
|
137
139
|
"@opentelemetry/semantic-conventions": "^1.41.1",
|
|
138
140
|
"@slack/bolt": "^4.6.0",
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
getTaskById,
|
|
26
26
|
init_db,
|
|
27
27
|
setSlackMessageTracking
|
|
28
|
-
} from "./cli-
|
|
28
|
+
} from "./cli-wztagmpk.js";
|
|
29
29
|
import {
|
|
30
30
|
require_receiver,
|
|
31
31
|
require_sender,
|
|
@@ -54980,13 +54980,13 @@ async function initSlackApp() {
|
|
|
54980
54980
|
socketMode: true,
|
|
54981
54981
|
logLevel: import_bolt.LogLevel.DEBUG
|
|
54982
54982
|
});
|
|
54983
|
-
const { registerMessageHandler } = await import("./handlers-
|
|
54984
|
-
const { registerCommandHandler } = await import("./commands-
|
|
54985
|
-
const { registerActionHandlers } = await import("./actions-
|
|
54983
|
+
const { registerMessageHandler } = await import("./handlers-5xdqk40d.js");
|
|
54984
|
+
const { registerCommandHandler } = await import("./commands-tn8zj0an.js");
|
|
54985
|
+
const { registerActionHandlers } = await import("./actions-45g8tvc8.js");
|
|
54986
54986
|
registerMessageHandler(app);
|
|
54987
54987
|
registerCommandHandler(app);
|
|
54988
54988
|
registerActionHandlers(app);
|
|
54989
|
-
const { createAssistant } = await import("./assistant-
|
|
54989
|
+
const { createAssistant } = await import("./assistant-ka281qe8.js");
|
|
54990
54990
|
app.assistant(createAssistant());
|
|
54991
54991
|
return app;
|
|
54992
54992
|
}
|
|
@@ -14,13 +14,13 @@ import {
|
|
|
14
14
|
getOAuthApp,
|
|
15
15
|
getOAuthTokens,
|
|
16
16
|
upsertOAuthApp
|
|
17
|
-
} from "./cli-
|
|
17
|
+
} from "./cli-yd29d4n4.js";
|
|
18
18
|
import {
|
|
19
19
|
startPricingRefreshLoop
|
|
20
|
-
} from "./cli-
|
|
20
|
+
} from "./cli-8y7y1vmp.js";
|
|
21
21
|
import {
|
|
22
22
|
seedPricingFromModelsDev
|
|
23
|
-
} from "./cli-
|
|
23
|
+
} from "./cli-7esh9fda.js";
|
|
24
24
|
import {
|
|
25
25
|
createTrackerAgentMapping,
|
|
26
26
|
createTrackerSync,
|
|
@@ -35,13 +35,13 @@ import {
|
|
|
35
35
|
repointTrackerSyncBySwarmId,
|
|
36
36
|
updateTrackerSync,
|
|
37
37
|
updateTrackerSyncSwarmId
|
|
38
|
-
} from "./cli-
|
|
38
|
+
} from "./cli-87fj1jk4.js";
|
|
39
39
|
import {
|
|
40
40
|
cancelWorkflowRun,
|
|
41
41
|
getExecutorRegistry,
|
|
42
42
|
retryFailedRun,
|
|
43
43
|
snapshotWorkflow
|
|
44
|
-
} from "./cli-
|
|
44
|
+
} from "./cli-v2fb1fxf.js";
|
|
45
45
|
import {
|
|
46
46
|
getApiKey
|
|
47
47
|
} from "./cli-f14fvzag.js";
|
|
@@ -56,7 +56,7 @@ import {
|
|
|
56
56
|
setScriptConnectionEnabled,
|
|
57
57
|
upsertCredentialBinding,
|
|
58
58
|
upsertScriptConnection
|
|
59
|
-
} from "./cli-
|
|
59
|
+
} from "./cli-0e24r2b6.js";
|
|
60
60
|
import {
|
|
61
61
|
CANDIDATE_SET_MULTIPLIER,
|
|
62
62
|
getEmbeddingProvider,
|
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
init_constants,
|
|
65
65
|
init_reranker,
|
|
66
66
|
rerank
|
|
67
|
-
} from "./cli-
|
|
67
|
+
} from "./cli-634jy7sa.js";
|
|
68
68
|
import {
|
|
69
69
|
ZodFirstPartyTypeKind,
|
|
70
70
|
objectType
|
|
@@ -74,7 +74,7 @@ import {
|
|
|
74
74
|
ensure,
|
|
75
75
|
require_dist,
|
|
76
76
|
runScheduleNow
|
|
77
|
-
} from "./cli-
|
|
77
|
+
} from "./cli-yzr0qxx1.js";
|
|
78
78
|
import {
|
|
79
79
|
TriggerSchemaError,
|
|
80
80
|
applyDefinitionPatch,
|
|
@@ -82,16 +82,16 @@ import {
|
|
|
82
82
|
startWorkflowExecution,
|
|
83
83
|
validateDefinition,
|
|
84
84
|
validateJsonSchema
|
|
85
|
-
} from "./cli-
|
|
85
|
+
} from "./cli-gq7gvvrn.js";
|
|
86
86
|
import {
|
|
87
87
|
createAdditiveBuffer,
|
|
88
88
|
extractSlackMessageText
|
|
89
|
-
} from "./cli-
|
|
89
|
+
} from "./cli-0n4xxmy0.js";
|
|
90
90
|
import {
|
|
91
91
|
getSlackApp,
|
|
92
92
|
startSlackApp,
|
|
93
93
|
stopSlackApp
|
|
94
|
-
} from "./cli-
|
|
94
|
+
} from "./cli-gzmv1371.js";
|
|
95
95
|
import {
|
|
96
96
|
findOrCreateUserByEmail,
|
|
97
97
|
findUserByEmail,
|
|
@@ -103,7 +103,7 @@ import {
|
|
|
103
103
|
recordIdentityEvent,
|
|
104
104
|
resolveUserByToken,
|
|
105
105
|
unlinkIdentity
|
|
106
|
-
} from "./cli-
|
|
106
|
+
} from "./cli-yfyqsqzj.js";
|
|
107
107
|
import {
|
|
108
108
|
markdownToSlack
|
|
109
109
|
} from "./cli-z92pkwzn.js";
|
|
@@ -119,7 +119,7 @@ import {
|
|
|
119
119
|
createTaskWithSiblingAwareness,
|
|
120
120
|
githubContextKey,
|
|
121
121
|
linearContextKey
|
|
122
|
-
} from "./cli-
|
|
122
|
+
} from "./cli-0s37sw3k.js";
|
|
123
123
|
import {
|
|
124
124
|
AgentLogSchema,
|
|
125
125
|
AgentMemorySchema,
|
|
@@ -340,7 +340,7 @@ import {
|
|
|
340
340
|
upsertService,
|
|
341
341
|
upsertSwarmConfig,
|
|
342
342
|
validateConfigValue
|
|
343
|
-
} from "./cli-
|
|
343
|
+
} from "./cli-wztagmpk.js";
|
|
344
344
|
import {
|
|
345
345
|
init_zod
|
|
346
346
|
} from "./cli-q21d49ac.js";
|
|
@@ -384,7 +384,7 @@ import {
|
|
|
384
384
|
import {
|
|
385
385
|
init_package,
|
|
386
386
|
package_default
|
|
387
|
-
} from "./cli-
|
|
387
|
+
} from "./cli-ehcjr5vs.js";
|
|
388
388
|
import {
|
|
389
389
|
init_secret_scrubber,
|
|
390
390
|
refreshSecretScrubberCache,
|
|
@@ -19656,6 +19656,7 @@ var realWithRemoteContext;
|
|
|
19656
19656
|
var realWithSpanContext;
|
|
19657
19657
|
var realInjectTraceContext;
|
|
19658
19658
|
var realShutdown;
|
|
19659
|
+
var realRecordSessionCost;
|
|
19659
19660
|
function isPollTracingEnabled() {
|
|
19660
19661
|
const v = (process.env.OTEL_TRACE_POLL ?? "").toLowerCase();
|
|
19661
19662
|
return v === "1" || v === "true" || v === "yes" || v === "on";
|
|
@@ -19665,7 +19666,7 @@ async function initOtel(serviceRole = process.env.AGENT_ROLE || "api") {
|
|
|
19665
19666
|
return;
|
|
19666
19667
|
initialized2 = true;
|
|
19667
19668
|
try {
|
|
19668
|
-
const impl = await import("./otel-impl-
|
|
19669
|
+
const impl = await import("./otel-impl-530442da.js");
|
|
19669
19670
|
await impl.boot(serviceRole);
|
|
19670
19671
|
realWithSpan = impl.withSpan;
|
|
19671
19672
|
realStartSpan = impl.startSpan;
|
|
@@ -19673,6 +19674,7 @@ async function initOtel(serviceRole = process.env.AGENT_ROLE || "api") {
|
|
|
19673
19674
|
realWithSpanContext = impl.withSpanContext;
|
|
19674
19675
|
realInjectTraceContext = impl.injectTraceContext;
|
|
19675
19676
|
realShutdown = impl.shutdown;
|
|
19677
|
+
realRecordSessionCost = impl.recordSessionCost;
|
|
19676
19678
|
console.log(`[OTel] enabled for ${impl.resolveServiceName(serviceRole)} (${serviceRole})`);
|
|
19677
19679
|
} catch (error) {
|
|
19678
19680
|
console.warn(`[OTel] disabled after initialization failure: ${error}`);
|
|
@@ -19708,6 +19710,11 @@ function injectTraceContext(headers) {
|
|
|
19708
19710
|
}
|
|
19709
19711
|
return realInjectTraceContext(headers);
|
|
19710
19712
|
}
|
|
19713
|
+
function recordSessionCost(m) {
|
|
19714
|
+
if (!enabled || !realRecordSessionCost)
|
|
19715
|
+
return;
|
|
19716
|
+
realRecordSessionCost(m);
|
|
19717
|
+
}
|
|
19711
19718
|
|
|
19712
19719
|
// src/tools/utils.ts
|
|
19713
19720
|
init_secret_scrubber();
|
|
@@ -32537,7 +32544,7 @@ async function notifySlack(text) {
|
|
|
32537
32544
|
return;
|
|
32538
32545
|
}
|
|
32539
32546
|
try {
|
|
32540
|
-
const { getSlackApp: getSlackApp2 } = await import("./app-
|
|
32547
|
+
const { getSlackApp: getSlackApp2 } = await import("./app-18x5k1cj.js");
|
|
32541
32548
|
const app = getSlackApp2();
|
|
32542
32549
|
if (!app) {
|
|
32543
32550
|
console.warn("[Jira webhook keepalive] Slack not available, cannot send notification");
|
|
@@ -32606,7 +32613,7 @@ async function deleteJiraWebhook(webhookId) {
|
|
|
32606
32613
|
console.log(`[Jira webhook keepalive] Deleted webhook id=${webhookId}`);
|
|
32607
32614
|
}
|
|
32608
32615
|
async function overwriteWebhookIds(next) {
|
|
32609
|
-
const { getDb: getDb2 } = await import("./db-
|
|
32616
|
+
const { getDb: getDb2 } = await import("./db-gtqymk7r.js");
|
|
32610
32617
|
const db = getDb2();
|
|
32611
32618
|
const txn = db.transaction(() => {
|
|
32612
32619
|
const row = db.query("SELECT metadata FROM oauth_apps WHERE provider = 'jira'").get();
|
|
@@ -109763,4 +109770,4 @@ function writeSkillsToFilesystem(entries, harnessType = "all", home) {
|
|
|
109763
109770
|
return { synced, removed, errors };
|
|
109764
109771
|
}
|
|
109765
109772
|
|
|
109766
|
-
export { DEFAULT_NEGOTIATED_PROTOCOL_VERSION, SUPPORTED_PROTOCOL_VERSIONS, isJSONRPCRequest, isJSONRPCResultResponse, isJSONRPCErrorResponse, JSONRPCMessageSchema, isInitializeRequest, McpServer, isGitHubEnabled, initGitHub, verifyWebhookSignature, userCtx, isPollTracingEnabled, initOtel, withSpan, startSpan, withSpanContext, withRemoteContext, injectTraceContext, createToolRegistrar, cancelTaskInputSchema, cancelTaskOutputSchema, cancelTaskHandler, setCorsHeaders, parseQueryParams, getPathSegments, safeRequestUrlForLog, agentWithCapacity, parseBody, BODY_TOO_LARGE, enforceContentLengthCap, json, jsonError, triggerSchemaErrorResponse, deriveApiBaseUrl, httpServerSemconvAttributes, describeRequestRoute, route, assertSelectOnlyQuery, executeReadOnlyQuery, handleDbQuery, snapshotMetric, snapshotPage, getTaskDetailsInputSchema, getTaskDetailsOutputSchema, getTaskDetailsHandler, getTasksInputSchema, getTasksOutputSchema, getTasksHandler, storeLinks, recordRetrievals, markKapsoMessageRead, sendKapsoReaction, getKapsoConfig, getKapsoNumberMapping, markKapsoMessageSeen, resolveHttpAuditUserId, createEvent, createEventsBatch, getEventCountsFiltered, getEventsFiltered, mergeScheduleTiming, validateRecurringTiming, sendTaskOutputSchema, sendTaskHandler, parseSkillContent, ExplicitSelfDuplicateError, applyRating, shouldPersistAutomaticTaskMemory, isAgentMailEnabled, initAgentMail, verifyAgentMailWebhook, isInboxAllowed, isSenderAllowed, handleMessageReceived, handlePullRequest, handleIssue, handleComment, handlePullRequestReview, handleCheckRun, handleCheckSuite, handleWorkflowRun, getJiraMetadata, updateJiraMetadata, clearJiraMetadata, registerJiraWebhook, deleteJiraWebhook, isJiraEnabled, initJira, handleJiraWebhook, handleAgentSessionEvent, handleIssueUpdate, handleIssueDelete, handleAgentSessionPrompted, isLinearEnabled, initLinear, loadGlobalConfigsIntoEnv, reloadGlobalConfigsAndIntegrations, scheduleIntegrationsReload, handleCore, canClaim, emitBudgetRefusalSideEffects, taskActionInputSchema, taskActionOutputSchema, taskActionHandler, hasCapability, getEnabledCapabilities, createServer, writeSkillsToFilesystem };
|
|
109773
|
+
export { DEFAULT_NEGOTIATED_PROTOCOL_VERSION, SUPPORTED_PROTOCOL_VERSIONS, isJSONRPCRequest, isJSONRPCResultResponse, isJSONRPCErrorResponse, JSONRPCMessageSchema, isInitializeRequest, McpServer, isGitHubEnabled, initGitHub, verifyWebhookSignature, userCtx, isPollTracingEnabled, initOtel, withSpan, startSpan, withSpanContext, withRemoteContext, injectTraceContext, recordSessionCost, createToolRegistrar, cancelTaskInputSchema, cancelTaskOutputSchema, cancelTaskHandler, setCorsHeaders, parseQueryParams, getPathSegments, safeRequestUrlForLog, agentWithCapacity, parseBody, BODY_TOO_LARGE, enforceContentLengthCap, json, jsonError, triggerSchemaErrorResponse, deriveApiBaseUrl, httpServerSemconvAttributes, describeRequestRoute, route, assertSelectOnlyQuery, executeReadOnlyQuery, handleDbQuery, snapshotMetric, snapshotPage, getTaskDetailsInputSchema, getTaskDetailsOutputSchema, getTaskDetailsHandler, getTasksInputSchema, getTasksOutputSchema, getTasksHandler, storeLinks, recordRetrievals, markKapsoMessageRead, sendKapsoReaction, getKapsoConfig, getKapsoNumberMapping, markKapsoMessageSeen, resolveHttpAuditUserId, createEvent, createEventsBatch, getEventCountsFiltered, getEventsFiltered, mergeScheduleTiming, validateRecurringTiming, sendTaskOutputSchema, sendTaskHandler, parseSkillContent, ExplicitSelfDuplicateError, applyRating, shouldPersistAutomaticTaskMemory, isAgentMailEnabled, initAgentMail, verifyAgentMailWebhook, isInboxAllowed, isSenderAllowed, handleMessageReceived, handlePullRequest, handleIssue, handleComment, handlePullRequestReview, handleCheckRun, handleCheckSuite, handleWorkflowRun, getJiraMetadata, updateJiraMetadata, clearJiraMetadata, registerJiraWebhook, deleteJiraWebhook, isJiraEnabled, initJira, handleJiraWebhook, handleAgentSessionEvent, handleIssueUpdate, handleIssueDelete, handleAgentSessionPrompted, isLinearEnabled, initLinear, loadGlobalConfigsIntoEnv, reloadGlobalConfigsAndIntegrations, scheduleIntegrationsReload, handleCore, canClaim, emitBudgetRefusalSideEffects, taskActionInputSchema, taskActionOutputSchema, taskActionHandler, hasCapability, getEnabledCapabilities, createServer, writeSkillsToFilesystem };
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
getScriptVersion,
|
|
10
10
|
listRelationalCredentialBindings,
|
|
11
11
|
validateScriptImports
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-0e24r2b6.js";
|
|
13
13
|
import {
|
|
14
14
|
checkpointStep,
|
|
15
15
|
checkpointStepFailure,
|
|
@@ -19,14 +19,14 @@ import {
|
|
|
19
19
|
interpolateNodeConfig,
|
|
20
20
|
runStepValidation,
|
|
21
21
|
walkGraph
|
|
22
|
-
} from "./cli-
|
|
22
|
+
} from "./cli-gq7gvvrn.js";
|
|
23
23
|
import {
|
|
24
24
|
getAppUrl
|
|
25
25
|
} from "./cli-dh55d5fg.js";
|
|
26
26
|
import {
|
|
27
27
|
withSiblingAwareness,
|
|
28
28
|
workflowContextKey
|
|
29
|
-
} from "./cli-
|
|
29
|
+
} from "./cli-0s37sw3k.js";
|
|
30
30
|
import {
|
|
31
31
|
FollowUpConfigSchema,
|
|
32
32
|
ModelTierSchema,
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
splitLegacyModelAlias,
|
|
60
60
|
updateWorkflowRun,
|
|
61
61
|
updateWorkflowRunStep
|
|
62
|
-
} from "./cli-
|
|
62
|
+
} from "./cli-wztagmpk.js";
|
|
63
63
|
import {
|
|
64
64
|
init_zod
|
|
65
65
|
} from "./cli-q21d49ac.js";
|
|
@@ -1428,7 +1428,7 @@ class HumanInTheLoopExecutor extends BaseExecutor {
|
|
|
1428
1428
|
}
|
|
1429
1429
|
if (notification.channel === "slack") {
|
|
1430
1430
|
try {
|
|
1431
|
-
const { getSlackApp } = await import("./app-
|
|
1431
|
+
const { getSlackApp } = await import("./app-18x5k1cj.js");
|
|
1432
1432
|
const slackApp = getSlackApp();
|
|
1433
1433
|
if (!slackApp) {
|
|
1434
1434
|
console.warn("[HITL] Slack not initialized — cannot send notification");
|
|
@@ -1542,7 +1542,7 @@ class NotifyExecutor extends BaseExecutor {
|
|
|
1542
1542
|
}
|
|
1543
1543
|
}
|
|
1544
1544
|
case "slack": {
|
|
1545
|
-
const { getSlackApp } = await import("./app-
|
|
1545
|
+
const { getSlackApp } = await import("./app-18x5k1cj.js");
|
|
1546
1546
|
const app = getSlackApp();
|
|
1547
1547
|
if (!app) {
|
|
1548
1548
|
return {
|