deepline 0.3.579 → 0.3.581
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 +13 -2
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/monitors/billing/public-pricing.ts +470 -15
- package/dist/bundling-sources/shared_libs/monitors/billing/tamradar.ts +12 -0
- package/dist/bundling-sources/shared_libs/monitors/billing/types.ts +59 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-capability.ts +5 -3
- package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +42 -2
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox.ts +49 -11
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-lane.ts +13 -4
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +139 -16
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-outbox-recovery.ts +39 -2
- package/dist/bundling-sources/shared_libs/play-runtime/transient-service-error.ts +12 -0
- package/dist/bundling-sources/shared_libs/plays/sandbox-runtime-limits.ts +20 -0
- package/dist/cli/{agents-D5RZEVXQ.js → agents-UDTRMWPA.js} +81 -39
- package/dist/cli/{agents-FJTRTYCL.mjs → agents-VDQSVDSM.mjs} +51 -9
- package/dist/cli/{auth-OMYIDVXZ.mjs → auth-SRN5FXUQ.mjs} +5 -5
- package/dist/cli/auth-UYQHRHYR.js +44 -0
- package/dist/cli/{billing-EWFUDLQ7.js → billing-HGHIOFSA.js} +162 -159
- package/dist/cli/{billing-XK3LBNYS.mjs → billing-PR2SIEJM.mjs} +69 -66
- package/dist/cli/{chunk-I2TSRLOI.mjs → chunk-2MIJMDGF.mjs} +1 -1
- package/dist/cli/{chunk-TVAFWAOQ.js → chunk-2RLMHWXW.js} +3 -3
- package/dist/cli/{chunk-OSRATALX.mjs → chunk-3FMGBMT3.mjs} +1 -1
- package/dist/cli/{chunk-KIIOKQFY.mjs → chunk-3I6GA5QW.mjs} +7 -3
- package/dist/cli/{chunk-UYCBG75H.js → chunk-3LP7J63L.js} +5 -5
- package/dist/cli/{chunk-QA55PGJH.js → chunk-3S5KFHQH.js} +7 -7
- package/dist/cli/{chunk-SZIWFQI2.mjs → chunk-46EBSUZF.mjs} +3 -3
- package/dist/cli/{chunk-7HOYKXVY.js → chunk-5XVDZVCR.js} +217 -213
- package/dist/cli/{chunk-PLWZ3NB7.js → chunk-6U3THMRI.js} +5 -5
- package/dist/cli/{chunk-LRZGS6RZ.mjs → chunk-7MMEW2WU.mjs} +1 -1
- package/dist/cli/{chunk-KWQHQG53.js → chunk-7VOSQARZ.js} +6 -6
- package/dist/cli/{chunk-72TWLORR.js → chunk-A4IOPFEJ.js} +3 -3
- package/dist/cli/{chunk-S2OXA7QS.mjs → chunk-ALXIC5U5.mjs} +7 -7
- package/dist/cli/{chunk-6EVVUVU3.mjs → chunk-BDNQDWGI.mjs} +2 -2
- package/dist/cli/{chunk-HEZW2IDK.js → chunk-BQL34VOQ.js} +279 -276
- package/dist/cli/{chunk-FKXSIIR4.js → chunk-BULUFFST.js} +15 -15
- package/dist/cli/{chunk-NONMY5CY.mjs → chunk-CDIMI54H.mjs} +2 -2
- package/dist/cli/{chunk-NWZU6HL4.js → chunk-CN4MXBZ3.js} +13 -13
- package/dist/cli/{chunk-XTM6NOJ6.js → chunk-CNRPE3AE.js} +53 -53
- package/dist/cli/{chunk-LYBZLA6F.mjs → chunk-DZMQV5FL.mjs} +2 -2
- package/dist/cli/{chunk-NKUXW4WB.js → chunk-E2EGQNOS.js} +2 -2
- package/dist/cli/{chunk-BLEYV4BJ.js → chunk-E5ITZIWK.js} +21 -21
- package/dist/cli/{chunk-N6X2UKYQ.mjs → chunk-E5O4CMHZ.mjs} +2 -2
- package/dist/cli/{chunk-X6LPC3SU.mjs → chunk-EHTD65FE.mjs} +1 -1
- package/dist/cli/{chunk-E2G2DNAB.js → chunk-EP3GZAHK.js} +7 -7
- package/dist/cli/{chunk-NOMO5GPI.js → chunk-FXSDDEAR.js} +1 -1
- package/dist/cli/{chunk-AP7PIGL5.js → chunk-INRXX4SX.js} +41 -41
- package/dist/cli/{chunk-XQYBBCFI.mjs → chunk-INXRW5AF.mjs} +2 -2
- package/dist/cli/{chunk-7JMCRYXU.js → chunk-IT3F7P6O.js} +10 -10
- package/dist/cli/{chunk-LYJ2NSHD.js → chunk-J6ITN2X6.js} +13 -13
- package/dist/cli/{chunk-LCPJR3IY.js → chunk-JQK42HZQ.js} +2 -2
- package/dist/cli/{chunk-HGUFTSB5.mjs → chunk-KDITCSPN.mjs} +27 -1
- package/dist/cli/{chunk-VFIIRK7S.mjs → chunk-KLBIHDZB.mjs} +2 -2
- package/dist/cli/{chunk-Y2ND6PPW.js → chunk-KO6OLYSD.js} +48 -48
- package/dist/cli/{chunk-K2BU67UC.js → chunk-LJZESBNY.js} +2 -2
- package/dist/cli/{chunk-PGRRMVQ5.js → chunk-MOZDEYQC.js} +2 -1
- package/dist/cli/{chunk-DH736ASH.js → chunk-MSCYYFLY.js} +20 -20
- package/dist/cli/{chunk-JFS4KHA3.mjs → chunk-N5VJVVVV.mjs} +5 -5
- package/dist/cli/{chunk-G5CZDRY3.js → chunk-O5FIWG2O.js} +26 -26
- package/dist/cli/{chunk-YCWRKSLB.mjs → chunk-OVJWDFIL.mjs} +2 -2
- package/dist/cli/{chunk-WQQQP3FH.mjs → chunk-P5ZZY4RM.mjs} +4 -4
- package/dist/cli/{chunk-WWSGXX6U.js → chunk-PLGJG5FX.js} +5 -5
- package/dist/cli/{chunk-BZ4M7OFO.mjs → chunk-QXQBTTRD.mjs} +1 -1
- package/dist/cli/{chunk-F57NDSKT.mjs → chunk-RA3BWUTD.mjs} +5 -5
- package/dist/cli/{chunk-Q4VKMF3B.js → chunk-S2YKIWCD.js} +17 -17
- package/dist/cli/{chunk-DTQBQSUU.mjs → chunk-SECFDB27.mjs} +1 -0
- package/dist/cli/{chunk-6MIEJJSO.js → chunk-SNYH4QY2.js} +4 -4
- package/dist/cli/{chunk-6GON36H3.mjs → chunk-SZ76UE7C.mjs} +17 -14
- package/dist/cli/{chunk-6DMGKAWO.mjs → chunk-ULU4MEXN.mjs} +2 -2
- package/dist/cli/{chunk-ABH6PUDZ.js → chunk-VJR4CKYJ.js} +23 -23
- package/dist/cli/{chunk-TFNDOH4W.mjs → chunk-VNW454PP.mjs} +1 -1
- package/dist/cli/{chunk-7SZCJC4R.mjs → chunk-VTPMBOHZ.mjs} +2 -2
- package/dist/cli/{chunk-6NYHMXC7.mjs → chunk-VVENTTSA.mjs} +1 -1
- package/dist/cli/{chunk-OOGP737I.js → chunk-VWPM4OIC.js} +20 -20
- package/dist/cli/{chunk-27ZYRIQC.mjs → chunk-WCNJSZHC.mjs} +5 -5
- package/dist/cli/{chunk-KQAEXBVQ.mjs → chunk-WS5ZX4RB.mjs} +3 -3
- package/dist/cli/{chunk-SUHCW7U5.mjs → chunk-WVFDPC4K.mjs} +3 -3
- package/dist/cli/{chunk-44NTNNKC.js → chunk-Y36SQMSN.js} +28 -2
- package/dist/cli/{chunk-LV2LGW2Q.mjs → chunk-YTPXKG4C.mjs} +1 -1
- package/dist/cli/{chunk-3Z4TVZE7.mjs → chunk-Z3MJX3PP.mjs} +1 -1
- package/dist/cli/{chunk-LQ45LCH7.js → chunk-ZAKNDIK7.js} +9 -9
- package/dist/cli/{chunk-M4YWN5BT.mjs → chunk-ZTKLJADJ.mjs} +4 -4
- package/dist/cli/command-docs.js +4 -4
- package/dist/cli/command-docs.mjs +3 -3
- package/dist/cli/concurrent-runs-help-QWDTLZUX.js +22 -0
- package/dist/cli/{concurrent-runs-help-IQBZBTD5.mjs → concurrent-runs-help-Z27MIIH3.mjs} +6 -6
- package/dist/cli/{csv-T7TWLIGD.js → csv-4TP36F5O.js} +13 -13
- package/dist/cli/{csv-6BEOWTGM.mjs → csv-4YFTMVWQ.mjs} +4 -4
- package/dist/cli/{db-MFTUN3DF.js → db-L5EGGO72.js} +27 -27
- package/dist/cli/{db-FA5QGXZ7.mjs → db-U5KR6SYI.mjs} +6 -6
- package/dist/cli/describe-G3SUS76P.js +50 -0
- package/dist/cli/{describe-TITEQNVE.mjs → describe-LZXXSQ26.mjs} +21 -21
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-QW3L7G7J.js → executions-VZKRFDGM.js} +8 -8
- package/dist/cli/{executions-DMYJJIRB.mjs → executions-ZWEC5DDR.mjs} +6 -6
- package/dist/cli/{feedback-6JZGE7OQ.js → feedback-BTJIJCQF.js} +14 -14
- package/dist/cli/{feedback-WPSNSFRC.mjs → feedback-HXQTHXEZ.mjs} +6 -6
- package/dist/cli/{git-GO65XRM3.mjs → git-P6A45MMT.mjs} +5 -5
- package/dist/cli/git-QU673DBV.js +26 -0
- package/dist/cli/index.js +150 -150
- package/dist/cli/index.mjs +49 -49
- package/dist/cli/{integrations-EEBPETH2.mjs → integrations-4POM2CJ3.mjs} +7 -7
- package/dist/cli/{integrations-T5JPSZXN.js → integrations-VSJQBRFS.js} +29 -29
- package/dist/cli/{legacy-noops-XDNZ46IR.mjs → legacy-noops-I65MIKH2.mjs} +6 -6
- package/dist/cli/{legacy-noops-B55OMNH7.js → legacy-noops-QOJGSGVO.js} +9 -9
- package/dist/cli/{mcp-4QIUAAWS.mjs → mcp-TGY6SRAC.mjs} +4 -4
- package/dist/cli/{mcp-3YA333TQ.js → mcp-WTKBSLSD.js} +24 -24
- package/dist/cli/{monitors-BVUPS4CE.mjs → monitors-E2ENT4RY.mjs} +16 -11
- package/dist/cli/{monitors-FOS7MWZO.js → monitors-TLWVEXW6.js} +109 -104
- package/dist/cli/{org-TCMRRVFC.mjs → org-J2LGW5ZR.mjs} +6 -6
- package/dist/cli/{org-CYM7HFLN.js → org-PZPJJU7K.js} +121 -121
- package/dist/cli/{outcomes-2JSWXWQ3.mjs → outcomes-TMJDASU5.mjs} +6 -6
- package/dist/cli/{outcomes-VDJVP5YC.js → outcomes-Z6ZNBJ3U.js} +14 -14
- package/dist/cli/{play-CPP4EBYF.mjs → play-S3Z24HUS.mjs} +22 -22
- package/dist/cli/{play-U3G73VIR.js → play-ZOOC57X4.js} +355 -355
- package/dist/cli/{providers-RVMIX5ED.mjs → providers-ETD6YLFL.mjs} +6 -6
- package/dist/cli/{providers-2ZB67TK7.js → providers-O4Y2YBS7.js} +9 -9
- package/dist/cli/{quickstart-V3Y7XZ47.js → quickstart-NZALIRBP.js} +6 -6
- package/dist/cli/{quickstart-L3YO3OWZ.mjs → quickstart-QZX32Y5T.mjs} +4 -4
- package/dist/cli/{run-M2CADJ6E.js → run-5UXSWJ7N.js} +48 -48
- package/dist/cli/{run-PQ3Z2GOF.mjs → run-HCVBRE2P.mjs} +26 -26
- package/dist/cli/search-T3SLR55O.js +32 -0
- package/dist/cli/{search-QVLGI7SZ.mjs → search-Z247K76U.mjs} +7 -7
- package/dist/cli/{search-output-PN3V7MSO.mjs → search-output-XCJI3XRA.mjs} +5 -5
- package/dist/cli/{search-output-IUANVHWU.js → search-output-XFKEGUJA.js} +8 -8
- package/dist/cli/{secrets-HK25G4K2.mjs → secrets-7JZXHLRU.mjs} +6 -6
- package/dist/cli/{secrets-AOW6F67J.js → secrets-VUQLTUTM.js} +15 -15
- package/dist/cli/sessions-GHW2H7N2.js +23 -0
- package/dist/cli/{sessions-YN2OIAGR.mjs → sessions-UNGJ342N.mjs} +6 -6
- package/dist/cli/{settings-7UW5TWSM.mjs → settings-67TIT4MZ.mjs} +12 -12
- package/dist/cli/{settings-6EV2FPGF.js → settings-WG5YNHC5.js} +85 -85
- package/dist/cli/{setup-ZQPD2R5K.js → setup-IYUNW5ZP.js} +49 -49
- package/dist/cli/{setup-BG56SHKH.mjs → setup-KMAAJOZM.mjs} +9 -9
- package/dist/cli/skills-JVLCEUBF.js +37 -0
- package/dist/cli/{skills-MQV2TNUZ.mjs → skills-UVS4DODN.mjs} +7 -7
- package/dist/cli/{tools-RGI4OE5T.mjs → tools-B42JY4BX.mjs} +19 -19
- package/dist/cli/tools-ETA3BJNM.js +57 -0
- package/dist/cli/{update-SQKGHQKF.mjs → update-EBYZZ7BW.mjs} +9 -9
- package/dist/cli/update-XZEBQCEY.js +37 -0
- package/dist/cli/{views-BUKVHCRD.js → views-DOUEKLEV.js} +37 -24
- package/dist/cli/{views-734T2CXF.mjs → views-QK3AFD2D.mjs} +21 -8
- package/dist/cli/{workflow-LPJC6RHP.js → workflow-TAKT2T7A.js} +17 -17
- package/dist/cli/{workflow-JNRRBMEK.mjs → workflow-UBJPGRKF.mjs} +7 -7
- package/dist/{client-CNYctEBh.d.mts → client-CmG8MT0x.d.mts} +1 -1
- package/dist/{client-C1AubrWJ.d.ts → client-QznpkWrk.d.ts} +1 -1
- package/dist/{client-core-D6zAE46g.d.ts → client-core-CXDqfeiB.d.ts} +5 -1
- package/dist/{client-core-Bb06TCx5.d.mts → client-core-CY0jNW0e.d.mts} +5 -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 +130 -130
- package/dist/plays/bundle-play-file.mjs +1 -1
- 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-Q4O7MJU4.js +0 -44
- package/dist/cli/concurrent-runs-help-D6XH3FY5.js +0 -22
- package/dist/cli/describe-TYZ5YH3V.js +0 -50
- package/dist/cli/git-UGGRLGTQ.js +0 -26
- package/dist/cli/search-RHPPZZFG.js +0 -32
- package/dist/cli/sessions-AEGGTZ3K.js +0 -23
- package/dist/cli/skills-C6ZEZWBE.js +0 -37
- package/dist/cli/tools-PM3MC3RR.js +0 -57
- package/dist/cli/update-ZHUPF2HT.js +0 -37
- /package/dist/cli/{chunk-YGCKMI5P.js → chunk-2M3VVGMZ.js} +0 -0
- /package/dist/cli/{chunk-7I4B6V2S.mjs → chunk-VMGJIFSB.mjs} +0 -0
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkMOZDEYQCjs = require('./chunk-MOZDEYQC.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkVWPM4OICjs = require('./chunk-VWPM4OIC.js');
|
|
14
14
|
|
|
15
15
|
// src/cli/describe-options.ts
|
|
16
16
|
function addDescribeOptions(command, options = {}) {
|
|
@@ -28,7 +28,7 @@ function addDescribeOptions(command, options = {}) {
|
|
|
28
28
|
"Show only the in-play example, and explain how it takes inputs and returns outputs"
|
|
29
29
|
).option("--no-example", "Hide the run examples").option(
|
|
30
30
|
"--full-schema",
|
|
31
|
-
`Print every field: a long schema unfolded (over ${
|
|
31
|
+
`Print every field: a long schema unfolded (over ${_chunkMOZDEYQCjs.SCHEMA_LINE_LIMIT} lines), list rows, and a tool's raw response`
|
|
32
32
|
).option(
|
|
33
33
|
"--fields <names>",
|
|
34
34
|
"Show only these fields, comma-separated, plus every required input"
|
|
@@ -251,7 +251,7 @@ function projectRunDatasetCell(value) {
|
|
|
251
251
|
const logicalValue = parseSerializedDatasetValue(value);
|
|
252
252
|
if (logicalValue === null || logicalValue === void 0) return logicalValue;
|
|
253
253
|
if (typeof logicalValue === "object") {
|
|
254
|
-
return
|
|
254
|
+
return _chunkVWPM4OICjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
|
|
255
255
|
}
|
|
256
256
|
return logicalValue;
|
|
257
257
|
}
|
|
@@ -643,7 +643,7 @@ function csvText(rows, columns = []) {
|
|
|
643
643
|
rows: rows.map((row) => record(row) ? row : { value: row }),
|
|
644
644
|
columns
|
|
645
645
|
});
|
|
646
|
-
return
|
|
646
|
+
return _chunkVWPM4OICjs.csvStringFromRows.call(void 0, projection.rows, projection.columns);
|
|
647
647
|
}
|
|
648
648
|
function writeExecutionOutput(result, options, { skipReceiptFile = false } = {}) {
|
|
649
649
|
let temp;
|
|
@@ -772,7 +772,7 @@ function writeExecutionOutput(result, options, { skipReceiptFile = false } = {})
|
|
|
772
772
|
};
|
|
773
773
|
if (options.receiptOut && !skipReceiptFile) {
|
|
774
774
|
persist(options.receiptOut, jsonText(receipt));
|
|
775
|
-
|
|
775
|
+
_chunkVWPM4OICjs.markJsonOutputHandled.call(void 0, );
|
|
776
776
|
} else {
|
|
777
777
|
printReceipt(receipt, options, {
|
|
778
778
|
data: hasData ? result.data : void 0,
|
|
@@ -876,9 +876,9 @@ function annotated(schema, values) {
|
|
|
876
876
|
function shapeLines(title, data) {
|
|
877
877
|
const schema = annotated(observedSchema(data), [data]);
|
|
878
878
|
const block = (heading, fieldSchema) => {
|
|
879
|
-
const { lines, folded } =
|
|
879
|
+
const { lines, folded } = _chunkMOZDEYQCjs.fieldBlockLines.call(void 0,
|
|
880
880
|
heading,
|
|
881
|
-
|
|
881
|
+
_chunkMOZDEYQCjs.schemaFields.call(void 0, fieldSchema)
|
|
882
882
|
);
|
|
883
883
|
return [
|
|
884
884
|
...lines,
|
|
@@ -908,8 +908,8 @@ function receiptText(receipt, options, extra) {
|
|
|
908
908
|
`Cost: ${receipt.credits} ${receipt.credits === 1 ? "credit" : "credits"}${receipt.creditsPostedSoFar ? " posted so far" : ""}`
|
|
909
909
|
] : [],
|
|
910
910
|
...receipt.price ? [`Price: ${receipt.price}`] : [],
|
|
911
|
-
...
|
|
912
|
-
`${receipt.status === "dry_run" ? "Would run on" : "Ran on"}: ${
|
|
911
|
+
..._chunkMOZDEYQCjs.credentialSourceText.call(void 0, receipt.credentialSource) ? [
|
|
912
|
+
`${receipt.status === "dry_run" ? "Would run on" : "Ran on"}: ${_chunkMOZDEYQCjs.credentialSourceText.call(void 0, receipt.credentialSource)}`
|
|
913
913
|
] : []
|
|
914
914
|
]
|
|
915
915
|
];
|
|
@@ -944,7 +944,7 @@ function receiptText(receipt, options, extra) {
|
|
|
944
944
|
problems.push(
|
|
945
945
|
`Error: ${record(error) && typeof error.message === "string" ? error.message : JSON.stringify(error)}`
|
|
946
946
|
);
|
|
947
|
-
const diagnostic =
|
|
947
|
+
const diagnostic = _chunkVWPM4OICjs.formatCliFailureDiagnostic.call(void 0, error);
|
|
948
948
|
if (diagnostic) problems.push(...diagnostic.split("\n"));
|
|
949
949
|
if (record(error) && typeof error.recoveryFile === "string") {
|
|
950
950
|
problems.push(
|
|
@@ -1037,8 +1037,8 @@ function printReceipt(receipt, options, extra) {
|
|
|
1037
1037
|
const text = options.receiptJson ? `${JSON.stringify(receipt, null, 2)}
|
|
1038
1038
|
` : receiptText(receipt, options, extra);
|
|
1039
1039
|
if (options.receiptOut !== void 0) {
|
|
1040
|
-
|
|
1041
|
-
|
|
1040
|
+
_chunkVWPM4OICjs.writeRawStderr.call(void 0, text);
|
|
1041
|
+
_chunkVWPM4OICjs.markJsonOutputHandled.call(void 0, );
|
|
1042
1042
|
} else {
|
|
1043
1043
|
(dataOnStdout(options) ? process.stderr : process.stdout).write(text);
|
|
1044
1044
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkVWPM4OICjs = require('./chunk-VWPM4OIC.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/feedback-preferences.ts
|
|
6
6
|
|
|
@@ -57,7 +57,7 @@ function rejectRestrictedFeedback(options) {
|
|
|
57
57
|
const code = restriction === "off" ? "FEEDBACK_DISABLED" : "FEEDBACK_APPROVAL_REQUIRED";
|
|
58
58
|
const message = restriction === "off" ? 'Feedback is in mode "off". Do not ask the user if they want to send feedback. Use --requested only if they explicitly request it without being prompted.' : "Ask the user if they wish to send feedback. If they agree, rerun the send command with --requested. To change the setting, run deepline settings feedback --help. Agents must get user approval before turning feedback on.";
|
|
59
59
|
if (options.json) {
|
|
60
|
-
|
|
60
|
+
_chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
|
|
61
61
|
{ ok: false, code, exitCode: 2, message },
|
|
62
62
|
{ json: true }
|
|
63
63
|
);
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-HECXJBED.mjs";
|
|
4
4
|
import {
|
|
5
5
|
PLAY_SANDBOX_COMPUTE_RATE_MULTIPLIERS
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7MMEW2WU.mjs";
|
|
7
7
|
|
|
8
8
|
// src/cli/command-docs.ts
|
|
9
9
|
var PLAY_RUNTIME_PRICING_NOTE = `With included compute pricing, large (4gb) costs ${PLAY_SANDBOX_COMPUTE_RATE_MULTIPLIERS.large}\xD7 and xlarge (8gb) costs ${PLAY_SANDBOX_COMPUTE_RATE_MULTIPLIERS.xlarge}\xD7 the standard (1gb) hourly rate. Included compute applies proportionally.`;
|
|
@@ -4242,6 +4242,12 @@ The sequence:
|
|
|
4242
4242
|
[[views set-access <id> public]] lets anyone with the URL open it and
|
|
4243
4243
|
see the output of every run of its Play, including runs started outside
|
|
4244
4244
|
the view (by hand, on a schedule, or from the CLI).
|
|
4245
|
+
To embed a public view in an iframe, use
|
|
4246
|
+
[[views set-access <id> public --embed-origin https://example.com]]
|
|
4247
|
+
and use the printed Embed URL as the iframe src. List each exact HTTPS
|
|
4248
|
+
origin after --embed-origin to replace the allowlist. Use
|
|
4249
|
+
--clear-embed-origins to turn embedding off. Embeds show public output
|
|
4250
|
+
without signing visitors in or letting them start runs.
|
|
4245
4251
|
To share with specific people instead, create a signed link:
|
|
4246
4252
|
[[views links create <id> --expires 7d --email a@b.com]]. Whoever holds
|
|
4247
4253
|
it can open the view, with each run's input, until it expires or
|
|
@@ -4366,6 +4372,26 @@ Outcomes (needs the outcomes rollout):
|
|
|
4366
4372
|
[[org service-accounts set-role <service-account-id> member]] (the id is in
|
|
4367
4373
|
[[org service-accounts list]]). Until then attaching says so and changes
|
|
4368
4374
|
nothing on the outcome.
|
|
4375
|
+
A channel made an outcome's home (with --outcome, or the card in Slack)
|
|
4376
|
+
and its outcome's feed are copied into each other; a home channel
|
|
4377
|
+
connected before this copies nothing until turned on with
|
|
4378
|
+
[[agents channels set C0123456789 --sync on]]. What
|
|
4379
|
+
members of your Slack workspace post there (top-level or in a thread)
|
|
4380
|
+
goes on the feed under their linked Deepline name, or their Slack name
|
|
4381
|
+
marked "(Slack)"; guests, people from other organizations and bots are
|
|
4382
|
+
not copied. Entries, tasks and asks posted on the outcome anywhere else
|
|
4383
|
+
(Deepline, the CLI, other agents) are posted in the channel under their
|
|
4384
|
+
author's name, in the matching thread; the agent's own posts and system
|
|
4385
|
+
entries are not. Everyone who can read the outcome reads what is said in
|
|
4386
|
+
its home channel, private channels included. A message copied to the feed
|
|
4387
|
+
does not wake the agent; mention it to ask it something. Edits and
|
|
4388
|
+
deletions are not copied. Turn it off for one channel with
|
|
4389
|
+
[[agents channels set C0123456789 --sync off]] (--sync on turns it back
|
|
4390
|
+
on). Guests in the channel read everything copied there from the
|
|
4391
|
+
outcome, as they read the channel. A message from someone who is not a
|
|
4392
|
+
linked Deepline member with member access is copied marked "(Slack)"
|
|
4393
|
+
and reaches no agent: it is top-level, and its @handles mention nobody. A paused outcome still syncs. Sync needs Deepline's app to be
|
|
4394
|
+
reachable, so a local stack without a public address copies nothing.
|
|
4369
4395
|
A paused outcome still wakes its agent when something reaches it; the
|
|
4370
4396
|
agent is told the outcome is paused and decides what is worth doing.
|
|
4371
4397
|
Every outcome has an agent by default. While agents are on, an outcome
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
formatModelDescription,
|
|
4
4
|
publicToolSchemas,
|
|
5
5
|
toolMetadataJsonForDescribe
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QXQBTTRD.mjs";
|
|
7
7
|
import {
|
|
8
8
|
buildPlayDashboardUrl,
|
|
9
9
|
byokLines,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
examples,
|
|
14
14
|
schemaLines,
|
|
15
15
|
topLevelField
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-SECFDB27.mjs";
|
|
17
17
|
import {
|
|
18
18
|
DeeplineError
|
|
19
19
|
} from "./chunk-Z3A2S3QM.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkA4IOPFEJjs = require('./chunk-A4IOPFEJ.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkVWPM4OICjs = require('./chunk-VWPM4OIC.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -18,20 +18,20 @@ var _chunkOOGP737Ijs = require('./chunk-OOGP737I.js');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunk2RLMHWXWjs = require('./chunk-2RLMHWXW.js');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkSNYH4QY2js = require('./chunk-SNYH4QY2.js');
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
var _chunkLFQJW4S2js = require('./chunk-LFQJW4S2.js');
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _chunkFXSDDEARjs = require('./chunk-FXSDDEAR.js');
|
|
35
35
|
|
|
36
36
|
// src/compat.ts
|
|
37
37
|
var _crypto = require('crypto');
|
|
@@ -66,7 +66,7 @@ function shouldSkipCompatibilityCheck() {
|
|
|
66
66
|
return value === "1" || value === "true" || value === "yes";
|
|
67
67
|
}
|
|
68
68
|
function sdkCompatibilityCachePath(baseUrl, homeDir = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.HOME, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]) || _os.homedir.call(void 0, )) {
|
|
69
|
-
return _path.join.call(void 0,
|
|
69
|
+
return _path.join.call(void 0, _chunk2RLMHWXWjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
|
|
70
70
|
}
|
|
71
71
|
function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'access', _11 => _11.env, 'access', _12 => _12.HOME, 'optionalAccess', _13 => _13.trim, 'call', _14 => _14()]) || _os.homedir.call(void 0, )) {
|
|
72
72
|
return _path.join.call(void 0, homeDir, ".cache", "deepline", "sdk-compat-cache.json");
|
|
@@ -74,9 +74,9 @@ function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'acc
|
|
|
74
74
|
function compatibilityCacheKey(baseUrl, command, skillsVersion) {
|
|
75
75
|
return JSON.stringify({
|
|
76
76
|
baseUrl: baseUrl.replace(/\/$/, ""),
|
|
77
|
-
version:
|
|
78
|
-
apiContract:
|
|
79
|
-
apiMajor:
|
|
77
|
+
version: _chunkSNYH4QY2js.SDK_VERSION,
|
|
78
|
+
apiContract: _chunkSNYH4QY2js.SDK_API_CONTRACT,
|
|
79
|
+
apiMajor: _chunkSNYH4QY2js.SDK_API_MAJOR,
|
|
80
80
|
command: _optionalChain([command, 'optionalAccess', _15 => _15.trim, 'call', _16 => _16()]) || null,
|
|
81
81
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
|
|
82
82
|
});
|
|
@@ -84,8 +84,8 @@ function compatibilityCacheKey(baseUrl, command, skillsVersion) {
|
|
|
84
84
|
function legacyCompatibilityCacheKey(baseUrl, command) {
|
|
85
85
|
return JSON.stringify({
|
|
86
86
|
baseUrl: baseUrl.replace(/\/$/, ""),
|
|
87
|
-
version:
|
|
88
|
-
apiContract:
|
|
87
|
+
version: _chunkSNYH4QY2js.SDK_VERSION,
|
|
88
|
+
apiContract: _chunkSNYH4QY2js.SDK_API_CONTRACT,
|
|
89
89
|
command: _optionalChain([command, 'optionalAccess', _17 => _17.trim, 'call', _18 => _18()]) || null
|
|
90
90
|
});
|
|
91
91
|
}
|
|
@@ -110,7 +110,7 @@ function isSavedWithin(savedAt, windowMs, now) {
|
|
|
110
110
|
}
|
|
111
111
|
var UPDATE_ADVISORY_INTERVAL_MS = 24 * 60 * 60 * 1e3;
|
|
112
112
|
function claimUpdateAdvisory(baseUrl, now = Date.now()) {
|
|
113
|
-
const path = _path.join.call(void 0,
|
|
113
|
+
const path = _path.join.call(void 0, _chunk2RLMHWXWjs.sdkCliStateDirPath.call(void 0, baseUrl), "update-advisory.json");
|
|
114
114
|
try {
|
|
115
115
|
const { shownAt } = JSON.parse(_fs.readFileSync.call(void 0, path, "utf8"));
|
|
116
116
|
if (isSavedWithin(shownAt, UPDATE_ADVISORY_INTERVAL_MS, now)) return false;
|
|
@@ -195,7 +195,7 @@ async function attemptSdkCompatibility(baseUrl, options, timeoutMs) {
|
|
|
195
195
|
const timeout = setTimeout(() => controller.abort(), timeoutMs);
|
|
196
196
|
try {
|
|
197
197
|
const url = new URL("/api/v2/sdk/compat", baseUrl);
|
|
198
|
-
url.searchParams.set("version",
|
|
198
|
+
url.searchParams.set("version", _chunkSNYH4QY2js.SDK_VERSION);
|
|
199
199
|
if (_optionalChain([options, 'access', _34 => _34.command, 'optionalAccess', _35 => _35.trim, 'call', _36 => _36()])) {
|
|
200
200
|
url.searchParams.set("command", options.command.trim());
|
|
201
201
|
}
|
|
@@ -203,7 +203,7 @@ async function attemptSdkCompatibility(baseUrl, options, timeoutMs) {
|
|
|
203
203
|
url.searchParams.set("skills_version", _nullishCoalesce(options.skillsVersion, () => ( "")));
|
|
204
204
|
url.searchParams.set(
|
|
205
205
|
"skills_cli_capability",
|
|
206
|
-
String(
|
|
206
|
+
String(_chunkFXSDDEARjs.SDK_RELEASE.packageCapabilities.skillsGuidance)
|
|
207
207
|
);
|
|
208
208
|
}
|
|
209
209
|
if (options.catalog) {
|
|
@@ -215,14 +215,14 @@ async function attemptSdkCompatibility(baseUrl, options, timeoutMs) {
|
|
|
215
215
|
const response = await fetch(url, {
|
|
216
216
|
method: "GET",
|
|
217
217
|
headers: {
|
|
218
|
-
...
|
|
219
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
220
|
-
"X-Deepline-SDK-Version":
|
|
221
|
-
"X-Deepline-API-Major": String(
|
|
222
|
-
"X-Deepline-API-Contract":
|
|
218
|
+
..._chunkSNYH4QY2js.deploymentProtectionHeaders.call(void 0, ),
|
|
219
|
+
"User-Agent": `deepline-ts-sdk/${_chunkSNYH4QY2js.SDK_VERSION}`,
|
|
220
|
+
"X-Deepline-SDK-Version": _chunkSNYH4QY2js.SDK_VERSION,
|
|
221
|
+
"X-Deepline-API-Major": String(_chunkSNYH4QY2js.SDK_API_MAJOR),
|
|
222
|
+
"X-Deepline-API-Contract": _chunkSNYH4QY2js.SDK_API_CONTRACT,
|
|
223
223
|
"X-Deepline-CLI-Update-Preferences": "1",
|
|
224
224
|
"X-Deepline-CLI-Auto-Update-Capability": SDK_CLI_AUTO_UPDATE_CAPABILITY,
|
|
225
|
-
...options.catalog ? { Authorization: `Bearer ${
|
|
225
|
+
...options.catalog ? { Authorization: `Bearer ${_chunk2RLMHWXWjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {},
|
|
226
226
|
..._optionalChain([options, 'access', _37 => _37.catalog, 'optionalAccess', _38 => _38.cliInvocationId]) ? { "X-Deepline-CLI-Invocation-ID": options.catalog.cliInvocationId } : {}
|
|
227
227
|
},
|
|
228
228
|
signal: controller.signal
|
|
@@ -238,7 +238,7 @@ async function attemptSdkCompatibility(baseUrl, options, timeoutMs) {
|
|
|
238
238
|
if (!raw || typeof raw.ok !== "boolean" || typeof raw.status !== "string") {
|
|
239
239
|
return {
|
|
240
240
|
ok: false,
|
|
241
|
-
transient:
|
|
241
|
+
transient: _chunk2RLMHWXWjs.TRANSIENT_HTTP_STATUSES.has(response.status),
|
|
242
242
|
error: new Error(
|
|
243
243
|
`SDK compatibility endpoint returned a non-policy response (HTTP ${response.status}).`
|
|
244
244
|
)
|
|
@@ -309,8 +309,8 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
309
309
|
}
|
|
310
310
|
async function requireSdkCompatibility(baseUrl, options = {}) {
|
|
311
311
|
if (shouldSkipCompatibilityCheck()) return null;
|
|
312
|
-
const maxRetries = _nullishCoalesce(options.maxRetries, () => (
|
|
313
|
-
const backoffMs = _nullishCoalesce(options.backoffMs, () => (
|
|
312
|
+
const maxRetries = _nullishCoalesce(options.maxRetries, () => ( _chunk2RLMHWXWjs.DEFAULT_MAX_RETRIES));
|
|
313
|
+
const backoffMs = _nullishCoalesce(options.backoffMs, () => ( _chunk2RLMHWXWjs.defaultRetryBackoffMs));
|
|
314
314
|
let attempt;
|
|
315
315
|
let attempts = 0;
|
|
316
316
|
for (; ; ) {
|
|
@@ -318,7 +318,7 @@ async function requireSdkCompatibility(baseUrl, options = {}) {
|
|
|
318
318
|
attempt = await attemptSdkCompatibility(
|
|
319
319
|
baseUrl,
|
|
320
320
|
options,
|
|
321
|
-
_nullishCoalesce(options.attemptTimeoutMs, () => (
|
|
321
|
+
_nullishCoalesce(options.attemptTimeoutMs, () => ( _chunk2RLMHWXWjs.DEFAULT_TIMEOUT))
|
|
322
322
|
);
|
|
323
323
|
if (attempt.ok) return acceptSdkCompatibility(baseUrl, options, attempt);
|
|
324
324
|
if (!attempt.transient || attempts > maxRetries) break;
|
|
@@ -467,7 +467,7 @@ function skillsSourceUrl(baseUrl) {
|
|
|
467
467
|
function buildSkillsAddArgs(baseUrl, skillName, options = {}) {
|
|
468
468
|
const skillNames = Array.isArray(skillName) ? skillName : [skillName];
|
|
469
469
|
const [firstSkillName, ...extraSkillNames] = skillNames;
|
|
470
|
-
const agents = _nullishCoalesce(options.agents, () => (
|
|
470
|
+
const agents = _nullishCoalesce(options.agents, () => ( _chunk2RLMHWXWjs.DEFAULT_SKILL_AGENTS));
|
|
471
471
|
const values = {
|
|
472
472
|
skills_index_url: skillsIndexUrl(baseUrl),
|
|
473
473
|
skills_source_url: skillsSourceUrl(baseUrl),
|
|
@@ -598,25 +598,25 @@ var CHECK_TIMEOUT_MS2 = 3e3;
|
|
|
598
598
|
var INSTALLER_PROBE_TIMEOUT_MS = 1e3;
|
|
599
599
|
var PUBLISHED_VERIFICATION_RETRY_MS = 5 * 6e4;
|
|
600
600
|
function shouldSkipSkillsSync() {
|
|
601
|
-
if (
|
|
601
|
+
if (_chunkSNYH4QY2js.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
|
|
602
602
|
return true;
|
|
603
603
|
}
|
|
604
604
|
const value = _optionalChain([process, 'access', _62 => _62.env, 'access', _63 => _63.DEEPLINE_SKIP_SKILLS_SYNC, 'optionalAccess', _64 => _64.trim, 'call', _65 => _65(), 'access', _66 => _66.toLowerCase, 'call', _67 => _67()]);
|
|
605
605
|
return value === "1" || value === "true" || value === "yes" || value === "on" || !isCliSkillsSyncEnabled();
|
|
606
606
|
}
|
|
607
607
|
function unavailableSkillsNoticePath(baseUrl) {
|
|
608
|
-
return _path.join.call(void 0,
|
|
608
|
+
return _path.join.call(void 0, _chunk2RLMHWXWjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
|
|
609
609
|
}
|
|
610
610
|
var SKILLS_SYNC_IN_PROGRESS_TTL_MS = 10 * 60 * 1e3;
|
|
611
611
|
var SKILLS_SYNC_IN_PROGRESS_PID_CAP_MS = 6 * 60 * 60 * 1e3;
|
|
612
|
-
var agentLeaseSegment =
|
|
612
|
+
var agentLeaseSegment = _chunk2RLMHWXWjs.skillsAgentPathSegment;
|
|
613
613
|
function sortedLeaseAgents(agents) {
|
|
614
|
-
const expanded = agents.includes("*") ? [...agents, ...
|
|
614
|
+
const expanded = agents.includes("*") ? [...agents, ..._chunk2RLMHWXWjs.KNOWN_SKILL_AGENTS] : agents;
|
|
615
615
|
return [...new Set(expanded)].sort((a, b) => a.localeCompare(b));
|
|
616
616
|
}
|
|
617
617
|
function inProgressSkillsSyncPath(baseUrl, agent) {
|
|
618
618
|
return _path.join.call(void 0,
|
|
619
|
-
|
|
619
|
+
_chunk2RLMHWXWjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
620
620
|
`skills-sync-in-progress-${agentLeaseSegment(agent)}`
|
|
621
621
|
);
|
|
622
622
|
}
|
|
@@ -775,7 +775,7 @@ var SkillsStateUnavailableError = class extends Error {
|
|
|
775
775
|
constructor(baseUrl, error) {
|
|
776
776
|
const detail = error instanceof Error ? error.message : String(error);
|
|
777
777
|
super(
|
|
778
|
-
`Could not save skills state in ${
|
|
778
|
+
`Could not save skills state in ${_chunk2RLMHWXWjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
|
|
779
779
|
);
|
|
780
780
|
this.name = "SkillsStateUnavailableError";
|
|
781
781
|
}
|
|
@@ -860,7 +860,7 @@ function skillsInstallLeasePath(baseUrl, agents) {
|
|
|
860
860
|
}
|
|
861
861
|
function deferredSkillsNoticePath(baseUrl, agents) {
|
|
862
862
|
return _path.join.call(void 0,
|
|
863
|
-
|
|
863
|
+
_chunk2RLMHWXWjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
864
864
|
`skills-sync-notice-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}`
|
|
865
865
|
);
|
|
866
866
|
}
|
|
@@ -894,8 +894,8 @@ function flushDeferredSkillsNotices(baseUrl, agents) {
|
|
|
894
894
|
if (text.trim()) writeSdkSkillsStatusLine(text.trimEnd());
|
|
895
895
|
}
|
|
896
896
|
function flushDeferredSkillsSyncNotices(baseUrl) {
|
|
897
|
-
if (shouldSkipSkillsSync() ||
|
|
898
|
-
const agents =
|
|
897
|
+
if (shouldSkipSkillsSync() || _chunk2RLMHWXWjs.hasActivePluginSkills.call(void 0, )) return;
|
|
898
|
+
const agents = _chunk2RLMHWXWjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
899
899
|
if (agents.length === 0) return;
|
|
900
900
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
901
901
|
}
|
|
@@ -918,7 +918,7 @@ function spawnDetachedSkillsSyncChild(argv, onSpawnError, sidecarPath) {
|
|
|
918
918
|
}
|
|
919
919
|
function failedSkillsSyncPath(baseUrl, agents) {
|
|
920
920
|
return _path.join.call(void 0,
|
|
921
|
-
|
|
921
|
+
_chunk2RLMHWXWjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
922
922
|
`skills-sync-failed-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}-version`
|
|
923
923
|
);
|
|
924
924
|
}
|
|
@@ -947,7 +947,7 @@ function writeUnavailableSkillsNotice(baseUrl, remoteVersion, skillNames, reason
|
|
|
947
947
|
if (hasMarkedSkillsSyncVersion(path, remoteVersion)) return;
|
|
948
948
|
writeMarkedSkillsSyncVersion(path, remoteVersion);
|
|
949
949
|
const probes = reason === "no-installer" ? _nullishCoalesce(knownProbes, () => ( probeInstallers())) : null;
|
|
950
|
-
const manualCommand = _optionalChain([probes, 'optionalAccess', _71 => _71.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames,
|
|
950
|
+
const manualCommand = _optionalChain([probes, 'optionalAccess', _71 => _71.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunk2RLMHWXWjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
|
|
951
951
|
const explanation = reason === "unsupported-agent" ? "the detected agent has no automatic skills sync target. Automatic sync was skipped." : _optionalChain([probes, 'optionalAccess', _72 => _72.bunx]) === "missing" && probes.npx === "missing" ? "neither `bunx` nor `npx` was found on PATH. Make one available." : `installer version check failed for ${Object.entries(_nullishCoalesce(probes, () => ( {}))).filter(([, result]) => result === "failed").map(([command]) => `\`${command}\``).join(" and ")}. Check those commands with --version.`;
|
|
952
952
|
notice(
|
|
953
953
|
`Deepline agent skills are out of date, but ${explanation} To install manually, run:
|
|
@@ -1035,7 +1035,7 @@ function buildSdkSkillNames(v1SkillNames2) {
|
|
|
1035
1035
|
return sortedUniqueSkillNames(v1SkillNames2);
|
|
1036
1036
|
}
|
|
1037
1037
|
function isDefaultAgentSet(agents) {
|
|
1038
|
-
return agents.length ===
|
|
1038
|
+
return agents.length === _chunk2RLMHWXWjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunk2RLMHWXWjs.DEFAULT_SKILL_AGENTS[index]);
|
|
1039
1039
|
}
|
|
1040
1040
|
function safeSkillFilePath(value) {
|
|
1041
1041
|
if (typeof value !== "string" || !value) return false;
|
|
@@ -1192,10 +1192,10 @@ async function fetchSkillsUpdate(baseUrl, localVersion) {
|
|
|
1192
1192
|
method: "POST",
|
|
1193
1193
|
headers: { "Content-Type": "application/json" },
|
|
1194
1194
|
body: JSON.stringify({
|
|
1195
|
-
sdk_cli: { version:
|
|
1195
|
+
sdk_cli: { version: _chunkSNYH4QY2js.SDK_VERSION },
|
|
1196
1196
|
skills: {
|
|
1197
1197
|
version: localVersion,
|
|
1198
|
-
capability:
|
|
1198
|
+
capability: _chunkFXSDDEARjs.SDK_RELEASE.packageCapabilities.skillsGuidance
|
|
1199
1199
|
}
|
|
1200
1200
|
}),
|
|
1201
1201
|
signal: controller.signal
|
|
@@ -1234,7 +1234,7 @@ function probeInstallers(timeoutMs) {
|
|
|
1234
1234
|
}
|
|
1235
1235
|
function noInstallerProbePath(baseUrl) {
|
|
1236
1236
|
return _path.join.call(void 0,
|
|
1237
|
-
|
|
1237
|
+
_chunk2RLMHWXWjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1238
1238
|
"skills-sync-no-installer-unknown.json"
|
|
1239
1239
|
);
|
|
1240
1240
|
}
|
|
@@ -1314,7 +1314,7 @@ function temporarySkillsSyncSkipCommand() {
|
|
|
1314
1314
|
function resolveSkillsInstallSpawn(install, platform = process.platform) {
|
|
1315
1315
|
return resolveShellSpawn(install.command, install.args, platform);
|
|
1316
1316
|
}
|
|
1317
|
-
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents =
|
|
1317
|
+
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunk2RLMHWXWjs.DEFAULT_SKILL_AGENTS, knownProbes) {
|
|
1318
1318
|
const commands = [];
|
|
1319
1319
|
const probes = _nullishCoalesce(knownProbes, () => ( probeInstallers()));
|
|
1320
1320
|
if (probes.bunx === "available") {
|
|
@@ -1458,7 +1458,7 @@ function runLegacySkillsCleanup(agents) {
|
|
|
1458
1458
|
}
|
|
1459
1459
|
}
|
|
1460
1460
|
function writeSdkSkillsStatusLine(line) {
|
|
1461
|
-
const progress =
|
|
1461
|
+
const progress = _chunkA4IOPFEJjs.getActiveCliProgress.call(void 0, );
|
|
1462
1462
|
if (progress) {
|
|
1463
1463
|
progress.writeLine(line);
|
|
1464
1464
|
return;
|
|
@@ -1469,11 +1469,11 @@ function writeSdkSkillsStatusLine(line) {
|
|
|
1469
1469
|
async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
1470
1470
|
const skip = shouldSkipSkillsSync();
|
|
1471
1471
|
if (skip && !options.claim) return;
|
|
1472
|
-
const usingPluginSkills =
|
|
1472
|
+
const usingPluginSkills = _chunk2RLMHWXWjs.hasActivePluginSkills.call(void 0, );
|
|
1473
1473
|
if (usingPluginSkills) {
|
|
1474
1474
|
return;
|
|
1475
1475
|
}
|
|
1476
|
-
const agents =
|
|
1476
|
+
const agents = _chunk2RLMHWXWjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
1477
1477
|
if (options.mode === "detached" && agents.length > 0) {
|
|
1478
1478
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
1479
1479
|
}
|
|
@@ -1510,7 +1510,7 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
|
1510
1510
|
return;
|
|
1511
1511
|
}
|
|
1512
1512
|
try {
|
|
1513
|
-
const localVersion =
|
|
1513
|
+
const localVersion = _chunk2RLMHWXWjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
1514
1514
|
const update = options.update === void 0 ? claimedVersion ? { needsUpdate: true, remoteVersion: claimedVersion } : await fetchSkillsUpdate(baseUrl, localVersion) : options.update ? {
|
|
1515
1515
|
needsUpdate: options.update.needs_update,
|
|
1516
1516
|
remoteVersion: options.update.remote.version
|
|
@@ -1632,7 +1632,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
|
|
|
1632
1632
|
update.remoteVersion,
|
|
1633
1633
|
agents
|
|
1634
1634
|
);
|
|
1635
|
-
void
|
|
1635
|
+
void _chunkVWPM4OICjs.maybeReportAutomaticSkillsSyncFailure.call(void 0, {
|
|
1636
1636
|
baseUrl,
|
|
1637
1637
|
remoteSkillsVersion: update.remoteVersion,
|
|
1638
1638
|
agents,
|
|
@@ -1663,7 +1663,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
|
|
|
1663
1663
|
notice(
|
|
1664
1664
|
publishedFailure ? `Deepline could not verify the published skills: ${detail}. The local version remains stale; it will retry automatically on a later command.` : `Deepline agent-skills refresh could not verify the five installed targets: ${detail}. The local version remains stale. After fixing the install, remove ${failedSkillsSyncPath(baseUrl, agents)} to retry this version automatically.`
|
|
1665
1665
|
);
|
|
1666
|
-
void
|
|
1666
|
+
void _chunkVWPM4OICjs.maybeReportAutomaticSkillsSyncFailure.call(void 0, {
|
|
1667
1667
|
baseUrl,
|
|
1668
1668
|
remoteSkillsVersion: update.remoteVersion,
|
|
1669
1669
|
agents,
|
|
@@ -1676,7 +1676,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
|
|
|
1676
1676
|
}
|
|
1677
1677
|
}
|
|
1678
1678
|
runLegacySkillsCleanup(agents);
|
|
1679
|
-
if (!
|
|
1679
|
+
if (!_chunk2RLMHWXWjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
|
|
1680
1680
|
notice(
|
|
1681
1681
|
"Deepline agent skills installed, but the local skills version could not be recorded. A later command will retry the refresh."
|
|
1682
1682
|
);
|
|
@@ -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(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkKO6OLYSDjs = require('./chunk-KO6OLYSD.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/npm-script-policy.ts
|
|
6
6
|
var _child_process = require('child_process');
|
|
@@ -13,7 +13,7 @@ function npmSupportsAllowScripts(version) {
|
|
|
13
13
|
}
|
|
14
14
|
function readNpmVersion(env) {
|
|
15
15
|
try {
|
|
16
|
-
const plan =
|
|
16
|
+
const plan = _chunkKO6OLYSDjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
|
|
17
17
|
const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
|
|
18
18
|
windowsHide: true,
|
|
19
19
|
encoding: "utf8",
|
|
@@ -1014,4 +1014,5 @@ function describedPlay(play) {
|
|
|
1014
1014
|
|
|
1015
1015
|
|
|
1016
1016
|
|
|
1017
|
-
|
|
1017
|
+
|
|
1018
|
+
exports.credentialSourceText = credentialSourceText; 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.discoveryAuthLines = discoveryAuthLines; exports.describedLines = describedLines; exports.topLevelField = topLevelField; exports.describedJson = describedJson; exports.buildDashboardUrl = buildDashboardUrl; exports.buildPlayDashboardUrl = buildPlayDashboardUrl; exports.buildPlayRunUrl = buildPlayRunUrl; exports.describedPlay = describedPlay;
|