deepline 0.3.492 → 0.3.494
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/bundling-sources/sdk/src/client-core.ts +11 -5
- package/dist/bundling-sources/sdk/src/plays/run-request.ts +1 -0
- package/dist/bundling-sources/sdk/src/release.ts +2 -2
- package/dist/bundling-sources/sdk/src/types.ts +11 -4
- package/dist/bundling-sources/shared_libs/monitors/fleets/verdict.ts +25 -9
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +36 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-work-manual.ts +5 -4
- package/dist/bundling-sources/shared_libs/play-runtime/crustdata-company-identify-batching.ts +162 -0
- package/dist/bundling-sources/shared_libs/play-runtime/daytona-sandbox-reaper.ts +19 -3
- package/dist/bundling-sources/shared_libs/play-runtime/play-runtime-batching-registry.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/receipt-sql.ts +17 -23
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-modal-fallback.ts +28 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-sandbox-placement-policy.ts +75 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +20 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +412 -59
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +38 -10
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-ledger-reconciliation.ts +19 -11
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-operation.ts +165 -12
- package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +15 -0
- package/dist/bundling-sources/shared_libs/play-runtime/work-receipt-state-machine.ts +358 -0
- package/dist/bundling-sources/shared_libs/plays/field-catalog.ts +101 -3
- package/dist/cli/{auth-4I6QY5WX.mjs → auth-6X5YXMFN.mjs} +5 -5
- package/dist/cli/auth-RWLCLMDY.js +43 -0
- package/dist/cli/{billing-2H4GOJZY.js → billing-5F5PZB77.js} +80 -80
- package/dist/cli/{billing-4F6L4JSI.mjs → billing-IN74SDSC.mjs} +7 -7
- package/dist/cli/{chunk-3RGWTKK3.mjs → chunk-2GEYN3H4.mjs} +89 -3
- package/dist/cli/{chunk-JJAHWKJ2.js → chunk-3KVFOKPR.js} +73 -59
- package/dist/cli/{chunk-NBL6JMIY.js → chunk-4A5WXQJK.js} +17 -17
- package/dist/cli/{chunk-YOCEY4EI.mjs → chunk-4RWH4LRQ.mjs} +5 -5
- package/dist/cli/{chunk-OGNIB64W.js → chunk-4ZKZS43N.js} +23 -15
- package/dist/cli/{chunk-TKLDKIJU.mjs → chunk-5JPKRDFC.mjs} +7 -5
- package/dist/cli/{chunk-3TISK5RQ.js → chunk-5WYH2LAP.js} +6 -6
- package/dist/cli/{chunk-MQ2LQOAM.mjs → chunk-65NMOP4T.mjs} +23 -9
- package/dist/cli/{chunk-O65HDVA7.mjs → chunk-6DMLWM7L.mjs} +5 -5
- package/dist/cli/{chunk-OTUT3XTX.mjs → chunk-6XZR2642.mjs} +8 -7
- package/dist/cli/{chunk-Q3CCCTRQ.js → chunk-7B7A36XZ.js} +14 -14
- package/dist/cli/{chunk-O3K22ZC7.js → chunk-AARXOBVD.js} +35 -11
- package/dist/cli/{chunk-DVGCPOEA.mjs → chunk-BLHQRETG.mjs} +187 -187
- package/dist/cli/{chunk-NPZBE64X.js → chunk-BLMB4N63.js} +89 -3
- package/dist/cli/{chunk-OTDX4A4W.js → chunk-BNI653WN.js} +21 -21
- package/dist/cli/{chunk-E47VAVAR.js → chunk-BU5Y7HOD.js} +5 -5
- package/dist/cli/{chunk-CGDUFVNE.mjs → chunk-C5R3UH5V.mjs} +29 -2
- package/dist/cli/{chunk-HFEJ7JJT.js → chunk-CAWOSHEC.js} +26 -26
- package/dist/cli/{chunk-TVUE4CPW.js → chunk-CK5MA6S6.js} +32 -32
- package/dist/cli/{chunk-Y7QCMOGZ.mjs → chunk-DKKAJ3U2.mjs} +6 -6
- package/dist/cli/{chunk-ONONSV2Q.mjs → chunk-DVQHG6AM.mjs} +1 -0
- package/dist/cli/{chunk-3BRDP4UP.mjs → chunk-EG3OSUBO.mjs} +1 -1
- package/dist/cli/{chunk-ZCKUNXXR.mjs → chunk-FAT6CUZK.mjs} +1 -1
- package/dist/cli/{chunk-YNWET57Z.js → chunk-GBICEYUA.js} +13 -13
- package/dist/cli/{chunk-42Z6VC2Q.js → chunk-GDNQXLBM.js} +2 -2
- package/dist/cli/{chunk-SE23YSBK.js → chunk-GLDBMKTV.js} +3 -3
- package/dist/cli/{chunk-OKHBAAJG.mjs → chunk-GNSGDIA4.mjs} +2 -2
- package/dist/cli/{chunk-W4FEX5ZF.js → chunk-GSCCDGGT.js} +261 -261
- package/dist/cli/{chunk-A7ZMG2QZ.mjs → chunk-H46X7YDU.mjs} +35 -11
- package/dist/cli/{chunk-3IBKEOL4.js → chunk-HINVMRGQ.js} +4 -4
- package/dist/cli/{chunk-HHTVRICE.js → chunk-I42EOZKQ.js} +44 -17
- package/dist/cli/{chunk-MPITIXW4.mjs → chunk-IPWYDANJ.mjs} +13 -5
- package/dist/cli/{chunk-YVOYZPMY.mjs → chunk-IZJSX3SZ.mjs} +2 -2
- package/dist/cli/{chunk-FFOJRD53.mjs → chunk-J2HOVZOE.mjs} +3 -3
- package/dist/cli/{chunk-EFFHRXKB.js → chunk-J3UHNUWI.js} +2 -2
- package/dist/cli/{chunk-4IP5MLWU.js → chunk-JO5FFSR7.js} +6 -1
- package/dist/cli/{chunk-PIC6M4X3.mjs → chunk-KR2XEI5T.mjs} +1 -1
- package/dist/cli/{chunk-FTXIJTV2.mjs → chunk-KSHAFYYG.mjs} +2 -2
- package/dist/cli/{chunk-6YO4OJPM.mjs → chunk-KVCQL6SP.mjs} +99 -24
- package/dist/cli/{chunk-RC366IJS.mjs → chunk-L2P2XRPO.mjs} +38 -6
- package/dist/cli/{chunk-R5MP3CIY.mjs → chunk-L4QPBQUX.mjs} +3 -3
- package/dist/cli/{chunk-4RB74KJX.js → chunk-L6KA4ENU.js} +47 -15
- package/dist/cli/{chunk-MJFVF5AW.mjs → chunk-L6L57RSG.mjs} +2 -2
- package/dist/cli/{chunk-F6EQWY4E.mjs → chunk-MWZNMWR2.mjs} +2 -2
- package/dist/cli/{chunk-LCCFGSV7.mjs → chunk-ODWTFVE4.mjs} +2 -2
- package/dist/cli/{chunk-AUQQVDAB.js → chunk-PKV5CD3W.js} +1 -0
- package/dist/cli/{chunk-UUH4GQRL.mjs → chunk-QOEI42IU.mjs} +2 -2
- package/dist/cli/{chunk-JHBRJDUC.js → chunk-QSRWBOPV.js} +11 -10
- package/dist/cli/{chunk-4OLXMJ2L.js → chunk-RLX5ZFNX.js} +8 -6
- package/dist/cli/{chunk-EANFUHRM.mjs → chunk-RPFNIMUO.mjs} +1 -1
- package/dist/cli/{chunk-DJOLMS2A.js → chunk-S3XQH7DW.js} +2 -2
- package/dist/cli/{chunk-DEJIN4DF.mjs → chunk-SAW3FBCA.mjs} +5 -0
- package/dist/cli/{chunk-GDSZWTJK.mjs → chunk-TLQXN4ZZ.mjs} +12 -12
- package/dist/cli/{chunk-O2FB42N2.js → chunk-USWLB4KV.js} +234 -234
- package/dist/cli/{chunk-BDUFZSUL.js → chunk-VMPM2FKT.js} +8 -8
- package/dist/cli/{chunk-4GJIJHRQ.mjs → chunk-WCZBIE5L.mjs} +1 -1
- package/dist/cli/{chunk-NF7NUKWF.js → chunk-WP45PUPW.js} +132 -57
- package/dist/cli/{chunk-FPLN7PHP.js → chunk-X6HIIHQO.js} +5 -5
- package/dist/cli/{chunk-B2JE3HD6.js → chunk-Y4GRL533.js} +3 -3
- package/dist/cli/{chunk-ZDTPSVGF.js → chunk-ZZD245Z2.js} +10 -10
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-JGJNDRSA.js → csv-QD7JJGSP.js} +13 -13
- package/dist/cli/{csv-VGXGV7YM.mjs → csv-UBW4ID5D.mjs} +4 -4
- package/dist/cli/{db-W52WJ6E5.js → db-AARR3WYD.js} +28 -28
- package/dist/cli/{db-OYG27ZBM.mjs → db-QFDXKIVD.mjs} +7 -7
- package/dist/cli/describe-OBVIAC2H.mjs +50 -0
- package/dist/cli/describe-RYJ6HDYD.js +50 -0
- package/dist/cli/describe-core.d.mts +5 -11
- package/dist/cli/describe-core.d.ts +5 -11
- package/dist/cli/describe-core.js +5 -5
- package/dist/cli/describe-core.mjs +4 -4
- package/dist/cli/{executions-EVE4KUGL.mjs → executions-IZYUDYTZ.mjs} +7 -7
- package/dist/cli/{executions-LAJHZGPY.js → executions-KXY7KMZY.js} +9 -9
- package/dist/cli/{feedback-ZABCN7RT.js → feedback-3334HBPD.js} +8 -8
- package/dist/cli/{feedback-75QB7KVG.mjs → feedback-IVCVBERN.mjs} +4 -4
- package/dist/cli/getting-started.d.mts +12 -10
- package/dist/cli/getting-started.d.ts +12 -10
- package/dist/cli/getting-started.js +4 -2
- package/dist/cli/getting-started.mjs +3 -1
- package/dist/cli/git-4VLYFHNU.js +25 -0
- package/dist/cli/{git-QIFEYQGY.mjs → git-JHNVET5A.mjs} +5 -5
- package/dist/cli/index.js +143 -143
- package/dist/cli/index.mjs +43 -43
- package/dist/cli/{legacy-noops-2TBIAMCM.js → legacy-noops-DBA32JCV.js} +8 -8
- package/dist/cli/{legacy-noops-PNTWBBGY.mjs → legacy-noops-WGVBUOCC.mjs} +5 -5
- package/dist/cli/{monitors-UKBOEGBS.js → monitors-GHWZ5AZS.js} +169 -129
- package/dist/cli/{monitors-LOHUYJEI.mjs → monitors-ZGANC7JY.mjs} +49 -9
- package/dist/cli/{org-JRUKUOUF.mjs → org-CUS42N2T.mjs} +7 -7
- package/dist/cli/{org-E7A6QLBW.js → org-S7JWP264.js} +73 -73
- package/dist/cli/{pages-K76HA473.mjs → pages-IH56T6L6.mjs} +7 -7
- package/dist/cli/{pages-EUDFFLLD.js → pages-QXRZDEJW.js} +18 -18
- package/dist/cli/{play-UWHNUJRA.js → play-4C5PYS62.js} +661 -566
- package/dist/cli/{play-DG2N66SV.mjs → play-Z65ZFOQH.mjs} +147 -52
- package/dist/cli/{providers-RUTTPUZD.mjs → providers-FSZSJX4Z.mjs} +7 -7
- package/dist/cli/{providers-DZX6TTC6.js → providers-XYQGYF3O.js} +10 -10
- package/dist/cli/{quickstart-RGZZN2YE.mjs → quickstart-DHWVE32I.mjs} +5 -5
- package/dist/cli/{quickstart-U4NMD7KX.js → quickstart-ZA25RJT3.js} +13 -13
- package/dist/cli/{run-5UNF4FHG.js → run-5MP6LEHM.js} +45 -44
- package/dist/cli/{run-MOJWQYFQ.mjs → run-WRPPEPLG.mjs} +30 -29
- package/dist/cli/search-4SQFVNTB.js +32 -0
- package/dist/cli/{search-5B3ZDU7H.mjs → search-A6NVJPKX.mjs} +8 -8
- package/dist/cli/{search-output-QS4IWWHA.mjs → search-output-PAOUMVXY.mjs} +7 -4
- package/dist/cli/{search-output-VQWJS3FN.js → search-output-YA6TXWGO.js} +9 -6
- package/dist/cli/{secrets-S3PJMEAC.js → secrets-AZYOGH3I.js} +16 -16
- package/dist/cli/{secrets-V5XVDBIS.mjs → secrets-ZGF7JOBI.mjs} +7 -7
- package/dist/cli/{sessions-Y5QMEZ3D.js → sessions-GCIN5VXT.js} +6 -6
- package/dist/cli/{sessions-5V3X24XI.mjs → sessions-RNEAXZPV.mjs} +5 -5
- package/dist/cli/{settings-3U6RRO5F.js → settings-LMEZNLBB.js} +80 -80
- package/dist/cli/{settings-LHZYY5PT.mjs → settings-NO5KXQJF.mjs} +13 -13
- package/dist/cli/{setup-AJLWXYAN.mjs → setup-GCYB4IFS.mjs} +13 -13
- package/dist/cli/{setup-MLLIGO2S.js → setup-XKTZPYYH.js} +57 -57
- package/dist/cli/{skills-5O2MUWKK.mjs → skills-TY4HHIKH.mjs} +10 -10
- package/dist/cli/skills-V4APQA2I.js +36 -0
- package/dist/cli/tools-HKQLQ7HT.js +57 -0
- package/dist/cli/{tools-PWNMI5CD.mjs → tools-RDTHHYJ3.mjs} +21 -21
- package/dist/cli/{update-SXT4QW7S.mjs → update-BRLLTTCS.mjs} +10 -10
- package/dist/cli/update-Z4MUAHWM.js +34 -0
- package/dist/cli/{workflow-KPRM6ARO.mjs → workflow-F72EVZWM.mjs} +8 -8
- package/dist/cli/{workflow-3WTF5IYT.js → workflow-YHA4WE3K.js} +18 -18
- package/dist/{client-Cb1ej1Vr.d.ts → client-97yTcdLl.d.ts} +1 -1
- package/dist/{client-vWpbLNCB.d.mts → client-CFo9qalW.d.mts} +1 -1
- package/dist/{client-core-BmVs6SP0.d.ts → client-core-BRZrY13B.d.ts} +15 -8
- package/dist/{client-core-CoBTvsXG.d.mts → client-core-Dl6xgfLq.d.mts} +15 -8
- package/dist/{compiler-manifest-BFTwq1HI.d.mts → compiler-manifest-CPEF48NM.d.mts} +91 -0
- package/dist/{compiler-manifest-BFTwq1HI.d.ts → compiler-manifest-CPEF48NM.d.ts} +91 -0
- package/dist/{errors-c3pMsylw.d.ts → errors-B-PJXveg.d.ts} +1 -1
- package/dist/{errors-w31ybrQM.d.mts → errors-BWbPzqwo.d.mts} +1 -1
- package/dist/{index-DvNtxucX.d.mts → index-BJ8AA1F9.d.mts} +1 -1
- package/dist/{index-CQ-15-QL.d.ts → index-CvVxPpE8.d.ts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +27 -19
- package/dist/index.mjs +16 -8
- package/dist/install-integrity.json +123 -122
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/play-description.d.mts +2 -2
- package/dist/plays/play-description.d.ts +2 -2
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +2 -2
- package/dist/plays/run-request.js +2 -2
- package/dist/plays/run-request.mjs +1 -1
- package/dist/release.d.mts +2 -2
- package/dist/release.d.ts +2 -2
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +6 -6
- package/dist/server.mjs +4 -4
- package/package.json +1 -1
- package/dist/cli/auth-7BCLZU6K.js +0 -43
- package/dist/cli/describe-FIXCRO5N.mjs +0 -50
- package/dist/cli/describe-G3O6OUBG.js +0 -50
- package/dist/cli/git-QBAR46NW.js +0 -25
- package/dist/cli/search-3DAEJL6S.js +0 -32
- package/dist/cli/skills-BBLIML5M.js +0 -36
- package/dist/cli/tools-X5SQXUMM.js +0 -57
- package/dist/cli/update-AEJ2ZSZQ.js +0 -34
|
@@ -170,9 +170,9 @@ Auth in non-interactive shells:
|
|
|
170
170
|
until it happens, so an unattended agent must not call it.
|
|
171
171
|
|
|
172
172
|
Skills:
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
173
|
+
skills install reinstalls the Deepline skill files on disk. To see which
|
|
174
|
+
skills are installed without changing anything, run skills install
|
|
175
|
+
--dry-run and read the plan.
|
|
176
176
|
]]
|
|
177
177
|
`
|
|
178
178
|
},
|
|
@@ -388,6 +388,7 @@ Examples:
|
|
|
388
388
|
deepline search "50 company domains -> each one's lead investors"
|
|
389
389
|
deepline search "company domain -> contacts in sales leadership" --type plays
|
|
390
390
|
deepline search "upload a contact list as a Meta ads audience"
|
|
391
|
+
deepline search "how do webhooks trigger a play" --type docs
|
|
391
392
|
]]
|
|
392
393
|
[[mcp:
|
|
393
394
|
query "first name, last name and company domain -> verified work email"
|
|
@@ -1089,7 +1090,8 @@ Input:
|
|
|
1089
1090
|
[[cli:
|
|
1090
1091
|
Output (JSON, printed when the run ends):
|
|
1091
1092
|
run {id, playName, status ("completed", "failed", "stopped")},
|
|
1092
|
-
|
|
1093
|
+
runUrl (the Play page with this run selected; link it when you report the
|
|
1094
|
+
run), dashboardUrl, steps[] with per-step progress, rowOutcomes, warnings,
|
|
1093
1095
|
datasets[] {datasetId, name, storage {schema, table}}, and actions holding
|
|
1094
1096
|
exact follow-up commands: getRunCmd, getFullRunCmd, getBillingCmd,
|
|
1095
1097
|
getLogsCmd, exportDatasetCmds[], queryTableSqlCmds[]. Rows are not in this
|
|
@@ -1102,7 +1104,7 @@ Output (JSON, printed when the run ends):
|
|
|
1102
1104
|
[[mcp:
|
|
1103
1105
|
Output:
|
|
1104
1106
|
The run package deepline_get_run returns, once the run ends: run {id,
|
|
1105
|
-
playName, status, dashboardUrl}, steps[] with per-step progress,
|
|
1107
|
+
playName, status, runUrl, dashboardUrl}, steps[] with per-step progress,
|
|
1106
1108
|
rowOutcomes, warnings, datasets[] {tableNamespace, sqlQualifiedTableName,
|
|
1107
1109
|
actions}, and next {inspect, full, billing, logs}, each naming the MCP call
|
|
1108
1110
|
for that follow-up. Pass a dataset's tableNamespace as table_namespace to
|
|
@@ -1322,14 +1324,15 @@ When:
|
|
|
1322
1324
|
Input:
|
|
1323
1325
|
The run id. --full resolves a full-only result and adds diagnostics with
|
|
1324
1326
|
billing and timeline (large). --log-failed attaches the failure log window.
|
|
1327
|
+
--web opens the run page in a browser; --web-url prints only its URL.
|
|
1325
1328
|
--input prints the original input (may contain customer data). --json
|
|
1326
1329
|
prints JSON; --json run.status,datasets.name selects fields.
|
|
1327
1330
|
To parse the output (also with --full), add --json; stdout is then one JSON document.
|
|
1328
1331
|
]]
|
|
1329
1332
|
[[cli:
|
|
1330
1333
|
Output (JSON):
|
|
1331
|
-
kind "run_overview",
|
|
1332
|
-
durationMs}, steps[] {id, kind, status, label, progress {total, executed,
|
|
1334
|
+
kind "run_overview", runUrl (the Play page with this run selected),
|
|
1335
|
+
run {id, playName, status, startedAt, finishedAt, durationMs}, steps[] {id, kind, status, label, progress {total, executed,
|
|
1333
1336
|
reused, failed, completedRows}}, failures.steps[], errorDetails,
|
|
1334
1337
|
rowOutcomes, warnings[], datasets[] {datasetId, name, rowCount, summary,
|
|
1335
1338
|
storage {schema, table}, preview {returnedRows, totalRows, partial, rows}},
|
|
@@ -1341,9 +1344,9 @@ Output (JSON):
|
|
|
1341
1344
|
]]
|
|
1342
1345
|
[[mcp:
|
|
1343
1346
|
Output:
|
|
1344
|
-
The run package (kind "play_run"): run {id, playName, status
|
|
1345
|
-
rowOutcomes, warnings, datasets[] {tableNamespace,
|
|
1346
|
-
actions}, and next.*.command, each naming the MCP call for a follow-up.
|
|
1347
|
+
The run package (kind "play_run"): run {id, playName, status, runUrl},
|
|
1348
|
+
steps[], rowOutcomes, warnings, datasets[] {tableNamespace,
|
|
1349
|
+
sqlQualifiedTableName, actions}, and next.*.command, each naming the MCP call for a follow-up.
|
|
1347
1350
|
With full: true the package is under package, beside the diagnostics.
|
|
1348
1351
|
]]
|
|
1349
1352
|
Cost:
|
|
@@ -1875,6 +1878,27 @@ Cost:
|
|
|
1875
1878
|
},
|
|
1876
1879
|
skills: {
|
|
1877
1880
|
core: `
|
|
1881
|
+
Purpose:
|
|
1882
|
+
Read the Deepline agent skills (deepline-gtm and its siblings) without
|
|
1883
|
+
installing anything.
|
|
1884
|
+
When:
|
|
1885
|
+
Before starting GTM work, read the skill: skills show prints
|
|
1886
|
+
deepline-gtm, skills list names every skill, skills show <name> prints one.
|
|
1887
|
+
[[cli:
|
|
1888
|
+
Input:
|
|
1889
|
+
list | show [name] | install; --json. With no verb, prints this help.
|
|
1890
|
+
]]
|
|
1891
|
+
Output:
|
|
1892
|
+
list prints one name and description per line; show prints the skill's
|
|
1893
|
+
SKILL.md as markdown. Neither writes anything.
|
|
1894
|
+
Cost:
|
|
1895
|
+
Free.
|
|
1896
|
+
Avoid:
|
|
1897
|
+
To install or refresh skill files use [[skills install]].
|
|
1898
|
+
`
|
|
1899
|
+
},
|
|
1900
|
+
"skills install": {
|
|
1901
|
+
core: `
|
|
1878
1902
|
Purpose:
|
|
1879
1903
|
Reinstall the Deepline agent skill files (deepline-gtm and its siblings)
|
|
1880
1904
|
from the current release. It writes to disk.
|
|
@@ -1891,7 +1915,7 @@ Output (JSON):
|
|
|
1891
1915
|
Cost:
|
|
1892
1916
|
Free.
|
|
1893
1917
|
Avoid:
|
|
1894
|
-
|
|
1918
|
+
Without --dry-run it replaces skill files; in a sandbox or a task that said
|
|
1895
1919
|
not to change skills, use [[--dry-run]].
|
|
1896
1920
|
`
|
|
1897
1921
|
},
|
|
@@ -16,12 +16,12 @@ var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
|
|
|
16
16
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkS3XQH7DWjs = require('./chunk-S3XQH7DW.js');
|
|
20
20
|
|
|
21
21
|
// src/version.ts
|
|
22
|
-
var SDK_VERSION =
|
|
23
|
-
var SDK_API_MAJOR =
|
|
24
|
-
var SDK_API_CONTRACT = _nullishCoalesce(
|
|
22
|
+
var SDK_VERSION = _chunkS3XQH7DWjs.SDK_RELEASE.version;
|
|
23
|
+
var SDK_API_MAJOR = _chunkS3XQH7DWjs.SDK_RELEASE.contracts.api.currentMajor;
|
|
24
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunkS3XQH7DWjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
|
|
25
25
|
|
|
26
26
|
// src/agent-runtime.ts
|
|
27
27
|
var _os = require('os');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkGBICEYUAjs = require('./chunk-GBICEYUA.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -13,7 +13,7 @@ var _chunkYNWET57Zjs = require('./chunk-YNWET57Z.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkJO5FFSR7js = require('./chunk-JO5FFSR7.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
@@ -31,13 +31,13 @@ var VIEWS = {
|
|
|
31
31
|
details: model,
|
|
32
32
|
lines: [
|
|
33
33
|
...unlisted,
|
|
34
|
-
...
|
|
34
|
+
..._chunkGBICEYUAjs.formatModelDescription.call(void 0, model).trimEnd().split("\n")
|
|
35
35
|
]
|
|
36
36
|
};
|
|
37
37
|
},
|
|
38
38
|
byok: async (_value, tool) => ({
|
|
39
39
|
details: _nullishCoalesce(tool.byok, () => ( {})),
|
|
40
|
-
lines:
|
|
40
|
+
lines: _chunkJO5FFSR7js.byokLines.call(void 0, _nullishCoalesce(tool.byok, () => ( {})))
|
|
41
41
|
})
|
|
42
42
|
};
|
|
43
43
|
var isFeatureView = (value) => typeof value === "string" && Object.hasOwn(VIEWS, value);
|
|
@@ -82,6 +82,13 @@ async function describeFeature(tool, feature, value, dependencies) {
|
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
// src/cli/describe-core.ts
|
|
85
|
+
var DOCS_URL = "https://deepline.com/docs";
|
|
86
|
+
var SKILLS_URL = "https://code.deepline.com/.well-known/skills";
|
|
87
|
+
function docUrl(path) {
|
|
88
|
+
if (!path.startsWith("skills/")) return `${DOCS_URL}/${path}`;
|
|
89
|
+
const skillPath = path.slice("skills/".length);
|
|
90
|
+
return skillPath.includes("/") ? `${SKILLS_URL}/${skillPath}.md` : `${SKILLS_URL}/${skillPath}/SKILL.md`;
|
|
91
|
+
}
|
|
85
92
|
var FILTER_OF = {
|
|
86
93
|
tool: "tools",
|
|
87
94
|
monitor_type: "monitors",
|
|
@@ -102,6 +109,16 @@ async function found(lookup) {
|
|
|
102
109
|
function describeLookupsFor(client) {
|
|
103
110
|
return {
|
|
104
111
|
play: (reference) => found(client.describePlay(reference)),
|
|
112
|
+
doc: async (url) => {
|
|
113
|
+
const markdownUrl = url.endsWith(".md") ? url : `${url}.md`;
|
|
114
|
+
const response = await fetch(markdownUrl);
|
|
115
|
+
if (response.status === 404) return null;
|
|
116
|
+
if (!response.ok)
|
|
117
|
+
throw new Error(
|
|
118
|
+
`Could not read ${markdownUrl}: HTTP ${response.status}`
|
|
119
|
+
);
|
|
120
|
+
return response.text();
|
|
121
|
+
},
|
|
105
122
|
tool: (name) => found(client.getTool(name)),
|
|
106
123
|
describeModel: (model) => client.describeModel(model),
|
|
107
124
|
baseUrl: client.baseUrl
|
|
@@ -116,7 +133,7 @@ async function findNamed(reference, options, lookups) {
|
|
|
116
133
|
const record = await lookups.play(reference2);
|
|
117
134
|
if (!record) return null;
|
|
118
135
|
return {
|
|
119
|
-
described:
|
|
136
|
+
described: _chunkJO5FFSR7js.describedPlay.call(void 0, record),
|
|
120
137
|
record: { ...record },
|
|
121
138
|
schemas: {
|
|
122
139
|
inputSchema: _nullishCoalesce(record.inputSchema, () => ( null)),
|
|
@@ -131,18 +148,18 @@ async function findNamed(reference, options, lookups) {
|
|
|
131
148
|
const features = toolFeatures(record);
|
|
132
149
|
return {
|
|
133
150
|
described: {
|
|
134
|
-
...
|
|
151
|
+
..._chunkGBICEYUAjs.describedTool.call(void 0, record, name),
|
|
135
152
|
// Shown when the tool runs only on your own credentials; otherwise
|
|
136
153
|
// it is a feature, described with --feature byok.
|
|
137
154
|
..._optionalChain([byok, 'optionalAccess', _3 => _3.required]) === true ? { byok } : {},
|
|
138
155
|
...features.length ? { features: features.map(({ view: _view, ...feature }) => feature) } : {}
|
|
139
156
|
},
|
|
140
|
-
record:
|
|
157
|
+
record: _chunkGBICEYUAjs.toolMetadataJsonForDescribe.call(void 0,
|
|
141
158
|
record,
|
|
142
159
|
name,
|
|
143
160
|
lookups.seedStarterScript
|
|
144
161
|
),
|
|
145
|
-
schemas:
|
|
162
|
+
schemas: _chunkGBICEYUAjs.publicToolSchemas.call(void 0, record),
|
|
146
163
|
feature: (featureName, value) => {
|
|
147
164
|
const feature = features.find(({ name: name2 }) => name2 === featureName);
|
|
148
165
|
return feature ? describeFeature(record, feature, value, {
|
|
@@ -168,6 +185,16 @@ async function findNamed(reference, options, lookups) {
|
|
|
168
185
|
return { chosen, shadowed };
|
|
169
186
|
}
|
|
170
187
|
async function describeName(name, options, lookups) {
|
|
188
|
+
if (name.startsWith("docs/") && !options.kinds) {
|
|
189
|
+
const url = docUrl(name.slice("docs/".length));
|
|
190
|
+
const markdown = await lookups.doc(url);
|
|
191
|
+
if (markdown === null) return { status: "missing" };
|
|
192
|
+
return {
|
|
193
|
+
status: "described",
|
|
194
|
+
envelope: { kind: "doc", id: name, url, markdown },
|
|
195
|
+
lines: [`${name} [doc]`, url, "", markdown]
|
|
196
|
+
};
|
|
197
|
+
}
|
|
171
198
|
const { chosen, shadowed } = await findNamed(name, options, lookups);
|
|
172
199
|
if (!chosen) return { status: "missing" };
|
|
173
200
|
const { described, record } = chosen;
|
|
@@ -178,7 +205,7 @@ async function describeName(name, options, lookups) {
|
|
|
178
205
|
const note = shadows ? `Showing your workspace play "${name}". It has the same name as a Deepline ${shadows.kind.replace("_", " ")}; see that one with: ${shadows.describeCommand}` : null;
|
|
179
206
|
const verbose = options.verbose === true;
|
|
180
207
|
const isPlay = described.kind === "prebuilt_play" || described.kind === "custom_play";
|
|
181
|
-
const dashboardUrl = isPlay ?
|
|
208
|
+
const dashboardUrl = isPlay ? _chunkJO5FFSR7js.buildPlayDashboardUrl.call(void 0, lookups.baseUrl, described.id) : null;
|
|
182
209
|
if (options.webUrl) {
|
|
183
210
|
if (!dashboardUrl) {
|
|
184
211
|
return {
|
|
@@ -242,7 +269,7 @@ async function describeName(name, options, lookups) {
|
|
|
242
269
|
},
|
|
243
270
|
lines: [
|
|
244
271
|
`${described.id} [${described.kind.replace("_", " ")}]`,
|
|
245
|
-
...
|
|
272
|
+
..._chunkJO5FFSR7js.schemaLines.call(void 0, described, {
|
|
246
273
|
full: true,
|
|
247
274
|
secondary: true,
|
|
248
275
|
...fields.length ? { fields } : {}
|
|
@@ -251,17 +278,17 @@ async function describeName(name, options, lookups) {
|
|
|
251
278
|
} : {
|
|
252
279
|
envelope: {
|
|
253
280
|
...summary,
|
|
254
|
-
inputs: inputs.map(
|
|
255
|
-
outputs: outputs.map(
|
|
256
|
-
...described.rowInputs ? { rowInputs: described.rowInputs.map(
|
|
257
|
-
...described.rowOutputs ? { rowOutputs: described.rowOutputs.map(
|
|
258
|
-
runExamples:
|
|
281
|
+
inputs: inputs.map(_chunkJO5FFSR7js.topLevelField),
|
|
282
|
+
outputs: outputs.map(_chunkJO5FFSR7js.topLevelField),
|
|
283
|
+
...described.rowInputs ? { rowInputs: described.rowInputs.map(_chunkJO5FFSR7js.topLevelField) } : {},
|
|
284
|
+
...described.rowOutputs ? { rowOutputs: described.rowOutputs.map(_chunkJO5FFSR7js.topLevelField) } : {},
|
|
285
|
+
runExamples: _chunkJO5FFSR7js.examples.call(void 0, described, { verbose }),
|
|
259
286
|
...dashboardUrl ? { dashboardUrl } : {},
|
|
260
287
|
...shadows ? { shadows, note } : {}
|
|
261
288
|
},
|
|
262
289
|
lines: [
|
|
263
290
|
...note ? [`Note: ${note}`, ""] : [],
|
|
264
|
-
...
|
|
291
|
+
..._chunkJO5FFSR7js.describedLines.call(void 0, described, {
|
|
265
292
|
cli: shown && (!named || options.cliExample === true),
|
|
266
293
|
play: shown && (!named || options.playExample === true),
|
|
267
294
|
explain: named,
|
|
@@ -278,7 +305,7 @@ async function describeName(name, options, lookups) {
|
|
|
278
305
|
// its value stands, so callers of the older commands read what they did.
|
|
279
306
|
{ ...view.envelope, ...record }
|
|
280
307
|
) : {
|
|
281
|
-
...
|
|
308
|
+
..._chunkJO5FFSR7js.describedJson.call(void 0, described, {
|
|
282
309
|
secondary: verbose || fields.length > 0,
|
|
283
310
|
verbose
|
|
284
311
|
}),
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
SCHEMA_LINE_LIMIT,
|
|
3
3
|
fieldBlockLines,
|
|
4
4
|
schemaFields
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-SAW3FBCA.mjs";
|
|
6
6
|
import {
|
|
7
7
|
csvSafeJsonString,
|
|
8
8
|
csvStringFromRows
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-6DMLWM7L.mjs";
|
|
10
10
|
|
|
11
11
|
// src/cli/describe-options.ts
|
|
12
12
|
function addDescribeOptions(command, options = {}) {
|
|
@@ -892,7 +892,10 @@ function receiptText(receipt, options, extra) {
|
|
|
892
892
|
const sections = [
|
|
893
893
|
[
|
|
894
894
|
options.label ? `${headline}: ${options.label}` : headline,
|
|
895
|
-
|
|
895
|
+
// A tool call's id is its retry key; a play's is the run to look up.
|
|
896
|
+
...receipt.id ? [
|
|
897
|
+
`${options.label?.endsWith("(tool)") ? "Call Id" : "Run Id"}: ${receipt.id}`
|
|
898
|
+
] : [],
|
|
896
899
|
...receipt.credits !== null ? [
|
|
897
900
|
`Cost: ${receipt.credits} ${receipt.credits === 1 ? "credit" : "credits"}`
|
|
898
901
|
] : [],
|
|
@@ -901,14 +904,16 @@ function receiptText(receipt, options, extra) {
|
|
|
901
904
|
];
|
|
902
905
|
const { csv, json } = receipt.outputs;
|
|
903
906
|
const data = [];
|
|
907
|
+
let resultSection;
|
|
904
908
|
for (const artifact of csv) {
|
|
905
909
|
data.push(
|
|
906
910
|
`Rows: ${artifact.path ?? "stdout"} (${artifact.rowCount} rows from ${listPath(artifact.source ?? "") || "the result"})`
|
|
907
911
|
);
|
|
908
912
|
}
|
|
909
913
|
if (extra.data !== void 0) {
|
|
910
|
-
const title = json ?
|
|
911
|
-
|
|
914
|
+
const title = json ? "Result:" : "Result (not saved; --json-out saves all of it):";
|
|
915
|
+
resultSection = resultLines(title, extra.data, extra.declared, options);
|
|
916
|
+
if (json?.path) data.push(`Saved: ${json.path}`);
|
|
912
917
|
if (receipt.schemaFile) {
|
|
913
918
|
data.push(`Full JSON Schema: ${receipt.schemaFile}`);
|
|
914
919
|
}
|
|
@@ -949,6 +954,7 @@ function receiptText(receipt, options, extra) {
|
|
|
949
954
|
if (extra.receiptFile) {
|
|
950
955
|
sections.push([`JSON receipt: ${extra.receiptFile}`]);
|
|
951
956
|
}
|
|
957
|
+
if (resultSection) sections.push(resultSection);
|
|
952
958
|
return `${sections.map((lines) => lines.join("\n")).join("\n\n")}
|
|
953
959
|
`;
|
|
954
960
|
}
|
|
@@ -1008,6 +1014,8 @@ function resultLines(title, data, declared, options) {
|
|
|
1008
1014
|
outline2.cut ? more : "--full shows every field of the result; --fields <paths> picks fields."
|
|
1009
1015
|
];
|
|
1010
1016
|
}
|
|
1017
|
+
const json = JSON.stringify(data, null, 2)?.split("\n");
|
|
1018
|
+
if (json && json.length <= budget) return [title, ...json];
|
|
1011
1019
|
const outline = outlineLines(data, budget);
|
|
1012
1020
|
return [
|
|
1013
1021
|
`${title}${outline.note ? ` ${outline.note}` : ""}`,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PlayClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-J2HOVZOE.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KR2XEI5T.mjs";
|
|
8
8
|
|
|
9
9
|
// src/plays/local-play-execution.ts
|
|
10
10
|
function importedNodes(graph) {
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
stagePlayFiles,
|
|
21
21
|
startPlayRun,
|
|
22
22
|
submitPreparedPlayRunAdmission
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-DVQHG6AM.mjs";
|
|
24
24
|
import {
|
|
25
25
|
describePlayDetail,
|
|
26
26
|
describePlayListItem
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
RETAINED_PIPELINE_RECEIVERS_HEADER,
|
|
32
32
|
RUNTIME_ENVIRONMENT_TOKEN_HEADER,
|
|
33
33
|
SDK_API_MAJOR
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-FAT6CUZK.mjs";
|
|
35
35
|
import {
|
|
36
36
|
CustomerDbQueryOutcomeUnknownError
|
|
37
37
|
} from "./chunk-4QF2K7TM.mjs";
|
|
@@ -6966,7 +6966,7 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
6966
6966
|
async waitForMonitorFleetConvergence(fleetId, options) {
|
|
6967
6967
|
const timeoutMs = Math.max(1, options?.timeoutMs ?? 10 * 6e4);
|
|
6968
6968
|
const pollIntervalMs = Math.max(1, options?.pollIntervalMs ?? 2e3);
|
|
6969
|
-
const terminal = options?.until === "deactivated" ? /* @__PURE__ */ new Set(["deactivated", "degraded"]) : /* @__PURE__ */ new Set(["converged", "degraded", "deactivated"]);
|
|
6969
|
+
const terminal = options?.until === "deactivated" ? /* @__PURE__ */ new Set(["deactivated", "degraded", "billing_suspended"]) : /* @__PURE__ */ new Set(["converged", "degraded", "deactivated", "billing_suspended"]);
|
|
6970
6970
|
const startedAt = Date.now();
|
|
6971
6971
|
let latest = await this.getMonitorFleet(fleetId);
|
|
6972
6972
|
while (true) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkZZD245Z2js = require('./chunk-ZZD245Z2.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/maintenance-policy.ts
|
|
6
6
|
var _commander = require('commander');
|
|
@@ -33,7 +33,7 @@ function recordCliTrace(event) {
|
|
|
33
33
|
sinceStartMs: now - cliTraceStartedAt,
|
|
34
34
|
...event
|
|
35
35
|
};
|
|
36
|
-
|
|
36
|
+
_chunkZZD245Z2js.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
|
|
37
37
|
`);
|
|
38
38
|
}
|
|
39
39
|
async function traceCliSpan(phase, fields, run) {
|
|
@@ -795,6 +795,10 @@ function buildPlayDashboardUrl(baseUrl, playName) {
|
|
|
795
795
|
const encodedPlayName = encodeURIComponent(playName);
|
|
796
796
|
return `${trimmedBase}/dashboard/plays/${encodedPlayName}`;
|
|
797
797
|
}
|
|
798
|
+
function buildPlayRunUrl(baseUrl, playName, runId) {
|
|
799
|
+
const params = new URLSearchParams({ runId });
|
|
800
|
+
return `${buildPlayDashboardUrl(baseUrl, playName)}?${params.toString()}`;
|
|
801
|
+
}
|
|
798
802
|
function describedPlay(play) {
|
|
799
803
|
const reference = play.reference || play.name;
|
|
800
804
|
const starter = _nullishCoalesce(play.cloneEditStarter, () => ( _chunkNMU3VR5Ujs.cloneEditStarter.call(void 0, play)));
|
|
@@ -862,4 +866,5 @@ function describedPlay(play) {
|
|
|
862
866
|
|
|
863
867
|
|
|
864
868
|
|
|
865
|
-
|
|
869
|
+
|
|
870
|
+
exports.byokLines = byokLines; exports.SCHEMA_LINE_LIMIT = SCHEMA_LINE_LIMIT; exports.schemaField = schemaField; exports.schemaFields = schemaFields; exports.rateLimitSummary = rateLimitSummary; exports.rateLimitQualifier = rateLimitQualifier; exports.schemaLines = schemaLines; exports.fieldBlockLines = fieldBlockLines; exports.examples = examples; exports.describedLines = describedLines; exports.topLevelField = topLevelField; exports.describedJson = describedJson; exports.buildPlayDashboardUrl = buildPlayDashboardUrl; exports.buildPlayRunUrl = buildPlayRunUrl; exports.describedPlay = describedPlay;
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
rateLimitSummary,
|
|
3
3
|
schemaField,
|
|
4
4
|
schemaFields
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-SAW3FBCA.mjs";
|
|
6
6
|
import {
|
|
7
7
|
Capability,
|
|
8
8
|
observedMaxText
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
JOB_CHANGE_JSON_SCHEMA,
|
|
17
17
|
fieldOfName,
|
|
18
18
|
isDeeplineExtractorTarget
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-2GEYN3H4.mjs";
|
|
20
20
|
|
|
21
21
|
// src/cli/described-tool.ts
|
|
22
22
|
function isPlayLikeTool(tool) {
|
|
@@ -11,23 +11,23 @@ import {
|
|
|
11
11
|
skillsInstallLeasePath,
|
|
12
12
|
skillsSourceUrl,
|
|
13
13
|
syncSdkSkillsIfNeeded
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-BLHQRETG.mjs";
|
|
15
15
|
import {
|
|
16
16
|
printCommandEnvelope
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-6DMLWM7L.mjs";
|
|
18
18
|
import {
|
|
19
19
|
autoDetectBaseUrl,
|
|
20
20
|
ensureProjectPrivatePathsIgnored,
|
|
21
21
|
resolveProjectPinTarget,
|
|
22
22
|
sdkCliStateDirPath
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-KR2XEI5T.mjs";
|
|
24
24
|
import {
|
|
25
25
|
SDK_VERSION,
|
|
26
26
|
detectAgentRuntime
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-FAT6CUZK.mjs";
|
|
28
28
|
import {
|
|
29
|
-
|
|
30
|
-
} from "./chunk-
|
|
29
|
+
DEEPLINE_GTM_GLOBAL_SKILL_ROOTS
|
|
30
|
+
} from "./chunk-5JPKRDFC.mjs";
|
|
31
31
|
|
|
32
32
|
// src/cli/commands/skills.ts
|
|
33
33
|
import { spawn } from "child_process";
|
|
@@ -76,15 +76,15 @@ function workspaceSkillRootsForAgents(agents) {
|
|
|
76
76
|
)
|
|
77
77
|
].sort((a, b) => a.localeCompare(b));
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
if (root === null)
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
"
|
|
86
|
-
"SKILL.md"
|
|
79
|
+
function deeplineGtmSkillRoots(root) {
|
|
80
|
+
if (root === null) {
|
|
81
|
+
const claudeConfig = process.env.CLAUDE_CONFIG_DIR?.trim();
|
|
82
|
+
return claudeConfig ? `${join(claudeConfig, "skills")} or ~/.agents/skills` : DEEPLINE_GTM_GLOBAL_SKILL_ROOTS;
|
|
83
|
+
}
|
|
84
|
+
const [claude, codex] = ["claude-code", "codex"].map(
|
|
85
|
+
(agent) => join(root, WORKSPACE_SKILL_ROOTS_BY_AGENT[agent][0], "skills")
|
|
87
86
|
);
|
|
87
|
+
return `${claude} or ${codex}`;
|
|
88
88
|
}
|
|
89
89
|
function installedSkillRoots(agent, scope, root) {
|
|
90
90
|
if (scope === "local") {
|
|
@@ -286,7 +286,64 @@ function runProcess(command, args, cwd) {
|
|
|
286
286
|
});
|
|
287
287
|
});
|
|
288
288
|
}
|
|
289
|
+
async function showSkills(options, name) {
|
|
290
|
+
const baseUrl = autoDetectBaseUrl().replace(/\/$/, "");
|
|
291
|
+
const url = name ? `${baseUrl}/.well-known/skills/${encodeURIComponent(name)}/SKILL.md` : `${baseUrl}/.well-known/skills/index.json`;
|
|
292
|
+
try {
|
|
293
|
+
const response = await fetch(url, {
|
|
294
|
+
signal: AbortSignal.timeout(SKILLS_PROCESS_TIMEOUT_MS)
|
|
295
|
+
});
|
|
296
|
+
if (!response.ok) {
|
|
297
|
+
throw new Error(
|
|
298
|
+
response.status === 404 && name ? `no skill named ${name}; run deepline skills list` : `HTTP ${response.status} from ${url}`
|
|
299
|
+
);
|
|
300
|
+
}
|
|
301
|
+
if (name) {
|
|
302
|
+
const markdown = await response.text();
|
|
303
|
+
printCommandEnvelope(
|
|
304
|
+
{ ok: true, status: "completed", skill: { name, markdown } },
|
|
305
|
+
{ json: options.json, text: markdown }
|
|
306
|
+
);
|
|
307
|
+
return 0;
|
|
308
|
+
}
|
|
309
|
+
const index = await response.json();
|
|
310
|
+
const skills = (index.skills ?? []).filter(
|
|
311
|
+
(skill) => skill.install_surface === "v1" && skill.name
|
|
312
|
+
);
|
|
313
|
+
printCommandEnvelope(
|
|
314
|
+
{
|
|
315
|
+
ok: true,
|
|
316
|
+
status: "completed",
|
|
317
|
+
skills: skills.map(({ name: name2, description }) => ({ name: name2, description })),
|
|
318
|
+
next: "deepline skills show <name>"
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
json: options.json,
|
|
322
|
+
text: `${skills.map((skill) => `${skill.name}: ${skill.description ?? ""}`).join("\n")}
|
|
323
|
+
|
|
324
|
+
Read one with: deepline skills show <name>
|
|
325
|
+
`
|
|
326
|
+
}
|
|
327
|
+
);
|
|
328
|
+
return 0;
|
|
329
|
+
} catch (error) {
|
|
330
|
+
printCommandEnvelope(
|
|
331
|
+
{
|
|
332
|
+
ok: false,
|
|
333
|
+
status: "failed",
|
|
334
|
+
code: "SKILL_UNAVAILABLE",
|
|
335
|
+
exitCode: 5,
|
|
336
|
+
message: `Could not fetch skills: ${error instanceof Error ? error.message : String(error)}`
|
|
337
|
+
},
|
|
338
|
+
{ json: options.json }
|
|
339
|
+
);
|
|
340
|
+
return 5;
|
|
341
|
+
}
|
|
342
|
+
}
|
|
289
343
|
async function runSkillsCommand(options, dependencies = {}) {
|
|
344
|
+
if (options.list || options.name) {
|
|
345
|
+
return showSkills(options, options.list ? null : options.name ?? null);
|
|
346
|
+
}
|
|
290
347
|
let scope;
|
|
291
348
|
let root;
|
|
292
349
|
try {
|
|
@@ -382,7 +439,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
382
439
|
scope,
|
|
383
440
|
agents,
|
|
384
441
|
message: error.message,
|
|
385
|
-
next: `Resolve this filesystem error, then run: deepline skills --scope ${scope}`
|
|
442
|
+
next: `Resolve this filesystem error, then run: deepline skills install --scope ${scope}`
|
|
386
443
|
},
|
|
387
444
|
{ json: options.json }
|
|
388
445
|
);
|
|
@@ -398,7 +455,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
398
455
|
scope,
|
|
399
456
|
agents,
|
|
400
457
|
message: "A background Deepline skills refresh is still running for these agents.",
|
|
401
|
-
next: `Retry in a moment: deepline skills --scope ${scope}. If no refresh is running, remove ${skillsInstallLeasePath(baseUrl, agents)}`
|
|
458
|
+
next: `Retry in a moment: deepline skills install --scope ${scope}. If no refresh is running, remove ${skillsInstallLeasePath(baseUrl, agents)}`
|
|
402
459
|
},
|
|
403
460
|
{ json: options.json }
|
|
404
461
|
);
|
|
@@ -456,7 +513,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
456
513
|
scope,
|
|
457
514
|
agents,
|
|
458
515
|
message: error instanceof Error ? error.message : String(error),
|
|
459
|
-
next: `deepline skills --scope ${scope}`
|
|
516
|
+
next: `deepline skills install --scope ${scope}`
|
|
460
517
|
},
|
|
461
518
|
{ json: options.json }
|
|
462
519
|
);
|
|
@@ -473,7 +530,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
473
530
|
agents,
|
|
474
531
|
missingSkills: missing,
|
|
475
532
|
message: `The skills installer exited successfully but did not install: ${missing.join(", ")}.`,
|
|
476
|
-
next: `deepline skills --scope ${scope}`
|
|
533
|
+
next: `deepline skills install --scope ${scope}`
|
|
477
534
|
},
|
|
478
535
|
{ json: options.json }
|
|
479
536
|
);
|
|
@@ -545,7 +602,25 @@ async function runSkillsInstallWithLease(input) {
|
|
|
545
602
|
return 0;
|
|
546
603
|
}
|
|
547
604
|
function registerSkillsCommand(program) {
|
|
548
|
-
program.command("skills").description("
|
|
605
|
+
const skills = program.command("skills").description("List, read, and install Deepline agent skills.").addHelpText(
|
|
606
|
+
"after",
|
|
607
|
+
`
|
|
608
|
+
Examples:
|
|
609
|
+
deepline skills show
|
|
610
|
+
deepline skills list
|
|
611
|
+
deepline skills show deepline-research
|
|
612
|
+
deepline skills install
|
|
613
|
+
`
|
|
614
|
+
).action(() => {
|
|
615
|
+
skills.outputHelp();
|
|
616
|
+
});
|
|
617
|
+
skills.command("list").description("List every Deepline agent skill; changes nothing.").option("--json", "Emit one JSON result envelope").action(async (options) => {
|
|
618
|
+
process.exitCode = await runSkillsCommand({ ...options, list: true });
|
|
619
|
+
});
|
|
620
|
+
skills.command("show").description("Print a skill (deepline-gtm by default); changes nothing.").argument("[name]", "A skill name", "deepline-gtm").option("--json", "Emit one JSON result envelope").action(async (name, options) => {
|
|
621
|
+
process.exitCode = await runSkillsCommand({ ...options, name });
|
|
622
|
+
});
|
|
623
|
+
skills.command("install").description("Replace Deepline agent skills with the current release.").option("--scope <scope>", "Install scope: global or local").option("--agent <agent>", "Override the detected agent target").option("--dry-run", "Print the install plan without changing files").option("--json", "Emit one JSON result envelope").addHelpText(
|
|
549
624
|
"after",
|
|
550
625
|
`
|
|
551
626
|
Notes:
|
|
@@ -554,9 +629,9 @@ Notes:
|
|
|
554
629
|
persistent project.
|
|
555
630
|
|
|
556
631
|
Examples:
|
|
557
|
-
deepline skills
|
|
558
|
-
deepline skills --scope local
|
|
559
|
-
deepline skills --agent codex --dry-run
|
|
632
|
+
deepline skills install
|
|
633
|
+
deepline skills install --scope local
|
|
634
|
+
deepline skills install --agent codex --dry-run
|
|
560
635
|
`
|
|
561
636
|
).action(async (options) => {
|
|
562
637
|
process.exitCode = await runSkillsCommand(options);
|
|
@@ -573,7 +648,7 @@ Examples:
|
|
|
573
648
|
status: "failed",
|
|
574
649
|
code: "SKILLS_AUTO_SYNC_CLAIM_REQUIRED",
|
|
575
650
|
exitCode: 2,
|
|
576
|
-
message: "skills-auto-sync is started by ordinary deepline commands and requires the lease token they pass; run `deepline skills` to install skills yourself."
|
|
651
|
+
message: "skills-auto-sync is started by ordinary deepline commands and requires the lease token they pass; run `deepline skills install` to install skills yourself."
|
|
577
652
|
},
|
|
578
653
|
{ json: true }
|
|
579
654
|
);
|
|
@@ -590,7 +665,7 @@ Examples:
|
|
|
590
665
|
|
|
591
666
|
export {
|
|
592
667
|
workspaceSkillRootsForAgents,
|
|
593
|
-
|
|
668
|
+
deeplineGtmSkillRoots,
|
|
594
669
|
missingInstalledSkills,
|
|
595
670
|
inferActiveSkillsScope,
|
|
596
671
|
detectSkillsAgents,
|