deepline 0.3.524 → 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/client-core.ts +8 -0
- package/dist/bundling-sources/sdk/src/http-core.ts +14 -0
- package/dist/bundling-sources/sdk/src/plays/play-description.ts +1 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +10 -0
- package/dist/bundling-sources/shared_libs/observability/dlq.ts +33 -5
- package/dist/bundling-sources/shared_libs/observability/queue-health.ts +9 -0
- package/dist/bundling-sources/shared_libs/observability/queue-item-connectors.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +38 -0
- package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +94 -9
- package/dist/bundling-sources/shared_libs/play-runtime/run-failure-class.ts +98 -0
- package/dist/bundling-sources/shared_libs/play-runtime/run-retry-summary.ts +202 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +60 -8
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-telemetry.ts +112 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +39 -1
- 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 +52 -5
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/play-run-recovery.ts +10 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-retry-facts.ts +62 -0
- package/dist/cli/{auth-QXJMVLPN.mjs → auth-JATW5XZE.mjs} +5 -5
- package/dist/cli/auth-L2POG3LL.js +43 -0
- package/dist/cli/{billing-N5R4HTHT.js → billing-TSHBJIJS.js} +83 -83
- package/dist/cli/{billing-SNSIFM4B.mjs → billing-UT5LIESH.mjs} +8 -8
- package/dist/cli/{chunk-PFKWKWUJ.mjs → chunk-26ULNPQ7.mjs} +2 -2
- package/dist/cli/{chunk-OQ5G7RFQ.mjs → chunk-2GJW4RAQ.mjs} +70 -3
- package/dist/cli/{chunk-HLAFGQPV.mjs → chunk-2JNX3MDG.mjs} +5 -2
- package/dist/cli/{chunk-V7KUBDEB.js → chunk-3MYI3IXW.js} +144 -141
- package/dist/cli/{chunk-WOEPDSO3.js → chunk-3ZEV5BS5.js} +26 -26
- package/dist/cli/{chunk-ATATJNJ6.js → chunk-46HEYGLY.js} +9 -9
- package/dist/cli/{chunk-I75VRGQG.js → chunk-477PXM65.js} +22 -22
- package/dist/cli/{chunk-RVHUW4TN.js → chunk-5YAJGRWB.js} +17 -17
- package/dist/cli/{chunk-T43FF5PF.mjs → chunk-6COGHW7B.mjs} +2 -2
- package/dist/cli/{chunk-V4RJ57MA.js → chunk-6DHEV6IA.js} +2 -2
- package/dist/cli/{chunk-VHTVXS5A.js → chunk-6H56LKJB.js} +16 -16
- package/dist/cli/{chunk-YKFW3NNA.mjs → chunk-6JMWATX5.mjs} +5 -5
- package/dist/cli/{chunk-II3BJKCH.mjs → chunk-77RAGJIZ.mjs} +2 -2
- package/dist/cli/{chunk-ITJ7NB2D.mjs → chunk-7AOFSZJM.mjs} +3 -1
- package/dist/cli/{chunk-OCT4SUJA.js → chunk-7COEN3IR.js} +146 -79
- package/dist/cli/{chunk-XURWFEXM.mjs → chunk-7FCD34YS.mjs} +31 -17
- package/dist/cli/{chunk-BXVYVIMB.js → chunk-B33J4YCC.js} +3 -3
- package/dist/cli/{chunk-RTDX5NNN.mjs → chunk-BFH3DJYV.mjs} +84 -57
- package/dist/cli/{chunk-GJYLC4JB.mjs → chunk-BNH4Y35W.mjs} +2 -2
- package/dist/cli/{chunk-GMO3JDZA.mjs → chunk-BVITYMBK.mjs} +2 -2
- package/dist/cli/{chunk-7QM6DNR4.js → chunk-BYEF4RBX.js} +11 -11
- package/dist/cli/{chunk-536TGWR6.mjs → chunk-C3EW6I65.mjs} +2 -2
- package/dist/cli/{chunk-HTYT2OHB.js → chunk-CDP3LMDT.js} +6 -6
- package/dist/cli/{chunk-YXVYPYIP.js → chunk-CYN2AHR6.js} +10 -10
- package/dist/cli/{chunk-CH7JVSA7.mjs → chunk-D2XMFXFM.mjs} +8 -8
- package/dist/cli/{chunk-2ZWNIS54.js → chunk-D5OEUPPM.js} +269 -269
- package/dist/cli/{chunk-FXTV5B3D.mjs → chunk-DY2AT3JQ.mjs} +12 -12
- package/dist/cli/{chunk-Z4MOEQSY.js → chunk-ED2N4NRI.js} +21 -21
- package/dist/cli/{chunk-RIX26ZJD.mjs → chunk-EEYZLTXX.mjs} +1 -1
- package/dist/cli/{chunk-7E6B7VMS.js → chunk-F5KFGF45.js} +5 -5
- package/dist/cli/{chunk-TZTWH53O.js → chunk-FMPGWAIR.js} +1 -1
- package/dist/cli/{chunk-R2VZVHJP.mjs → chunk-GESIFFQX.mjs} +1 -1
- package/dist/cli/{chunk-YCIXY66B.mjs → chunk-HPACLONQ.mjs} +2 -2
- package/dist/cli/{chunk-WCVIPZWX.mjs → chunk-IMP7WR22.mjs} +5 -5
- package/dist/cli/{chunk-KSQXBLRW.mjs → chunk-IWLDJQGV.mjs} +3 -3
- package/dist/cli/{chunk-EQNAQENZ.js → chunk-J5OXJ4JI.js} +2 -2
- package/dist/cli/{chunk-NUC7ZVDG.mjs → chunk-MQB25LMV.mjs} +5 -5
- package/dist/cli/{chunk-RUULUCBP.js → chunk-O7WUATQC.js} +97 -70
- package/dist/cli/{chunk-NMU3VR5U.js → chunk-PMH4GLMD.js} +1 -0
- package/dist/cli/{chunk-S3A4IXBQ.mjs → chunk-PSX3WHIH.mjs} +1 -0
- package/dist/cli/{chunk-LRWDZDBS.js → chunk-RZJWHL7L.js} +5 -5
- package/dist/cli/{chunk-66N76YZG.js → chunk-SCLRGDF4.js} +44 -44
- package/dist/cli/{chunk-SMWFOGUT.js → chunk-SJ6KUCGM.js} +53 -53
- package/dist/cli/{chunk-PFKKZVFK.js → chunk-TBQC2XS3.js} +41 -41
- package/dist/cli/{chunk-2ZX7XSAQ.mjs → chunk-TCLJXJAG.mjs} +4 -4
- package/dist/cli/{chunk-YGOI5ZE5.mjs → chunk-TVHDWS5U.mjs} +1 -1
- package/dist/cli/{chunk-MW3YMPD2.mjs → chunk-TXJW6RIM.mjs} +1 -1
- package/dist/cli/{chunk-KKPBCB6D.mjs → chunk-U6OUX47C.mjs} +2 -2
- package/dist/cli/{chunk-GTGJBZVH.js → chunk-UTCGCES2.js} +7 -7
- package/dist/cli/{chunk-V2YIBBVT.mjs → chunk-UUIC2JFZ.mjs} +1 -1
- package/dist/cli/{chunk-JDIQBZ6O.js → chunk-UWCEBS7F.js} +14 -14
- package/dist/cli/{chunk-ANKD3AIR.js → chunk-WBY3R55B.js} +2 -2
- package/dist/cli/{chunk-SF4QJVBE.js → chunk-WITNIMLE.js} +3 -3
- package/dist/cli/{chunk-7OQGZBDG.js → chunk-WL6GAZBD.js} +31 -17
- package/dist/cli/{chunk-R457IMHJ.mjs → chunk-WOLY6SU4.mjs} +1 -1
- package/dist/cli/{chunk-3WWTBQHC.mjs → chunk-XVIMOB2U.mjs} +2 -2
- package/dist/cli/{chunk-NTLBZUHD.js → chunk-XYIECA7M.js} +4 -2
- package/dist/cli/{chunk-BXIQD2IY.mjs → chunk-Y47OCS5V.mjs} +1 -1
- package/dist/cli/{chunk-EO55Y4QW.mjs → chunk-YNFPZVII.mjs} +5 -5
- package/dist/cli/{chunk-BN5VKY4X.js → chunk-ZS2WHWWL.js} +7 -7
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-HT2JBCW2.mjs → csv-4BLFRED6.mjs} +4 -4
- package/dist/cli/{csv-Q2LWKXAV.js → csv-KSJB5Z3M.js} +13 -13
- package/dist/cli/{db-XEV4WEE4.js → db-G7Z5CKO2.js} +28 -28
- package/dist/cli/{db-CS3XQ2LX.mjs → db-OVW6C3DV.mjs} +7 -7
- package/dist/cli/describe-KMYR2JBC.js +50 -0
- package/dist/cli/describe-OEFTD7WQ.mjs +50 -0
- package/dist/cli/describe-core.d.mts +4 -2
- package/dist/cli/describe-core.d.ts +4 -2
- package/dist/cli/describe-core.js +5 -5
- package/dist/cli/describe-core.mjs +4 -4
- package/dist/cli/{executions-L6XFG5MP.mjs → executions-7ZKQ4ZU3.mjs} +7 -7
- package/dist/cli/{executions-JCC34WAD.js → executions-O7USCBCW.js} +9 -9
- package/dist/cli/{feedback-AWBDO5I6.mjs → feedback-KUBL5E3I.mjs} +61 -13
- package/dist/cli/{feedback-HV2M2G7N.js → feedback-Y55WCRIQ.js} +65 -17
- package/dist/cli/{git-S4LRXTRX.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-7MOKBL4O.mjs → legacy-noops-MUXD4HRC.mjs} +6 -6
- package/dist/cli/{legacy-noops-RGSZUD6V.js → legacy-noops-OVWX4KB3.js} +9 -9
- package/dist/cli/{monitors-XQNXDZPQ.mjs → monitors-2ZSGBY52.mjs} +8 -8
- package/dist/cli/{monitors-JEFM2C5W.js → monitors-3QVYGYWA.js} +101 -101
- package/dist/cli/{org-KTMJZGTN.mjs → org-RDSPE5FB.mjs} +7 -7
- package/dist/cli/{org-GYLA5V32.js → org-S6Z3SDLI.js} +87 -87
- package/dist/cli/{pages-WOMU2T2O.mjs → pages-K5DSMHLJ.mjs} +7 -7
- package/dist/cli/{pages-RY4U7OCL.js → pages-VUWF2OR7.js} +19 -19
- package/dist/cli/{play-KOYGGNYS.mjs → play-PZLXOYEX.mjs} +151 -102
- package/dist/cli/{play-2Q6MWJ3D.js → play-SQOJTUFC.js} +756 -707
- package/dist/cli/{providers-7YKDITJC.mjs → providers-AMIGP3D4.mjs} +7 -7
- package/dist/cli/{providers-HOIRHMN2.js → providers-FZBEPUOI.js} +10 -10
- package/dist/cli/{quickstart-RDXHSMVX.mjs → quickstart-HNOQKGOF.mjs} +4 -4
- package/dist/cli/{quickstart-OWCJOSQA.js → quickstart-QIHZDBGM.js} +6 -6
- package/dist/cli/{run-MT2ABKO5.js → run-IQGM3TO2.js} +46 -46
- package/dist/cli/{run-RT73NDP5.mjs → run-JDW6BDNT.mjs} +27 -27
- package/dist/cli/search-BNWRL3YY.js +33 -0
- package/dist/cli/{search-CJPKIGSA.mjs → search-DMVUKJ23.mjs} +9 -9
- package/dist/cli/{search-output-AREMA544.mjs → search-output-5UAPUUHH.mjs} +4 -4
- package/dist/cli/{search-output-OSBZ7WK6.js → search-output-UUW6UNHF.js} +6 -6
- package/dist/cli/{secrets-BTIY2FEJ.mjs → secrets-46KSTPFN.mjs} +7 -7
- package/dist/cli/{secrets-OV6KH633.js → secrets-U532KN24.js} +16 -16
- package/dist/cli/sessions-JZUONXH4.js +22 -0
- package/dist/cli/sessions-RUNWYHYX.mjs +22 -0
- package/dist/cli/{settings-7BQIC7QN.mjs → settings-56L3WHCY.mjs} +14 -14
- package/dist/cli/{settings-LBIECYDB.js → settings-O2A37FFA.js} +87 -87
- package/dist/cli/{setup-QZE7QR3F.js → setup-ETFSMSCH.js} +50 -50
- package/dist/cli/{setup-XPTSNNES.mjs → setup-Q27X6JZY.mjs} +10 -10
- package/dist/cli/skills-IKDJ5JDN.js +37 -0
- package/dist/cli/{skills-TGGKIQLT.mjs → skills-WFQRZL4D.mjs} +8 -8
- package/dist/cli/tools-B735AA67.js +57 -0
- package/dist/cli/{tools-MKIFX2TQ.mjs → tools-EV6CKJOX.mjs} +20 -20
- package/dist/cli/update-CNNURAM3.js +35 -0
- package/dist/cli/{update-5R3D3WNH.mjs → update-KIPPFVCH.mjs} +10 -10
- package/dist/cli/{views-VPWEINIA.js → views-DNZ2HFTA.js} +19 -19
- package/dist/cli/{views-VHKDHHUP.mjs → views-LMJXWD4N.mjs} +7 -7
- package/dist/cli/{workflow-D5DF65N6.mjs → workflow-3XKUQ73U.mjs} +8 -8
- package/dist/cli/{workflow-7K2VEQ4V.js → workflow-ZUDTIOK6.js} +18 -18
- package/dist/{client-C5_6W8yd.d.mts → client-Bd2meveV.d.mts} +1 -1
- package/dist/{client-iXW4TOat.d.ts → client-CBCVhL8U.d.ts} +1 -1
- package/dist/{client-core-Dob428Z4.d.mts → client-core-CGj8V9mw.d.mts} +67 -0
- package/dist/{client-core-B-GPfmaC.d.ts → client-core-CsRRWCFy.d.ts} +67 -0
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +10 -10
- package/dist/index.mjs +7 -7
- package/dist/install-integrity.json +121 -118
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/play-description.js +2 -2
- package/dist/plays/play-description.mjs +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 +6 -6
- package/dist/server.mjs +4 -4
- package/package.json +1 -1
- package/dist/cli/auth-OKPHHMMP.js +0 -43
- package/dist/cli/describe-5G5NXO5E.js +0 -50
- package/dist/cli/describe-OUTXLDGZ.mjs +0 -50
- package/dist/cli/git-GDPTG52F.js +0 -25
- package/dist/cli/search-7VBA6IGS.js +0 -33
- package/dist/cli/sessions-3CO3ZFOD.mjs +0 -18
- package/dist/cli/sessions-B3WNEWRW.js +0 -18
- package/dist/cli/skills-TXBRTWEV.js +0 -37
- package/dist/cli/tools-RZJV4X3J.js +0 -57
- package/dist/cli/update-YWGGPWUA.js +0 -35
|
@@ -1181,18 +1181,16 @@ Related:
|
|
|
1181
1181
|
"plays get": {
|
|
1182
1182
|
core: `
|
|
1183
1183
|
Purpose:
|
|
1184
|
-
Full metadata for a play: revisions, source, triggers, and latest runs.
|
|
1184
|
+
[[cli:Full metadata for a play: revisions, source, triggers, and latest runs.]][[mcp:List or read the saved source files of one Play revision.]]
|
|
1185
1185
|
When:
|
|
1186
|
-
Only when describe is not enough: reading the source (
|
|
1187
|
-
file.play.ts), checking revisions, or auditing a saved play.
|
|
1186
|
+
[[cli:Only when describe is not enough: reading the source (--source --out file.play.ts), checking revisions, or auditing a saved play.]][[mcp:Before editing a saved Play. List its source paths, then read each needed file at the exact returned revision.]]
|
|
1188
1187
|
[[cli:
|
|
1189
1188
|
Input:
|
|
1190
1189
|
The play reference. --source prints or writes the source; --working,
|
|
1191
1190
|
--live, --revision <n> pick which source.
|
|
1192
1191
|
]]
|
|
1193
1192
|
Output (JSON):
|
|
1194
|
-
The play record with revision and trigger metadata; with
|
|
1195
|
-
TypeScript source.
|
|
1193
|
+
[[cli:The play record with revision and trigger metadata; with --source, the TypeScript source.]][[mcp:The revision, entrypoint, and file paths. With a file selected, the source chunk and its next offset.]]
|
|
1196
1194
|
Cost:
|
|
1197
1195
|
Free.
|
|
1198
1196
|
`
|
|
@@ -1502,7 +1500,7 @@ Input:
|
|
|
1502
1500
|
[[cli:
|
|
1503
1501
|
Output (JSON):
|
|
1504
1502
|
kind "run_overview", runUrl (the Play page with this run selected),
|
|
1505
|
-
run {id, playName, status, startedAt, finishedAt, durationMs}, steps[] {id, kind, status, label, progress {total, executed,
|
|
1503
|
+
run {id, playName, status, startedAt, finishedAt, durationMs, retries}, steps[] {id, kind, status, label, progress {total, executed,
|
|
1506
1504
|
reused, failed, completedRows}}, failures.steps[], errorDetails,
|
|
1507
1505
|
rowOutcomes, warnings[], datasets[] {datasetId, name, rowCount, summary,
|
|
1508
1506
|
storage {schema, table}, preview {returnedRows, totalRows, partial, rows}},
|
|
@@ -1532,6 +1530,15 @@ Output fields:
|
|
|
1532
1530
|
run.status queued, running, completed, failed, or stopped. Only
|
|
1533
1531
|
the last three are terminal.
|
|
1534
1532
|
run.activity the current step while running, null when finished.
|
|
1533
|
+
run.retries failure-driven retries since the last resume:
|
|
1534
|
+
platformRecoveries {preCode, postCode} and
|
|
1535
|
+
recoveryOutcome (none, recovering, recovered,
|
|
1536
|
+
exhausted), plus resumeEpoch (runs resume count).
|
|
1537
|
+
Durable waits are not retries and are not counted. A
|
|
1538
|
+
retried attempt may repeat earlier work; these are
|
|
1539
|
+
counts, not proof that anything ran once. Provider
|
|
1540
|
+
retries inside one call are not counted; read them
|
|
1541
|
+
with runs logs <run-id> --kind activity.observed.
|
|
1535
1542
|
steps[].label the step's state in one line, as the dashboard shows
|
|
1536
1543
|
it.
|
|
1537
1544
|
datasets[].summary.reportedPopulation {totalRows, persistedRows,
|
|
@@ -2110,10 +2117,13 @@ When:
|
|
|
2110
2117
|
succeeds, tell the user: "Session sent to Deepline. Rating: <rating>".
|
|
2111
2118
|
[[cli:
|
|
2112
2119
|
Input:
|
|
2113
|
-
--current-session (the calling agent's session, else the
|
|
2114
|
-
|
|
2115
|
-
optional --label), or --file
|
|
2116
|
-
|
|
2120
|
+
--current-session (the calling agent's session, else the Claude Cowork
|
|
2121
|
+
session this runs in, else the newest one started in this directory), or
|
|
2122
|
+
--session-id <uuid> (repeatable, each with an optional --label), or --file
|
|
2123
|
+
<path> for a raw file. Claude transcripts are found under
|
|
2124
|
+
$CLAUDE_CONFIG_DIR/projects, a Cowork session's ~/mnt/.claude/projects,
|
|
2125
|
+
and ~/.claude/projects. --agent auto|claude|codex limits where transcripts
|
|
2126
|
+
are looked for.
|
|
2117
2127
|
--rating good|poor|neutral, judged by outcome and not tone: good when the
|
|
2118
2128
|
user's goal was met without product problems; poor when it was missed, or
|
|
2119
2129
|
a product failure, bug, or avoidable friction (including a substantial
|
|
@@ -2128,10 +2138,6 @@ Cost:
|
|
|
2128
2138
|
Free.
|
|
2129
2139
|
Avoid:
|
|
2130
2140
|
The command is sessions, plural; the singular session form is the old one.
|
|
2131
|
-
In a Cowork sandbox the transcripts are mounted under
|
|
2132
|
-
~/mnt/.claude/projects: when no session files are found and that directory
|
|
2133
|
-
exists, link it to ~/.claude/projects and retry, or pass the newest
|
|
2134
|
-
transcript there with [[--file]].
|
|
2135
2141
|
`
|
|
2136
2142
|
},
|
|
2137
2143
|
"settings feedback": {
|
|
@@ -2153,7 +2159,9 @@ Cost:
|
|
|
2153
2159
|
core: `
|
|
2154
2160
|
Purpose:
|
|
2155
2161
|
Send a bug report or product feedback to the Deepline team. The calling
|
|
2156
|
-
agent's session id is attached, so a report can be matched to a transcript
|
|
2162
|
+
agent's session id is attached, so a report can be matched to a transcript,
|
|
2163
|
+
but the transcript itself is uploaded only with [[--attach-session]] or
|
|
2164
|
+
[[sessions send]]. Never tell the user a transcript is attached otherwise.
|
|
2157
2165
|
When:
|
|
2158
2166
|
Confirm the report text with the user before sending with [[--requested]].
|
|
2159
2167
|
When the feedback setting is off, send only if the user explicitly requests
|
|
@@ -2176,14 +2184,20 @@ Input:
|
|
|
2176
2184
|
--error-outcome terminal when an error stopped the task, continued when
|
|
2177
2185
|
work went on, including through a workaround; omit it when no error
|
|
2178
2186
|
occurred. Pass --requested when the user requested or approved the report.
|
|
2179
|
-
--
|
|
2187
|
+
--attach-session also uploads the calling agent's own session transcript
|
|
2188
|
+
(the session it names, or the Claude Cowork session) and links it; when
|
|
2189
|
+
none is found, nothing is sent. Pass it only when the user agreed to share
|
|
2190
|
+
the session. --json.
|
|
2180
2191
|
Put the evidence in the text. A slow run: the goal, the play and run id,
|
|
2181
2192
|
input size, observed duration, status changes or polling count, and what
|
|
2182
2193
|
you expected. Extra steps: the goal, the command path you took, the
|
|
2183
2194
|
detours, and the direct path you expected.
|
|
2184
2195
|
]]
|
|
2185
2196
|
Output (JSON):
|
|
2186
|
-
A confirmation envelope for the report
|
|
2197
|
+
A confirmation envelope for the report, with session_id (null when none
|
|
2198
|
+
was found), transcript_uploaded, and warnings. When an agent's session
|
|
2199
|
+
can't be found, a warning on stderr names the sessions send command that
|
|
2200
|
+
uploads the transcript.
|
|
2187
2201
|
Cost:
|
|
2188
2202
|
Free. A report does not authorize a paid reproduction or a session upload.
|
|
2189
2203
|
`
|
|
@@ -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; } var _class;
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkUTCGCES2js = require('./chunk-UTCGCES2.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/progress.ts
|
|
6
6
|
var _worker_threads = require('worker_threads');
|
|
@@ -19,7 +19,7 @@ var CliProgress = (_class = class {
|
|
|
19
19
|
__init9() {this.quiet = false}
|
|
20
20
|
// --json output is one JSON document: progress never renders under it.
|
|
21
21
|
constructor(enabled) {;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);_class.prototype.__init4.call(this);_class.prototype.__init5.call(this);_class.prototype.__init6.call(this);_class.prototype.__init7.call(this);_class.prototype.__init8.call(this);_class.prototype.__init9.call(this);
|
|
22
|
-
this.enabled = enabled && !
|
|
22
|
+
this.enabled = enabled && !_chunkUTCGCES2js.isJsonOutputMode.call(void 0, );
|
|
23
23
|
}
|
|
24
24
|
setLogWriter(writer) {
|
|
25
25
|
this.logWriter = writer;
|
|
@@ -59,7 +59,7 @@ var CliProgress = (_class = class {
|
|
|
59
59
|
this.logWriter(line);
|
|
60
60
|
return;
|
|
61
61
|
}
|
|
62
|
-
if (
|
|
62
|
+
if (_chunkUTCGCES2js.isJsonOutputMode.call(void 0, )) return;
|
|
63
63
|
if (!this.enabled) {
|
|
64
64
|
process.stderr.write(`${line}
|
|
65
65
|
`);
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
rejectRestrictedFeedback
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UUIC2JFZ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
getAuthedHttpClient,
|
|
6
6
|
printCommandEnvelope
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-XVIMOB2U.mjs";
|
|
8
8
|
import {
|
|
9
|
-
agentSessionIdFromEnvironment
|
|
10
|
-
|
|
9
|
+
agentSessionIdFromEnvironment,
|
|
10
|
+
claudeProjectsRoots,
|
|
11
|
+
coworkTranscriptFromEnvironment
|
|
12
|
+
} from "./chunk-2GJW4RAQ.mjs";
|
|
11
13
|
|
|
12
14
|
// src/cli/commands/sessions.ts
|
|
13
15
|
import {
|
|
@@ -48,14 +50,17 @@ function detectShellContext() {
|
|
|
48
50
|
cwd: process.cwd()
|
|
49
51
|
};
|
|
50
52
|
}
|
|
51
|
-
function claudeProjectsRoot() {
|
|
52
|
-
return join(homeDir(), ".claude", "projects");
|
|
53
|
-
}
|
|
54
53
|
function codexSessionsRoot() {
|
|
55
54
|
return join(homeDir(), ".codex", "sessions");
|
|
56
55
|
}
|
|
57
56
|
function listClaudeSessionFiles() {
|
|
58
|
-
const
|
|
57
|
+
const files = [];
|
|
58
|
+
for (const root of claudeProjectsRoots()) {
|
|
59
|
+
files.push(...listClaudeSessionFilesIn(root));
|
|
60
|
+
}
|
|
61
|
+
return files;
|
|
62
|
+
}
|
|
63
|
+
function listClaudeSessionFilesIn(root) {
|
|
59
64
|
if (!existsSync(root)) return [];
|
|
60
65
|
const projectDirs = readDirectoryNames(root);
|
|
61
66
|
const files = [];
|
|
@@ -147,10 +152,22 @@ function currentSessionFile(agent) {
|
|
|
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 : coworkTranscriptFromEnvironment();
|
|
160
|
+
const coworkStat = cowork ? statIfReadable(cowork.filePath) : null;
|
|
161
|
+
if (cowork && coworkStat) {
|
|
162
|
+
return { agent: "claude", ...cowork, mtimeMs: coworkStat.mtimeMs };
|
|
163
|
+
}
|
|
164
|
+
return newestFirst.find(
|
|
151
165
|
(candidate) => sessionStartedInDirectory(candidate, cwd)
|
|
152
166
|
) ?? newestFirst[0] ?? null;
|
|
153
167
|
}
|
|
168
|
+
function feedbackAgentSessionId(agentRuntime) {
|
|
169
|
+
return agentSessionIdFromEnvironment(process.env, agentRuntime) ?? (agentRuntime === "claude_cowork" || agentRuntime === "claude_code" ? coworkTranscriptFromEnvironment()?.sessionId ?? null : null);
|
|
170
|
+
}
|
|
154
171
|
function sessionStartedInDirectory(candidate, cwd) {
|
|
155
172
|
if (candidate.agent === "claude") {
|
|
156
173
|
return basename(dirname(candidate.filePath)) === cwd.replace(/[^a-zA-Z0-9]/g, "-");
|
|
@@ -198,9 +215,10 @@ function readCodexSessionId(filePath) {
|
|
|
198
215
|
return null;
|
|
199
216
|
}
|
|
200
217
|
function sessionSearchDescription(agent) {
|
|
201
|
-
|
|
218
|
+
const claude = claudeProjectsRoots().map((root) => join(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();
|
|
@@ -479,33 +497,57 @@ 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: built[0]?.sessionId,
|
|
518
|
+
content: built[0]?.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(readFileSync(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
553
|
if (rejectRestrictedFeedback(options)) return;
|
|
@@ -546,28 +588,10 @@ 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 && !options.label?.length ? await uploadPayload("/api/v2/cli/send-session", {
|
|
558
|
-
session_id: built[0]?.sessionId,
|
|
559
|
-
content: built[0]?.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(options.label?.length)
|
|
571
595
|
});
|
|
572
596
|
const sessionIds = built.map((session) => session.sessionId);
|
|
573
597
|
printCommandEnvelope(
|
|
@@ -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
|
]
|
|
@@ -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
|
|
@@ -786,6 +811,8 @@ Examples:
|
|
|
786
811
|
}
|
|
787
812
|
|
|
788
813
|
export {
|
|
814
|
+
feedbackAgentSessionId,
|
|
815
|
+
uploadAgentSession,
|
|
789
816
|
registerSessionsCommands,
|
|
790
817
|
registerSessionSendRenderCommands
|
|
791
818
|
};
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
formatModelDescription,
|
|
4
4
|
publicToolSchemas,
|
|
5
5
|
toolMetadataJsonForDescribe
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GESIFFQX.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-7AOFSZJM.mjs";
|
|
17
17
|
import {
|
|
18
18
|
DeeplineError
|
|
19
19
|
} from "./chunk-ZPGGW27Q.mjs";
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-XVIMOB2U.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-TXJW6RIM.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
var _chunkD3BCSAN7js = require('./chunk-D3BCSAN7.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkRZJWHL7Ljs = require('./chunk-RZJWHL7L.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkUWCEBS7Fjs = require('./chunk-UWCEBS7F.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkUTCGCES2js = require('./chunk-UTCGCES2.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkWITNIMLEjs = require('./chunk-WITNIMLE.js');
|
|
18
18
|
|
|
19
19
|
// src/cli/commands/search.ts
|
|
20
20
|
var _commander = require('commander');
|
|
@@ -24,7 +24,7 @@ var _fs = require('fs');
|
|
|
24
24
|
var _path = require('path');
|
|
25
25
|
var SEARCH_REF_TTL_MS = 15 * 6e4;
|
|
26
26
|
function lastSearchPath() {
|
|
27
|
-
return _path.join.call(void 0,
|
|
27
|
+
return _path.join.call(void 0, _chunkWITNIMLEjs.sdkCliStateDirPath.call(void 0, _chunkWITNIMLEjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
28
28
|
}
|
|
29
29
|
function rememberSearchRef(searchRef) {
|
|
30
30
|
writeSearchRefs({ searchRef });
|
|
@@ -134,9 +134,9 @@ async function runSearch(queryInputs, options, types, exclude = []) {
|
|
|
134
134
|
console.error("--summary-width must be an integer of at least 2.");
|
|
135
135
|
return 1;
|
|
136
136
|
}
|
|
137
|
-
const client = new (0,
|
|
137
|
+
const client = new (0, _chunkRZJWHL7Ljs.DeeplineClient)();
|
|
138
138
|
const json = options.json === true;
|
|
139
|
-
const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-
|
|
139
|
+
const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-UUW6UNHF.js")));
|
|
140
140
|
const searches = [];
|
|
141
141
|
const chunks = [];
|
|
142
142
|
const refs = /* @__PURE__ */ new Map();
|
|
@@ -159,7 +159,7 @@ async function runSearch(queryInputs, options, types, exclude = []) {
|
|
|
159
159
|
const text = _optionalChain([renderer, 'optionalAccess', _12 => _12.renderSearchResults, 'call', _13 => _13(result, summaryWidth)]);
|
|
160
160
|
if (!multiple) {
|
|
161
161
|
if (searchRef) rememberSearchRef(searchRef);
|
|
162
|
-
|
|
162
|
+
_chunkUTCGCES2js.printCommandEnvelope.call(void 0, result, { json, text });
|
|
163
163
|
return 0;
|
|
164
164
|
}
|
|
165
165
|
searches.push({ ...result, query });
|
|
@@ -173,8 +173,8 @@ ${text}`);
|
|
|
173
173
|
}
|
|
174
174
|
} catch (error) {
|
|
175
175
|
if (!multiple) throw error;
|
|
176
|
-
const payload =
|
|
177
|
-
const queryExitCode = _nullishCoalesce(payload.exitCode, () => (
|
|
176
|
+
const payload = _chunkUTCGCES2js.errorToJsonPayload.call(void 0, error);
|
|
177
|
+
const queryExitCode = _nullishCoalesce(payload.exitCode, () => ( _chunkUWCEBS7Fjs.resolveSdkCliFailureExitCode.call(void 0, error)));
|
|
178
178
|
searches.push({ ...payload, query, exitCode: queryExitCode });
|
|
179
179
|
if (!json) {
|
|
180
180
|
console.error(`${JSON.stringify(query)}: ${payload.error.message}`);
|
|
@@ -186,7 +186,7 @@ Search failed.
|
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
188
|
rememberSearchRefsByTool(refs);
|
|
189
|
-
|
|
189
|
+
_chunkUTCGCES2js.printCommandEnvelope.call(void 0,
|
|
190
190
|
{ searches },
|
|
191
191
|
{
|
|
192
192
|
json,
|
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
SCHEMA_LINE_LIMIT,
|
|
3
3
|
fieldBlockLines,
|
|
4
4
|
schemaFields
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-7AOFSZJM.mjs";
|
|
6
6
|
import {
|
|
7
7
|
csvSafeJsonString,
|
|
8
8
|
csvStringFromRows,
|
|
9
9
|
markJsonOutputHandled,
|
|
10
10
|
writeRawStderr
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-XVIMOB2U.mjs";
|
|
12
12
|
|
|
13
13
|
// src/cli/describe-options.ts
|
|
14
14
|
function addDescribeOptions(command, options = {}) {
|
|
@@ -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 _chunkWBY3R55Bjs = require('./chunk-WBY3R55B.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkSCLRGDF4js = require('./chunk-SCLRGDF4.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") _chunkSCLRGDF4js.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
22
|
+
const compatibility = await _chunkWBY3R55Bjs.traceCliSpan.call(void 0,
|
|
23
23
|
"cli.sdk_compatibility",
|
|
24
24
|
{ baseUrl, command: "plays run" },
|
|
25
|
-
() =>
|
|
25
|
+
() => _chunkSCLRGDF4js.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
|
+
_chunkSCLRGDF4js.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
|
|
34
34
|
quietAdvisory: true
|
|
35
35
|
});
|
|
36
36
|
}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkXYIECA7Mjs = require('./chunk-XYIECA7M.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkUTCGCES2js = require('./chunk-UTCGCES2.js');
|
|
12
12
|
|
|
13
13
|
// src/cli/describe-options.ts
|
|
14
14
|
function addDescribeOptions(command, options = {}) {
|
|
@@ -26,7 +26,7 @@ function addDescribeOptions(command, options = {}) {
|
|
|
26
26
|
"Show only the in-play example, and explain how it takes inputs and returns outputs"
|
|
27
27
|
).option("--no-example", "Hide the run examples").option(
|
|
28
28
|
"--full-schema",
|
|
29
|
-
`Print every field: a long schema unfolded (over ${
|
|
29
|
+
`Print every field: a long schema unfolded (over ${_chunkXYIECA7Mjs.SCHEMA_LINE_LIMIT} lines), list rows, and a tool's raw response`
|
|
30
30
|
).option(
|
|
31
31
|
"--fields <names>",
|
|
32
32
|
"Show only these fields, comma-separated, plus every required input"
|
|
@@ -249,7 +249,7 @@ function projectRunDatasetCell(value) {
|
|
|
249
249
|
const logicalValue = parseSerializedDatasetValue(value);
|
|
250
250
|
if (logicalValue === null || logicalValue === void 0) return logicalValue;
|
|
251
251
|
if (typeof logicalValue === "object") {
|
|
252
|
-
return
|
|
252
|
+
return _chunkUTCGCES2js.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
|
|
253
253
|
}
|
|
254
254
|
return logicalValue;
|
|
255
255
|
}
|
|
@@ -641,7 +641,7 @@ function csvText(rows, columns = []) {
|
|
|
641
641
|
rows: rows.map((row) => record(row) ? row : { value: row }),
|
|
642
642
|
columns
|
|
643
643
|
});
|
|
644
|
-
return
|
|
644
|
+
return _chunkUTCGCES2js.csvStringFromRows.call(void 0, projection.rows, projection.columns);
|
|
645
645
|
}
|
|
646
646
|
function writeExecutionOutput(result, options, { skipReceiptFile = false } = {}) {
|
|
647
647
|
let temp;
|
|
@@ -768,7 +768,7 @@ function writeExecutionOutput(result, options, { skipReceiptFile = false } = {})
|
|
|
768
768
|
};
|
|
769
769
|
if (options.receiptOut && !skipReceiptFile) {
|
|
770
770
|
persist(options.receiptOut, jsonText(receipt));
|
|
771
|
-
|
|
771
|
+
_chunkUTCGCES2js.markJsonOutputHandled.call(void 0, );
|
|
772
772
|
} else {
|
|
773
773
|
printReceipt(receipt, options, {
|
|
774
774
|
data: hasData ? result.data : void 0,
|
|
@@ -871,9 +871,9 @@ function annotated(schema, values) {
|
|
|
871
871
|
function shapeLines(title, data) {
|
|
872
872
|
const schema = annotated(observedSchema(data), [data]);
|
|
873
873
|
const block = (heading, fieldSchema) => {
|
|
874
|
-
const { lines, folded } =
|
|
874
|
+
const { lines, folded } = _chunkXYIECA7Mjs.fieldBlockLines.call(void 0,
|
|
875
875
|
heading,
|
|
876
|
-
|
|
876
|
+
_chunkXYIECA7Mjs.schemaFields.call(void 0, fieldSchema)
|
|
877
877
|
);
|
|
878
878
|
return [
|
|
879
879
|
...lines,
|
|
@@ -1027,8 +1027,8 @@ 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
|
-
|
|
1031
|
-
|
|
1030
|
+
_chunkUTCGCES2js.writeRawStderr.call(void 0, text);
|
|
1031
|
+
_chunkUTCGCES2js.markJsonOutputHandled.call(void 0, );
|
|
1032
1032
|
} else {
|
|
1033
1033
|
(dataOnStdout(options) ? process.stderr : process.stdout).write(text);
|
|
1034
1034
|
}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
2
|
seedToolListScript
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DY2AT3JQ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
addDescribeOptions
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-C3EW6I65.mjs";
|
|
7
7
|
import {
|
|
8
8
|
describeLookupsFor,
|
|
9
9
|
describeName,
|
|
10
10
|
findNamed
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-BNH4Y35W.mjs";
|
|
12
12
|
import {
|
|
13
13
|
SCHEMA_LINE_LIMIT
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-7AOFSZJM.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineClient
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-HPACLONQ.mjs";
|
|
18
18
|
import {
|
|
19
19
|
failureReportHeaders,
|
|
20
20
|
isFailureReportingDisabled
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-6COGHW7B.mjs";
|
|
22
22
|
import {
|
|
23
23
|
printCommandEnvelope
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-XVIMOB2U.mjs";
|
|
25
25
|
import {
|
|
26
26
|
autoDetectBaseUrl,
|
|
27
27
|
resolveApiKeyForBaseUrl
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-TXJW6RIM.mjs";
|
|
29
29
|
|
|
30
30
|
// src/cli/commands/describe.ts
|
|
31
31
|
import { writeFileSync } from "fs";
|