deepline 0.3.471 → 0.3.473
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 +9 -0
- package/dist/bundling-sources/sdk/src/index.ts +1 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +7 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-work-control.ts +17 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-work-manual.ts +55 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-outbox-recovery.ts +14 -5
- package/dist/cli/auth-IJOWKNSB.js +41 -0
- package/dist/cli/{auth-MUCIXHJF.mjs → auth-KLJOQ4DZ.mjs} +5 -5
- package/dist/cli/{billing-QGCTDE2N.mjs → billing-DNDYNBQ7.mjs} +6 -6
- package/dist/cli/{billing-BQQNTCTV.js → billing-IQNJXKH5.js} +79 -79
- package/dist/cli/{chunk-DFMFYOML.js → chunk-36KEQFWZ.js} +13 -13
- package/dist/cli/{chunk-FX3QM6WN.js → chunk-3J2N7YF5.js} +18 -4
- package/dist/cli/{chunk-ZHM7VCKH.js → chunk-3LFSIUFI.js} +21 -21
- package/dist/cli/{chunk-EYKMITTY.mjs → chunk-3OPQLFUK.mjs} +4 -4
- package/dist/cli/{chunk-V6OMS7E2.js → chunk-4IOY2SCQ.js} +10 -2
- package/dist/cli/{chunk-CR2F3JZN.js → chunk-4U3RNA3J.js} +51 -51
- package/dist/cli/{chunk-5QWGL2QO.js → chunk-63OOFT6B.js} +272 -258
- package/dist/cli/{chunk-AMUSZHCE.mjs → chunk-6QS7522K.mjs} +2 -2
- package/dist/cli/{chunk-K5USD25Z.mjs → chunk-6YOGOXOJ.mjs} +26 -12
- package/dist/cli/{chunk-6DTW6JND.js → chunk-6ZTSHKJF.js} +19 -5
- package/dist/cli/{chunk-SIQV6UYG.mjs → chunk-ABLEU3QI.mjs} +5 -5
- package/dist/cli/{chunk-T5GRG37B.js → chunk-AK7UKQ5R.js} +5 -5
- package/dist/cli/{chunk-KSUGLTX3.js → chunk-B3BM3PAI.js} +6 -6
- package/dist/cli/{chunk-E2SHDT7T.mjs → chunk-CNCK2D6B.mjs} +2 -2
- package/dist/cli/{chunk-E3WTQ3JI.js → chunk-D22QIUE3.js} +9 -9
- package/dist/cli/{chunk-TWRK4NOU.js → chunk-D4B3EV55.js} +36 -36
- package/dist/cli/{chunk-YRM5TPXL.js → chunk-DD7E4ZVH.js} +7 -7
- package/dist/cli/{chunk-ZMJOSD7R.mjs → chunk-EUHTZV2E.mjs} +1 -1
- package/dist/cli/{chunk-4OAA43RX.mjs → chunk-EVLUSXQG.mjs} +2 -2
- package/dist/cli/{chunk-MLQJVAVS.js → chunk-F4PUDYBY.js} +3 -3
- package/dist/cli/{chunk-EHVVDHNU.mjs → chunk-GAWP2YF5.mjs} +1 -1
- package/dist/cli/{chunk-FVGT5EBA.mjs → chunk-GE5GPLNM.mjs} +1 -1
- package/dist/cli/{chunk-IE5KAVTI.mjs → chunk-GISBRE2H.mjs} +3 -3
- package/dist/cli/{chunk-VVY3HGFM.mjs → chunk-GQBAJTQU.mjs} +2 -2
- package/dist/cli/{chunk-U5RGCQWJ.mjs → chunk-GTH7JORC.mjs} +2 -2
- package/dist/cli/{chunk-ZAF54BQK.mjs → chunk-HQCTPAXP.mjs} +1 -1
- package/dist/cli/{chunk-G6RQXAJ2.js → chunk-IC6AHOYS.js} +1 -1
- package/dist/cli/{chunk-PVEEGJFN.mjs → chunk-IFZ76E5H.mjs} +16 -2
- package/dist/cli/{chunk-NLT3CFVJ.js → chunk-MREO5LZD.js} +2 -2
- package/dist/cli/{chunk-GPSVXVDZ.js → chunk-N4ZCMQ54.js} +8 -8
- package/dist/cli/{chunk-2KBRY5CA.mjs → chunk-NTFM7JQW.mjs} +3 -3
- package/dist/cli/{chunk-NBPNYD54.js → chunk-OHUGXZ7N.js} +16 -16
- package/dist/cli/{chunk-X3RAGNNZ.mjs → chunk-OWUZKXE7.mjs} +1 -1
- package/dist/cli/{chunk-VDRGX2XL.js → chunk-PMJAGTSQ.js} +5 -5
- package/dist/cli/{chunk-IPFUDUSY.mjs → chunk-QD6IW2HP.mjs} +4 -4
- package/dist/cli/{chunk-OYHCMKZM.mjs → chunk-QG3THSTN.mjs} +2 -2
- package/dist/cli/{chunk-4PT2WZD2.js → chunk-QI73EL5C.js} +26 -26
- package/dist/cli/{chunk-RUWBAU6V.js → chunk-RVRG57OB.js} +8 -8
- package/dist/cli/{chunk-XSX6TJUA.mjs → chunk-SD7QWZTV.mjs} +10 -2
- package/dist/cli/{chunk-FJBGBPYY.mjs → chunk-SWAYZST7.mjs} +2 -2
- package/dist/cli/{chunk-3PT2HJKC.mjs → chunk-TBLBYIKO.mjs} +1 -1
- package/dist/cli/{chunk-NPJY5QRC.js → chunk-TUFQFTOC.js} +53 -53
- package/dist/cli/{chunk-RWCTGSD7.js → chunk-UON3WCBD.js} +3 -3
- package/dist/cli/{chunk-ATKFOOVD.mjs → chunk-V25CXRQ7.mjs} +5 -5
- package/dist/cli/{chunk-DV4V5IWI.mjs → chunk-VGVSHQN5.mjs} +5 -5
- package/dist/cli/{chunk-RYGJWMWL.mjs → chunk-VS7JKS22.mjs} +1 -1
- package/dist/cli/{chunk-J2NYCUTK.js → chunk-WGQKOLXH.js} +94 -89
- package/dist/cli/{chunk-MV6HL67R.mjs → chunk-X6R5UNDZ.mjs} +6 -1
- package/dist/cli/{chunk-DK5Y5BD3.js → chunk-YH5SFKHJ.js} +4 -4
- package/dist/cli/{chunk-WDXJUZCY.js → chunk-YHB6MASP.js} +2 -2
- package/dist/cli/{chunk-V2WMJXU6.mjs → chunk-YUNPYX5T.mjs} +19 -5
- package/dist/cli/{chunk-VGIAOWCD.js → chunk-ZVLYUKJU.js} +5 -5
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-Q6BSRCBJ.mjs → csv-NCY5MWS2.mjs} +4 -4
- package/dist/cli/{csv-UE7RZDUV.js → csv-OVV3HWN4.js} +13 -13
- package/dist/cli/{db-T7A7EE3D.js → db-BOELNDS4.js} +27 -27
- package/dist/cli/{db-FI6XXB2H.mjs → db-VPH6JHUD.mjs} +6 -6
- package/dist/cli/describe-7SFESEFL.js +48 -0
- package/dist/cli/{describe-4GGU6NU3.mjs → describe-FFDCPYZH.mjs} +19 -19
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/describe-core.js +3 -3
- package/dist/cli/describe-core.mjs +2 -2
- package/dist/cli/{executions-S46XI7NX.mjs → executions-5GCCDENS.mjs} +6 -6
- package/dist/cli/{executions-4I6F5RMS.js → executions-RF44ANF5.js} +8 -8
- package/dist/cli/{feedback-VEGUNKSP.js → feedback-NJM3V7QV.js} +8 -8
- package/dist/cli/{feedback-3LJ7NZE7.mjs → feedback-OI2A5L6F.mjs} +4 -4
- package/dist/cli/git-4V5ZS5SE.js +25 -0
- package/dist/cli/{git-W7SFD7AA.mjs → git-EOGSZ3T2.mjs} +5 -5
- package/dist/cli/index.js +139 -139
- package/dist/cli/index.mjs +41 -41
- package/dist/cli/{legacy-noops-3EMB5SJH.js → legacy-noops-5QM7XGGX.js} +8 -8
- package/dist/cli/{legacy-noops-FIR5PSHG.mjs → legacy-noops-UYKK7AAB.mjs} +5 -5
- package/dist/cli/{monitors-53LPJH6R.js → monitors-52GW2V4V.js} +91 -91
- package/dist/cli/{monitors-4DKW25PV.mjs → monitors-N3ITC5MP.mjs} +7 -7
- package/dist/cli/{org-CYLJFX4Q.js → org-ADF47NPV.js} +72 -72
- package/dist/cli/{org-6ZV2DBGI.mjs → org-KUZUG33W.mjs} +6 -6
- package/dist/cli/{pages-V3LEXCRL.mjs → pages-C3S5WU3S.mjs} +6 -6
- package/dist/cli/{pages-42E3WIMH.js → pages-H3H7ODBN.js} +17 -17
- package/dist/cli/{play-X7REMNNG.mjs → play-SZETTQPV.mjs} +47 -19
- package/dist/cli/{play-O3OY556F.js → play-YWZWBG32.js} +334 -306
- package/dist/cli/{providers-L2DJVAXN.mjs → providers-FSCD35HB.mjs} +6 -6
- package/dist/cli/{providers-NZ7TISS3.js → providers-V3BP7ZB2.js} +9 -9
- package/dist/cli/{quickstart-IKNGAQRO.js → quickstart-ICULVGAR.js} +6 -6
- package/dist/cli/{quickstart-ROWMAUXQ.mjs → quickstart-SYZCT2WI.mjs} +4 -4
- package/dist/cli/{run-PJI577J2.mjs → run-HA5B3AYQ.mjs} +24 -24
- package/dist/cli/{run-JG6DLOYR.js → run-WUJSKGUM.js} +39 -39
- package/dist/cli/{search-DOVJ745X.mjs → search-A27AGYDV.mjs} +7 -7
- package/dist/cli/search-XATDPNEM.js +32 -0
- package/dist/cli/{secrets-OKDFNCRJ.mjs → secrets-2L4VRJ2F.mjs} +6 -6
- package/dist/cli/{secrets-R5LWXIG6.js → secrets-ODX56QBF.js} +15 -15
- package/dist/cli/{sessions-L3DSAY2T.js → sessions-DVZ4FECP.js} +6 -6
- package/dist/cli/{sessions-KX4C2CKS.mjs → sessions-PRF36DHO.mjs} +5 -5
- package/dist/cli/{settings-W3SMDBYS.mjs → settings-LUATIKJE.mjs} +11 -11
- package/dist/cli/{settings-NKTNNTAP.js → settings-RJT5DBWG.js} +78 -78
- package/dist/cli/{setup-5WZEXWQR.js → setup-FJSBKCLU.js} +44 -44
- package/dist/cli/{setup-7KFKKW2W.mjs → setup-IQXTYLRH.mjs} +9 -9
- package/dist/cli/skills-N6CPBF6T.js +31 -0
- package/dist/cli/{skills-X5TLATOL.mjs → skills-XJH4ZC5Y.mjs} +7 -7
- package/dist/cli/{tools-27J5EOKO.mjs → tools-IGXLZCKZ.mjs} +17 -17
- package/dist/cli/tools-YMVEVRCE.js +55 -0
- package/dist/cli/{update-EWL477FJ.mjs → update-AH7G5VSL.mjs} +9 -9
- package/dist/cli/update-MUCWGTXH.js +33 -0
- package/dist/cli/{workflow-GFNGGHJE.js → workflow-IQ2J7LWM.js} +17 -17
- package/dist/cli/{workflow-YXR6YMT2.mjs → workflow-WOYSCWVD.mjs} +7 -7
- package/dist/{client-DitOgp8N.d.mts → client-C9bJ0QXu.d.mts} +1 -1
- package/dist/{client-DIpVmXcj.d.ts → client-CuNH54w3.d.ts} +1 -1
- package/dist/{client-core-k543Fg6D.d.ts → client-core-C8Q6DKga.d.ts} +11 -1
- package/dist/{client-core-COZteOww.d.mts → client-core-CSiXbe2n.d.mts} +11 -1
- 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 +106 -106
- 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-2MMOFS3O.js +0 -41
- package/dist/cli/describe-UM2VGRY7.js +0 -48
- package/dist/cli/git-EVWKNIUA.js +0 -25
- package/dist/cli/search-RHKW5GSR.js +0 -32
- package/dist/cli/skills-UFAABPCQ.js +0 -31
- package/dist/cli/tools-IVU3BCIY.js +0 -55
- package/dist/cli/update-G7HFHKPG.js +0 -33
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PlayClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-X6R5UNDZ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GE5GPLNM.mjs";
|
|
8
8
|
|
|
9
9
|
// src/plays/local-play-execution.ts
|
|
10
10
|
function importedNodes(graph) {
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
addDescribeOptions,
|
|
3
3
|
recordApiResponse,
|
|
4
4
|
writeExecutionOutput
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-IFZ76E5H.mjs";
|
|
6
6
|
import {
|
|
7
7
|
recentSearchRef,
|
|
8
8
|
registerDeprecatedSearchCommand
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-GISBRE2H.mjs";
|
|
10
10
|
import {
|
|
11
11
|
arrayField,
|
|
12
12
|
formatModelDescription,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
toolInputFieldsForDisplay,
|
|
26
26
|
toolMetadataJsonForDescribe,
|
|
27
27
|
toolOutputFieldsForDisplay
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-SD7QWZTV.mjs";
|
|
29
29
|
import {
|
|
30
30
|
rateLimitQualifier
|
|
31
31
|
} from "./chunk-JVHOS3K3.mjs";
|
|
@@ -48,10 +48,10 @@ import {
|
|
|
48
48
|
} from "./chunk-FIVKWNMT.mjs";
|
|
49
49
|
import {
|
|
50
50
|
DeeplineClient
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-GTH7JORC.mjs";
|
|
52
52
|
import {
|
|
53
53
|
validateExecutionIdempotencyKey
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-X6R5UNDZ.mjs";
|
|
55
55
|
import {
|
|
56
56
|
stableStringify
|
|
57
57
|
} from "./chunk-UBKA33KY.mjs";
|
|
@@ -61,18 +61,18 @@ import {
|
|
|
61
61
|
maybeAutoUpdateAndRelaunch,
|
|
62
62
|
registerCompatibilityCatalog,
|
|
63
63
|
runToolExecuteStage
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-V25CXRQ7.mjs";
|
|
65
65
|
import {
|
|
66
66
|
isCliTraceEnabled,
|
|
67
67
|
recordCliTrace,
|
|
68
68
|
resolveCliMaintenancePolicy
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-HQCTPAXP.mjs";
|
|
70
70
|
import {
|
|
71
71
|
checkSdkCompatibility,
|
|
72
72
|
enforceSdkCompatibilityResponse,
|
|
73
73
|
flushDeferredSkillsSyncNotices,
|
|
74
74
|
syncSdkSkillsIfNeeded
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-3OPQLFUK.mjs";
|
|
76
76
|
import {
|
|
77
77
|
printCommandEnvelope,
|
|
78
78
|
printCompactJson,
|
|
@@ -80,12 +80,12 @@ import {
|
|
|
80
80
|
printJsonError,
|
|
81
81
|
renderCommandEnvelopeText,
|
|
82
82
|
shouldEmitJson
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-QG3THSTN.mjs";
|
|
84
84
|
import {
|
|
85
85
|
readSdkSkillsLocalVersion,
|
|
86
86
|
resolveConfig,
|
|
87
87
|
sdkCliStateDirPath
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-GE5GPLNM.mjs";
|
|
89
89
|
import {
|
|
90
90
|
DeeplineError
|
|
91
91
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
@@ -1038,7 +1038,7 @@ Examples:
|
|
|
1038
1038
|
process.exitCode = await narrowView();
|
|
1039
1039
|
return;
|
|
1040
1040
|
}
|
|
1041
|
-
const { describeAnything } = await import("./describe-
|
|
1041
|
+
const { describeAnything } = await import("./describe-FFDCPYZH.mjs");
|
|
1042
1042
|
process.exitCode = await describeAnything(
|
|
1043
1043
|
toolId,
|
|
1044
1044
|
{
|
|
@@ -2462,7 +2462,21 @@ function printToolExecutionWarnings(toolId, params, metadata) {
|
|
|
2462
2462
|
}
|
|
2463
2463
|
}
|
|
2464
2464
|
function valueAt(value, path) {
|
|
2465
|
-
|
|
2465
|
+
const parts = path.split(".");
|
|
2466
|
+
let at = value;
|
|
2467
|
+
for (const [index, part] of parts.entries()) {
|
|
2468
|
+
const each = part === "*" || part.endsWith("[*]");
|
|
2469
|
+
if (part !== "*") {
|
|
2470
|
+
at = isRecord(at) ? at[each ? part.slice(0, -3) : part] : void 0;
|
|
2471
|
+
}
|
|
2472
|
+
if (!each) continue;
|
|
2473
|
+
if (!Array.isArray(at)) return void 0;
|
|
2474
|
+
const rest = parts.slice(index + 1).join(".");
|
|
2475
|
+
if (!rest) return at;
|
|
2476
|
+
const values = at.map((row) => valueAt(row, rest));
|
|
2477
|
+
return values.some((row) => row !== void 0) ? values.map((row) => row ?? null) : void 0;
|
|
2478
|
+
}
|
|
2479
|
+
return at;
|
|
2466
2480
|
}
|
|
2467
2481
|
function declaredOutputs(metadata, envelope, data) {
|
|
2468
2482
|
const result = metadata.usageGuidance?.toolExecutionResult;
|
|
@@ -707,7 +707,7 @@ When:
|
|
|
707
707
|
The sequence:
|
|
708
708
|
search "<input you have -> result you need>" find the play
|
|
709
709
|
describe <ref> required input, CSV columns, output fields
|
|
710
|
-
plays
|
|
710
|
+
plays cost <ref> per-row or per-run credit estimate
|
|
711
711
|
run <ref> --input '{"csv":"file.csv"}' --csv-out out.csv run it, save rows
|
|
712
712
|
Writing a play:
|
|
713
713
|
Start from code that already works, not a blank file.
|
|
@@ -848,17 +848,30 @@ Output (JSON):
|
|
|
848
848
|
]]
|
|
849
849
|
Cost:
|
|
850
850
|
Free.
|
|
851
|
+
`
|
|
852
|
+
},
|
|
853
|
+
"plays cost": {
|
|
854
|
+
core: `
|
|
855
|
+
Purpose:
|
|
856
|
+
Read the advisory cost estimate for one saved or prebuilt Play.
|
|
857
|
+
Input:
|
|
858
|
+
<play> is a bare name or qualified reference.[[cli: --json prints the exact result.]]
|
|
859
|
+
Output:
|
|
860
|
+
reference, costEstimate, and for prebuilts observedCost. Estimates include
|
|
861
|
+
the output unit, observed or static range, sample size and compute ceiling.
|
|
862
|
+
Cost:
|
|
863
|
+
Read-only. Uses the current workspace's pricing; does not start a run.
|
|
851
864
|
`
|
|
852
865
|
},
|
|
853
866
|
"plays list": {
|
|
854
867
|
core: `
|
|
855
868
|
Purpose:
|
|
856
|
-
Inventory of saved and prebuilt plays, one bounded page at a time.[[cli:
|
|
857
|
-
|
|
869
|
+
Inventory of saved and prebuilt plays, one bounded page at a time.[[cli:
|
|
870
|
+
Add --show-cost for estimates across the page.]][[mcp: Search returns Play summaries;
|
|
858
871
|
deepline_describe_play returns input/output schemas and CSV contracts.]]
|
|
859
872
|
When:
|
|
860
873
|
[[cli:
|
|
861
|
-
To price a
|
|
874
|
+
To price a catalog page: plays list --show-cost, then read the
|
|
862
875
|
cost estimate line for the play, or in JSON observedCost (prebuilts) or
|
|
863
876
|
costEstimate.
|
|
864
877
|
]]
|
|
@@ -868,7 +881,8 @@ When:
|
|
|
868
881
|
]]
|
|
869
882
|
[[cli:
|
|
870
883
|
Input:
|
|
871
|
-
--show-cost adds estimates. --
|
|
884
|
+
--show-cost adds estimates. --summary loads metadata without source or
|
|
885
|
+
revision payloads. --limit and --cursor page. --categories
|
|
872
886
|
filters by tool category. --json prints JSON.
|
|
873
887
|
]]
|
|
874
888
|
[[cli:
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
seedToolListScript
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6YOGOXOJ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
addDescribeOptions
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-IFZ76E5H.mjs";
|
|
7
7
|
import {
|
|
8
8
|
describeLookupsFor,
|
|
9
9
|
describeName,
|
|
10
10
|
findNamed
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-OWUZKXE7.mjs";
|
|
12
12
|
import {
|
|
13
13
|
SCHEMA_LINE_LIMIT
|
|
14
14
|
} from "./chunk-JVHOS3K3.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineClient
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-GTH7JORC.mjs";
|
|
18
18
|
import {
|
|
19
19
|
printCommandEnvelope
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-QG3THSTN.mjs";
|
|
21
21
|
|
|
22
22
|
// src/cli/commands/describe.ts
|
|
23
23
|
import { writeFileSync } from "fs";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk4IOY2SCQjs = require('./chunk-4IOY2SCQ.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -31,7 +31,7 @@ var VIEWS = {
|
|
|
31
31
|
details: model,
|
|
32
32
|
lines: [
|
|
33
33
|
...unlisted,
|
|
34
|
-
...
|
|
34
|
+
..._chunk4IOY2SCQjs.formatModelDescription.call(void 0, model).trimEnd().split("\n")
|
|
35
35
|
]
|
|
36
36
|
};
|
|
37
37
|
},
|
|
@@ -131,18 +131,18 @@ async function findNamed(reference, options, lookups) {
|
|
|
131
131
|
const features = toolFeatures(record);
|
|
132
132
|
return {
|
|
133
133
|
described: {
|
|
134
|
-
...
|
|
134
|
+
..._chunk4IOY2SCQjs.describedTool.call(void 0, record, name),
|
|
135
135
|
// Shown when the tool runs only on your own credentials; otherwise
|
|
136
136
|
// it is a feature, described with --feature byok.
|
|
137
137
|
..._optionalChain([byok, 'optionalAccess', _3 => _3.required]) === true ? { byok } : {},
|
|
138
138
|
...features.length ? { features: features.map(({ view: _view, ...feature }) => feature) } : {}
|
|
139
139
|
},
|
|
140
|
-
record:
|
|
140
|
+
record: _chunk4IOY2SCQjs.toolMetadataJsonForDescribe.call(void 0,
|
|
141
141
|
record,
|
|
142
142
|
name,
|
|
143
143
|
lookups.seedStarterScript
|
|
144
144
|
),
|
|
145
|
-
schemas:
|
|
145
|
+
schemas: _chunk4IOY2SCQjs.publicToolSchemas.call(void 0, record),
|
|
146
146
|
feature: (featureName, value) => {
|
|
147
147
|
const feature = features.find(({ name: name2 }) => name2 === featureName);
|
|
148
148
|
return feature ? describeFeature(record, feature, value, {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkYHB6MASPjs = require('./chunk-YHB6MASP.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkTUFQFTOCjs = require('./chunk-TUFQFTOC.js');
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -14,17 +14,17 @@ function usesInlinePlayAdmission(command, args) {
|
|
|
14
14
|
);
|
|
15
15
|
}
|
|
16
16
|
async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configured") {
|
|
17
|
-
if (maintenancePolicy !== "off")
|
|
18
|
-
const compatibility = await
|
|
17
|
+
if (maintenancePolicy !== "off") _chunkTUFQFTOCjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
18
|
+
const compatibility = await _chunkYHB6MASPjs.traceCliSpan.call(void 0,
|
|
19
19
|
"cli.sdk_compatibility",
|
|
20
20
|
{ baseUrl, command: "plays run" },
|
|
21
|
-
() =>
|
|
21
|
+
() => _chunkTUFQFTOCjs.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
22
22
|
command: "plays run",
|
|
23
23
|
persistCache: maintenancePolicy !== "off"
|
|
24
24
|
})
|
|
25
25
|
);
|
|
26
26
|
if (compatibility.error) throw compatibility.error;
|
|
27
|
-
|
|
27
|
+
_chunkTUFQFTOCjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
|
|
28
28
|
quietAdvisory: true
|
|
29
29
|
});
|
|
30
30
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
printCommandEnvelope
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-QG3THSTN.mjs";
|
|
5
5
|
import {
|
|
6
6
|
agentSessionIdFromEnvironment
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-EUHTZV2E.mjs";
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
import {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkVLEVVDWGjs = require('./chunk-VLEVVDWG.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkWGQKOLXHjs = require('./chunk-WGQKOLXH.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkJDMR33HSjs = require('./chunk-JDMR33HS.js');
|
|
@@ -11,7 +11,7 @@ var _chunkJDMR33HSjs = require('./chunk-JDMR33HS.js');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkDD7E4ZVHjs = require('./chunk-DD7E4ZVH.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
@@ -579,7 +579,7 @@ function parseInputFlagValue(raw) {
|
|
|
579
579
|
return raw;
|
|
580
580
|
}
|
|
581
581
|
function parsePlayRunOptions(args, initialInput = null) {
|
|
582
|
-
const selection =
|
|
582
|
+
const selection = _chunkDD7E4ZVHjs.parseJsonFields.call(void 0, args, "run");
|
|
583
583
|
args = selection.args;
|
|
584
584
|
const usage = "Usage: deepline plays run <play-name> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run <play-file.ts> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --file <play-file.ts> [--input '{...}'] [--profile <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --name <name> [--input '{...}'] [--profile <id>] [--live|--latest|--revision-id <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--json] [--full] [--<input> value]\n Runs use the Absurd CJS runtime.\n --header '<name>: <value>' may repeat; each is sent on every request for this run.\n Unknown --<input> value flags, such as --limit 5, are passed into play input.\nRun `deepline plays run --help` for idempotent call caching and deepline.dataset guidance.";
|
|
585
585
|
let filePath = null;
|
|
@@ -591,7 +591,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
591
591
|
let revisionSelector = null;
|
|
592
592
|
const watch = !args.includes("--no-wait");
|
|
593
593
|
const dryRun = args.includes("--dry-run");
|
|
594
|
-
let jsonOutput = dryRun ?
|
|
594
|
+
let jsonOutput = dryRun ? _chunkDD7E4ZVHjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkDD7E4ZVHjs.argsWantJson.call(void 0, args);
|
|
595
595
|
const fullJson = args.includes("--full");
|
|
596
596
|
const force = args.includes("--force");
|
|
597
597
|
const forceToolRefresh = args.includes("--force-tool-refresh");
|
|
@@ -654,7 +654,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
654
654
|
"--log-level requires one of: debug, info, warn, error."
|
|
655
655
|
);
|
|
656
656
|
}
|
|
657
|
-
const parsed =
|
|
657
|
+
const parsed = _chunkWGQKOLXHjs.parseLogLevel.call(void 0, value);
|
|
658
658
|
if (!parsed) {
|
|
659
659
|
throw new Error(
|
|
660
660
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -972,7 +972,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
972
972
|
const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
|
|
973
973
|
(arg) => arg === "--log-level" || arg.startsWith("--log-level=")
|
|
974
974
|
);
|
|
975
|
-
let logLevel = options.logLevel === void 0 ? base.logLevel :
|
|
975
|
+
let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkWGQKOLXHjs.parseLogLevel.call(void 0, options.logLevel);
|
|
976
976
|
if (!logLevel)
|
|
977
977
|
throw new Error("--log-level requires one of: debug, info, warn, error.");
|
|
978
978
|
const debugAlias = options.logs || options.debug === true || inputArgs.some(
|
|
@@ -986,13 +986,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
986
986
|
if (debugAlias || debugMapLatency && logLevel === "info")
|
|
987
987
|
logLevel = "debug";
|
|
988
988
|
const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
|
|
989
|
-
const jsonFields = options.json === void 0 ? base.jsonFields :
|
|
990
|
-
[...fullJson ? ["--full"] : [], ...
|
|
989
|
+
const jsonFields = options.json === void 0 ? base.jsonFields : _chunkDD7E4ZVHjs.parseJsonFields.call(void 0,
|
|
990
|
+
[...fullJson ? ["--full"] : [], ..._chunkDD7E4ZVHjs.jsonFieldArgs.call(void 0, options.json)],
|
|
991
991
|
"run"
|
|
992
992
|
).fields;
|
|
993
993
|
const watch = options.wait === false ? false : base.watch;
|
|
994
994
|
const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
|
|
995
|
-
const jsonOutput = dryRun || !watch ? explicitJson ||
|
|
995
|
+
const jsonOutput = dryRun || !watch ? explicitJson || _chunkDD7E4ZVHjs.argsWantJson.call(void 0, []) : explicitJson;
|
|
996
996
|
const verboseLogs = Boolean(
|
|
997
997
|
debugAlias || logLevel === "debug" || debugMapLatency
|
|
998
998
|
);
|
|
@@ -11,20 +11,20 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkTUFQFTOCjs = require('./chunk-TUFQFTOC.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkDD7E4ZVHjs = require('./chunk-DD7E4ZVH.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkF4PUDYBYjs = require('./chunk-F4PUDYBY.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkYH5SFKHJjs = require('./chunk-YH5SFKHJ.js');
|
|
28
28
|
|
|
29
29
|
// src/cli/commands/skills.ts
|
|
30
30
|
var _child_process = require('child_process');
|
|
@@ -77,7 +77,7 @@ function inferActiveSkillsScope(entrypoint = _nullishCoalesce(process.argv[1], (
|
|
|
77
77
|
return /[\\/]\.deepline[\\/]runtime[\\/]/.test(entrypoint) ? "local" : "global";
|
|
78
78
|
}
|
|
79
79
|
function resolveLocalRoot() {
|
|
80
|
-
const target =
|
|
80
|
+
const target = _chunkF4PUDYBYjs.resolveProjectPinTarget.call(void 0, );
|
|
81
81
|
if (!target.ok) {
|
|
82
82
|
throw new Error(
|
|
83
83
|
`Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
|
|
@@ -88,7 +88,7 @@ function resolveLocalRoot() {
|
|
|
88
88
|
return target.dir;
|
|
89
89
|
}
|
|
90
90
|
function detectSkillsAgents(input) {
|
|
91
|
-
const runtime = _nullishCoalesce(input.runtime, () => (
|
|
91
|
+
const runtime = _nullishCoalesce(input.runtime, () => ( _chunkYH5SFKHJjs.detectAgentRuntime.call(void 0, )));
|
|
92
92
|
const knownAgent = RUNTIME_TO_SKILLS_AGENT[runtime];
|
|
93
93
|
if (knownAgent) return [knownAgent];
|
|
94
94
|
const roots = [
|
|
@@ -103,11 +103,11 @@ function detectSkillsAgents(input) {
|
|
|
103
103
|
return detected.length > 0 ? detected : ["*"];
|
|
104
104
|
}
|
|
105
105
|
function skillsStatePathForScope(baseUrl, scope, root) {
|
|
106
|
-
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0,
|
|
106
|
+
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunkF4PUDYBYjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
|
|
107
107
|
}
|
|
108
108
|
function buildSkillsPlan(input) {
|
|
109
109
|
const scopeArgs = input.scope === "global" ? ["--global"] : [];
|
|
110
|
-
const legacyNames = [...
|
|
110
|
+
const legacyNames = [..._chunkTUFQFTOCjs.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
|
|
111
111
|
(a, b) => a.localeCompare(b)
|
|
112
112
|
);
|
|
113
113
|
return {
|
|
@@ -121,7 +121,7 @@ function buildSkillsPlan(input) {
|
|
|
121
121
|
args: [
|
|
122
122
|
"exec",
|
|
123
123
|
"--yes",
|
|
124
|
-
`--package=${
|
|
124
|
+
`--package=${_chunkTUFQFTOCjs.SKILLS_NPX_PACKAGE}`,
|
|
125
125
|
"--",
|
|
126
126
|
"skills",
|
|
127
127
|
"remove",
|
|
@@ -137,11 +137,11 @@ function buildSkillsPlan(input) {
|
|
|
137
137
|
args: [
|
|
138
138
|
"exec",
|
|
139
139
|
"--yes",
|
|
140
|
-
`--package=${
|
|
140
|
+
`--package=${_chunkTUFQFTOCjs.SKILLS_NPX_PACKAGE}`,
|
|
141
141
|
"--",
|
|
142
142
|
"skills",
|
|
143
143
|
"add",
|
|
144
|
-
|
|
144
|
+
_chunkTUFQFTOCjs.skillsSourceUrl.call(void 0, input.baseUrl),
|
|
145
145
|
"--agent",
|
|
146
146
|
...input.agents,
|
|
147
147
|
...scopeArgs,
|
|
@@ -178,7 +178,7 @@ function readSkillsInstallState(path) {
|
|
|
178
178
|
}
|
|
179
179
|
function runProcess(command, args, cwd) {
|
|
180
180
|
return new Promise((resolve, reject) => {
|
|
181
|
-
const plan =
|
|
181
|
+
const plan = _chunkTUFQFTOCjs.resolveShellSpawn.call(void 0,
|
|
182
182
|
command,
|
|
183
183
|
args,
|
|
184
184
|
process.platform,
|
|
@@ -200,7 +200,7 @@ function runProcess(command, args, cwd) {
|
|
|
200
200
|
child.kill("SIGTERM");
|
|
201
201
|
reject(
|
|
202
202
|
new Error(
|
|
203
|
-
`${
|
|
203
|
+
`${_chunkTUFQFTOCjs.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
|
|
204
204
|
)
|
|
205
205
|
);
|
|
206
206
|
}, SKILLS_PROCESS_TIMEOUT_MS);
|
|
@@ -211,7 +211,7 @@ function runProcess(command, args, cwd) {
|
|
|
211
211
|
child.once("close", (code) => {
|
|
212
212
|
clearTimeout(timeout);
|
|
213
213
|
if (code && stderr.trim()) {
|
|
214
|
-
process.stderr.write(`${
|
|
214
|
+
process.stderr.write(`${_chunkTUFQFTOCjs.SKILLS_NPX_PACKAGE} exited ${code}.
|
|
215
215
|
`);
|
|
216
216
|
}
|
|
217
217
|
resolve(_nullishCoalesce(code, () => ( 1)));
|
|
@@ -225,7 +225,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
225
225
|
scope = normalizeScope(options.scope);
|
|
226
226
|
root = scope === "local" ? resolveLocalRoot() : null;
|
|
227
227
|
} catch (error) {
|
|
228
|
-
|
|
228
|
+
_chunkDD7E4ZVHjs.printCommandEnvelope.call(void 0,
|
|
229
229
|
{
|
|
230
230
|
ok: false,
|
|
231
231
|
status: "failed",
|
|
@@ -237,22 +237,22 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
237
237
|
);
|
|
238
238
|
return 2;
|
|
239
239
|
}
|
|
240
|
-
const baseUrl =
|
|
240
|
+
const baseUrl = _chunkF4PUDYBYjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
241
241
|
const catalog = {
|
|
242
|
-
skillNames: [...
|
|
243
|
-
version:
|
|
242
|
+
skillNames: [..._chunkTUFQFTOCjs.DEFAULT_SDK_SKILL_NAMES],
|
|
243
|
+
version: _chunkYH5SFKHJjs.SDK_VERSION
|
|
244
244
|
};
|
|
245
245
|
const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
|
|
246
246
|
const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
|
|
247
247
|
if (options.dryRun) {
|
|
248
|
-
|
|
248
|
+
_chunkDD7E4ZVHjs.printCommandEnvelope.call(void 0,
|
|
249
249
|
{ ok: true, status: "planned", dryRun: true, ...plan },
|
|
250
250
|
{ json: options.json }
|
|
251
251
|
);
|
|
252
252
|
return 0;
|
|
253
253
|
}
|
|
254
|
-
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !
|
|
255
|
-
|
|
254
|
+
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunkTUFQFTOCjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
|
|
255
|
+
_chunkDD7E4ZVHjs.printCommandEnvelope.call(void 0,
|
|
256
256
|
{
|
|
257
257
|
ok: true,
|
|
258
258
|
status: "current",
|
|
@@ -284,10 +284,10 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
284
284
|
}
|
|
285
285
|
if (scope === "local" && root) {
|
|
286
286
|
const managedNames = [
|
|
287
|
-
.../* @__PURE__ */ new Set([...plan.skillNames, ...
|
|
287
|
+
.../* @__PURE__ */ new Set([...plan.skillNames, ..._chunkTUFQFTOCjs.LEGACY_SKILL_NAMES_TO_REMOVE])
|
|
288
288
|
];
|
|
289
289
|
const agentRoots = workspaceSkillRootsForAgents(plan.agents);
|
|
290
|
-
|
|
290
|
+
_chunkF4PUDYBYjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
|
|
291
291
|
".deepline/",
|
|
292
292
|
...agentRoots.flatMap(
|
|
293
293
|
(agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
|
|
@@ -296,7 +296,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
296
296
|
}
|
|
297
297
|
let lease;
|
|
298
298
|
try {
|
|
299
|
-
lease = scope === "global" ? await
|
|
299
|
+
lease = scope === "global" ? await _chunkTUFQFTOCjs.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
|
|
300
300
|
waitMs: _nullishCoalesce(dependencies.installLeaseWaitMs, () => ( SKILLS_INSTALL_LEASE_WAIT_MS)),
|
|
301
301
|
onWait: () => process.stderr.write(
|
|
302
302
|
"Waiting for a background Deepline skills refresh to finish...\n"
|
|
@@ -304,8 +304,8 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
304
304
|
}) : { release: () => {
|
|
305
305
|
} };
|
|
306
306
|
} catch (error) {
|
|
307
|
-
if (!(error instanceof
|
|
308
|
-
|
|
307
|
+
if (!(error instanceof _chunkTUFQFTOCjs.SkillsStateUnavailableError)) throw error;
|
|
308
|
+
_chunkDD7E4ZVHjs.printCommandEnvelope.call(void 0,
|
|
309
309
|
{
|
|
310
310
|
ok: false,
|
|
311
311
|
status: "failed",
|
|
@@ -321,7 +321,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
321
321
|
return 5;
|
|
322
322
|
}
|
|
323
323
|
if (!lease) {
|
|
324
|
-
|
|
324
|
+
_chunkDD7E4ZVHjs.printCommandEnvelope.call(void 0,
|
|
325
325
|
{
|
|
326
326
|
ok: false,
|
|
327
327
|
status: "failed",
|
|
@@ -330,7 +330,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
330
330
|
scope,
|
|
331
331
|
agents,
|
|
332
332
|
message: "A background Deepline skills refresh is still running for these agents.",
|
|
333
|
-
next: `Retry in a moment: deepline skills --scope ${scope}. If no refresh is running, remove ${
|
|
333
|
+
next: `Retry in a moment: deepline skills --scope ${scope}. If no refresh is running, remove ${_chunkTUFQFTOCjs.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
|
|
334
334
|
},
|
|
335
335
|
{ json: options.json }
|
|
336
336
|
);
|
|
@@ -367,7 +367,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
367
367
|
throw new Error("Could not install the current Deepline skills.");
|
|
368
368
|
}
|
|
369
369
|
} catch (error) {
|
|
370
|
-
|
|
370
|
+
_chunkDD7E4ZVHjs.printCommandEnvelope.call(void 0,
|
|
371
371
|
{
|
|
372
372
|
ok: false,
|
|
373
373
|
status: "failed",
|
|
@@ -406,7 +406,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
406
406
|
{
|
|
407
407
|
schemaVersion: 1,
|
|
408
408
|
installedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
409
|
-
cliVersion:
|
|
409
|
+
cliVersion: _chunkYH5SFKHJjs.SDK_VERSION,
|
|
410
410
|
scope,
|
|
411
411
|
agents,
|
|
412
412
|
skillsVersion: plan.version,
|
|
@@ -419,9 +419,9 @@ async function runSkillsInstallWithLease(input) {
|
|
|
419
419
|
"utf8"
|
|
420
420
|
);
|
|
421
421
|
if (scope === "global") {
|
|
422
|
-
|
|
422
|
+
_chunkTUFQFTOCjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
|
|
423
423
|
}
|
|
424
|
-
|
|
424
|
+
_chunkDD7E4ZVHjs.printCommandEnvelope.call(void 0,
|
|
425
425
|
{
|
|
426
426
|
ok: true,
|
|
427
427
|
status: "complete",
|
|
@@ -452,7 +452,7 @@ function registerSkillsCommand(program) {
|
|
|
452
452
|
"after",
|
|
453
453
|
`
|
|
454
454
|
Notes:
|
|
455
|
-
This command reinstalls current Deepline-managed skills using ${
|
|
455
|
+
This command reinstalls current Deepline-managed skills using ${_chunkTUFQFTOCjs.SKILLS_NPX_PACKAGE},
|
|
456
456
|
then removes legacy Deepline skill names. Local scope writes into the resolved
|
|
457
457
|
persistent project.
|
|
458
458
|
|
|
@@ -464,13 +464,13 @@ Examples:
|
|
|
464
464
|
).action(async (options) => {
|
|
465
465
|
process.exitCode = await runSkillsCommand(options);
|
|
466
466
|
});
|
|
467
|
-
program.command(
|
|
467
|
+
program.command(_chunkTUFQFTOCjs.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
|
|
468
468
|
"--claim <token>",
|
|
469
469
|
"Owner token of the leases this child was started for."
|
|
470
470
|
).action(async (options) => {
|
|
471
471
|
const claim = _optionalChain([options, 'access', _ => _.claim, 'optionalAccess', _2 => _2.trim, 'call', _3 => _3()]);
|
|
472
472
|
if (!claim) {
|
|
473
|
-
|
|
473
|
+
_chunkDD7E4ZVHjs.printCommandEnvelope.call(void 0,
|
|
474
474
|
{
|
|
475
475
|
ok: false,
|
|
476
476
|
status: "failed",
|
|
@@ -483,7 +483,7 @@ Examples:
|
|
|
483
483
|
process.exitCode = 2;
|
|
484
484
|
return;
|
|
485
485
|
}
|
|
486
|
-
await
|
|
486
|
+
await _chunkTUFQFTOCjs.syncSdkSkillsIfNeeded.call(void 0, _chunkF4PUDYBYjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
|
|
487
487
|
mode: "inline",
|
|
488
488
|
notices: "defer",
|
|
489
489
|
claim
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkF4PUDYBYjs = require('./chunk-F4PUDYBY.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkYH5SFKHJjs = require('./chunk-YH5SFKHJ.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -290,8 +290,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
|
|
|
290
290
|
var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
|
|
291
291
|
var defaultBrowserCommandRunner = childProcess;
|
|
292
292
|
function getAuthedHttpClient() {
|
|
293
|
-
const config =
|
|
294
|
-
return { config, http: new (0,
|
|
293
|
+
const config = _chunkF4PUDYBYjs.resolveConfig.call(void 0, );
|
|
294
|
+
return { config, http: new (0, _chunkF4PUDYBYjs.HttpClient)(config) };
|
|
295
295
|
}
|
|
296
296
|
function stableOsUserId() {
|
|
297
297
|
try {
|
|
@@ -631,7 +631,7 @@ function collectLocalEnvInfo() {
|
|
|
631
631
|
os: `${process.platform} ${process.arch}`,
|
|
632
632
|
node_version: process.version,
|
|
633
633
|
home_dir: homeDir,
|
|
634
|
-
agent_runtime:
|
|
634
|
+
agent_runtime: _chunkYH5SFKHJjs.detectAgentRuntime.call(void 0, )
|
|
635
635
|
};
|
|
636
636
|
const env = process.env;
|
|
637
637
|
const optional = {
|
|
@@ -878,9 +878,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
|
|
|
878
878
|
}
|
|
879
879
|
function withAgentCommandContext(value) {
|
|
880
880
|
const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
881
|
-
return
|
|
881
|
+
return _chunkYH5SFKHJjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
882
882
|
...valueRecord,
|
|
883
|
-
command_context:
|
|
883
|
+
command_context: _chunkF4PUDYBYjs.resolveCliCommandContext.call(void 0, )
|
|
884
884
|
} : value;
|
|
885
885
|
}
|
|
886
886
|
function printJson(value, fields) {
|