@desplega.ai/agent-swarm 2.4.0 → 2.4.1
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 -1
- package/dist/{acp-adapter-kedstxx6.js → acp-adapter-zvzr538d.js} +9 -9
- package/dist/{actions-vget6r1k.js → actions-jhtqdw69.js} +21 -21
- package/dist/{amp-adapter-xeb5mktv.js → amp-adapter-bd84rhs2.js} +4 -4
- package/dist/{app-mqap8t8m.js → app-kreq1gwg.js} +3 -3
- package/dist/{assistant-h0gv97mv.js → assistant-3k22sbsq.js} +22 -22
- package/dist/{boot-reembed-qr8a894z.js → boot-reembed-e53x6b9v.js} +1 -1
- package/dist/{boot-reembed-rj85jjhw.js → boot-reembed-f6z923ny.js} +1 -1
- package/dist/{boot-scrub-sweep-eyfvn6v9.js → boot-scrub-sweep-0538vsb7.js} +4 -4
- package/dist/{boot-seeds-xs9a8dx1.js → boot-seeds-6wxqkfk2.js} +4 -4
- package/dist/{claude-adapter-bm23cye7.js → claude-adapter-gfts5044.js} +9 -9
- package/dist/{claude-managed-adapter-1mwrsm9d.js → claude-managed-adapter-h2y889ge.js} +2 -2
- package/dist/{claude-managed-setup-gkfgks4j.js → claude-managed-setup-h00hsgtz.js} +2 -2
- package/dist/{claude-sdk-session-apb4ypz3.js → claude-sdk-session-56besmfz.js} +13 -13
- package/dist/{cli-nrrg0fvy.js → cli-0bh477zn.js} +18 -5
- package/dist/{cli-7gh7020n.js → cli-1dmcq2eh.js} +1 -1
- package/dist/{cli-7ayprxp7.js → cli-2dfbv8qr.js} +8 -0
- package/dist/{cli-1cevz46c.js → cli-3kh4kpqy.js} +6 -6
- package/dist/{cli-tg9ksbn8.js → cli-3p8fqcnh.js} +2 -2
- package/dist/{cli-x1p5dhq2.js → cli-3r448dqn.js} +3 -3
- package/dist/{cli-ecshf504.js → cli-3tnpj2bh.js} +7 -7
- package/dist/{cli-ffbrkh1r.js → cli-471qk6s2.js} +46 -38
- package/dist/{cli-a49vpbf3.js → cli-5kqnemen.js} +1 -1
- package/dist/{cli-zvze9rbm.js → cli-6ncjvx55.js} +3 -3
- package/dist/{cli-fb6t92v8.js → cli-6x9ma5w5.js} +1 -1
- package/dist/{cli-c8fwpgqb.js → cli-7225gwj7.js} +2 -2
- package/dist/{cli-bn26xbcs.js → cli-8nyhf7za.js} +1 -1
- package/dist/{cli-y83zk5sb.js → cli-a0kcty51.js} +4 -4
- package/dist/{cli-8b9wvjps.js → cli-a4gvwttf.js} +4 -4
- package/dist/{cli-jhp7w1fy.js → cli-a5ebc95n.js} +2 -2
- package/dist/{cli-mz1ezzzh.js → cli-ash6xxk7.js} +2 -2
- package/dist/{cli-rsd7ga7v.js → cli-axh29tyr.js} +11 -11
- package/dist/{cli-p22zdvnt.js → cli-bn0rewsy.js} +3 -3
- package/dist/{cli-6ftrrwm1.js → cli-bn5kevnf.js} +5 -5
- package/dist/{cli-p1m2b6gc.js → cli-d2mb5s8a.js} +7 -7
- package/dist/{cli-c5sbmw1v.js → cli-d82btycs.js} +94 -15
- package/dist/{cli-vjfpshn3.js → cli-ejs3m1sx.js} +1 -1
- package/dist/{cli-a1esmmee.js → cli-fpmsqq59.js} +7 -2
- package/dist/{cli-8cxkw1f5.js → cli-fz9kewbh.js} +2 -2
- package/dist/{cli-8rwvksbc.js → cli-g0hgtz4p.js} +5 -5
- package/dist/{cli-kz116kvw.js → cli-gf0kfg81.js} +7 -7
- package/dist/{cli-eqgfs202.js → cli-hqhzg1qq.js} +2 -2
- package/dist/{cli-3wjs22x3.js → cli-j4rqdf2n.js} +2 -2
- package/dist/{cli-ywyrffff.js → cli-jh0qcrga.js} +1 -1
- package/dist/{cli-ttaz6c7m.js → cli-k9z4zd4p.js} +6 -5
- package/dist/{cli-nme7wery.js → cli-kmqgmcnb.js} +46 -13
- package/dist/{cli-x719j3vs.js → cli-kr2pmfqx.js} +392 -168
- package/dist/{cli-wrv09v7q.js → cli-m2qgh5sv.js} +1 -1
- package/dist/{cli-xfe63zx3.js → cli-mfe7f7b5.js} +2 -2
- package/dist/{cli-x3en6ct3.js → cli-nwyw3zhg.js} +1 -1
- package/dist/{cli-5s5hx57y.js → cli-nx462e4v.js} +1 -1
- package/dist/{cli-bfc3k1x5.js → cli-p0rakbrk.js} +9 -9
- package/dist/{cli-avmqhatn.js → cli-p6argxh9.js} +8 -8
- package/dist/{cli-3avfh5az.js → cli-pemywhfq.js} +2 -2
- package/dist/{cli-sppc0cmw.js → cli-pnp2j5zg.js} +2 -2
- package/dist/{cli-wk8ccrz6.js → cli-pw7v69vp.js} +2 -2
- package/dist/{cli-bhwa8rzc.js → cli-rdq7tzwm.js} +13 -12
- package/dist/{cli-rg7ntypm.js → cli-rqqsfz30.js} +379 -87
- package/dist/{cli-kk2r80n5.js → cli-s48yvzb8.js} +4 -4
- package/dist/{cli-zv4vy2b0.js → cli-s95dknxh.js} +1 -1
- package/dist/{cli-b80a1100.js → cli-sjyetj21.js} +2 -2
- package/dist/{cli-rdr166ht.js → cli-smvcw9z5.js} +1 -1
- package/dist/{cli-2rwet3r7.js → cli-sv5gb0yb.js} +1 -1
- package/dist/{cli-5ff2sjyt.js → cli-syhq378v.js} +2 -2
- package/dist/{cli-tj4j2ts4.js → cli-tbhwrxpt.js} +8 -8
- package/dist/{cli-4fhyq711.js → cli-vy0fay6k.js} +13 -13
- package/dist/{cli-ptkpaqfy.js → cli-wt645v7q.js} +1 -1
- package/dist/{cli-f3nx1h8z.js → cli-wxbn3yfx.js} +2 -2
- package/dist/{cli-wyrr38xm.js → cli-x5mq1fyq.js} +1 -1
- package/dist/{cli-ccn0eybf.js → cli-xbzvet96.js} +6 -6
- package/dist/{cli-4mkvwgzr.js → cli-xf234ws8.js} +1 -1
- package/dist/{cli-tgvpmnwz.js → cli-xftrvxag.js} +5 -5
- package/dist/{cli-02vhhssk.js → cli-z071fb95.js} +5 -5
- package/dist/{cli-mvg2hf8p.js → cli-z1ew8vbq.js} +14 -7
- package/dist/{cli-dsgj3e7a.js → cli-zfg9enh9.js} +2 -2
- package/dist/{cli-yxqag76b.js → cli-zw88zjba.js} +1 -1
- package/dist/cli.js +19 -19
- package/dist/{codex-adapter-pp2gq8gr.js → codex-adapter-p6rmm7vv.js} +6 -6
- package/dist/{codex-hook-qwzccd64.js → codex-hook-x7nejyrr.js} +7 -4
- package/dist/{codex-login-35p4sk85.js → codex-login-m819c41r.js} +1 -1
- package/dist/{codex-session-runner-0vzn09t8.js → codex-session-runner-8vd5t9t0.js} +7 -7
- package/dist/{commands-psqhkttb.js → commands-7ems2p13.js} +2 -2
- package/dist/{controller-t20vz2k8.js → controller-m263fg43.js} +4 -4
- package/dist/{controllers-connect-gkxmqw9d.js → controllers-connect-bg33ae53.js} +23 -23
- package/dist/{cursor-adapter-3v542qe5.js → cursor-adapter-cz6nm6mj.js} +3 -3
- package/dist/{db-2xbyenjr.js → db-w505dwa8.js} +2 -2
- package/dist/{db-nc1rd869.js → db-ys2rbdft.js} +3 -3
- package/dist/{devin-adapter-7egzmt0k.js → devin-adapter-zgqadvnm.js} +1 -1
- package/dist/{dispatcher-ewceb8ts.js → dispatcher-0s0mckqr.js} +20 -20
- package/dist/{docker-njavd3fb.js → docker-fkgtr75t.js} +2 -2
- package/dist/{dsh-adapter-75xwh78t.js → dsh-adapter-3n3net33.js} +3 -3
- package/dist/{e2b-5r6a5jeb.js → e2b-7am6tmq6.js} +2 -2
- package/dist/{e2b-pw1nvtmh.js → e2b-thdcxtjd.js} +2 -2
- package/dist/{easter-egg-3d-xsc47jwf.js → easter-egg-3d-5cgynaja.js} +1 -1
- package/dist/{event-bus-101fenkh.js → event-bus-9vpk8gmq.js} +1 -1
- package/dist/{execute-gzmw1mnw.js → execute-t4e6m3rw.js} +1 -1
- package/dist/{external-channel-a5dsmxn4.js → external-channel-5b23fv8z.js} +2 -2
- package/dist/{grok-adapter-vj88xr23.js → grok-adapter-q9fghe5q.js} +10 -10
- package/dist/handlers-mqrym347.js +39 -0
- package/dist/{heartbeat-t2m9r3wa.js → heartbeat-tww6yx1w.js} +23 -23
- package/dist/{hook-xa677f8r.js → hook-dx0pkvar.js} +16 -9
- package/dist/{hook-8femx1bg.js → hook-pvmh9b6m.js} +6 -6
- package/dist/{http-xpmmq028.js → http-k2ejbt05.js} +199 -131
- package/dist/{index-s7ckdajq.js → index-2z710v4x.js} +10 -10
- package/dist/{index-dg2tmj99.js → index-dgz61nff.js} +20 -20
- package/dist/{index-syztqdt6.js → index-g6tbb6ve.js} +1 -1
- package/dist/index-h2ek08d6.js +40 -0
- package/dist/index-pqfwh9nn.js +41 -0
- package/dist/{index-cdzyfrsp.js → index-x5aktmp8.js} +1 -1
- package/dist/{keepalive-3nr4st3r.js → keepalive-nhvpw10z.js} +4 -4
- package/dist/lead-jb6sf69z.js +78 -0
- package/dist/{maintenance-verwpe2c.js → maintenance-agakc519.js} +1 -1
- package/dist/{oauth-refresh-sweep-9q2t0y3q.js → oauth-refresh-sweep-4dcbhtn0.js} +3 -3
- package/dist/{onboard-aytqedmq.js → onboard-4n2kwa4v.js} +3 -3
- package/dist/{opencode-adapter-f4hryjny.js → opencode-adapter-3s7ax02e.js} +7 -7
- package/dist/{otel-impl-hckw4wt1.js → otel-impl-tfa12080.js} +2 -2
- package/dist/{pi-mono-adapter-hxby0ce1.js → pi-mono-adapter-ytp7gz8b.js} +22 -11
- package/dist/{pricing-refresh-5nvme3sm.js → pricing-refresh-3cqx3f3x.js} +3 -3
- package/dist/{rbac-roles-pd8c26m1.js → rbac-roles-9fae5rnv.js} +1 -1
- package/dist/{rbac-roles-vbpy21mg.js → rbac-roles-y6zbfzve.js} +2 -2
- package/dist/{render-v2-7nqgvk2q.js → render-v2-emawjvc4.js} +3 -3
- package/dist/{resume-b6djcj3c.js → resume-zhgts7h7.js} +10 -8
- package/dist/{runtime-txrxc9za.js → runtime-xe3aqy4x.js} +1 -1
- package/dist/{session-access-fc3f9y12.js → session-access-cm823e06.js} +4 -4
- package/dist/{setup-n39szm6b.js → setup-tkp99w1e.js} +1 -1
- package/dist/{virtual-modules-wyp2k6z3.js → virtual-modules-4r3zkc20.js} +2 -2
- package/dist/{work-objects-jem2fre0.js → work-objects-f722h263.js} +23 -23
- package/dist/worker-p7f336rq.js +78 -0
- package/dist/{x-8ewt8gxn.js → x-y45mthwn.js} +2 -2
- package/openapi.json +99 -52
- package/package.json +2 -2
- package/src/apps/action-runner.ts +146 -0
- package/src/apps/row-store.ts +4 -2
- package/src/apps/script-types.ts +1 -1
- package/src/be/db.ts +14 -4
- package/src/be/fleet-benchmark-stats.ts +10 -5
- package/src/be/models-catalog.ts +4 -0
- package/src/be/onboarding.ts +6 -0
- package/src/be/scripts/typecheck.ts +13 -0
- package/src/be/swarm-config-guard.ts +10 -1
- package/src/be/telemetry-enable.ts +1 -1
- package/src/commands/provider-credentials.ts +12 -2
- package/src/commands/runner.ts +3 -0
- package/src/heartbeat/heartbeat.ts +2 -2
- package/src/hooks/codex-hook.ts +6 -2
- package/src/hooks/hook.ts +7 -0
- package/src/hooks/pr-body-guard.ts +38 -11
- package/src/hooks/pr-room-guard.ts +88 -0
- package/src/http/agents.ts +1 -0
- package/src/http/apps.ts +84 -181
- package/src/http/fleet-benchmark.ts +79 -30
- package/src/http/global-config.ts +7 -0
- package/src/http/ranking.ts +24 -40
- package/src/http/tasks.ts +2 -1
- package/src/http/telemetry-ui.ts +1 -1
- package/src/http/used-by.ts +55 -19
- package/src/http/users.ts +2 -2
- package/src/providers/amp-adapter.ts +1 -1
- package/src/providers/pi-mono-adapter.ts +15 -0
- package/src/providers/reasoning-effort.ts +2 -1
- package/src/providers/types.ts +2 -0
- package/src/ranking/telemetry-ranking.ts +5 -33
- package/src/scripts-runtime/sdk-allowlist.ts +7 -0
- package/src/scripts-runtime/types/stdlib.d.ts +31 -0
- package/src/scripts-runtime/types/swarm-sdk.d.ts +31 -0
- package/src/server.ts +4 -0
- package/src/telemetry-context.ts +19 -1
- package/src/telemetry-contract/EVENTS.md +42 -8
- package/src/telemetry-contract/SOURCE.json +6 -5
- package/src/telemetry-contract/catalog.json +225 -5
- package/src/telemetry-contract/ranking/fixtures/valid/no-claim.json +10 -0
- package/src/telemetry-contract/ranking/listing.v1.schema.json +2 -2
- package/src/telemetry-contract/types.gen.ts +225 -27
- package/src/telemetry-identity.ts +47 -9
- package/src/telemetry-snapshot.ts +9 -1
- package/src/telemetry-ui-events.ts +9 -2
- package/src/telemetry.ts +14 -3
- package/src/tests/app-action-run-tool.test.ts +178 -0
- package/src/tests/app-row-tools.test.ts +360 -0
- package/src/tests/check-pr-body.test.ts +0 -23
- package/src/tests/credential-check.test.ts +38 -0
- package/src/tests/fleet-benchmark.test.ts +122 -2
- package/src/tests/http-users.test.ts +62 -1
- package/src/tests/model-catalog-table.test.ts +63 -0
- package/src/tests/model-profiles-api.test.ts +19 -7
- package/src/tests/models-catalog.test.ts +50 -0
- package/src/tests/onboarding.test.ts +21 -0
- package/src/tests/org-website.test.ts +62 -0
- package/src/tests/pi-mono-adapter.test.ts +23 -0
- package/src/tests/pr-body-leaks.test.ts +4 -0
- package/src/tests/pr-room-guard.test.ts +242 -0
- package/src/tests/ranking-listing.test.ts +8 -23
- package/src/tests/ranking-route.test.ts +49 -47
- package/src/tests/reasoning-effort.test.ts +39 -3
- package/src/tests/runner-harness-telemetry-env.test.ts +56 -1
- package/src/tests/swarm-tool-result-gate.test.ts +2 -4
- package/src/tests/telemetry-context.test.ts +128 -2
- package/src/tests/telemetry-ui-route.test.ts +123 -0
- package/src/tests/tool-annotations.test.ts +3 -2
- package/src/tests/used-by-route.test.ts +144 -10
- package/src/tests/workflow-agent-task-retry.test.ts +130 -4
- package/src/tests/workflow-wait-recovery.test.ts +116 -4
- package/src/tools/app-action-run.ts +63 -0
- package/src/tools/app-rows.ts +234 -0
- package/src/tools/model-catalog/index.ts +1 -1
- package/src/tools/tool-config.ts +8 -0
- package/src/tools/utils.ts +1 -1
- package/src/tools/workflows/retry-workflow-run.ts +1 -1
- package/src/types.ts +17 -0
- package/src/utils/company-profile.ts +24 -0
- package/src/utils/org-website.ts +58 -21
- package/src/workflows/recovery.ts +10 -22
- package/src/workflows/resume.ts +16 -0
- package/src/workflows/task-step-routing.ts +47 -7
- package/templates/skills/apps/SKILL.md +41 -2
- package/templates/skills/apps/content.md +41 -2
- package/dist/handlers-zbs90bny.js +0 -39
- package/dist/index-8pwc1jc8.js +0 -40
- package/dist/index-nxa6me0q.js +0 -41
- package/dist/lead-td8h2sfn.js +0 -78
- package/dist/worker-wr6xgfr2.js +0 -78
- package/src/tests/check-ranking-entry.test.ts +0 -146
package/dist/lead-td8h2sfn.js
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import"./cli-qz93y3x5.js";
|
|
2
|
-
import {
|
|
3
|
-
getEnabledCapabilities
|
|
4
|
-
} from "./cli-x719j3vs.js";
|
|
5
|
-
import"./cli-v1sjhn52.js";
|
|
6
|
-
import"./cli-rg7ntypm.js";
|
|
7
|
-
import"./cli-5s5hx57y.js";
|
|
8
|
-
import"./cli-kk2r80n5.js";
|
|
9
|
-
import"./cli-tg9ksbn8.js";
|
|
10
|
-
import"./cli-ttaz6c7m.js";
|
|
11
|
-
import"./cli-2rwet3r7.js";
|
|
12
|
-
import"./cli-nme7wery.js";
|
|
13
|
-
import"./cli-nrrg0fvy.js";
|
|
14
|
-
import"./cli-b80a1100.js";
|
|
15
|
-
import"./cli-3ggwdtb0.js";
|
|
16
|
-
import"./cli-4fhyq711.js";
|
|
17
|
-
import"./cli-xfe63zx3.js";
|
|
18
|
-
import"./cli-tj4j2ts4.js";
|
|
19
|
-
import"./cli-bn26xbcs.js";
|
|
20
|
-
import"./cli-kvzgak7c.js";
|
|
21
|
-
import"./cli-445c1vp7.js";
|
|
22
|
-
import"./cli-vjfpshn3.js";
|
|
23
|
-
import"./cli-ptkpaqfy.js";
|
|
24
|
-
import"./cli-02vhhssk.js";
|
|
25
|
-
import"./cli-7a91w22y.js";
|
|
26
|
-
import"./cli-qje9k2nh.js";
|
|
27
|
-
import"./cli-6ftrrwm1.js";
|
|
28
|
-
import"./cli-3h26v7yj.js";
|
|
29
|
-
import"./cli-rdr166ht.js";
|
|
30
|
-
import"./cli-0xk505e8.js";
|
|
31
|
-
import"./cli-p22zdvnt.js";
|
|
32
|
-
import"./cli-77cd6gy8.js";
|
|
33
|
-
import"./cli-wrv09v7q.js";
|
|
34
|
-
import {
|
|
35
|
-
runAgent
|
|
36
|
-
} from "./cli-ffbrkh1r.js";
|
|
37
|
-
import"./cli-jhp7w1fy.js";
|
|
38
|
-
import"./cli-gx4rm0qx.js";
|
|
39
|
-
import"./cli-a49vpbf3.js";
|
|
40
|
-
import"./cli-jc1g9ndz.js";
|
|
41
|
-
import"./cli-tgvpmnwz.js";
|
|
42
|
-
import"./cli-c8fwpgqb.js";
|
|
43
|
-
import"./cli-sppc0cmw.js";
|
|
44
|
-
import"./cli-c5sbmw1v.js";
|
|
45
|
-
import"./cli-0726awxw.js";
|
|
46
|
-
import"./cli-mvg2hf8p.js";
|
|
47
|
-
import"./cli-kz116kvw.js";
|
|
48
|
-
import"./cli-4bd1rck6.js";
|
|
49
|
-
import"./cli-vbhgkw9h.js";
|
|
50
|
-
import"./cli-er83cjbn.js";
|
|
51
|
-
import"./cli-y83zk5sb.js";
|
|
52
|
-
import"./cli-kr5tjjtz.js";
|
|
53
|
-
import"./cli-bfc3k1x5.js";
|
|
54
|
-
import"./cli-8rwvksbc.js";
|
|
55
|
-
import"./cli-zv4vy2b0.js";
|
|
56
|
-
import"./cli-8b9wvjps.js";
|
|
57
|
-
import"./cli-ecshf504.js";
|
|
58
|
-
import"./cli-dsgj3e7a.js";
|
|
59
|
-
import"./cli-ccn0eybf.js";
|
|
60
|
-
import"./cli-zvze9rbm.js";
|
|
61
|
-
import"./cli-4zsenjhy.js";
|
|
62
|
-
import"./cli-13p25grh.js";
|
|
63
|
-
import"./cli-0adyhvq2.js";
|
|
64
|
-
import"./cli-8cxkw1f5.js";
|
|
65
|
-
|
|
66
|
-
// src/commands/lead.ts
|
|
67
|
-
var leadConfig = {
|
|
68
|
-
role: "lead",
|
|
69
|
-
defaultPrompt: "/start-leader",
|
|
70
|
-
metadataType: "lead_metadata",
|
|
71
|
-
capabilities: getEnabledCapabilities()
|
|
72
|
-
};
|
|
73
|
-
async function runLead(opts) {
|
|
74
|
-
return runAgent(leadConfig, opts);
|
|
75
|
-
}
|
|
76
|
-
export {
|
|
77
|
-
runLead
|
|
78
|
-
};
|
package/dist/worker-wr6xgfr2.js
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import"./cli-qz93y3x5.js";
|
|
2
|
-
import {
|
|
3
|
-
getEnabledCapabilities
|
|
4
|
-
} from "./cli-x719j3vs.js";
|
|
5
|
-
import"./cli-v1sjhn52.js";
|
|
6
|
-
import"./cli-rg7ntypm.js";
|
|
7
|
-
import"./cli-5s5hx57y.js";
|
|
8
|
-
import"./cli-kk2r80n5.js";
|
|
9
|
-
import"./cli-tg9ksbn8.js";
|
|
10
|
-
import"./cli-ttaz6c7m.js";
|
|
11
|
-
import"./cli-2rwet3r7.js";
|
|
12
|
-
import"./cli-nme7wery.js";
|
|
13
|
-
import"./cli-nrrg0fvy.js";
|
|
14
|
-
import"./cli-b80a1100.js";
|
|
15
|
-
import"./cli-3ggwdtb0.js";
|
|
16
|
-
import"./cli-4fhyq711.js";
|
|
17
|
-
import"./cli-xfe63zx3.js";
|
|
18
|
-
import"./cli-tj4j2ts4.js";
|
|
19
|
-
import"./cli-bn26xbcs.js";
|
|
20
|
-
import"./cli-kvzgak7c.js";
|
|
21
|
-
import"./cli-445c1vp7.js";
|
|
22
|
-
import"./cli-vjfpshn3.js";
|
|
23
|
-
import"./cli-ptkpaqfy.js";
|
|
24
|
-
import"./cli-02vhhssk.js";
|
|
25
|
-
import"./cli-7a91w22y.js";
|
|
26
|
-
import"./cli-qje9k2nh.js";
|
|
27
|
-
import"./cli-6ftrrwm1.js";
|
|
28
|
-
import"./cli-3h26v7yj.js";
|
|
29
|
-
import"./cli-rdr166ht.js";
|
|
30
|
-
import"./cli-0xk505e8.js";
|
|
31
|
-
import"./cli-p22zdvnt.js";
|
|
32
|
-
import"./cli-77cd6gy8.js";
|
|
33
|
-
import"./cli-wrv09v7q.js";
|
|
34
|
-
import {
|
|
35
|
-
runAgent
|
|
36
|
-
} from "./cli-ffbrkh1r.js";
|
|
37
|
-
import"./cli-jhp7w1fy.js";
|
|
38
|
-
import"./cli-gx4rm0qx.js";
|
|
39
|
-
import"./cli-a49vpbf3.js";
|
|
40
|
-
import"./cli-jc1g9ndz.js";
|
|
41
|
-
import"./cli-tgvpmnwz.js";
|
|
42
|
-
import"./cli-c8fwpgqb.js";
|
|
43
|
-
import"./cli-sppc0cmw.js";
|
|
44
|
-
import"./cli-c5sbmw1v.js";
|
|
45
|
-
import"./cli-0726awxw.js";
|
|
46
|
-
import"./cli-mvg2hf8p.js";
|
|
47
|
-
import"./cli-kz116kvw.js";
|
|
48
|
-
import"./cli-4bd1rck6.js";
|
|
49
|
-
import"./cli-vbhgkw9h.js";
|
|
50
|
-
import"./cli-er83cjbn.js";
|
|
51
|
-
import"./cli-y83zk5sb.js";
|
|
52
|
-
import"./cli-kr5tjjtz.js";
|
|
53
|
-
import"./cli-bfc3k1x5.js";
|
|
54
|
-
import"./cli-8rwvksbc.js";
|
|
55
|
-
import"./cli-zv4vy2b0.js";
|
|
56
|
-
import"./cli-8b9wvjps.js";
|
|
57
|
-
import"./cli-ecshf504.js";
|
|
58
|
-
import"./cli-dsgj3e7a.js";
|
|
59
|
-
import"./cli-ccn0eybf.js";
|
|
60
|
-
import"./cli-zvze9rbm.js";
|
|
61
|
-
import"./cli-4zsenjhy.js";
|
|
62
|
-
import"./cli-13p25grh.js";
|
|
63
|
-
import"./cli-0adyhvq2.js";
|
|
64
|
-
import"./cli-8cxkw1f5.js";
|
|
65
|
-
|
|
66
|
-
// src/commands/worker.ts
|
|
67
|
-
var workerConfig = {
|
|
68
|
-
role: "worker",
|
|
69
|
-
defaultPrompt: "/start-worker",
|
|
70
|
-
metadataType: "worker_metadata",
|
|
71
|
-
capabilities: getEnabledCapabilities()
|
|
72
|
-
};
|
|
73
|
-
async function runWorker(opts) {
|
|
74
|
-
return runAgent(workerConfig, opts);
|
|
75
|
-
}
|
|
76
|
-
export {
|
|
77
|
-
runWorker
|
|
78
|
-
};
|
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
import { describe, expect, test } from "bun:test";
|
|
2
|
-
import {
|
|
3
|
-
checkRankingEntries,
|
|
4
|
-
type Entry,
|
|
5
|
-
isEntryPath,
|
|
6
|
-
parseEntry,
|
|
7
|
-
type Verification,
|
|
8
|
-
} from "../../scripts/check-ranking-entry";
|
|
9
|
-
|
|
10
|
-
const CLAIM = "rk_3f9a1c0e7b2d4a6f8e1c3b5d7f9a2c4e";
|
|
11
|
-
const OTHER_CLAIM = "rk_00000000000000000000000000000001";
|
|
12
|
-
const file = (domain: string, claim = CLAIM) =>
|
|
13
|
-
JSON.stringify({ $schema: "./schema.json", domain, claim });
|
|
14
|
-
|
|
15
|
-
const VERIFIED: Verification = {
|
|
16
|
-
verified: true,
|
|
17
|
-
reasons: [],
|
|
18
|
-
telemetryActive7d: true,
|
|
19
|
-
websiteMatchesDomain: true,
|
|
20
|
-
listing: {
|
|
21
|
-
name: "Acme",
|
|
22
|
-
domain: "acme.dev",
|
|
23
|
-
category: "engineering",
|
|
24
|
-
subcategory: "qa-testing",
|
|
25
|
-
description: "QA | release automation",
|
|
26
|
-
sourceCodeUrl: null,
|
|
27
|
-
},
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
describe("parseEntry", () => {
|
|
31
|
-
test("accepts the opt-in file", () => {
|
|
32
|
-
expect(parseEntry("acme.dev.json", file("acme.dev"))).toEqual({
|
|
33
|
-
domain: "acme.dev",
|
|
34
|
-
claim: CLAIM,
|
|
35
|
-
});
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
test.each([
|
|
39
|
-
["acme.dev.json", "{", "valid JSON"],
|
|
40
|
-
["acme.dev.json", "[]", "JSON object"],
|
|
41
|
-
[
|
|
42
|
-
"acme.dev.json",
|
|
43
|
-
JSON.stringify({ domain: "acme.dev", claim: CLAIM, name: "Acme" }),
|
|
44
|
-
"unknown keys",
|
|
45
|
-
],
|
|
46
|
-
["www.acme.dev.json", file("www.acme.dev"), "bare lowercase hostname"],
|
|
47
|
-
["Acme.ba.json", file("Acme.ba"), "bare lowercase hostname"],
|
|
48
|
-
["other.ba.json", file("acme.dev"), "must be named acme.dev.json"],
|
|
49
|
-
["acme.dev.json", file("acme.dev", "rk_short"), "claim"],
|
|
50
|
-
])("rejects %s %s", (name, text, message) => {
|
|
51
|
-
expect(() => parseEntry(name, text)).toThrow(message);
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
test("README and schema are not entries", () => {
|
|
55
|
-
expect(isEntryPath("community/ranking/acme.dev.json")).toBe(true);
|
|
56
|
-
expect(isEntryPath("community/ranking/schema.json")).toBe(false);
|
|
57
|
-
expect(isEntryPath("community/ranking/README.md")).toBe(false);
|
|
58
|
-
expect(isEntryPath("community/ranking/nested/acme.dev.json")).toBe(false);
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
describe("checkRankingEntries", () => {
|
|
63
|
-
const files: Record<string, string> = {
|
|
64
|
-
"community/ranking/acme.dev.json": file("acme.dev"),
|
|
65
|
-
"community/ranking/acme.com.json": file("acme.com", CLAIM),
|
|
66
|
-
};
|
|
67
|
-
const run = (
|
|
68
|
-
paths: string[],
|
|
69
|
-
verify: (entry: Entry) => Promise<Verification>,
|
|
70
|
-
all = ["acme.dev.json"],
|
|
71
|
-
) =>
|
|
72
|
-
checkRankingEntries({
|
|
73
|
-
changes: paths.map((path) => ({ status: "A", path })),
|
|
74
|
-
readEntry: (path) => files[path] ?? "",
|
|
75
|
-
allEntries: all.map((name) => [name, files[`community/ranking/${name}`] ?? ""]),
|
|
76
|
-
verify,
|
|
77
|
-
});
|
|
78
|
-
|
|
79
|
-
test("a verified entry passes and the summary shows the listing", async () => {
|
|
80
|
-
const asked: Entry[] = [];
|
|
81
|
-
const result = await run(["community/ranking/acme.dev.json"], async (entry) => {
|
|
82
|
-
asked.push(entry);
|
|
83
|
-
return VERIFIED;
|
|
84
|
-
});
|
|
85
|
-
expect(result.problems).toEqual([]);
|
|
86
|
-
expect(asked).toEqual([{ domain: "acme.dev", claim: CLAIM }]);
|
|
87
|
-
const summary = result.summary.join("\n");
|
|
88
|
-
expect(summary).toContain("### acme.dev: verified");
|
|
89
|
-
expect(summary).toContain(
|
|
90
|
-
"| Acme | engineering | qa-testing | QA \\| release automation | — |",
|
|
91
|
-
);
|
|
92
|
-
});
|
|
93
|
-
|
|
94
|
-
test("an unverified entry fails with the proxy's reasons", async () => {
|
|
95
|
-
const result = await run(["community/ranking/acme.dev.json"], async () => ({
|
|
96
|
-
...VERIFIED,
|
|
97
|
-
verified: false,
|
|
98
|
-
reasons: ["telemetry_inactive_7d"],
|
|
99
|
-
}));
|
|
100
|
-
expect(result.problems).toHaveLength(1);
|
|
101
|
-
expect(result.problems[0]).toContain("telemetry_inactive_7d");
|
|
102
|
-
});
|
|
103
|
-
|
|
104
|
-
test("a proxy error fails without throwing", async () => {
|
|
105
|
-
const result = await run(["community/ranking/acme.dev.json"], async () => {
|
|
106
|
-
throw new Error("the proxy answered 503");
|
|
107
|
-
});
|
|
108
|
-
expect(result.problems[0]).toContain("503");
|
|
109
|
-
});
|
|
110
|
-
|
|
111
|
-
test("a claim shared with another entry fails before verify", async () => {
|
|
112
|
-
let called = false;
|
|
113
|
-
const result = await run(["community/ranking/acme.com.json"], async () => {
|
|
114
|
-
called = true;
|
|
115
|
-
return VERIFIED;
|
|
116
|
-
}, ["acme.dev.json", "acme.com.json"]);
|
|
117
|
-
expect(called).toBe(false);
|
|
118
|
-
expect(result.problems[0]).toContain("acme.dev.json");
|
|
119
|
-
});
|
|
120
|
-
|
|
121
|
-
test("a removal needs no proof, and README edits are ignored", async () => {
|
|
122
|
-
const result = await checkRankingEntries({
|
|
123
|
-
changes: [
|
|
124
|
-
{ status: "D", path: "community/ranking/acme.dev.json" },
|
|
125
|
-
{ status: "M", path: "community/ranking/README.md" },
|
|
126
|
-
],
|
|
127
|
-
readEntry: () => "",
|
|
128
|
-
allEntries: [],
|
|
129
|
-
verify: async () => {
|
|
130
|
-
throw new Error("must not be called");
|
|
131
|
-
},
|
|
132
|
-
});
|
|
133
|
-
expect(result.problems).toEqual([]);
|
|
134
|
-
expect(result.summary).toEqual(["- Removed `acme.dev.json`."]);
|
|
135
|
-
});
|
|
136
|
-
|
|
137
|
-
test("the claim differs per entry in a valid two-entry PR", async () => {
|
|
138
|
-
files["community/ranking/acme.com.json"] = file("acme.com", OTHER_CLAIM);
|
|
139
|
-
const result = await run(
|
|
140
|
-
["community/ranking/acme.com.json", "community/ranking/acme.dev.json"],
|
|
141
|
-
async () => VERIFIED,
|
|
142
|
-
["acme.dev.json", "acme.com.json"],
|
|
143
|
-
);
|
|
144
|
-
expect(result.problems).toEqual([]);
|
|
145
|
-
});
|
|
146
|
-
});
|