deepline 0.3.550 → 0.3.552
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 +23 -0
- package/dist/bundling-sources/sdk/src/http-core.ts +6 -2
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/runs/watch-polling.ts +58 -29
- package/dist/bundling-sources/sdk/src/types.ts +22 -0
- package/dist/bundling-sources/shared_libs/integration-contracts/tool-connection.ts +42 -0
- package/dist/bundling-sources/shared_libs/monitors/package.json +2 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-upstream-identity.ts +80 -13
- package/dist/bundling-sources/shared_libs/monitors/snitcher-ip2company.ts +31 -0
- package/dist/bundling-sources/shared_libs/monitors/tamradar-countries.ts +285 -0
- package/dist/bundling-sources/shared_libs/monitors/tracking-provider-guidance.ts +1 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +163 -0
- package/dist/bundling-sources/shared_libs/play-runtime/activity-observation.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +137 -0
- package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +12 -0
- package/dist/bundling-sources/shared_libs/play-runtime/experiment-switches.ts +20 -16
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +47 -14
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +48 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-constants.ts +9 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +187 -16
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-state.ts +102 -29
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +854 -3
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +15 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +6 -2
- package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +37 -7
- package/dist/bundling-sources/shared_libs/plays/share/static-pipeline-summary.ts +43 -0
- package/dist/bundling-sources/shared_libs/product-notifications/billing-sales.ts +1 -0
- package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +38 -5
- package/dist/bundling-sources/shared_libs/product-notifications/default-policy.ts +1 -1
- package/dist/bundling-sources/shared_libs/product-notifications/events.ts +16 -0
- package/dist/cli/{auth-UJCAHGZG.mjs → auth-KVSBJZOX.mjs} +5 -5
- package/dist/cli/auth-MMNVWATX.js +43 -0
- package/dist/cli/{billing-RYWMI7JJ.mjs → billing-54RHFEBI.mjs} +20 -13
- package/dist/cli/{billing-VO2O5O5O.js → billing-FQREA7UA.js} +109 -102
- package/dist/cli/chunk-2RIKOPIM.mjs +9 -0
- package/dist/cli/{chunk-XYIECA7M.js → chunk-2WFPHBR4.js} +30 -8
- package/dist/cli/{chunk-SBNNK73L.js → chunk-3FD5EQ62.js} +6 -6
- package/dist/cli/{chunk-JLFOQRWM.js → chunk-45PVGZST.js} +270 -270
- package/dist/cli/{chunk-YSYOQYZE.js → chunk-4MK42735.js} +48 -44
- package/dist/cli/{chunk-2IW5GKB4.js → chunk-4NQF6KJ3.js} +13 -13
- package/dist/cli/{chunk-72NXIFOT.mjs → chunk-4TALT2M3.mjs} +1 -1
- package/dist/cli/{chunk-ADWMIZCB.js → chunk-4UUR4TCH.js} +22 -13
- package/dist/cli/{chunk-EMPXPEIQ.mjs → chunk-57VZVF5D.mjs} +3 -3
- package/dist/cli/{chunk-5J3TRWTB.js → chunk-634ZDA3F.js} +1 -1
- package/dist/cli/{chunk-FMXLQHM2.mjs → chunk-6O5HOODW.mjs} +13 -13
- package/dist/cli/{chunk-HCFH2V27.mjs → chunk-6PRW5UBA.mjs} +3 -2
- package/dist/cli/{chunk-N2Y2IGNB.mjs → chunk-6RZOWL2V.mjs} +1 -1
- package/dist/cli/{chunk-JKLDCFY5.js → chunk-6YCA5NKJ.js} +11 -11
- package/dist/cli/{chunk-5LUF4LAR.mjs → chunk-6ZORHRKB.mjs} +1 -0
- package/dist/cli/{chunk-DGUTBLXF.js → chunk-77AAAGVB.js} +3 -2
- package/dist/cli/{chunk-OKNOQRQ3.js → chunk-7IKQKKNX.js} +3 -3
- package/dist/cli/{chunk-JYUIIDZO.js → chunk-ADRC5I3R.js} +23 -22
- package/dist/cli/{chunk-IZCPOX7X.mjs → chunk-AQWQ2BFX.mjs} +1 -1
- package/dist/cli/{chunk-7BWMCVYU.mjs → chunk-AWJPDPMA.mjs} +1 -1
- package/dist/cli/{chunk-S6XOKGBF.mjs → chunk-AZQ264ID.mjs} +1 -1
- package/dist/cli/{chunk-EU23QOJ6.js → chunk-BAIST2BR.js} +26 -26
- package/dist/cli/{chunk-6P7TGCHQ.mjs → chunk-BGBJV26E.mjs} +10 -3
- package/dist/cli/{chunk-COHCKZQK.mjs → chunk-DJ2JDK4O.mjs} +2 -1
- package/dist/cli/{chunk-E4S7OE7B.mjs → chunk-EOPEYCY7.mjs} +3 -3
- package/dist/cli/{chunk-LUULRAQB.mjs → chunk-EUPVF4SU.mjs} +10 -7
- package/dist/cli/{chunk-TB3WT76F.js → chunk-F2LH7TGF.js} +23 -20
- package/dist/cli/{chunk-UL7HWZO7.mjs → chunk-FTJLJCE5.mjs} +2 -2
- package/dist/cli/{chunk-3WG2GURT.js → chunk-G4O75EXF.js} +9 -9
- package/dist/cli/{chunk-7AOFSZJM.mjs → chunk-GGGAEVCX.mjs} +23 -1
- package/dist/cli/{chunk-R5CYKRA2.js → chunk-GKYAYLRI.js} +12 -12
- package/dist/cli/{chunk-UV4RU2TE.js → chunk-H4ALLC2X.js} +2 -0
- package/dist/cli/{chunk-LWHWMU4V.js → chunk-HO3XK3R7.js} +7 -7
- package/dist/cli/{chunk-E2QVWDDW.mjs → chunk-HYC4MKGK.mjs} +3 -3
- package/dist/cli/{chunk-KSUTNW3X.js → chunk-IDVVIXPJ.js} +42 -41
- package/dist/cli/{chunk-BJO7ZXAK.js → chunk-IHRKLXZN.js} +5 -5
- package/dist/cli/{chunk-ZQZOYGDC.mjs → chunk-IYSTRCLX.mjs} +5 -4
- package/dist/cli/{chunk-SMLWC7PM.js → chunk-JWUAX6OP.js} +10 -10
- package/dist/cli/{chunk-RKF263LR.js → chunk-KWSH5T7K.js} +25 -18
- package/dist/cli/{chunk-I62PCYU6.js → chunk-MF2GHZDO.js} +2 -2
- package/dist/cli/{chunk-XKE2PGZ2.js → chunk-PFO3ISXA.js} +26 -15
- package/dist/cli/{chunk-MXEYNRTZ.mjs → chunk-PTVD2GVQ.mjs} +6 -5
- package/dist/cli/{chunk-QD2KT7II.mjs → chunk-QAORXEY3.mjs} +2 -2
- package/dist/cli/{chunk-2AKS64KJ.mjs → chunk-QILKGXYF.mjs} +2 -2
- package/dist/cli/{chunk-DJWM5OOY.mjs → chunk-QPKH23EC.mjs} +4 -4
- package/dist/cli/{chunk-MAE3AKDR.mjs → chunk-QX7LFGJR.mjs} +18 -9
- package/dist/cli/{chunk-CIBQVA6V.mjs → chunk-QY3ZNU6Z.mjs} +2 -2
- package/dist/cli/{chunk-MJDQZYKO.js → chunk-RBEUVDZF.js} +10 -6
- package/dist/cli/{chunk-RS6ZSKX6.js → chunk-RQZQVFCJ.js} +2 -2
- package/dist/cli/{chunk-QNWNR6DG.js → chunk-S46HWQKO.js} +53 -53
- package/dist/cli/{chunk-4NQWUUOH.mjs → chunk-S5S355UY.mjs} +2 -2
- package/dist/cli/{chunk-NM3AYEDI.js → chunk-SHLFOPD6.js} +5 -5
- package/dist/cli/{chunk-K7JZV4QW.mjs → chunk-U7QRMBIY.mjs} +2 -2
- package/dist/cli/{chunk-ECWOIXAV.js → chunk-UPMRIVZB.js} +14 -12
- package/dist/cli/{chunk-R7J7CJPZ.js → chunk-V436Z54K.js} +1 -0
- package/dist/cli/{chunk-RINUMR6C.js → chunk-VQALXEXO.js} +20 -19
- package/dist/cli/{chunk-F2RXBNT5.mjs → chunk-WE5HES3H.mjs} +7 -5
- package/dist/cli/{chunk-GWNYLIF7.mjs → chunk-WEHCBH5R.mjs} +4 -2
- package/dist/cli/{chunk-SZNX3XU3.js → chunk-WLN3SUIA.js} +3 -3
- package/dist/cli/{chunk-3W44AJOE.js → chunk-XVB7V4N7.js} +18 -16
- package/dist/cli/{chunk-HEVUFICQ.mjs → chunk-YJHE3O5M.mjs} +9 -5
- package/dist/cli/{chunk-GVW5V562.mjs → chunk-YLTMXJFC.mjs} +7 -3
- package/dist/cli/{chunk-TL3WIXDH.mjs → chunk-Z5TSLLOW.mjs} +19 -8
- package/dist/cli/{chunk-KLQILE2I.mjs → chunk-ZIAXDBXX.mjs} +2 -2
- package/dist/cli/command-docs.js +4 -4
- package/dist/cli/command-docs.mjs +3 -3
- package/dist/cli/concurrent-runs-help-FQAIHKKC.js +21 -0
- package/dist/cli/{concurrent-runs-help-766HVJR3.mjs → concurrent-runs-help-Q4KPAUJX.mjs} +7 -7
- package/dist/cli/{csv-VU52KZOX.mjs → csv-2PTVDNO6.mjs} +10 -5
- package/dist/cli/{csv-4DZKGYCU.js → csv-F5VAGX4K.js} +19 -14
- package/dist/cli/{db-UBGW373S.mjs → db-IEDXAUF7.mjs} +6 -6
- package/dist/cli/{db-KPIH4HPW.js → db-Z3OIUFMM.js} +27 -27
- package/dist/cli/{describe-NGITP6RA.mjs → describe-QDANCTS3.mjs} +21 -21
- package/dist/cli/describe-VUTT5ZKU.js +50 -0
- package/dist/cli/describe-core.d.mts +4 -2
- package/dist/cli/describe-core.d.ts +4 -2
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-G3X25U3V.js → executions-H6H5655J.js} +8 -8
- package/dist/cli/{executions-CO5UF3CV.mjs → executions-R3LP74QN.mjs} +6 -6
- package/dist/cli/{feedback-ZYF65WPH.js → feedback-VFOUR66B.js} +14 -14
- package/dist/cli/{feedback-M2L5DVN2.mjs → feedback-WL3MRVT5.mjs} +6 -6
- package/dist/cli/git-ETB3GH3K.js +25 -0
- package/dist/cli/{git-AYJD5CLS.mjs → git-YX2J4GCI.mjs} +5 -5
- package/dist/cli/index.js +148 -148
- package/dist/cli/index.mjs +47 -47
- package/dist/cli/{integrations-LKEGGTZO.mjs → integrations-5ZK5KLVP.mjs} +7 -7
- package/dist/cli/{integrations-GSXXJ4CF.js → integrations-E2JZYKHS.js} +15 -15
- package/dist/cli/{legacy-noops-MZDLLEKN.js → legacy-noops-3VW4IJTH.js} +9 -9
- package/dist/cli/{legacy-noops-UF4GKMD4.mjs → legacy-noops-SMN3GSXY.mjs} +6 -6
- package/dist/cli/{mcp-RTNC6LP3.js → mcp-UQV2K4EW.js} +24 -24
- package/dist/cli/{mcp-NHQ6RMBP.mjs → mcp-V6MGCYAG.mjs} +4 -4
- package/dist/cli/{monitors-NC4ZR5DH.mjs → monitors-GGKS5W6M.mjs} +7 -7
- package/dist/cli/{monitors-WMWB6EKQ.js → monitors-R3BBDCRC.js} +100 -100
- package/dist/cli/{org-33Q7CXJB.js → org-GRYVMNSW.js} +88 -88
- package/dist/cli/{org-ZXUSYREQ.mjs → org-Z37NGJV4.mjs} +6 -6
- package/dist/cli/{play-N24XV6TI.js → play-2MVO27VO.js} +332 -332
- package/dist/cli/{play-IPWFGNRE.mjs → play-MDWPR4XG.mjs} +19 -19
- package/dist/cli/{providers-AUI7MMQS.js → providers-2AACRUZH.js} +9 -9
- package/dist/cli/{providers-MSVE7UZS.mjs → providers-AKDYFZJZ.mjs} +6 -6
- package/dist/cli/{quickstart-PSC6VTRI.js → quickstart-H6IV3PV3.js} +6 -6
- package/dist/cli/{quickstart-OME5XMW5.mjs → quickstart-QDGRJFZY.mjs} +4 -4
- package/dist/cli/{run-UTIX7CJY.js → run-2634REDK.js} +47 -47
- package/dist/cli/{run-EYTT2DHO.mjs → run-RTSQNGRD.mjs} +26 -26
- package/dist/cli/{search-FVE7PM72.mjs → search-6AOJ4XPP.mjs} +7 -7
- package/dist/cli/search-VTW2YNBS.js +32 -0
- package/dist/cli/{search-output-TQMY6BDG.mjs → search-output-6ADMTOU5.mjs} +40 -10
- package/dist/cli/{search-output-O463JNLR.js → search-output-S5ODBL5E.js} +43 -13
- package/dist/cli/{secrets-TWZ2GO73.js → secrets-LHCIIHMT.js} +15 -15
- package/dist/cli/{secrets-KCJJAHQB.mjs → secrets-TFIFBFB3.mjs} +6 -6
- package/dist/cli/sessions-CJ4FJ2WB.js +22 -0
- package/dist/cli/{sessions-ZCWAA7QL.mjs → sessions-WHBVUHVW.mjs} +6 -6
- package/dist/cli/{settings-SCR654U7.js → settings-CP4FVK2W.js} +85 -85
- package/dist/cli/{settings-4JFKCKII.mjs → settings-EBONWL5C.mjs} +12 -12
- package/dist/cli/{setup-Q2YOPGOI.mjs → setup-I5AZE3IU.mjs} +15 -10
- package/dist/cli/{setup-O6GH3UWT.js → setup-LFGHTNLQ.js} +55 -50
- package/dist/cli/skills-R7EBXREW.js +36 -0
- package/dist/cli/{skills-QHPZ6H2G.mjs → skills-W76AO5XE.mjs} +7 -7
- package/dist/cli/{tools-YO22H46E.mjs → tools-7IJHGF6W.mjs} +19 -19
- package/dist/cli/tools-V7U2BDXM.js +57 -0
- package/dist/cli/update-4COPZETK.js +34 -0
- package/dist/cli/{update-WHBC5IHE.mjs → update-GFOPZTHY.mjs} +9 -9
- package/dist/cli/{views-4CZJ5BLG.js → views-BPL2TQJ4.js} +21 -21
- package/dist/cli/{views-XNLXV2BT.mjs → views-D4NX4SBG.mjs} +6 -6
- package/dist/cli/{workflow-QUWP2CG2.mjs → workflow-YXP42FUI.mjs} +7 -7
- package/dist/cli/{workflow-C4VBARIE.js → workflow-ZYNAUCKC.js} +17 -17
- package/dist/{client-Ceo295L2.d.ts → client-Bf3IpUKN.d.ts} +1 -1
- package/dist/{client-BEJqhQAj.d.mts → client-CyXGrO4D.d.mts} +1 -1
- package/dist/{client-core-BPYuWfBC.d.ts → client-core-BWd0lX0Z.d.ts} +110 -4
- package/dist/{client-core-BqetRxx-.d.mts → client-core-BxsLnXlm.d.mts} +110 -4
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +127 -126
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.d.mts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-J4OW5RNJ.js +0 -43
- package/dist/cli/chunk-NIPLY25A.mjs +0 -7
- package/dist/cli/concurrent-runs-help-3XZIHVRP.js +0 -21
- package/dist/cli/describe-4BI6E2CM.js +0 -50
- package/dist/cli/git-QRZP4DNA.js +0 -25
- package/dist/cli/search-CQ6JG2EN.js +0 -32
- package/dist/cli/sessions-LMPXUPUH.js +0 -22
- package/dist/cli/skills-M4CFE65Z.js +0 -36
- package/dist/cli/tools-CV7XA2V6.js +0 -57
- package/dist/cli/update-PUWBKPWJ.js +0 -34
|
@@ -11,20 +11,20 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunk4MK42735js = require('./chunk-4MK42735.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkVQALXEXOjs = require('./chunk-VQALXEXO.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunk7IKQKKNXjs = require('./chunk-7IKQKKNX.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkRBEUVDZFjs = require('./chunk-RBEUVDZF.js');
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
var _chunkRLX5ZFNXjs = require('./chunk-RLX5ZFNX.js');
|
|
@@ -145,7 +145,7 @@ function inferActiveSkillsScope(entrypoint = _nullishCoalesce(process.argv[1], (
|
|
|
145
145
|
return /[\\/]\.deepline[\\/]runtime[\\/]/.test(entrypoint) ? "local" : "global";
|
|
146
146
|
}
|
|
147
147
|
function resolveLocalRoot() {
|
|
148
|
-
const target =
|
|
148
|
+
const target = _chunk7IKQKKNXjs.resolveProjectPinTarget.call(void 0, );
|
|
149
149
|
if (!target.ok) {
|
|
150
150
|
throw new Error(
|
|
151
151
|
`Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
|
|
@@ -156,7 +156,7 @@ function resolveLocalRoot() {
|
|
|
156
156
|
return target.dir;
|
|
157
157
|
}
|
|
158
158
|
function detectSkillsAgents(input) {
|
|
159
|
-
const runtime = _nullishCoalesce(input.runtime, () => (
|
|
159
|
+
const runtime = _nullishCoalesce(input.runtime, () => ( _chunkRBEUVDZFjs.detectAgentRuntime.call(void 0, )));
|
|
160
160
|
const knownAgent = RUNTIME_TO_SKILLS_AGENT[runtime];
|
|
161
161
|
if (knownAgent) return [knownAgent];
|
|
162
162
|
const roots = [
|
|
@@ -171,11 +171,11 @@ function detectSkillsAgents(input) {
|
|
|
171
171
|
return detected.length > 0 ? detected : ["*"];
|
|
172
172
|
}
|
|
173
173
|
function skillsStatePathForScope(baseUrl, scope, root) {
|
|
174
|
-
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0,
|
|
174
|
+
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunk7IKQKKNXjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
|
|
175
175
|
}
|
|
176
176
|
function buildSkillsPlan(input) {
|
|
177
177
|
const scopeArgs = input.scope === "global" ? ["--global"] : [];
|
|
178
|
-
const legacyNames = [...
|
|
178
|
+
const legacyNames = [..._chunk4MK42735js.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
|
|
179
179
|
(a, b) => a.localeCompare(b)
|
|
180
180
|
);
|
|
181
181
|
return {
|
|
@@ -189,7 +189,7 @@ function buildSkillsPlan(input) {
|
|
|
189
189
|
args: [
|
|
190
190
|
"exec",
|
|
191
191
|
"--yes",
|
|
192
|
-
`--package=${
|
|
192
|
+
`--package=${_chunk4MK42735js.SKILLS_NPX_PACKAGE}`,
|
|
193
193
|
"--",
|
|
194
194
|
"skills",
|
|
195
195
|
"remove",
|
|
@@ -205,11 +205,11 @@ function buildSkillsPlan(input) {
|
|
|
205
205
|
args: [
|
|
206
206
|
"exec",
|
|
207
207
|
"--yes",
|
|
208
|
-
`--package=${
|
|
208
|
+
`--package=${_chunk4MK42735js.SKILLS_NPX_PACKAGE}`,
|
|
209
209
|
"--",
|
|
210
210
|
"skills",
|
|
211
211
|
"add",
|
|
212
|
-
|
|
212
|
+
_chunk4MK42735js.skillsSourceUrl.call(void 0, input.baseUrl),
|
|
213
213
|
"--agent",
|
|
214
214
|
...input.agents,
|
|
215
215
|
...scopeArgs,
|
|
@@ -246,7 +246,7 @@ function readSkillsInstallState(path) {
|
|
|
246
246
|
}
|
|
247
247
|
function runProcess(command, args, cwd) {
|
|
248
248
|
return new Promise((resolve, reject) => {
|
|
249
|
-
const plan =
|
|
249
|
+
const plan = _chunk4MK42735js.resolveShellSpawn.call(void 0,
|
|
250
250
|
command,
|
|
251
251
|
args,
|
|
252
252
|
process.platform,
|
|
@@ -254,6 +254,7 @@ function runProcess(command, args, cwd) {
|
|
|
254
254
|
cwd
|
|
255
255
|
);
|
|
256
256
|
const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
|
|
257
|
+
windowsHide: true,
|
|
257
258
|
cwd,
|
|
258
259
|
env: process.env,
|
|
259
260
|
stdio: ["ignore", "ignore", "pipe"],
|
|
@@ -268,7 +269,7 @@ function runProcess(command, args, cwd) {
|
|
|
268
269
|
child.kill("SIGTERM");
|
|
269
270
|
reject(
|
|
270
271
|
new Error(
|
|
271
|
-
`${
|
|
272
|
+
`${_chunk4MK42735js.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
|
|
272
273
|
)
|
|
273
274
|
);
|
|
274
275
|
}, SKILLS_PROCESS_TIMEOUT_MS);
|
|
@@ -279,7 +280,7 @@ function runProcess(command, args, cwd) {
|
|
|
279
280
|
child.once("close", (code) => {
|
|
280
281
|
clearTimeout(timeout);
|
|
281
282
|
if (code && stderr.trim()) {
|
|
282
|
-
process.stderr.write(`${
|
|
283
|
+
process.stderr.write(`${_chunk4MK42735js.SKILLS_NPX_PACKAGE} exited ${code}.
|
|
283
284
|
`);
|
|
284
285
|
}
|
|
285
286
|
resolve(_nullishCoalesce(code, () => ( 1)));
|
|
@@ -287,7 +288,7 @@ function runProcess(command, args, cwd) {
|
|
|
287
288
|
});
|
|
288
289
|
}
|
|
289
290
|
async function showSkills(options, name) {
|
|
290
|
-
const baseUrl =
|
|
291
|
+
const baseUrl = _chunk7IKQKKNXjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
291
292
|
const url = name ? `${baseUrl}/.well-known/skills/${encodeURIComponent(name)}/SKILL.md` : `${baseUrl}/.well-known/skills/index.json`;
|
|
292
293
|
try {
|
|
293
294
|
const response = await fetch(url, {
|
|
@@ -300,7 +301,7 @@ async function showSkills(options, name) {
|
|
|
300
301
|
}
|
|
301
302
|
if (name) {
|
|
302
303
|
const markdown = await response.text();
|
|
303
|
-
|
|
304
|
+
_chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
|
|
304
305
|
{ ok: true, status: "completed", skill: { name, markdown } },
|
|
305
306
|
{ json: options.json, text: markdown }
|
|
306
307
|
);
|
|
@@ -310,7 +311,7 @@ async function showSkills(options, name) {
|
|
|
310
311
|
const skills = (_nullishCoalesce(index.skills, () => ( []))).filter(
|
|
311
312
|
(skill) => skill.install_surface === "v1" && skill.name
|
|
312
313
|
);
|
|
313
|
-
|
|
314
|
+
_chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
|
|
314
315
|
{
|
|
315
316
|
ok: true,
|
|
316
317
|
status: "completed",
|
|
@@ -327,7 +328,7 @@ Read one with: deepline skills show <name>
|
|
|
327
328
|
);
|
|
328
329
|
return 0;
|
|
329
330
|
} catch (error) {
|
|
330
|
-
|
|
331
|
+
_chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
|
|
331
332
|
{
|
|
332
333
|
ok: false,
|
|
333
334
|
status: "failed",
|
|
@@ -350,7 +351,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
350
351
|
scope = normalizeScope(options.scope);
|
|
351
352
|
root = scope === "local" ? resolveLocalRoot() : null;
|
|
352
353
|
} catch (error) {
|
|
353
|
-
|
|
354
|
+
_chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
|
|
354
355
|
{
|
|
355
356
|
ok: false,
|
|
356
357
|
status: "failed",
|
|
@@ -362,22 +363,22 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
362
363
|
);
|
|
363
364
|
return 2;
|
|
364
365
|
}
|
|
365
|
-
const baseUrl =
|
|
366
|
+
const baseUrl = _chunk7IKQKKNXjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
366
367
|
const catalog = {
|
|
367
|
-
skillNames: [...
|
|
368
|
-
version:
|
|
368
|
+
skillNames: [..._chunk4MK42735js.DEFAULT_SDK_SKILL_NAMES],
|
|
369
|
+
version: _chunkRBEUVDZFjs.SDK_VERSION
|
|
369
370
|
};
|
|
370
371
|
const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
|
|
371
372
|
const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
|
|
372
373
|
if (options.dryRun) {
|
|
373
|
-
|
|
374
|
+
_chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
|
|
374
375
|
{ ok: true, status: "planned", dryRun: true, ...plan },
|
|
375
376
|
{ json: options.json }
|
|
376
377
|
);
|
|
377
378
|
return 0;
|
|
378
379
|
}
|
|
379
|
-
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !
|
|
380
|
-
|
|
380
|
+
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunk4MK42735js.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
|
|
381
|
+
_chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
|
|
381
382
|
{
|
|
382
383
|
ok: true,
|
|
383
384
|
status: "current",
|
|
@@ -409,10 +410,10 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
409
410
|
}
|
|
410
411
|
if (scope === "local" && root) {
|
|
411
412
|
const managedNames = [
|
|
412
|
-
.../* @__PURE__ */ new Set([...plan.skillNames, ...
|
|
413
|
+
.../* @__PURE__ */ new Set([...plan.skillNames, ..._chunk4MK42735js.LEGACY_SKILL_NAMES_TO_REMOVE])
|
|
413
414
|
];
|
|
414
415
|
const agentRoots = workspaceSkillRootsForAgents(plan.agents);
|
|
415
|
-
|
|
416
|
+
_chunk7IKQKKNXjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
|
|
416
417
|
".deepline/",
|
|
417
418
|
...agentRoots.flatMap(
|
|
418
419
|
(agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
|
|
@@ -421,7 +422,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
421
422
|
}
|
|
422
423
|
let lease;
|
|
423
424
|
try {
|
|
424
|
-
lease = scope === "global" ? await
|
|
425
|
+
lease = scope === "global" ? await _chunk4MK42735js.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
|
|
425
426
|
waitMs: _nullishCoalesce(dependencies.installLeaseWaitMs, () => ( SKILLS_INSTALL_LEASE_WAIT_MS)),
|
|
426
427
|
onWait: () => process.stderr.write(
|
|
427
428
|
"Waiting for a background Deepline skills refresh to finish...\n"
|
|
@@ -429,8 +430,8 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
429
430
|
}) : { release: () => {
|
|
430
431
|
} };
|
|
431
432
|
} catch (error) {
|
|
432
|
-
if (!(error instanceof
|
|
433
|
-
|
|
433
|
+
if (!(error instanceof _chunk4MK42735js.SkillsStateUnavailableError)) throw error;
|
|
434
|
+
_chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
|
|
434
435
|
{
|
|
435
436
|
ok: false,
|
|
436
437
|
status: "failed",
|
|
@@ -446,7 +447,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
446
447
|
return 5;
|
|
447
448
|
}
|
|
448
449
|
if (!lease) {
|
|
449
|
-
|
|
450
|
+
_chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
|
|
450
451
|
{
|
|
451
452
|
ok: false,
|
|
452
453
|
status: "failed",
|
|
@@ -455,7 +456,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
455
456
|
scope,
|
|
456
457
|
agents,
|
|
457
458
|
message: "A background Deepline skills refresh is still running for these agents.",
|
|
458
|
-
next: `Retry in a moment: deepline skills install --scope ${scope}. If no refresh is running, remove ${
|
|
459
|
+
next: `Retry in a moment: deepline skills install --scope ${scope}. If no refresh is running, remove ${_chunk4MK42735js.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
|
|
459
460
|
},
|
|
460
461
|
{ json: options.json }
|
|
461
462
|
);
|
|
@@ -504,7 +505,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
504
505
|
}
|
|
505
506
|
}
|
|
506
507
|
} catch (error) {
|
|
507
|
-
|
|
508
|
+
_chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
|
|
508
509
|
{
|
|
509
510
|
ok: false,
|
|
510
511
|
status: "failed",
|
|
@@ -520,7 +521,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
520
521
|
return 5;
|
|
521
522
|
}
|
|
522
523
|
if (missing.length > 0) {
|
|
523
|
-
|
|
524
|
+
_chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
|
|
524
525
|
{
|
|
525
526
|
ok: false,
|
|
526
527
|
status: "failed",
|
|
@@ -560,7 +561,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
560
561
|
{
|
|
561
562
|
schemaVersion: 1,
|
|
562
563
|
installedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
563
|
-
cliVersion:
|
|
564
|
+
cliVersion: _chunkRBEUVDZFjs.SDK_VERSION,
|
|
564
565
|
scope,
|
|
565
566
|
agents,
|
|
566
567
|
skillsVersion: plan.version,
|
|
@@ -573,9 +574,9 @@ async function runSkillsInstallWithLease(input) {
|
|
|
573
574
|
"utf8"
|
|
574
575
|
);
|
|
575
576
|
if (scope === "global") {
|
|
576
|
-
|
|
577
|
+
_chunk4MK42735js.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
|
|
577
578
|
}
|
|
578
|
-
|
|
579
|
+
_chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
|
|
579
580
|
{
|
|
580
581
|
ok: true,
|
|
581
582
|
status: "complete",
|
|
@@ -624,7 +625,7 @@ Examples:
|
|
|
624
625
|
"after",
|
|
625
626
|
`
|
|
626
627
|
Notes:
|
|
627
|
-
This command reinstalls current Deepline-managed skills using ${
|
|
628
|
+
This command reinstalls current Deepline-managed skills using ${_chunk4MK42735js.SKILLS_NPX_PACKAGE},
|
|
628
629
|
then removes legacy Deepline skill names. Local scope writes into the resolved
|
|
629
630
|
persistent project.
|
|
630
631
|
|
|
@@ -636,13 +637,13 @@ Examples:
|
|
|
636
637
|
).action(async (options) => {
|
|
637
638
|
process.exitCode = await runSkillsCommand(options);
|
|
638
639
|
});
|
|
639
|
-
program.command(
|
|
640
|
+
program.command(_chunk4MK42735js.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
|
|
640
641
|
"--claim <token>",
|
|
641
642
|
"Owner token of the leases this child was started for."
|
|
642
643
|
).action(async (options) => {
|
|
643
644
|
const claim = _optionalChain([options, 'access', _9 => _9.claim, 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]);
|
|
644
645
|
if (!claim) {
|
|
645
|
-
|
|
646
|
+
_chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
|
|
646
647
|
{
|
|
647
648
|
ok: false,
|
|
648
649
|
status: "failed",
|
|
@@ -655,7 +656,7 @@ Examples:
|
|
|
655
656
|
process.exitCode = 2;
|
|
656
657
|
return;
|
|
657
658
|
}
|
|
658
|
-
await
|
|
659
|
+
await _chunk4MK42735js.syncSdkSkillsIfNeeded.call(void 0, _chunk7IKQKKNXjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
|
|
659
660
|
mode: "inline",
|
|
660
661
|
notices: "defer",
|
|
661
662
|
claim
|
|
@@ -1,10 +1,10 @@
|
|
|
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 _chunkPFO3ISXAjs = require('./chunk-PFO3ISXA.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk7IKQKKNXjs = require('./chunk-7IKQKKNX.js');
|
|
8
8
|
|
|
9
9
|
// src/plays/local-play-execution.ts
|
|
10
10
|
function importedNodes(graph) {
|
|
@@ -137,9 +137,9 @@ async function pinLocalPlayImports(client, graph) {
|
|
|
137
137
|
|
|
138
138
|
// src/plays/client.ts
|
|
139
139
|
function createPlayClient(options) {
|
|
140
|
-
const config =
|
|
141
|
-
return new (0,
|
|
142
|
-
new (0,
|
|
140
|
+
const config = _chunk7IKQKKNXjs.resolveConfig.call(void 0, options);
|
|
141
|
+
return new (0, _chunkPFO3ISXAjs.PlayClient)(
|
|
142
|
+
new (0, _chunk7IKQKKNXjs.HttpClient)(config),
|
|
143
143
|
_nullishCoalesce(config.environment, () => ( process.env))
|
|
144
144
|
);
|
|
145
145
|
}
|
|
@@ -11,20 +11,20 @@ import {
|
|
|
11
11
|
skillsInstallLeasePath,
|
|
12
12
|
skillsSourceUrl,
|
|
13
13
|
syncSdkSkillsIfNeeded
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-YJHE3O5M.mjs";
|
|
15
15
|
import {
|
|
16
16
|
printCommandEnvelope
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-6PRW5UBA.mjs";
|
|
18
18
|
import {
|
|
19
19
|
autoDetectBaseUrl,
|
|
20
20
|
ensureProjectPrivatePathsIgnored,
|
|
21
21
|
resolveProjectPinTarget,
|
|
22
22
|
sdkCliStateDirPath
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-4TALT2M3.mjs";
|
|
24
24
|
import {
|
|
25
25
|
SDK_VERSION,
|
|
26
26
|
detectAgentRuntime
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-YLTMXJFC.mjs";
|
|
28
28
|
import {
|
|
29
29
|
DEEPLINE_GTM_GLOBAL_SKILL_ROOTS
|
|
30
30
|
} from "./chunk-5JPKRDFC.mjs";
|
|
@@ -254,6 +254,7 @@ function runProcess(command, args, cwd) {
|
|
|
254
254
|
cwd
|
|
255
255
|
);
|
|
256
256
|
const child = spawn(plan.command, plan.args, {
|
|
257
|
+
windowsHide: true,
|
|
257
258
|
cwd,
|
|
258
259
|
env: process.env,
|
|
259
260
|
stdio: ["ignore", "ignore", "pipe"],
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
var _chunkD3BCSAN7js = require('./chunk-D3BCSAN7.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkSHLFOPD6js = require('./chunk-SHLFOPD6.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkVQALXEXOjs = require('./chunk-VQALXEXO.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunk7IKQKKNXjs = require('./chunk-7IKQKKNX.js');
|
|
16
16
|
|
|
17
17
|
// src/cli/commands/search.ts
|
|
18
18
|
var _commander = require('commander');
|
|
@@ -22,7 +22,7 @@ var _fs = require('fs');
|
|
|
22
22
|
var _path = require('path');
|
|
23
23
|
var SEARCH_REF_TTL_MS = 15 * 6e4;
|
|
24
24
|
function lastSearchPath() {
|
|
25
|
-
return _path.join.call(void 0,
|
|
25
|
+
return _path.join.call(void 0, _chunk7IKQKKNXjs.sdkCliStateDirPath.call(void 0, _chunk7IKQKKNXjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
26
26
|
}
|
|
27
27
|
function rememberSearchRef(searchRef) {
|
|
28
28
|
writeSearchRefs({ searchRef });
|
|
@@ -132,9 +132,9 @@ async function runSearch(queryInputs, options, types, exclude = []) {
|
|
|
132
132
|
console.error("--summary-width must be an integer of at least 2.");
|
|
133
133
|
return 1;
|
|
134
134
|
}
|
|
135
|
-
const client = new (0,
|
|
135
|
+
const client = new (0, _chunkSHLFOPD6js.DeeplineClient)();
|
|
136
136
|
const json = options.json === true;
|
|
137
|
-
const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-
|
|
137
|
+
const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-S5ODBL5E.js")));
|
|
138
138
|
const searches = [];
|
|
139
139
|
const chunks = [];
|
|
140
140
|
const refs = /* @__PURE__ */ new Map();
|
|
@@ -157,7 +157,7 @@ async function runSearch(queryInputs, options, types, exclude = []) {
|
|
|
157
157
|
const text = _optionalChain([renderer, 'optionalAccess', _12 => _12.renderSearchResults, 'call', _13 => _13(result, summaryWidth)]);
|
|
158
158
|
if (!multiple) {
|
|
159
159
|
if (searchRef) rememberSearchRef(searchRef);
|
|
160
|
-
|
|
160
|
+
_chunkVQALXEXOjs.printCommandEnvelope.call(void 0, result, { json, text });
|
|
161
161
|
return 0;
|
|
162
162
|
}
|
|
163
163
|
searches.push({ ...result, query });
|
|
@@ -171,8 +171,8 @@ ${text}`);
|
|
|
171
171
|
}
|
|
172
172
|
} catch (error) {
|
|
173
173
|
if (!multiple) throw error;
|
|
174
|
-
const payload =
|
|
175
|
-
const queryExitCode = _nullishCoalesce(payload.exitCode, () => (
|
|
174
|
+
const payload = _chunkVQALXEXOjs.errorToJsonPayload.call(void 0, error);
|
|
175
|
+
const queryExitCode = _nullishCoalesce(payload.exitCode, () => ( _chunkVQALXEXOjs.resolveSdkCliFailureExitCode.call(void 0, error)));
|
|
176
176
|
searches.push({ ...payload, query, exitCode: queryExitCode });
|
|
177
177
|
if (!json) {
|
|
178
178
|
console.error(`${JSON.stringify(query)}: ${payload.error.message}`);
|
|
@@ -184,7 +184,7 @@ Search failed.
|
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
186
|
rememberSearchRefsByTool(refs);
|
|
187
|
-
|
|
187
|
+
_chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
|
|
188
188
|
{ searches },
|
|
189
189
|
{
|
|
190
190
|
json,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkUPMRIVZBjs = require('./chunk-UPMRIVZB.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -13,7 +13,7 @@ var _chunkECWOIXAVjs = require('./chunk-ECWOIXAV.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunk2WFPHBR4js = require('./chunk-2WFPHBR4.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
var _chunkBBTKAASQjs = require('./chunk-BBTKAASQ.js');
|
|
@@ -31,13 +31,13 @@ var VIEWS = {
|
|
|
31
31
|
details: model,
|
|
32
32
|
lines: [
|
|
33
33
|
...unlisted,
|
|
34
|
-
...
|
|
34
|
+
..._chunkUPMRIVZBjs.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: _chunk2WFPHBR4js.byokLines.call(void 0, _nullishCoalesce(tool.byok, () => ( {})))
|
|
41
41
|
})
|
|
42
42
|
};
|
|
43
43
|
var isFeatureView = (value) => typeof value === "string" && Object.hasOwn(VIEWS, value);
|
|
@@ -133,7 +133,7 @@ async function findNamed(reference, options, lookups) {
|
|
|
133
133
|
const record = await lookups.play(reference2);
|
|
134
134
|
if (!record) return null;
|
|
135
135
|
return {
|
|
136
|
-
described:
|
|
136
|
+
described: _chunk2WFPHBR4js.describedPlay.call(void 0, record),
|
|
137
137
|
record: { ...record },
|
|
138
138
|
schemas: {
|
|
139
139
|
inputSchema: _nullishCoalesce(record.inputSchema, () => ( null)),
|
|
@@ -141,21 +141,27 @@ async function findNamed(reference, options, lookups) {
|
|
|
141
141
|
}
|
|
142
142
|
};
|
|
143
143
|
};
|
|
144
|
+
let scopedToolError;
|
|
144
145
|
const tool = async () => {
|
|
145
|
-
const record = await lookups.tool(name)
|
|
146
|
+
const record = await lookups.tool(name).catch((error) => {
|
|
147
|
+
if (!(error instanceof _chunkBBTKAASQjs.DeeplineError) || error.code !== "TOOL_UNAVAILABLE_IN_WORKSPACE")
|
|
148
|
+
throw error;
|
|
149
|
+
scopedToolError = error;
|
|
150
|
+
return null;
|
|
151
|
+
});
|
|
146
152
|
if (!record) return null;
|
|
147
153
|
const features = toolFeatures(record);
|
|
148
154
|
return {
|
|
149
155
|
described: {
|
|
150
|
-
...
|
|
156
|
+
..._chunkUPMRIVZBjs.describedTool.call(void 0, record, name),
|
|
151
157
|
...features.length ? { features: features.map(({ view: _view, ...feature }) => feature) } : {}
|
|
152
158
|
},
|
|
153
|
-
record:
|
|
159
|
+
record: _chunkUPMRIVZBjs.toolMetadataJsonForDescribe.call(void 0,
|
|
154
160
|
record,
|
|
155
161
|
name,
|
|
156
162
|
lookups.seedStarterScript
|
|
157
163
|
),
|
|
158
|
-
schemas:
|
|
164
|
+
schemas: _chunkUPMRIVZBjs.publicToolSchemas.call(void 0, record),
|
|
159
165
|
feature: (featureName, value) => {
|
|
160
166
|
const feature = features.find(({ name: name2 }) => name2 === featureName);
|
|
161
167
|
return feature ? describeFeature(record, feature, value, {
|
|
@@ -178,6 +184,7 @@ async function findNamed(reference, options, lookups) {
|
|
|
178
184
|
})
|
|
179
185
|
);
|
|
180
186
|
const [chosen, shadowed] = matches.filter((match) => match !== null);
|
|
187
|
+
if (!chosen && scopedToolError) throw scopedToolError;
|
|
181
188
|
return { chosen, shadowed };
|
|
182
189
|
}
|
|
183
190
|
async function describeName(name, options, lookups) {
|
|
@@ -201,7 +208,7 @@ async function describeName(name, options, lookups) {
|
|
|
201
208
|
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;
|
|
202
209
|
const verbose = options.verbose === true;
|
|
203
210
|
const isPlay = described.kind === "prebuilt_play" || described.kind === "custom_play";
|
|
204
|
-
const dashboardUrl = isPlay ?
|
|
211
|
+
const dashboardUrl = isPlay ? _chunk2WFPHBR4js.buildPlayDashboardUrl.call(void 0, lookups.baseUrl, described.id) : null;
|
|
205
212
|
if (options.webUrl) {
|
|
206
213
|
if (!dashboardUrl) {
|
|
207
214
|
return {
|
|
@@ -265,7 +272,7 @@ async function describeName(name, options, lookups) {
|
|
|
265
272
|
},
|
|
266
273
|
lines: [
|
|
267
274
|
`${described.id} [${described.kind.replace("_", " ")}]`,
|
|
268
|
-
...
|
|
275
|
+
..._chunk2WFPHBR4js.schemaLines.call(void 0, described, {
|
|
269
276
|
full: true,
|
|
270
277
|
secondary: true,
|
|
271
278
|
...fields.length ? { fields } : {}
|
|
@@ -274,17 +281,17 @@ async function describeName(name, options, lookups) {
|
|
|
274
281
|
} : {
|
|
275
282
|
envelope: {
|
|
276
283
|
...summary,
|
|
277
|
-
inputs: inputs.map(
|
|
278
|
-
outputs: outputs.map(
|
|
279
|
-
...described.rowInputs ? { rowInputs: described.rowInputs.map(
|
|
280
|
-
...described.rowOutputs ? { rowOutputs: described.rowOutputs.map(
|
|
281
|
-
runExamples:
|
|
284
|
+
inputs: inputs.map(_chunk2WFPHBR4js.topLevelField),
|
|
285
|
+
outputs: outputs.map(_chunk2WFPHBR4js.topLevelField),
|
|
286
|
+
...described.rowInputs ? { rowInputs: described.rowInputs.map(_chunk2WFPHBR4js.topLevelField) } : {},
|
|
287
|
+
...described.rowOutputs ? { rowOutputs: described.rowOutputs.map(_chunk2WFPHBR4js.topLevelField) } : {},
|
|
288
|
+
runExamples: _chunk2WFPHBR4js.examples.call(void 0, described, { verbose }),
|
|
282
289
|
...dashboardUrl ? { dashboardUrl } : {},
|
|
283
290
|
...shadows ? { shadows, note } : {}
|
|
284
291
|
},
|
|
285
292
|
lines: [
|
|
286
293
|
...note ? [`Note: ${note}`, ""] : [],
|
|
287
|
-
...
|
|
294
|
+
..._chunk2WFPHBR4js.describedLines.call(void 0, described, {
|
|
288
295
|
cli: shown && (!named || options.cliExample === true),
|
|
289
296
|
play: shown && (!named || options.playExample === true),
|
|
290
297
|
explain: named,
|
|
@@ -301,7 +308,7 @@ async function describeName(name, options, lookups) {
|
|
|
301
308
|
// its value stands, so callers of the older commands read what they did.
|
|
302
309
|
{ ...view.envelope, ...record }
|
|
303
310
|
) : {
|
|
304
|
-
...
|
|
311
|
+
..._chunk2WFPHBR4js.describedJson.call(void 0, described, {
|
|
305
312
|
secondary: verbose || fields.length > 0,
|
|
306
313
|
verbose
|
|
307
314
|
}),
|
|
@@ -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 _chunkVQALXEXOjs = require('./chunk-VQALXEXO.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
|
+
_chunkVQALXEXOjs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
|
|
37
37
|
`);
|
|
38
38
|
}
|
|
39
39
|
async function traceCliSpan(phase, fields, run) {
|