deepline 0.3.525 → 0.3.526
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/agent-runtime.ts +98 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/observability/dlq.ts +14 -5
- package/dist/bundling-sources/shared_libs/play-runtime/run-failure-class.ts +98 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/durable-run-inventory.ts +2 -2
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/durable-run-sql.ts +39 -0
- package/dist/cli/{auth-TH3VGYBK.mjs → auth-JATW5XZE.mjs} +5 -5
- package/dist/cli/auth-L2POG3LL.js +43 -0
- package/dist/cli/{billing-TWKVUFU2.js → billing-TSHBJIJS.js} +82 -82
- package/dist/cli/{billing-CMHFI2LN.mjs → billing-UT5LIESH.mjs} +7 -7
- package/dist/cli/{chunk-ZWFTHEPT.mjs → chunk-26ULNPQ7.mjs} +2 -2
- package/dist/cli/{chunk-OWQF6WVH.mjs → chunk-2GJW4RAQ.mjs} +61 -1
- package/dist/cli/{chunk-CZNEQMJR.mjs → chunk-2JNX3MDG.mjs} +1 -1
- package/dist/cli/{chunk-QR7VYYNM.js → chunk-3MYI3IXW.js} +7 -7
- package/dist/cli/{chunk-5JFAQUZS.js → chunk-3ZEV5BS5.js} +26 -26
- package/dist/cli/{chunk-NB2ECLQE.js → chunk-46HEYGLY.js} +9 -9
- package/dist/cli/{chunk-CKTRQSRA.js → chunk-477PXM65.js} +22 -22
- package/dist/cli/{chunk-WGRDOPAK.mjs → chunk-6COGHW7B.mjs} +2 -2
- package/dist/cli/{chunk-ESWM2JW4.js → chunk-6DHEV6IA.js} +2 -2
- package/dist/cli/{chunk-TO72GW5I.js → chunk-6H56LKJB.js} +16 -16
- package/dist/cli/{chunk-NO4URKKT.mjs → chunk-6JMWATX5.mjs} +5 -5
- package/dist/cli/{chunk-5BSGWIQD.mjs → chunk-77RAGJIZ.mjs} +2 -2
- package/dist/cli/{chunk-LE537GBC.js → chunk-7COEN3IR.js} +138 -78
- package/dist/cli/{chunk-WEYFSBAD.mjs → chunk-7FCD34YS.mjs} +18 -11
- package/dist/cli/{chunk-4UWXFXQF.js → chunk-B33J4YCC.js} +3 -3
- package/dist/cli/{chunk-7OF3A4KJ.mjs → chunk-BFH3DJYV.mjs} +84 -57
- package/dist/cli/{chunk-EP6YH6QJ.mjs → chunk-BVITYMBK.mjs} +2 -2
- package/dist/cli/{chunk-DYS3KWYF.js → chunk-BYEF4RBX.js} +11 -11
- package/dist/cli/{chunk-UXF3ODJJ.mjs → chunk-C3EW6I65.mjs} +1 -1
- package/dist/cli/{chunk-LXKH4MKH.js → chunk-CDP3LMDT.js} +6 -6
- package/dist/cli/{chunk-KBOSALBI.js → chunk-CYN2AHR6.js} +6 -6
- package/dist/cli/{chunk-OXFIJYN3.mjs → chunk-D2XMFXFM.mjs} +6 -6
- package/dist/cli/{chunk-AVDEYOVP.js → chunk-D5OEUPPM.js} +98 -98
- package/dist/cli/{chunk-YC7FKAJ4.mjs → chunk-DY2AT3JQ.mjs} +10 -10
- package/dist/cli/{chunk-N4MMU3QF.js → chunk-ED2N4NRI.js} +16 -16
- package/dist/cli/{chunk-7C4F4TLR.mjs → chunk-EEYZLTXX.mjs} +1 -1
- package/dist/cli/{chunk-CQSANB3V.js → chunk-F5KFGF45.js} +5 -5
- package/dist/cli/{chunk-2WFVLOB7.js → chunk-FMPGWAIR.js} +1 -1
- package/dist/cli/{chunk-KPINGHIF.mjs → chunk-HPACLONQ.mjs} +2 -2
- package/dist/cli/{chunk-TXSBPBHB.mjs → chunk-IMP7WR22.mjs} +5 -5
- package/dist/cli/{chunk-RMZ6CISE.mjs → chunk-IWLDJQGV.mjs} +3 -3
- package/dist/cli/{chunk-P62LON53.js → chunk-J5OXJ4JI.js} +2 -2
- package/dist/cli/{chunk-UQYKSOGO.mjs → chunk-MQB25LMV.mjs} +5 -5
- package/dist/cli/{chunk-KEZ3KBWW.js → chunk-O7WUATQC.js} +97 -70
- package/dist/cli/{chunk-V2GN4PLK.js → chunk-RZJWHL7L.js} +5 -5
- package/dist/cli/{chunk-NRBCETWL.js → chunk-SCLRGDF4.js} +44 -44
- package/dist/cli/{chunk-V65J64FL.js → chunk-SJ6KUCGM.js} +53 -53
- package/dist/cli/{chunk-MHBSRNI7.js → chunk-TBQC2XS3.js} +41 -41
- package/dist/cli/{chunk-JVWSIA2V.mjs → chunk-TCLJXJAG.mjs} +4 -4
- package/dist/cli/{chunk-ETHVJ2ZE.mjs → chunk-TVHDWS5U.mjs} +1 -1
- package/dist/cli/{chunk-U4M32NFS.mjs → chunk-TXJW6RIM.mjs} +1 -1
- package/dist/cli/{chunk-LAMGJQDY.mjs → chunk-U6OUX47C.mjs} +2 -2
- package/dist/cli/{chunk-S5LUY3KJ.js → chunk-UTCGCES2.js} +7 -7
- package/dist/cli/{chunk-VYIAWAKJ.mjs → chunk-UUIC2JFZ.mjs} +1 -1
- package/dist/cli/{chunk-WA3FG7DH.js → chunk-UWCEBS7F.js} +14 -14
- package/dist/cli/{chunk-MRUFGOJR.js → chunk-WBY3R55B.js} +2 -2
- package/dist/cli/{chunk-TFEGJEYO.js → chunk-WITNIMLE.js} +3 -3
- package/dist/cli/{chunk-CWRL6IQP.js → chunk-WL6GAZBD.js} +18 -11
- package/dist/cli/{chunk-CLTL7ZJI.mjs → chunk-WOLY6SU4.mjs} +1 -1
- package/dist/cli/{chunk-GCLNX72G.mjs → chunk-XVIMOB2U.mjs} +2 -2
- package/dist/cli/{chunk-IMO3HXWZ.mjs → chunk-Y47OCS5V.mjs} +1 -1
- package/dist/cli/{chunk-M43ZYNDA.mjs → chunk-YNFPZVII.mjs} +5 -5
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-OO554TPX.mjs → csv-4BLFRED6.mjs} +4 -4
- package/dist/cli/{csv-5JHWVJ5N.js → csv-KSJB5Z3M.js} +13 -13
- package/dist/cli/{db-CYQJ4OXF.js → db-G7Z5CKO2.js} +27 -27
- package/dist/cli/{db-SQKJ6RKU.mjs → db-OVW6C3DV.mjs} +6 -6
- package/dist/cli/describe-KMYR2JBC.js +50 -0
- package/dist/cli/{describe-N7AKTUQV.mjs → describe-OEFTD7WQ.mjs} +18 -18
- package/dist/cli/{executions-F34DORW6.mjs → executions-7ZKQ4ZU3.mjs} +6 -6
- package/dist/cli/{executions-K7EGCRKX.js → executions-O7USCBCW.js} +8 -8
- package/dist/cli/{feedback-GQHKCS66.mjs → feedback-KUBL5E3I.mjs} +61 -13
- package/dist/cli/{feedback-NOQVCA3Q.js → feedback-Y55WCRIQ.js} +65 -17
- package/dist/cli/{git-2EEITXDB.mjs → git-C6ZAU5JA.mjs} +5 -5
- package/dist/cli/git-NBVQ3VGW.js +25 -0
- package/dist/cli/index.js +145 -145
- package/dist/cli/index.mjs +44 -44
- package/dist/cli/{legacy-noops-JHMY5XRB.mjs → legacy-noops-MUXD4HRC.mjs} +6 -6
- package/dist/cli/{legacy-noops-RFNHQ7RG.js → legacy-noops-OVWX4KB3.js} +9 -9
- package/dist/cli/{monitors-RDMP6SPZ.mjs → monitors-2ZSGBY52.mjs} +7 -7
- package/dist/cli/{monitors-UKRZ4BDK.js → monitors-3QVYGYWA.js} +100 -100
- package/dist/cli/{org-RF3G4KMB.mjs → org-RDSPE5FB.mjs} +6 -6
- package/dist/cli/{org-OX7TYTHV.js → org-S6Z3SDLI.js} +86 -86
- package/dist/cli/{pages-FBM3MGSP.mjs → pages-K5DSMHLJ.mjs} +6 -6
- package/dist/cli/{pages-MKQT5LFV.js → pages-VUWF2OR7.js} +18 -18
- package/dist/cli/{play-YWC2UORM.mjs → play-PZLXOYEX.mjs} +18 -18
- package/dist/cli/{play-OOVX2DMV.js → play-SQOJTUFC.js} +317 -317
- package/dist/cli/{providers-3PEQESIU.mjs → providers-AMIGP3D4.mjs} +6 -6
- package/dist/cli/{providers-2CGZYLER.js → providers-FZBEPUOI.js} +9 -9
- package/dist/cli/{quickstart-KVB36SOW.mjs → quickstart-HNOQKGOF.mjs} +4 -4
- package/dist/cli/{quickstart-6AANHKQZ.js → quickstart-QIHZDBGM.js} +6 -6
- package/dist/cli/{run-NJ7WV5TK.js → run-IQGM3TO2.js} +41 -41
- package/dist/cli/{run-QC23NRKO.mjs → run-JDW6BDNT.mjs} +23 -23
- package/dist/cli/search-BNWRL3YY.js +33 -0
- package/dist/cli/{search-7BMFFZI2.mjs → search-DMVUKJ23.mjs} +8 -8
- package/dist/cli/{search-output-CALZ4ZI2.mjs → search-output-5UAPUUHH.mjs} +4 -4
- package/dist/cli/{search-output-XC2AVBFX.js → search-output-UUW6UNHF.js} +6 -6
- package/dist/cli/{secrets-7ZHA57DI.mjs → secrets-46KSTPFN.mjs} +6 -6
- package/dist/cli/{secrets-VHU4B2D4.js → secrets-U532KN24.js} +15 -15
- package/dist/cli/sessions-JZUONXH4.js +22 -0
- package/dist/cli/sessions-RUNWYHYX.mjs +22 -0
- package/dist/cli/{settings-AVY4NNHI.mjs → settings-56L3WHCY.mjs} +13 -13
- package/dist/cli/{settings-WV77QJGD.js → settings-O2A37FFA.js} +86 -86
- package/dist/cli/{setup-GE5TLTC4.js → setup-ETFSMSCH.js} +50 -50
- package/dist/cli/{setup-AOUJ3RMU.mjs → setup-Q27X6JZY.mjs} +10 -10
- package/dist/cli/skills-IKDJ5JDN.js +37 -0
- package/dist/cli/{skills-FVWO2G66.mjs → skills-WFQRZL4D.mjs} +8 -8
- package/dist/cli/tools-B735AA67.js +57 -0
- package/dist/cli/{tools-URE655B4.mjs → tools-EV6CKJOX.mjs} +17 -17
- package/dist/cli/update-CNNURAM3.js +35 -0
- package/dist/cli/{update-5B4G4345.mjs → update-KIPPFVCH.mjs} +10 -10
- package/dist/cli/{views-IC762HEQ.js → views-DNZ2HFTA.js} +18 -18
- package/dist/cli/{views-GSECJ5IK.mjs → views-LMJXWD4N.mjs} +6 -6
- package/dist/cli/{workflow-6UQM565I.mjs → workflow-3XKUQ73U.mjs} +7 -7
- package/dist/cli/{workflow-EME7ZEOV.js → workflow-ZUDTIOK6.js} +17 -17
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +107 -106
- 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-K7PMRXNG.js +0 -43
- package/dist/cli/describe-PASXOL3R.js +0 -50
- package/dist/cli/git-UU4YFJ2Q.js +0 -25
- package/dist/cli/search-NH4DTXUK.js +0 -33
- package/dist/cli/sessions-2TE5JWVP.js +0 -18
- package/dist/cli/sessions-YYULWFZE.mjs +0 -18
- package/dist/cli/skills-OL7LD6QX.js +0 -37
- package/dist/cli/tools-VQ5JO6DI.js +0 -57
- package/dist/cli/update-7ZOIOTZN.js +0 -35
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
addDescribeOptions,
|
|
3
3
|
recordApiResponse,
|
|
4
4
|
writeExecutionOutput
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-C3EW6I65.mjs";
|
|
6
6
|
import {
|
|
7
7
|
recentSearchRef,
|
|
8
8
|
registerDeprecatedSearchCommand
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MQB25LMV.mjs";
|
|
10
10
|
import {
|
|
11
11
|
Capability,
|
|
12
12
|
arrayField,
|
|
@@ -46,10 +46,10 @@ import {
|
|
|
46
46
|
} from "./chunk-FIVKWNMT.mjs";
|
|
47
47
|
import {
|
|
48
48
|
DeeplineClient
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-HPACLONQ.mjs";
|
|
50
50
|
import {
|
|
51
51
|
validateExecutionIdempotencyKey
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-2JNX3MDG.mjs";
|
|
53
53
|
import {
|
|
54
54
|
stableStringify
|
|
55
55
|
} from "./chunk-UBKA33KY.mjs";
|
|
@@ -59,18 +59,18 @@ import {
|
|
|
59
59
|
maybeAutoUpdateAndRelaunch,
|
|
60
60
|
registerCompatibilityCatalog,
|
|
61
61
|
runToolExecuteStage
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-IMP7WR22.mjs";
|
|
63
63
|
import {
|
|
64
64
|
isCliTraceEnabled,
|
|
65
65
|
recordCliTrace,
|
|
66
66
|
resolveCliMaintenancePolicy
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-WOLY6SU4.mjs";
|
|
68
68
|
import {
|
|
69
69
|
checkSdkCompatibility,
|
|
70
70
|
enforceSdkCompatibilityResponse,
|
|
71
71
|
flushDeferredSkillsSyncNotices,
|
|
72
72
|
syncSdkSkillsIfNeeded
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-YNFPZVII.mjs";
|
|
74
74
|
import {
|
|
75
75
|
printCommandEnvelope,
|
|
76
76
|
printCompactJson,
|
|
@@ -78,12 +78,12 @@ import {
|
|
|
78
78
|
printJsonError,
|
|
79
79
|
renderCommandEnvelopeText,
|
|
80
80
|
shouldEmitJson
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-XVIMOB2U.mjs";
|
|
82
82
|
import {
|
|
83
83
|
readSdkSkillsLocalVersion,
|
|
84
84
|
resolveConfig,
|
|
85
85
|
sdkCliStateDirPath
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-TXJW6RIM.mjs";
|
|
87
87
|
import {
|
|
88
88
|
DeeplineError
|
|
89
89
|
} from "./chunk-ZPGGW27Q.mjs";
|
|
@@ -1066,7 +1066,7 @@ Examples:
|
|
|
1066
1066
|
process.exitCode = await narrowView();
|
|
1067
1067
|
return;
|
|
1068
1068
|
}
|
|
1069
|
-
const { describeAnything } = await import("./describe-
|
|
1069
|
+
const { describeAnything } = await import("./describe-OEFTD7WQ.mjs");
|
|
1070
1070
|
process.exitCode = await describeAnything(
|
|
1071
1071
|
toolId,
|
|
1072
1072
|
{
|
|
@@ -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(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkD5OEUPPMjs = require('./chunk-D5OEUPPM.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkCYN2AHR6js = require('./chunk-CYN2AHR6.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -14,18 +14,18 @@ var _chunk5YAJGRWBjs = require('./chunk-5YAJGRWB.js');
|
|
|
14
14
|
var _chunkXYIECA7Mjs = require('./chunk-XYIECA7M.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkRZJWHL7Ljs = require('./chunk-RZJWHL7L.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkUWCEBS7Fjs = require('./chunk-UWCEBS7F.js');
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkUTCGCES2js = require('./chunk-UTCGCES2.js');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkWITNIMLEjs = require('./chunk-WITNIMLE.js');
|
|
29
29
|
|
|
30
30
|
// src/cli/commands/describe.ts
|
|
31
31
|
var _fs = require('fs');
|
|
@@ -34,14 +34,14 @@ var _path = require('path');
|
|
|
34
34
|
// src/cli/doc-read-reporting.ts
|
|
35
35
|
var REPORT_TIMEOUT_MS = 1e3;
|
|
36
36
|
async function reportDocRead(docId) {
|
|
37
|
-
if (
|
|
37
|
+
if (_chunkUWCEBS7Fjs.isFailureReportingDisabled.call(void 0, )) return;
|
|
38
38
|
try {
|
|
39
|
-
const baseUrl =
|
|
40
|
-
const apiKey =
|
|
39
|
+
const baseUrl = _chunkWITNIMLEjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
40
|
+
const apiKey = _chunkWITNIMLEjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
41
41
|
if (!apiKey) return;
|
|
42
42
|
await fetch(new URL("/api/v2/telemetry/doc-read", baseUrl), {
|
|
43
43
|
method: "POST",
|
|
44
|
-
headers:
|
|
44
|
+
headers: _chunkUWCEBS7Fjs.failureReportHeaders.call(void 0, apiKey),
|
|
45
45
|
body: JSON.stringify({ doc_id: docId }),
|
|
46
46
|
signal: AbortSignal.timeout(REPORT_TIMEOUT_MS)
|
|
47
47
|
});
|
|
@@ -54,16 +54,16 @@ function nothingNamed(name) {
|
|
|
54
54
|
return `Nothing named "${name}". Search for it: deepline search ${JSON.stringify(name.replace(/[-_./]+/g, " "))}`;
|
|
55
55
|
}
|
|
56
56
|
function findNamed2(name, options) {
|
|
57
|
-
return _chunk5YAJGRWBjs.findNamed.call(void 0, name, options, _chunk5YAJGRWBjs.describeLookupsFor.call(void 0, new (0,
|
|
57
|
+
return _chunk5YAJGRWBjs.findNamed.call(void 0, name, options, _chunk5YAJGRWBjs.describeLookupsFor.call(void 0, new (0, _chunkRZJWHL7Ljs.DeeplineClient)()));
|
|
58
58
|
}
|
|
59
59
|
async function describeAnything(name, options, onMissing) {
|
|
60
|
-
const client = new (0,
|
|
60
|
+
const client = new (0, _chunkRZJWHL7Ljs.DeeplineClient)();
|
|
61
61
|
const lookups = _chunk5YAJGRWBjs.describeLookupsFor.call(void 0, client);
|
|
62
62
|
const outcome = await _chunk5YAJGRWBjs.describeName.call(void 0, name, options, {
|
|
63
63
|
...lookups,
|
|
64
64
|
// `tools describe` has already fetched the tool for its compatibility check.
|
|
65
65
|
tool: async (toolName) => _nullishCoalesce(options.fetchedTool, () => ( lookups.tool(toolName))),
|
|
66
|
-
seedStarterScript:
|
|
66
|
+
seedStarterScript: _chunkD5OEUPPMjs.seedToolListScript
|
|
67
67
|
});
|
|
68
68
|
if (outcome.status === "missing") {
|
|
69
69
|
if (onMissing) return onMissing();
|
|
@@ -89,18 +89,18 @@ function deliver(envelope, lines, { json, out }) {
|
|
|
89
89
|
` : text;
|
|
90
90
|
_fs.writeFileSync.call(void 0, path, content);
|
|
91
91
|
const bytes = Buffer.byteLength(content);
|
|
92
|
-
|
|
92
|
+
_chunkUTCGCES2js.printCommandEnvelope.call(void 0,
|
|
93
93
|
{ path, bytes },
|
|
94
94
|
{ json, text: `Wrote ${path} (${bytes} bytes)
|
|
95
95
|
` }
|
|
96
96
|
);
|
|
97
97
|
return 0;
|
|
98
98
|
}
|
|
99
|
-
|
|
99
|
+
_chunkUTCGCES2js.printCommandEnvelope.call(void 0, envelope, { json, text });
|
|
100
100
|
return 0;
|
|
101
101
|
}
|
|
102
102
|
function registerDescribeCommand(program) {
|
|
103
|
-
|
|
103
|
+
_chunkCYN2AHR6js.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
|
|
104
104
|
"Describe anything search returns: a tool, monitor type, or play."
|
|
105
105
|
).addHelpText(
|
|
106
106
|
"after",
|
|
@@ -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.526",
|
|
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."
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk3MYI3IXWjs = require('./chunk-3MYI3IXW.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkWITNIMLEjs = require('./chunk-WITNIMLE.js');
|
|
8
8
|
|
|
9
9
|
// src/plays/local-play-execution.ts
|
|
10
10
|
function importedNodes(graph) {
|
|
@@ -137,9 +137,9 @@ async function pinLocalPlayImports(client, graph) {
|
|
|
137
137
|
|
|
138
138
|
// src/plays/client.ts
|
|
139
139
|
function createPlayClient(options) {
|
|
140
|
-
const config =
|
|
141
|
-
return new (0,
|
|
142
|
-
new (0,
|
|
140
|
+
const config = _chunkWITNIMLEjs.resolveConfig.call(void 0, options);
|
|
141
|
+
return new (0, _chunk3MYI3IXWjs.PlayClient)(
|
|
142
|
+
new (0, _chunkWITNIMLEjs.HttpClient)(config),
|
|
143
143
|
_nullishCoalesce(config.environment, () => ( process.env))
|
|
144
144
|
);
|
|
145
145
|
}
|
|
@@ -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.526",
|
|
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."
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2JNX3MDG.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-TXJW6RIM.mjs";
|
|
8
8
|
|
|
9
9
|
// src/client.ts
|
|
10
10
|
var DeeplineClient2 = class extends DeeplineClient {
|
|
@@ -4,21 +4,21 @@ import {
|
|
|
4
4
|
resolveUpdatePlan,
|
|
5
5
|
runAutomaticUpdatePlan,
|
|
6
6
|
shouldRunCliAutoUpdate
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6JMWATX5.mjs";
|
|
8
8
|
import {
|
|
9
9
|
isCiEnvironment,
|
|
10
10
|
syncSdkSkillsIfNeeded
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-YNFPZVII.mjs";
|
|
12
12
|
import {
|
|
13
13
|
addJsonNotice,
|
|
14
14
|
isJsonOutputMode
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-XVIMOB2U.mjs";
|
|
16
16
|
import {
|
|
17
17
|
resolveApiKeyForBaseUrl
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-TXJW6RIM.mjs";
|
|
19
19
|
import {
|
|
20
20
|
SDK_VERSION
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-2GJW4RAQ.mjs";
|
|
22
22
|
|
|
23
23
|
// src/cli/compatibility-catalog.ts
|
|
24
24
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
argsWantJson,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-XVIMOB2U.mjs";
|
|
6
6
|
import {
|
|
7
7
|
ACTIVE_ORG_ID_ENV,
|
|
8
8
|
ACTIVE_ORG_NAME_ENV,
|
|
@@ -22,14 +22,14 @@ import {
|
|
|
22
22
|
saveHostEnvValues,
|
|
23
23
|
saveProjectDeeplineEnvValues,
|
|
24
24
|
storedHostApiKey
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-TXJW6RIM.mjs";
|
|
26
26
|
import {
|
|
27
27
|
SDK_API_CONTRACT,
|
|
28
28
|
SDK_VERSION,
|
|
29
29
|
connectionFailureMessage,
|
|
30
30
|
detectAgentRuntime,
|
|
31
31
|
networkCauseCode
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-2GJW4RAQ.mjs";
|
|
33
33
|
import {
|
|
34
34
|
DeeplineError
|
|
35
35
|
} from "./chunk-ZPGGW27Q.mjs";
|
|
@@ -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 _chunkUTCGCES2js = require('./chunk-UTCGCES2.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
|
+
_chunkUTCGCES2js.printCommandEnvelope.call(void 0,
|
|
61
61
|
{ ok: false, code, exitCode: 2, message },
|
|
62
62
|
{ json: true }
|
|
63
63
|
);
|
|
@@ -3,18 +3,18 @@ import {
|
|
|
3
3
|
} from "./chunk-5AEDYVB6.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DeeplineClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HPACLONQ.mjs";
|
|
7
7
|
import {
|
|
8
8
|
resolveSdkCliFailureExitCode
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-6COGHW7B.mjs";
|
|
10
10
|
import {
|
|
11
11
|
errorToJsonPayload,
|
|
12
12
|
printCommandEnvelope
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-XVIMOB2U.mjs";
|
|
14
14
|
import {
|
|
15
15
|
resolveConfig,
|
|
16
16
|
sdkCliStateDirPath
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-TXJW6RIM.mjs";
|
|
18
18
|
|
|
19
19
|
// src/cli/commands/search.ts
|
|
20
20
|
import { Option } from "commander";
|
|
@@ -136,7 +136,7 @@ async function runSearch(queryInputs, options, types, exclude = []) {
|
|
|
136
136
|
}
|
|
137
137
|
const client = new DeeplineClient();
|
|
138
138
|
const json = options.json === true;
|
|
139
|
-
const renderer = json ? void 0 : await import("./search-output-
|
|
139
|
+
const renderer = json ? void 0 : await import("./search-output-5UAPUUHH.mjs");
|
|
140
140
|
const searches = [];
|
|
141
141
|
const chunks = [];
|
|
142
142
|
const refs = /* @__PURE__ */ new Map();
|
|
@@ -1,13 +1,15 @@
|
|
|
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 _chunkJ5OXJ4JIjs = require('./chunk-J5OXJ4JI.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkUTCGCES2js = require('./chunk-UTCGCES2.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
var _chunk7COEN3IRjs = require('./chunk-7COEN3IR.js');
|
|
11
13
|
|
|
12
14
|
// src/cli/commands/sessions.ts
|
|
13
15
|
|
|
@@ -48,14 +50,17 @@ function detectShellContext() {
|
|
|
48
50
|
cwd: process.cwd()
|
|
49
51
|
};
|
|
50
52
|
}
|
|
51
|
-
function claudeProjectsRoot() {
|
|
52
|
-
return _path.join.call(void 0, homeDir(), ".claude", "projects");
|
|
53
|
-
}
|
|
54
53
|
function codexSessionsRoot() {
|
|
55
54
|
return _path.join.call(void 0, homeDir(), ".codex", "sessions");
|
|
56
55
|
}
|
|
57
56
|
function listClaudeSessionFiles() {
|
|
58
|
-
const
|
|
57
|
+
const files = [];
|
|
58
|
+
for (const root of _chunk7COEN3IRjs.claudeProjectsRoots.call(void 0, )) {
|
|
59
|
+
files.push(...listClaudeSessionFilesIn(root));
|
|
60
|
+
}
|
|
61
|
+
return files;
|
|
62
|
+
}
|
|
63
|
+
function listClaudeSessionFilesIn(root) {
|
|
59
64
|
if (!_fs.existsSync.call(void 0, root)) return [];
|
|
60
65
|
const projectDirs = readDirectoryNames(root);
|
|
61
66
|
const files = [];
|
|
@@ -142,14 +147,26 @@ function currentSessionFile(agent) {
|
|
|
142
147
|
const newestFirst = listSessionFiles(agent).sort(
|
|
143
148
|
(a, b) => b.mtimeMs - a.mtimeMs
|
|
144
149
|
);
|
|
145
|
-
const sessionId =
|
|
150
|
+
const sessionId = _chunk7COEN3IRjs.agentSessionIdFromEnvironment.call(void 0,
|
|
146
151
|
process.env,
|
|
147
152
|
agent === "auto" ? void 0 : agent === "claude" ? "claude_code" : "codex"
|
|
148
153
|
);
|
|
149
154
|
const cwd = process.cwd();
|
|
150
|
-
|
|
155
|
+
const named = newestFirst.find(
|
|
156
|
+
(candidate) => candidate.sessionId === sessionId
|
|
157
|
+
);
|
|
158
|
+
if (named) return named;
|
|
159
|
+
const cowork = agent === "codex" ? null : _chunk7COEN3IRjs.coworkTranscriptFromEnvironment.call(void 0, );
|
|
160
|
+
const coworkStat = cowork ? statIfReadable(cowork.filePath) : null;
|
|
161
|
+
if (cowork && coworkStat) {
|
|
162
|
+
return { agent: "claude", ...cowork, mtimeMs: coworkStat.mtimeMs };
|
|
163
|
+
}
|
|
164
|
+
return _nullishCoalesce(_nullishCoalesce(newestFirst.find(
|
|
151
165
|
(candidate) => sessionStartedInDirectory(candidate, cwd)
|
|
152
|
-
)
|
|
166
|
+
), () => ( newestFirst[0])), () => ( null));
|
|
167
|
+
}
|
|
168
|
+
function feedbackAgentSessionId(agentRuntime) {
|
|
169
|
+
return _nullishCoalesce(_chunk7COEN3IRjs.agentSessionIdFromEnvironment.call(void 0, process.env, agentRuntime), () => ( (agentRuntime === "claude_cowork" || agentRuntime === "claude_code" ? _nullishCoalesce(_optionalChain([_chunk7COEN3IRjs.coworkTranscriptFromEnvironment.call(void 0, ), 'optionalAccess', _17 => _17.sessionId]), () => ( null)) : null)));
|
|
153
170
|
}
|
|
154
171
|
function sessionStartedInDirectory(candidate, cwd) {
|
|
155
172
|
if (candidate.agent === "claude") {
|
|
@@ -164,7 +181,7 @@ function readCodexSessionCwd(filePath) {
|
|
|
164
181
|
const head = Buffer.alloc(8192);
|
|
165
182
|
const length = _fs.readSync.call(void 0, fd, head, 0, head.length, 0);
|
|
166
183
|
const match = head.toString("utf8", 0, length).match(/"cwd":("(?:[^"\\]|\\.)*")/);
|
|
167
|
-
return _optionalChain([match, 'optionalAccess',
|
|
184
|
+
return _optionalChain([match, 'optionalAccess', _18 => _18[1]]) ? JSON.parse(match[1]) : null;
|
|
168
185
|
} finally {
|
|
169
186
|
_fs.closeSync.call(void 0, fd);
|
|
170
187
|
}
|
|
@@ -177,7 +194,7 @@ function sessionIdFromClaudeFilePath(filePath) {
|
|
|
177
194
|
}
|
|
178
195
|
function sessionIdFromCodexFilePath(filePath) {
|
|
179
196
|
const match = _path.basename.call(void 0, filePath, ".jsonl").match(UUID_IN_TEXT_RE);
|
|
180
|
-
return _nullishCoalesce(_optionalChain([match, 'optionalAccess',
|
|
197
|
+
return _nullishCoalesce(_optionalChain([match, 'optionalAccess', _19 => _19[0]]), () => ( null));
|
|
181
198
|
}
|
|
182
199
|
function readCodexSessionId(filePath) {
|
|
183
200
|
try {
|
|
@@ -189,7 +206,7 @@ function readCodexSessionId(filePath) {
|
|
|
189
206
|
if (!parsed || typeof parsed !== "object") continue;
|
|
190
207
|
const record = parsed;
|
|
191
208
|
const payload = record.payload && typeof record.payload === "object" ? record.payload : null;
|
|
192
|
-
const id = record.type === "session_meta" && typeof _optionalChain([payload, 'optionalAccess',
|
|
209
|
+
const id = record.type === "session_meta" && typeof _optionalChain([payload, 'optionalAccess', _20 => _20.id]) === "string" ? payload.id : null;
|
|
193
210
|
if (id && UUID_RE.test(id)) return id;
|
|
194
211
|
}
|
|
195
212
|
} catch (e5) {
|
|
@@ -198,9 +215,10 @@ function readCodexSessionId(filePath) {
|
|
|
198
215
|
return null;
|
|
199
216
|
}
|
|
200
217
|
function sessionSearchDescription(agent) {
|
|
201
|
-
|
|
218
|
+
const claude = _chunk7COEN3IRjs.claudeProjectsRoots.call(void 0, ).map((root) => _path.join.call(void 0, root, "*", "<session-id>.jsonl")).join(", ");
|
|
219
|
+
if (agent === "claude") return claude;
|
|
202
220
|
if (agent === "codex") return "~/.codex/sessions/**/*.jsonl";
|
|
203
|
-
return
|
|
221
|
+
return `${claude} or ~/.codex/sessions/**/*.jsonl`;
|
|
204
222
|
}
|
|
205
223
|
function parseSessionAgent(value) {
|
|
206
224
|
const normalized = String(value || "auto").trim().toLowerCase();
|
|
@@ -257,7 +275,7 @@ function resolveSessionTargets(input) {
|
|
|
257
275
|
}
|
|
258
276
|
targets.push({
|
|
259
277
|
sessionId,
|
|
260
|
-
label: _nullishCoalesce(_optionalChain([input, 'access',
|
|
278
|
+
label: _nullishCoalesce(_optionalChain([input, 'access', _21 => _21.labels, 'optionalAccess', _22 => _22[index]]), () => ( `${candidate.agent}-session-${sessionId}`)),
|
|
261
279
|
filePath: candidate.filePath,
|
|
262
280
|
agent: candidate.agent
|
|
263
281
|
});
|
|
@@ -454,7 +472,7 @@ function buildSessionUploadContent(raw) {
|
|
|
454
472
|
return { encodedContent: encoded, needsChunking: true };
|
|
455
473
|
}
|
|
456
474
|
async function uploadPayload(path, payload) {
|
|
457
|
-
const { http } =
|
|
475
|
+
const { http } = _chunkUTCGCES2js.getAuthedHttpClient.call(void 0, );
|
|
458
476
|
return await http.post(path, payload);
|
|
459
477
|
}
|
|
460
478
|
async function uploadChunkedSessions(sessions, options) {
|
|
@@ -479,36 +497,60 @@ async function uploadChunkedSessions(sessions, options) {
|
|
|
479
497
|
});
|
|
480
498
|
}
|
|
481
499
|
}
|
|
482
|
-
|
|
500
|
+
return await uploadPayload("/api/v2/cli/send-session/finalize", {
|
|
483
501
|
upload_id: uploadId,
|
|
484
502
|
session_ids: sessions.map((session) => session.sessionId),
|
|
485
503
|
labels: sessions.map((session) => session.label),
|
|
486
504
|
environments: sessions.map(() => detectShellContext()),
|
|
487
505
|
...options.rating ? { rating: options.rating } : {}
|
|
488
506
|
});
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
507
|
+
}
|
|
508
|
+
async function uploadBuiltSessions(built, options) {
|
|
509
|
+
if (built.some((session) => session.needsChunking)) {
|
|
510
|
+
return {
|
|
511
|
+
response: await uploadChunkedSessions(built, { rating: options.rating }),
|
|
512
|
+
chunked: true
|
|
513
|
+
};
|
|
514
|
+
}
|
|
515
|
+
const { rating } = options;
|
|
516
|
+
const response = built.length === 1 && !options.labeled ? await uploadPayload("/api/v2/cli/send-session", {
|
|
517
|
+
session_id: _optionalChain([built, 'access', _23 => _23[0], 'optionalAccess', _24 => _24.sessionId]),
|
|
518
|
+
content: _optionalChain([built, 'access', _25 => _25[0], 'optionalAccess', _26 => _26.encodedContent]),
|
|
519
|
+
environment: detectShellContext(),
|
|
520
|
+
...rating ? { rating } : {}
|
|
521
|
+
}) : await uploadPayload("/api/v2/cli/send-session", {
|
|
522
|
+
sessions: built.map((session) => ({
|
|
523
|
+
session_id: session.sessionId,
|
|
524
|
+
content: session.encodedContent,
|
|
525
|
+
label: session.label,
|
|
526
|
+
environment: detectShellContext()
|
|
527
|
+
})),
|
|
528
|
+
environment: detectShellContext(),
|
|
529
|
+
...rating ? { rating } : {}
|
|
530
|
+
});
|
|
531
|
+
return { response, chunked: false };
|
|
532
|
+
}
|
|
533
|
+
function buildSession(target) {
|
|
534
|
+
return {
|
|
535
|
+
...target,
|
|
536
|
+
...buildSessionUploadContent(_fs.readFileSync.call(void 0, target.filePath))
|
|
537
|
+
};
|
|
538
|
+
}
|
|
539
|
+
async function uploadAgentSession(agentRuntime) {
|
|
540
|
+
const sessionId = feedbackAgentSessionId(agentRuntime);
|
|
541
|
+
if (!sessionId) {
|
|
542
|
+
throw new Error(
|
|
543
|
+
`No ${agentRuntime} session was found to attach. To find one, Deepline needs a session ID set by the agent or a Claude Cowork session.`
|
|
544
|
+
);
|
|
545
|
+
}
|
|
546
|
+
const agent = agentRuntime === "codex" ? "codex" : agentRuntime.startsWith("claude_") ? "claude" : "auto";
|
|
547
|
+
const [target] = resolveSessionTargets({ sessionIds: [sessionId], agent });
|
|
548
|
+
if (!target) throw new Error(`Session file not found: ${sessionId}`);
|
|
549
|
+
await uploadBuiltSessions([buildSession(target)], { labeled: false });
|
|
550
|
+
return target.sessionId;
|
|
509
551
|
}
|
|
510
552
|
async function handleSessionsSend(options) {
|
|
511
|
-
if (
|
|
553
|
+
if (_chunkJ5OXJ4JIjs.rejectRestrictedFeedback.call(void 0, options)) return;
|
|
512
554
|
const rating = parseSessionRating(options.rating);
|
|
513
555
|
if (options.file) {
|
|
514
556
|
const filePath = _path.resolve.call(void 0, options.file);
|
|
@@ -520,7 +562,7 @@ async function handleSessionsSend(options) {
|
|
|
520
562
|
filename: _path.basename.call(void 0, filePath),
|
|
521
563
|
...rating ? { rating } : {}
|
|
522
564
|
});
|
|
523
|
-
|
|
565
|
+
_chunkUTCGCES2js.printCommandEnvelope.call(void 0,
|
|
524
566
|
{
|
|
525
567
|
...response2,
|
|
526
568
|
ok: true,
|
|
@@ -546,31 +588,13 @@ async function handleSessionsSend(options) {
|
|
|
546
588
|
currentSession: options.currentSession,
|
|
547
589
|
agent: options.agent
|
|
548
590
|
});
|
|
549
|
-
const built = targets.map(
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
if (built.some((session) => session.needsChunking)) {
|
|
554
|
-
await uploadChunkedSessions(built, { json: options.json, rating });
|
|
555
|
-
return;
|
|
556
|
-
}
|
|
557
|
-
const response = built.length === 1 && !_optionalChain([options, 'access', _22 => _22.label, 'optionalAccess', _23 => _23.length]) ? await uploadPayload("/api/v2/cli/send-session", {
|
|
558
|
-
session_id: _optionalChain([built, 'access', _24 => _24[0], 'optionalAccess', _25 => _25.sessionId]),
|
|
559
|
-
content: _optionalChain([built, 'access', _26 => _26[0], 'optionalAccess', _27 => _27.encodedContent]),
|
|
560
|
-
environment: detectShellContext(),
|
|
561
|
-
...rating ? { rating } : {}
|
|
562
|
-
}) : await uploadPayload("/api/v2/cli/send-session", {
|
|
563
|
-
sessions: built.map((session) => ({
|
|
564
|
-
session_id: session.sessionId,
|
|
565
|
-
content: session.encodedContent,
|
|
566
|
-
label: session.label,
|
|
567
|
-
environment: detectShellContext()
|
|
568
|
-
})),
|
|
569
|
-
environment: detectShellContext(),
|
|
570
|
-
...rating ? { rating } : {}
|
|
591
|
+
const built = targets.map(buildSession);
|
|
592
|
+
const { response, chunked } = await uploadBuiltSessions(built, {
|
|
593
|
+
rating,
|
|
594
|
+
labeled: Boolean(_optionalChain([options, 'access', _27 => _27.label, 'optionalAccess', _28 => _28.length]))
|
|
571
595
|
});
|
|
572
596
|
const sessionIds = built.map((session) => session.sessionId);
|
|
573
|
-
|
|
597
|
+
_chunkUTCGCES2js.printCommandEnvelope.call(void 0,
|
|
574
598
|
{
|
|
575
599
|
...response,
|
|
576
600
|
ok: true,
|
|
@@ -581,7 +605,7 @@ async function handleSessionsSend(options) {
|
|
|
581
605
|
{
|
|
582
606
|
title: "sessions send",
|
|
583
607
|
lines: [
|
|
584
|
-
`Session ${sessionIds.join(", ")} uploaded to #internal-reports.`
|
|
608
|
+
`Session ${sessionIds.join(", ")} uploaded to #internal-reports${chunked ? " (chunked)" : ""}.`
|
|
585
609
|
]
|
|
586
610
|
}
|
|
587
611
|
]
|
|
@@ -591,7 +615,7 @@ async function handleSessionsSend(options) {
|
|
|
591
615
|
);
|
|
592
616
|
}
|
|
593
617
|
function loadViewerAssets() {
|
|
594
|
-
const cliEntry = _optionalChain([process, 'access',
|
|
618
|
+
const cliEntry = _optionalChain([process, 'access', _29 => _29.argv, 'access', _30 => _30[1], 'optionalAccess', _31 => _31.trim, 'call', _32 => _32()]) ? _fs.realpathSync.call(void 0, _path.resolve.call(void 0, process.argv[1])) : null;
|
|
595
619
|
const candidateRoots = [
|
|
596
620
|
...cliEntry ? [
|
|
597
621
|
_path.join.call(void 0, _path.dirname.call(void 0, _path.dirname.call(void 0, cliEntry)), "viewer"),
|
|
@@ -644,7 +668,7 @@ async function handleSessionsRender(options) {
|
|
|
644
668
|
_fs.mkdirSync.call(void 0, outputDir, { recursive: true });
|
|
645
669
|
outputPath = _path.join.call(void 0,
|
|
646
670
|
outputDir,
|
|
647
|
-
targets.length > 1 ? "session-viewer.html" : `session-${_optionalChain([targets, 'access',
|
|
671
|
+
targets.length > 1 ? "session-viewer.html" : `session-${_optionalChain([targets, 'access', _33 => _33[0], 'optionalAccess', _34 => _34.sessionId])}.html`
|
|
648
672
|
);
|
|
649
673
|
} else {
|
|
650
674
|
_fs.mkdirSync.call(void 0, _path.dirname.call(void 0, outputPath), { recursive: true });
|
|
@@ -678,7 +702,7 @@ ${refreshMeta}
|
|
|
678
702
|
</body>
|
|
679
703
|
</html>`;
|
|
680
704
|
_fs.writeFileSync.call(void 0, outputPath, html, "utf8");
|
|
681
|
-
|
|
705
|
+
_chunkUTCGCES2js.printCommandEnvelope.call(void 0,
|
|
682
706
|
{
|
|
683
707
|
ok: true,
|
|
684
708
|
file: outputPath,
|
|
@@ -705,8 +729,9 @@ function registerSessionsCommands(program) {
|
|
|
705
729
|
`
|
|
706
730
|
Notes:
|
|
707
731
|
Session commands operate on local Claude and Codex JSONL files under
|
|
708
|
-
~/.claude/projects
|
|
709
|
-
|
|
732
|
+
~/.claude/projects (or $CLAUDE_CONFIG_DIR/projects, or a Claude Cowork
|
|
733
|
+
session's ~/mnt/.claude/projects) and ~/.codex/sessions. send uploads a
|
|
734
|
+
compacted transcript or file to Deepline. render writes a local HTML viewer.
|
|
710
735
|
|
|
711
736
|
Examples:
|
|
712
737
|
deepline sessions send --current-session
|
|
@@ -788,4 +813,6 @@ Examples:
|
|
|
788
813
|
|
|
789
814
|
|
|
790
815
|
|
|
791
|
-
|
|
816
|
+
|
|
817
|
+
|
|
818
|
+
exports.feedbackAgentSessionId = feedbackAgentSessionId; exports.uploadAgentSession = uploadAgentSession; exports.registerSessionsCommands = registerSessionsCommands; exports.registerSessionSendRenderCommands = registerSessionSendRenderCommands;
|