deepline 0.3.498 → 0.3.499
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/release.ts +1 -1
- package/dist/cli/auth-32FRISRT.js +43 -0
- package/dist/cli/{auth-TNYYAPIX.mjs → auth-TECJ27G3.mjs} +5 -5
- package/dist/cli/{billing-G6QBOZAE.mjs → billing-PMKO73VG.mjs} +6 -6
- package/dist/cli/{billing-MP43H3ZK.js → billing-ULZGAED6.js} +79 -79
- package/dist/cli/{chunk-VFYKFPZD.js → chunk-2PKZ3RUU.js} +16 -16
- package/dist/cli/{chunk-EAQXRAVF.js → chunk-2RZHMCDL.js} +4 -4
- package/dist/cli/{chunk-3XNYGMPZ.mjs → chunk-3GP52OHV.mjs} +10 -10
- package/dist/cli/{chunk-LGE6ZOEO.mjs → chunk-43ZERPGR.mjs} +1 -1
- package/dist/cli/{chunk-H7YR4EYF.mjs → chunk-56JE475N.mjs} +9 -5
- package/dist/cli/{chunk-FPRS3FP4.js → chunk-57LW4TGY.js} +26 -26
- package/dist/cli/{chunk-VETP54NO.mjs → chunk-5IDORX4E.mjs} +4 -4
- package/dist/cli/{chunk-TPQFCUPV.js → chunk-7OQZZHZ4.js} +15 -11
- package/dist/cli/{chunk-RZA6HSXX.mjs → chunk-7UC2UZYW.mjs} +6 -6
- package/dist/cli/{chunk-VUNAIAMX.js → chunk-7WUMIRBV.js} +5 -5
- package/dist/cli/{chunk-SR3PRGWB.mjs → chunk-A2VCFBZN.mjs} +1 -1
- package/dist/cli/{chunk-PKTJN6PF.js → chunk-AGZRRHSB.js} +3 -3
- package/dist/cli/{chunk-KRR2Z2FH.js → chunk-AKLI4XSG.js} +2 -2
- package/dist/cli/{chunk-RZO743TC.mjs → chunk-BBFWIYAF.mjs} +2 -2
- package/dist/cli/{chunk-ELZYHPE7.mjs → chunk-C2V5U6HO.mjs} +5 -5
- package/dist/cli/{chunk-XNYAIV4E.js → chunk-FG5OZ5FB.js} +8 -8
- package/dist/cli/{chunk-IBCROFZW.js → chunk-G7BB2VOC.js} +41 -41
- package/dist/cli/{chunk-4RSOYJ67.mjs → chunk-IGCSKXGK.mjs} +3 -3
- package/dist/cli/{chunk-BQIEYWGQ.js → chunk-JIZHGOZ5.js} +94 -94
- package/dist/cli/{chunk-MRHMC33S.mjs → chunk-JM52ATUS.mjs} +1 -1
- package/dist/cli/{chunk-KLA4IUOI.mjs → chunk-JQHJKARU.mjs} +28 -22
- package/dist/cli/{chunk-4TVN2676.mjs → chunk-JUQESEJX.mjs} +2 -2
- package/dist/cli/{chunk-PHBJ2VDS.js → chunk-K54BUQSK.js} +7 -7
- package/dist/cli/{chunk-QUIJUNXX.js → chunk-KLQ5CR77.js} +30 -24
- package/dist/cli/{chunk-OFNXUDEC.mjs → chunk-KOD45UP5.mjs} +5 -5
- package/dist/cli/{chunk-KV4RNW2H.mjs → chunk-KZJKRU24.mjs} +4 -4
- package/dist/cli/{chunk-XUTIBRKF.js → chunk-L6C7C7IJ.js} +1 -1
- package/dist/cli/{chunk-QDNP6KOF.js → chunk-L7O7AFSF.js} +21 -21
- package/dist/cli/{chunk-DB7SJKGI.js → chunk-LUNXREUI.js} +6 -6
- package/dist/cli/{chunk-IE6FYMUS.mjs → chunk-MQ5YPD7K.mjs} +1 -1
- package/dist/cli/{chunk-C7BH7T3T.mjs → chunk-OWHQ4OG5.mjs} +2 -2
- package/dist/cli/{chunk-O4H53SJ4.mjs → chunk-P3MGNLZF.mjs} +2 -2
- package/dist/cli/{chunk-OL2QEEXF.js → chunk-PE3UHMMZ.js} +5 -5
- package/dist/cli/{chunk-EHOC6NCN.mjs → chunk-PSYGSXDS.mjs} +1 -1
- package/dist/cli/{chunk-UUFZFJL4.mjs → chunk-QXI2W7YY.mjs} +4 -4
- package/dist/cli/{chunk-IUCAVYXR.js → chunk-SLWCXGKP.js} +16 -16
- package/dist/cli/{chunk-2HCZHIMT.mjs → chunk-TFFJ2PRN.mjs} +5 -3
- package/dist/cli/{chunk-YCGVVUGX.js → chunk-TUDYBF4Y.js} +9 -9
- package/dist/cli/{chunk-2QS3MCJ2.mjs → chunk-UMPCQ4EE.mjs} +2 -2
- package/dist/cli/{chunk-TLG75Q77.js → chunk-UOQUCFAK.js} +53 -53
- package/dist/cli/{chunk-ZEYB6QPW.mjs → chunk-WEVIUQGZ.mjs} +2 -2
- package/dist/cli/{chunk-XGUGFGCF.js → chunk-WSOM3TY6.js} +3 -3
- package/dist/cli/{chunk-UA2GU7NB.js → chunk-XSUQAUG4.js} +7 -7
- package/dist/cli/{chunk-6JVJZ7YG.mjs → chunk-YAW7ET4P.mjs} +1 -1
- package/dist/cli/{chunk-N3T3L3WW.js → chunk-YPTZJ7LO.js} +5 -3
- package/dist/cli/{chunk-QERMP4TW.js → chunk-YRQWGWRJ.js} +2 -2
- package/dist/cli/{chunk-TDUTNTA5.js → chunk-Z2MO7FZG.js} +53 -53
- package/dist/cli/{chunk-PAHFVOFZ.mjs → chunk-ZVAD65CF.mjs} +1 -1
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-LBUOESU2.mjs → csv-ACO5YC46.mjs} +4 -4
- package/dist/cli/{csv-SCXUWRVV.js → csv-VGSQ3JYE.js} +13 -13
- package/dist/cli/{db-3SI2OXIV.mjs → db-CXNZOXGM.mjs} +6 -6
- package/dist/cli/{db-CC2D2GSL.js → db-QOUPHFFN.js} +27 -27
- package/dist/cli/describe-DEXYQMBO.js +50 -0
- package/dist/cli/{describe-ZK5CMT4M.mjs → describe-J4O5GCJS.mjs} +17 -17
- package/dist/cli/{executions-DVPHIG2I.mjs → executions-SJETRLXW.mjs} +6 -6
- package/dist/cli/{executions-YKYQIRPP.js → executions-YIECH2CL.js} +8 -8
- package/dist/cli/{feedback-BVLYZ3BM.js → feedback-5BRCNERV.js} +8 -8
- package/dist/cli/{feedback-UQRMPU2S.mjs → feedback-GSAFFMF6.mjs} +4 -4
- package/dist/cli/git-RDKLITUC.js +25 -0
- package/dist/cli/{git-WTMZ66HP.mjs → git-SF5XIGLU.mjs} +5 -5
- package/dist/cli/index.js +141 -141
- package/dist/cli/index.mjs +41 -41
- package/dist/cli/{legacy-noops-TVJ5WOBD.js → legacy-noops-5TBT4XC6.js} +8 -8
- package/dist/cli/{legacy-noops-RUQT6DB3.mjs → legacy-noops-TZA3CALE.mjs} +5 -5
- package/dist/cli/{monitors-ZQBZMFUL.mjs → monitors-XAYWJNSV.mjs} +7 -7
- package/dist/cli/{monitors-UYYJBO6U.js → monitors-XNB5YNC3.js} +95 -95
- package/dist/cli/{org-4TZED2IF.js → org-2UYWJXG7.js} +72 -72
- package/dist/cli/{org-UACQHFY6.mjs → org-S5VZL5KZ.mjs} +6 -6
- package/dist/cli/{pages-R2KSZCYK.mjs → pages-NGVJO7PA.mjs} +6 -6
- package/dist/cli/{pages-HDYYGZOT.js → pages-ZQRRTZIT.js} +18 -18
- package/dist/cli/{play-DQ4AZ2NV.mjs → play-3JNERHSC.mjs} +37 -27
- package/dist/cli/{play-ZMYWHAV3.js → play-P3OYQ7JV.js} +406 -396
- package/dist/cli/{providers-X53WCX46.mjs → providers-27O6BOAP.mjs} +6 -6
- package/dist/cli/{providers-I7GXTYG4.js → providers-2FFGAPUR.js} +9 -9
- package/dist/cli/{quickstart-GKW46HUR.js → quickstart-5G2UPKJV.js} +6 -6
- package/dist/cli/{quickstart-DKVF32MY.mjs → quickstart-B2EXIAU6.mjs} +4 -4
- package/dist/cli/{run-VLX775L5.js → run-2TGD7FAL.js} +82 -43
- package/dist/cli/{run-A36EBVLD.mjs → run-3QFXYV3Z.mjs} +69 -30
- package/dist/cli/{search-QHO4AYS2.mjs → search-GXEEOMVD.mjs} +7 -7
- package/dist/cli/search-YKTYDBCN.js +32 -0
- package/dist/cli/{search-output-YF5HCWKU.mjs → search-output-DMIJQTAA.mjs} +4 -4
- package/dist/cli/{search-output-P7GWSTNO.js → search-output-I4RZPHU6.js} +6 -6
- package/dist/cli/{secrets-XTHBAX26.mjs → secrets-DQI5YCS6.mjs} +6 -6
- package/dist/cli/{secrets-3X56AV2F.js → secrets-MJMNRXZX.js} +15 -15
- package/dist/cli/{sessions-4ZVZABXN.mjs → sessions-HAUN3VYE.mjs} +5 -5
- package/dist/cli/{sessions-AJUQJR4G.js → sessions-QS74ZTRH.js} +6 -6
- package/dist/cli/{settings-AX5JF47R.mjs → settings-E64HIUXW.mjs} +11 -11
- package/dist/cli/{settings-R7RQC5Z3.js → settings-VQBOS6VU.js} +78 -78
- package/dist/cli/{setup-QB62E6K5.js → setup-KRW3JCJE.js} +49 -49
- package/dist/cli/{setup-DTXQODYK.mjs → setup-NRUG42F2.mjs} +9 -9
- package/dist/cli/{skills-N6OY5ABC.mjs → skills-AHLZRTKZ.mjs} +7 -7
- package/dist/cli/skills-PGVIJK6Q.js +36 -0
- package/dist/cli/{tools-3T4GKGS4.mjs → tools-INRRIWOU.mjs} +16 -16
- package/dist/cli/tools-IXXN2RE4.js +57 -0
- package/dist/cli/{update-QDT4SFW3.mjs → update-ETOWEJ7D.mjs} +9 -9
- package/dist/cli/update-QW4RV2UX.js +34 -0
- package/dist/cli/{workflow-Q7LQETNW.mjs → workflow-JT2DOSCJ.mjs} +7 -7
- package/dist/cli/{workflow-FW3FPOWU.js → workflow-RUAYQK4D.js} +17 -17
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +100 -100
- 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.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-NYYFDCMT.js +0 -43
- package/dist/cli/describe-DAUL3SDQ.js +0 -50
- package/dist/cli/git-MFIJCRX6.js +0 -25
- package/dist/cli/search-STXZIGVB.js +0 -32
- package/dist/cli/skills-IEP5L5MQ.js +0 -36
- package/dist/cli/tools-JWBXEZKY.js +0 -57
- package/dist/cli/update-QME3C2VP.js +0 -34
|
@@ -5,8 +5,10 @@ import {
|
|
|
5
5
|
} from "./chunk-SAW3FBCA.mjs";
|
|
6
6
|
import {
|
|
7
7
|
csvSafeJsonString,
|
|
8
|
-
csvStringFromRows
|
|
9
|
-
|
|
8
|
+
csvStringFromRows,
|
|
9
|
+
markJsonOutputHandled,
|
|
10
|
+
writeRawStderr
|
|
11
|
+
} from "./chunk-56JE475N.mjs";
|
|
10
12
|
|
|
11
13
|
// src/cli/describe-options.ts
|
|
12
14
|
function addDescribeOptions(command, options = {}) {
|
|
@@ -533,11 +535,8 @@ function preflightExecutionOutput(options) {
|
|
|
533
535
|
},
|
|
534
536
|
ran: false
|
|
535
537
|
},
|
|
536
|
-
|
|
537
|
-
{
|
|
538
|
-
receiptJson: options.receiptJson,
|
|
539
|
-
...dataOnStdout(options) ? { jsonOut: "-" } : {}
|
|
540
|
-
}
|
|
538
|
+
options,
|
|
539
|
+
{ skipReceiptFile: true }
|
|
541
540
|
);
|
|
542
541
|
return false;
|
|
543
542
|
}
|
|
@@ -644,7 +643,7 @@ function csvText(rows, columns = []) {
|
|
|
644
643
|
});
|
|
645
644
|
return csvStringFromRows(projection.rows, projection.columns);
|
|
646
645
|
}
|
|
647
|
-
function writeExecutionOutput(result, options) {
|
|
646
|
+
function writeExecutionOutput(result, options, { skipReceiptFile = false } = {}) {
|
|
648
647
|
let temp;
|
|
649
648
|
const temporary = (name) => join(temp ??= mkdtempSync(join(tmpdir(), "deepline-output-")), name);
|
|
650
649
|
const jsonText = (value) => `${JSON.stringify(value, null, 2)}
|
|
@@ -767,13 +766,16 @@ function writeExecutionOutput(result, options) {
|
|
|
767
766
|
error: result.error ?? null,
|
|
768
767
|
next: result.next ?? {}
|
|
769
768
|
};
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
769
|
+
if (options.receiptOut && !skipReceiptFile) {
|
|
770
|
+
persist(options.receiptOut, jsonText(receipt));
|
|
771
|
+
markJsonOutputHandled();
|
|
772
|
+
} else {
|
|
773
|
+
printReceipt(receipt, options, {
|
|
774
|
+
data: hasData ? result.data : void 0,
|
|
775
|
+
ran: result.ran,
|
|
776
|
+
declared: result.declared
|
|
777
|
+
});
|
|
778
|
+
}
|
|
777
779
|
if (stdoutData !== void 0) process.stdout.write(stdoutData);
|
|
778
780
|
} catch (error) {
|
|
779
781
|
let recoveryFile = null;
|
|
@@ -781,6 +783,7 @@ function writeExecutionOutput(result, options) {
|
|
|
781
783
|
if (result.data !== void 0) recoveryFile = ensureJson();
|
|
782
784
|
} catch {
|
|
783
785
|
}
|
|
786
|
+
const retryWarning = "Do not re-execute paid work.";
|
|
784
787
|
const failure = {
|
|
785
788
|
status: "output_failed",
|
|
786
789
|
id: result.id,
|
|
@@ -793,16 +796,16 @@ function writeExecutionOutput(result, options) {
|
|
|
793
796
|
schemaFile: null,
|
|
794
797
|
logsFile: options.logsFile ?? null,
|
|
795
798
|
collections: [],
|
|
796
|
-
warnings: [],
|
|
799
|
+
warnings: options.receiptOut !== void 0 && result.id ? [retryWarning] : [],
|
|
797
800
|
error: {
|
|
798
801
|
message: error instanceof Error ? error.message : String(error),
|
|
799
802
|
recoveryFile
|
|
800
803
|
},
|
|
801
804
|
next: result.next ?? {}
|
|
802
805
|
};
|
|
803
|
-
printReceipt(failure, options, {
|
|
806
|
+
printReceipt(failure, options, { ran: result.ran });
|
|
804
807
|
throw new ExecutionOutputError(
|
|
805
|
-
`Output failed${result.id ? ` for ${result.id}` : ""}: ${error instanceof Error ? error.message : String(error)}.
|
|
808
|
+
`Output failed${result.id ? ` for ${result.id}` : ""}: ${error instanceof Error ? error.message : String(error)}. ${retryWarning}`,
|
|
806
809
|
{ cause: error }
|
|
807
810
|
);
|
|
808
811
|
}
|
|
@@ -951,9 +954,6 @@ function receiptText(receipt, options, extra) {
|
|
|
951
954
|
)
|
|
952
955
|
]);
|
|
953
956
|
}
|
|
954
|
-
if (extra.receiptFile) {
|
|
955
|
-
sections.push([`JSON receipt: ${extra.receiptFile}`]);
|
|
956
|
-
}
|
|
957
957
|
if (resultSection) sections.push(resultSection);
|
|
958
958
|
return `${sections.map((lines) => lines.join("\n")).join("\n\n")}
|
|
959
959
|
`;
|
|
@@ -1026,7 +1026,12 @@ function resultLines(title, data, declared, options) {
|
|
|
1026
1026
|
function printReceipt(receipt, options, extra) {
|
|
1027
1027
|
const text = options.receiptJson ? `${JSON.stringify(receipt, null, 2)}
|
|
1028
1028
|
` : receiptText(receipt, options, extra);
|
|
1029
|
-
(
|
|
1029
|
+
if (options.receiptOut !== void 0) {
|
|
1030
|
+
writeRawStderr(text);
|
|
1031
|
+
markJsonOutputHandled();
|
|
1032
|
+
} else {
|
|
1033
|
+
(dataOnStdout(options) ? process.stderr : process.stdout).write(text);
|
|
1034
|
+
}
|
|
1030
1035
|
}
|
|
1031
1036
|
function openLogDestination(output) {
|
|
1032
1037
|
if (output.logsOut === "-") {
|
|
@@ -1054,6 +1059,7 @@ export {
|
|
|
1054
1059
|
underscoreKeysLast,
|
|
1055
1060
|
orderRunExportJson,
|
|
1056
1061
|
writeRunDatasetCsv,
|
|
1062
|
+
ExecutionOutputError,
|
|
1057
1063
|
preflightExecutionOutput,
|
|
1058
1064
|
outputCollections,
|
|
1059
1065
|
writeExecutionOutput,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
traceCliSpan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PSYGSXDS.mjs";
|
|
4
4
|
import {
|
|
5
5
|
checkSdkCompatibility,
|
|
6
6
|
enforceSdkCompatibilityResponse,
|
|
7
7
|
flushDeferredSkillsSyncNotices
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-QXI2W7YY.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
var _chunkD3BCSAN7js = require('./chunk-D3BCSAN7.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkPE3UHMMZjs = require('./chunk-PE3UHMMZ.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk7OQZZHZ4js = require('./chunk-7OQZZHZ4.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkWSOM3TY6js = require('./chunk-WSOM3TY6.js');
|
|
14
14
|
|
|
15
15
|
// src/cli/commands/search.ts
|
|
16
16
|
var _commander = require('commander');
|
|
@@ -20,7 +20,7 @@ var _fs = require('fs');
|
|
|
20
20
|
var _path = require('path');
|
|
21
21
|
var SEARCH_REF_TTL_MS = 15 * 6e4;
|
|
22
22
|
function lastSearchPath() {
|
|
23
|
-
return _path.join.call(void 0,
|
|
23
|
+
return _path.join.call(void 0, _chunkWSOM3TY6js.sdkCliStateDirPath.call(void 0, _chunkWSOM3TY6js.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
24
24
|
}
|
|
25
25
|
function rememberSearchRef(searchRef) {
|
|
26
26
|
try {
|
|
@@ -119,7 +119,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
119
119
|
console.error("--summary-width must be an integer of at least 2.");
|
|
120
120
|
return 1;
|
|
121
121
|
}
|
|
122
|
-
const { search_ref: searchRef, ...result } = await new (0,
|
|
122
|
+
const { search_ref: searchRef, ...result } = await new (0, _chunkPE3UHMMZjs.DeeplineClient)().search({
|
|
123
123
|
query,
|
|
124
124
|
types,
|
|
125
125
|
exclude,
|
|
@@ -133,8 +133,8 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
133
133
|
});
|
|
134
134
|
if (searchRef) rememberSearchRef(searchRef);
|
|
135
135
|
pointAtDescribe(result);
|
|
136
|
-
const { renderSearchResults } = await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-
|
|
137
|
-
|
|
136
|
+
const { renderSearchResults } = await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-I4RZPHU6.js")));
|
|
137
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0, result, {
|
|
138
138
|
json: options.json === true,
|
|
139
139
|
text: renderSearchResults(result, summaryWidth)
|
|
140
140
|
});
|
|
@@ -6,7 +6,9 @@ var _chunkJO5FFSR7js = require('./chunk-JO5FFSR7.js');
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
var _chunk7OQZZHZ4js = require('./chunk-7OQZZHZ4.js');
|
|
10
12
|
|
|
11
13
|
// src/cli/describe-options.ts
|
|
12
14
|
function addDescribeOptions(command, options = {}) {
|
|
@@ -247,7 +249,7 @@ function projectRunDatasetCell(value) {
|
|
|
247
249
|
const logicalValue = parseSerializedDatasetValue(value);
|
|
248
250
|
if (logicalValue === null || logicalValue === void 0) return logicalValue;
|
|
249
251
|
if (typeof logicalValue === "object") {
|
|
250
|
-
return
|
|
252
|
+
return _chunk7OQZZHZ4js.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
|
|
251
253
|
}
|
|
252
254
|
return logicalValue;
|
|
253
255
|
}
|
|
@@ -533,11 +535,8 @@ function preflightExecutionOutput(options) {
|
|
|
533
535
|
},
|
|
534
536
|
ran: false
|
|
535
537
|
},
|
|
536
|
-
|
|
537
|
-
{
|
|
538
|
-
receiptJson: options.receiptJson,
|
|
539
|
-
...dataOnStdout(options) ? { jsonOut: "-" } : {}
|
|
540
|
-
}
|
|
538
|
+
options,
|
|
539
|
+
{ skipReceiptFile: true }
|
|
541
540
|
);
|
|
542
541
|
return false;
|
|
543
542
|
}
|
|
@@ -642,9 +641,9 @@ function csvText(rows, columns = []) {
|
|
|
642
641
|
rows: rows.map((row) => record(row) ? row : { value: row }),
|
|
643
642
|
columns
|
|
644
643
|
});
|
|
645
|
-
return
|
|
644
|
+
return _chunk7OQZZHZ4js.csvStringFromRows.call(void 0, projection.rows, projection.columns);
|
|
646
645
|
}
|
|
647
|
-
function writeExecutionOutput(result, options) {
|
|
646
|
+
function writeExecutionOutput(result, options, { skipReceiptFile = false } = {}) {
|
|
648
647
|
let temp;
|
|
649
648
|
const temporary = (name) => _path.join.call(void 0, temp ??= _fs.mkdtempSync.call(void 0, _path.join.call(void 0, _os.tmpdir.call(void 0, ), "deepline-output-")), name);
|
|
650
649
|
const jsonText = (value) => `${JSON.stringify(value, null, 2)}
|
|
@@ -767,13 +766,16 @@ function writeExecutionOutput(result, options) {
|
|
|
767
766
|
error: _nullishCoalesce(result.error, () => ( null)),
|
|
768
767
|
next: _nullishCoalesce(result.next, () => ( {}))
|
|
769
768
|
};
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
769
|
+
if (options.receiptOut && !skipReceiptFile) {
|
|
770
|
+
persist(options.receiptOut, jsonText(receipt));
|
|
771
|
+
_chunk7OQZZHZ4js.markJsonOutputHandled.call(void 0, );
|
|
772
|
+
} else {
|
|
773
|
+
printReceipt(receipt, options, {
|
|
774
|
+
data: hasData ? result.data : void 0,
|
|
775
|
+
ran: result.ran,
|
|
776
|
+
declared: result.declared
|
|
777
|
+
});
|
|
778
|
+
}
|
|
777
779
|
if (stdoutData !== void 0) process.stdout.write(stdoutData);
|
|
778
780
|
} catch (error) {
|
|
779
781
|
let recoveryFile = null;
|
|
@@ -781,6 +783,7 @@ function writeExecutionOutput(result, options) {
|
|
|
781
783
|
if (result.data !== void 0) recoveryFile = ensureJson();
|
|
782
784
|
} catch (e4) {
|
|
783
785
|
}
|
|
786
|
+
const retryWarning = "Do not re-execute paid work.";
|
|
784
787
|
const failure = {
|
|
785
788
|
status: "output_failed",
|
|
786
789
|
id: result.id,
|
|
@@ -793,16 +796,16 @@ function writeExecutionOutput(result, options) {
|
|
|
793
796
|
schemaFile: null,
|
|
794
797
|
logsFile: _nullishCoalesce(options.logsFile, () => ( null)),
|
|
795
798
|
collections: [],
|
|
796
|
-
warnings: [],
|
|
799
|
+
warnings: options.receiptOut !== void 0 && result.id ? [retryWarning] : [],
|
|
797
800
|
error: {
|
|
798
801
|
message: error instanceof Error ? error.message : String(error),
|
|
799
802
|
recoveryFile
|
|
800
803
|
},
|
|
801
804
|
next: _nullishCoalesce(result.next, () => ( {}))
|
|
802
805
|
};
|
|
803
|
-
printReceipt(failure, options, {
|
|
806
|
+
printReceipt(failure, options, { ran: result.ran });
|
|
804
807
|
throw new ExecutionOutputError(
|
|
805
|
-
`Output failed${result.id ? ` for ${result.id}` : ""}: ${error instanceof Error ? error.message : String(error)}.
|
|
808
|
+
`Output failed${result.id ? ` for ${result.id}` : ""}: ${error instanceof Error ? error.message : String(error)}. ${retryWarning}`,
|
|
806
809
|
{ cause: error }
|
|
807
810
|
);
|
|
808
811
|
}
|
|
@@ -951,9 +954,6 @@ function receiptText(receipt, options, extra) {
|
|
|
951
954
|
)
|
|
952
955
|
]);
|
|
953
956
|
}
|
|
954
|
-
if (extra.receiptFile) {
|
|
955
|
-
sections.push([`JSON receipt: ${extra.receiptFile}`]);
|
|
956
|
-
}
|
|
957
957
|
if (resultSection) sections.push(resultSection);
|
|
958
958
|
return `${sections.map((lines) => lines.join("\n")).join("\n\n")}
|
|
959
959
|
`;
|
|
@@ -1026,7 +1026,12 @@ function resultLines(title, data, declared, options) {
|
|
|
1026
1026
|
function printReceipt(receipt, options, extra) {
|
|
1027
1027
|
const text = options.receiptJson ? `${JSON.stringify(receipt, null, 2)}
|
|
1028
1028
|
` : receiptText(receipt, options, extra);
|
|
1029
|
-
(
|
|
1029
|
+
if (options.receiptOut !== void 0) {
|
|
1030
|
+
_chunk7OQZZHZ4js.writeRawStderr.call(void 0, text);
|
|
1031
|
+
_chunk7OQZZHZ4js.markJsonOutputHandled.call(void 0, );
|
|
1032
|
+
} else {
|
|
1033
|
+
(dataOnStdout(options) ? process.stderr : process.stdout).write(text);
|
|
1034
|
+
}
|
|
1030
1035
|
}
|
|
1031
1036
|
function openLogDestination(output) {
|
|
1032
1037
|
if (output.logsOut === "-") {
|
|
@@ -1058,4 +1063,5 @@ function openLogDestination(output) {
|
|
|
1058
1063
|
|
|
1059
1064
|
|
|
1060
1065
|
|
|
1061
|
-
|
|
1066
|
+
|
|
1067
|
+
exports.addDescribeOptions = addDescribeOptions; exports.recordApiResponse = recordApiResponse; exports.recordPlayTermination = recordPlayTermination; exports.TABLE_EXPORT_ERROR_COLUMN = TABLE_EXPORT_ERROR_COLUMN; exports.tableExportHasFailedRows = tableExportHasFailedRows; exports.tableExportErrorCell = tableExportErrorCell; exports.underscoreKeysLast = underscoreKeysLast; exports.orderRunExportJson = orderRunExportJson; exports.writeRunDatasetCsv = writeRunDatasetCsv; exports.ExecutionOutputError = ExecutionOutputError; exports.preflightExecutionOutput = preflightExecutionOutput; exports.outputCollections = outputCollections; exports.writeExecutionOutput = writeExecutionOutput; exports.openLogDestination = openLogDestination;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
npmSupportsAllowScripts,
|
|
3
3
|
readNpmVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-43ZERPGR.mjs";
|
|
5
5
|
import {
|
|
6
6
|
runSkillsCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KZJKRU24.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveShellSpawn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-QXI2W7YY.mjs";
|
|
11
11
|
import {
|
|
12
12
|
printCommandEnvelope
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-56JE475N.mjs";
|
|
14
14
|
import {
|
|
15
15
|
autoDetectBaseUrl
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ZVAD65CF.mjs";
|
|
17
17
|
|
|
18
18
|
// src/cli/commands/update.ts
|
|
19
19
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -11,20 +11,20 @@ import {
|
|
|
11
11
|
skillsInstallLeasePath,
|
|
12
12
|
skillsSourceUrl,
|
|
13
13
|
syncSdkSkillsIfNeeded
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-QXI2W7YY.mjs";
|
|
15
15
|
import {
|
|
16
16
|
printCommandEnvelope
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-56JE475N.mjs";
|
|
18
18
|
import {
|
|
19
19
|
autoDetectBaseUrl,
|
|
20
20
|
ensureProjectPrivatePathsIgnored,
|
|
21
21
|
resolveProjectPinTarget,
|
|
22
22
|
sdkCliStateDirPath
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-ZVAD65CF.mjs";
|
|
24
24
|
import {
|
|
25
25
|
SDK_VERSION,
|
|
26
26
|
detectAgentRuntime
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-JM52ATUS.mjs";
|
|
28
28
|
import {
|
|
29
29
|
DEEPLINE_GTM_GLOBAL_SKILL_ROOTS
|
|
30
30
|
} from "./chunk-5JPKRDFC.mjs";
|
|
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
|
|
|
49
49
|
// getters keep their established compatibility behavior.
|
|
50
50
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
51
51
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
52
|
-
version: "0.3.
|
|
52
|
+
version: "0.3.499",
|
|
53
53
|
updateSummary: {
|
|
54
54
|
introducedIn: "0.3.90",
|
|
55
55
|
summary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release."
|
|
@@ -4,20 +4,20 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk2PKZ3RUUjs = require('./chunk-2PKZ3RUU.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkUOQUCFAKjs = require('./chunk-UOQUCFAK.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunk7OQZZHZ4js = require('./chunk-7OQZZHZ4.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkWSOM3TY6js = require('./chunk-WSOM3TY6.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunk2RZHMCDLjs = require('./chunk-2RZHMCDL.js');
|
|
21
21
|
|
|
22
22
|
// src/cli/compatibility-catalog.ts
|
|
23
23
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -44,7 +44,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
|
|
|
44
44
|
async function reportAutoUpdateEvent(input) {
|
|
45
45
|
let apiKey = "";
|
|
46
46
|
try {
|
|
47
|
-
apiKey =
|
|
47
|
+
apiKey = _chunkWSOM3TY6js.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
48
48
|
} catch (e2) {
|
|
49
49
|
return;
|
|
50
50
|
}
|
|
@@ -60,15 +60,15 @@ async function reportAutoUpdateEvent(input) {
|
|
|
60
60
|
headers: {
|
|
61
61
|
Authorization: `Bearer ${apiKey}`,
|
|
62
62
|
"Content-Type": "application/json",
|
|
63
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
63
|
+
"User-Agent": `deepline-ts-sdk/${_chunk2RZHMCDLjs.SDK_VERSION}`,
|
|
64
64
|
"X-Deepline-Client-Family": "sdk",
|
|
65
65
|
"X-Deepline-CLI-Family": "sdk",
|
|
66
|
-
"X-Deepline-CLI-Version":
|
|
67
|
-
"X-Deepline-SDK-Version":
|
|
66
|
+
"X-Deepline-CLI-Version": _chunk2RZHMCDLjs.SDK_VERSION,
|
|
67
|
+
"X-Deepline-SDK-Version": _chunk2RZHMCDLjs.SDK_VERSION
|
|
68
68
|
},
|
|
69
69
|
body: JSON.stringify({
|
|
70
70
|
event: input.event,
|
|
71
|
-
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) ||
|
|
71
|
+
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunk2RZHMCDLjs.SDK_VERSION,
|
|
72
72
|
target_version: input.response.latest,
|
|
73
73
|
reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
|
|
74
74
|
command: _nullishCoalesce(input.response.command, () => ( null)),
|
|
@@ -87,13 +87,13 @@ function envTruthy(name) {
|
|
|
87
87
|
return value === "1" || value === "true" || value === "yes";
|
|
88
88
|
}
|
|
89
89
|
function shouldSkipSelfUpdate(policy) {
|
|
90
|
-
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !
|
|
90
|
+
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunk2PKZ3RUUjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkUOQUCFAKjs.isCiEnvironment.call(void 0, );
|
|
91
91
|
}
|
|
92
92
|
function isDowngradeAutoUpdateResponse(response) {
|
|
93
93
|
const target = _optionalChain([response, 'optionalAccess', _17 => _17.latest, 'optionalAccess', _18 => _18.trim, 'call', _19 => _19()]);
|
|
94
|
-
const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) ||
|
|
94
|
+
const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunk2RZHMCDLjs.SDK_VERSION;
|
|
95
95
|
if (!target) return false;
|
|
96
|
-
return
|
|
96
|
+
return _chunk2PKZ3RUUjs.compareUpdateVersions.call(void 0, target, current) < 0;
|
|
97
97
|
}
|
|
98
98
|
function relaunchCurrentCommand(plan, runtime = {}) {
|
|
99
99
|
return new Promise((resolve) => {
|
|
@@ -146,7 +146,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
146
146
|
}
|
|
147
147
|
if (isDowngradeAutoUpdateResponse(response)) {
|
|
148
148
|
const target = response.latest;
|
|
149
|
-
const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) ||
|
|
149
|
+
const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunk2RZHMCDLjs.SDK_VERSION;
|
|
150
150
|
process.stderr.write(
|
|
151
151
|
`Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
|
|
152
152
|
`
|
|
@@ -154,21 +154,21 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
154
154
|
return false;
|
|
155
155
|
}
|
|
156
156
|
const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
|
|
157
|
-
const plan =
|
|
157
|
+
const plan = _chunk2PKZ3RUUjs.resolveUpdatePlan.call(void 0, {
|
|
158
158
|
packageSpec,
|
|
159
159
|
requireVerifiedNpmOwnership: true,
|
|
160
160
|
npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
|
|
161
161
|
});
|
|
162
|
-
if (!
|
|
162
|
+
if (!_chunk2PKZ3RUUjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
|
|
163
163
|
return false;
|
|
164
164
|
}
|
|
165
165
|
if (!autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
|
|
166
166
|
deferredAutoUpdate = async () => {
|
|
167
167
|
await applyAutoUpdate(response, baseUrl, plan, "next_command");
|
|
168
168
|
};
|
|
169
|
-
if (
|
|
169
|
+
if (_chunk7OQZZHZ4js.isJsonOutputMode.call(void 0, )) {
|
|
170
170
|
const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
|
|
171
|
-
|
|
171
|
+
_chunk7OQZZHZ4js.addJsonNotice.call(void 0, {
|
|
172
172
|
code: "sdk_update_queued",
|
|
173
173
|
message: `Deepline SDK/CLI update${target ? ` to ${target}` : ""} is queued after this command; the next command will use it if installation succeeds.`
|
|
174
174
|
});
|
|
@@ -181,7 +181,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
181
181
|
return true;
|
|
182
182
|
}
|
|
183
183
|
async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
184
|
-
if (!
|
|
184
|
+
if (!_chunk2PKZ3RUUjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
|
|
185
185
|
const autoUpdate = response.auto_update;
|
|
186
186
|
const label = _optionalChain([autoUpdate, 'optionalAccess', _32 => _32.reason]) === "rollback_forced" ? "has a server rollback pending and needs the latest rollback-aware CLI" : _optionalChain([autoUpdate, 'optionalAccess', _33 => _33.reason]) === "deprecated" ? "is deprecated and will update automatically" : _optionalChain([autoUpdate, 'optionalAccess', _34 => _34.required]) ? "requires an update" : "has an update available and will update automatically";
|
|
187
187
|
process.stderr.write(
|
|
@@ -194,7 +194,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
|
194
194
|
event: "started",
|
|
195
195
|
installKind: plan.kind
|
|
196
196
|
});
|
|
197
|
-
const updateResult = await
|
|
197
|
+
const updateResult = await _chunk2PKZ3RUUjs.runAutomaticUpdatePlan.call(void 0, plan);
|
|
198
198
|
if (updateResult.status === "skipped_previous_failure") {
|
|
199
199
|
void reportAutoUpdateEvent({
|
|
200
200
|
baseUrl,
|
|
@@ -245,7 +245,7 @@ var _crypto = require('crypto');
|
|
|
245
245
|
var TOOL_EXECUTE_PROGRESS_INTERVAL_MS = 15e3;
|
|
246
246
|
var activeToolExecuteCommand = null;
|
|
247
247
|
function progressLine(line) {
|
|
248
|
-
if (!
|
|
248
|
+
if (!_chunk7OQZZHZ4js.isJsonOutputMode.call(void 0, )) console.error(line);
|
|
249
249
|
}
|
|
250
250
|
function beginToolExecuteCommand() {
|
|
251
251
|
if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;
|
|
@@ -1,11 +1,11 @@
|
|
|
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 _chunkYRQWGWRJjs = require('./chunk-YRQWGWRJ.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkUOQUCFAKjs = require('./chunk-UOQUCFAK.js');
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -18,11 +18,11 @@ function usesCliPlayAdmission(command, args) {
|
|
|
18
18
|
}
|
|
19
19
|
async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configured", signal) {
|
|
20
20
|
_optionalChain([signal, 'optionalAccess', _ => _.throwIfAborted, 'call', _2 => _2()]);
|
|
21
|
-
if (maintenancePolicy !== "off")
|
|
22
|
-
const compatibility = await
|
|
21
|
+
if (maintenancePolicy !== "off") _chunkUOQUCFAKjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
22
|
+
const compatibility = await _chunkYRQWGWRJjs.traceCliSpan.call(void 0,
|
|
23
23
|
"cli.sdk_compatibility",
|
|
24
24
|
{ baseUrl, command: "plays run" },
|
|
25
|
-
() =>
|
|
25
|
+
() => _chunkUOQUCFAKjs.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
26
26
|
command: "plays run",
|
|
27
27
|
persistCache: maintenancePolicy !== "off",
|
|
28
28
|
signal
|
|
@@ -30,7 +30,7 @@ async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configure
|
|
|
30
30
|
);
|
|
31
31
|
_optionalChain([signal, 'optionalAccess', _3 => _3.throwIfAborted, 'call', _4 => _4()]);
|
|
32
32
|
if (compatibility.error) throw compatibility.error;
|
|
33
|
-
|
|
33
|
+
_chunkUOQUCFAKjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
|
|
34
34
|
quietAdvisory: true
|
|
35
35
|
});
|
|
36
36
|
}
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-F6QV42MC.mjs";
|
|
4
4
|
import {
|
|
5
5
|
parseLogLevel
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YAW7ET4P.mjs";
|
|
7
7
|
import {
|
|
8
8
|
setDottedInputValue
|
|
9
9
|
} from "./chunk-CS2AEAD6.mjs";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
argsWantJson,
|
|
12
12
|
jsonFieldArgs,
|
|
13
13
|
parseJsonFields
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-56JE475N.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineError
|
|
17
17
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-56JE475N.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZVAD65CF.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -1,16 +1,16 @@
|
|
|
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 _chunkXSUQAUG4js = require('./chunk-XSUQAUG4.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkWSOM3TY6js = require('./chunk-WSOM3TY6.js');
|
|
8
8
|
|
|
9
9
|
// src/client.ts
|
|
10
|
-
var DeeplineClient2 = class extends
|
|
10
|
+
var DeeplineClient2 = class extends _chunkXSUQAUG4js.DeeplineClient {
|
|
11
11
|
constructor(options) {
|
|
12
|
-
const config =
|
|
13
|
-
super(config, new (0,
|
|
12
|
+
const config = _chunkWSOM3TY6js.resolveConfig.call(void 0, options);
|
|
13
|
+
super(config, new (0, _chunkWSOM3TY6js.HttpClient)(config), _optionalChain([options, 'optionalAccess', _ => _.timeout]));
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
16
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getActiveCliProgress
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MQ5YPD7K.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DEFAULT_SKILL_AGENTS,
|
|
6
6
|
KNOWN_SKILL_AGENTS,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
sdkCliStateDirPath,
|
|
13
13
|
skillsAgentPathSegment,
|
|
14
14
|
writeSdkSkillsLocalVersion
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ZVAD65CF.mjs";
|
|
16
16
|
import {
|
|
17
17
|
SDK_API_CONTRACT,
|
|
18
18
|
SDK_API_MAJOR,
|
|
@@ -20,13 +20,13 @@ import {
|
|
|
20
20
|
agentSessionIdFromEnvironment,
|
|
21
21
|
deploymentProtectionHeaders,
|
|
22
22
|
detectAgentRuntime
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-JM52ATUS.mjs";
|
|
24
24
|
import {
|
|
25
25
|
DeeplineError
|
|
26
26
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
27
27
|
import {
|
|
28
28
|
SDK_RELEASE
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-A2VCFBZN.mjs";
|
|
30
30
|
|
|
31
31
|
// src/compat.ts
|
|
32
32
|
import { randomUUID } from "crypto";
|