deepline 0.3.466 → 0.3.468
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/client-core.ts +41 -2
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/integration-contracts/billing-entitlements.ts +17 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +325 -44
- package/dist/bundling-sources/shared_libs/plays/field-catalog.ts +15 -0
- package/dist/bundling-sources/shared_libs/plays/tool-result-types.ts +51 -6
- package/dist/bundling-sources/shared_libs/product-notifications/billing-sales.ts +37 -1
- package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +2 -1
- package/dist/bundling-sources/shared_libs/product-notifications/default-policy.ts +22 -1
- package/dist/cli/{auth-HYIPYSKK.mjs → auth-CXQRTOBC.mjs} +5 -5
- package/dist/cli/auth-MDWIVGZQ.js +41 -0
- package/dist/cli/{billing-5S6SGBUP.mjs → billing-HDKO5VQI.mjs} +44 -6
- package/dist/cli/{billing-NG62QGPT.js → billing-JSIPTXM6.js} +115 -77
- package/dist/cli/{chunk-EOKUL6XS.js → chunk-2NE3LCEA.js} +5 -5
- package/dist/cli/{chunk-22BKA2QL.js → chunk-37Z2W7OS.js} +26 -26
- package/dist/cli/{chunk-7YDN6AEK.mjs → chunk-3RGWTKK3.mjs} +10 -0
- package/dist/cli/{chunk-LDEJ4NUP.js → chunk-54CKAYKK.js} +13 -13
- package/dist/cli/{chunk-RGRSUMN6.js → chunk-54SVGPMK.js} +5 -5
- package/dist/cli/{chunk-B7BNWOG6.js → chunk-5RXVB6UK.js} +3 -3
- package/dist/cli/{chunk-QMHBWFU5.mjs → chunk-6PN2RUXL.mjs} +1 -1
- package/dist/cli/{chunk-MTH7WIE3.js → chunk-747ZYPXB.js} +53 -53
- package/dist/cli/{chunk-UHAKSLL2.mjs → chunk-7PBIHKB4.mjs} +11 -1
- package/dist/cli/{chunk-R2SQN2CD.js → chunk-AXTZID4V.js} +6 -6
- package/dist/cli/{chunk-IEQPOBTK.mjs → chunk-CHD7NMZD.mjs} +1 -1
- package/dist/cli/{chunk-V27TVT7P.mjs → chunk-CXYMJSRQ.mjs} +1 -1
- package/dist/cli/{chunk-NJ6KQLMO.mjs → chunk-DDUCF63F.mjs} +11 -11
- package/dist/cli/{chunk-CMXFOZVG.js → chunk-DQHMXKDT.js} +258 -258
- package/dist/cli/{chunk-ZBWKWMSH.js → chunk-ECY6QP3M.js} +16 -16
- package/dist/cli/{chunk-H5MYPDO2.mjs → chunk-EOWMLNCV.mjs} +1 -1
- package/dist/cli/{chunk-YHPUJI7G.mjs → chunk-ERQJLYIS.mjs} +5 -5
- package/dist/cli/{chunk-A7MWUG5H.js → chunk-EXXXRDCC.js} +1 -1
- package/dist/cli/{chunk-5EUJKY3G.mjs → chunk-F3YSH2CY.mjs} +3 -3
- package/dist/cli/{chunk-7IWYO475.js → chunk-F52TY2QC.js} +21 -21
- package/dist/cli/{chunk-QZKSG7XZ.js → chunk-FLH4D33O.js} +36 -36
- package/dist/cli/{chunk-QWMXP2IP.mjs → chunk-FPFBYOR6.mjs} +2 -2
- package/dist/cli/{chunk-OGCAGZXO.mjs → chunk-FVYAEBGO.mjs} +23 -2
- package/dist/cli/{chunk-F6H74EFB.mjs → chunk-GCHTTVC7.mjs} +2 -2
- package/dist/cli/{chunk-HIMV32ZX.js → chunk-HNP5V5BN.js} +23 -2
- package/dist/cli/{chunk-PEUWKPY4.js → chunk-LQ2KVMOD.js} +4 -4
- package/dist/cli/{chunk-6CYRIFZ3.mjs → chunk-NOQRM7LV.mjs} +2 -2
- package/dist/cli/{chunk-JLZKF7EY.js → chunk-NPZBE64X.js} +11 -1
- package/dist/cli/{chunk-VSEKVRAP.mjs → chunk-NZQPALPW.mjs} +2 -2
- package/dist/cli/{chunk-NYNNNOJW.js → chunk-OAF5U6SN.js} +51 -51
- package/dist/cli/{chunk-46YQQOTC.mjs → chunk-PZZNEIE3.mjs} +5 -5
- package/dist/cli/{chunk-6R36QIG4.mjs → chunk-Q7NNU6KB.mjs} +4 -4
- package/dist/cli/{chunk-VVCMP45C.js → chunk-QI2LOENC.js} +3 -3
- package/dist/cli/{chunk-RCMT6AZ5.mjs → chunk-QKGHYF7A.mjs} +1 -1
- package/dist/cli/{chunk-OB5NON4G.js → chunk-QWJ3V3GI.js} +8 -8
- package/dist/cli/{chunk-4QJ63YHC.js → chunk-RSMFUWCP.js} +8 -8
- package/dist/cli/{chunk-WKOWXTDR.mjs → chunk-SFWU7IJJ.mjs} +2 -2
- package/dist/cli/{chunk-L3U44YVO.js → chunk-T5GRG37B.js} +5 -5
- package/dist/cli/{chunk-JLE5UYZV.mjs → chunk-TNOTKGZC.mjs} +2 -2
- package/dist/cli/{chunk-RSXOGXGX.mjs → chunk-TVDBGEVP.mjs} +1 -1
- package/dist/cli/{chunk-SWUSDFG2.js → chunk-U37BWQZH.js} +9 -9
- package/dist/cli/{chunk-7QITO7XO.mjs → chunk-UA42Q7R3.mjs} +4 -4
- package/dist/cli/{chunk-QTTYIPFY.mjs → chunk-UNLLMHY7.mjs} +1 -1
- package/dist/cli/{chunk-FWHRCZET.mjs → chunk-UU4GMU7A.mjs} +5 -5
- package/dist/cli/{chunk-6P4OYABU.js → chunk-V6OMS7E2.js} +6 -6
- package/dist/cli/{chunk-RRCVAVM7.js → chunk-VPCS5KOF.js} +2 -2
- package/dist/cli/{chunk-SQFBLBYC.mjs → chunk-WNS5YEZN.mjs} +2 -2
- package/dist/cli/{chunk-MUQAKLBP.mjs → chunk-X3RAGNNZ.mjs} +1 -1
- package/dist/cli/{chunk-W4XWGNW4.mjs → chunk-X4U763KU.mjs} +3 -3
- package/dist/cli/{chunk-I2TCWIW2.mjs → chunk-XSX6TJUA.mjs} +1 -1
- package/dist/cli/{chunk-HOFXQYRF.js → chunk-YD2KV7RT.js} +7 -7
- package/dist/cli/{chunk-NQH7E3F2.js → chunk-YI6TIURR.js} +3 -3
- package/dist/cli/{chunk-5BEKJUOK.js → chunk-ZA6UUGOZ.js} +2 -2
- package/dist/cli/{chunk-3DVJ2IPG.js → chunk-ZJRHPVJU.js} +183 -173
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-AD2DLLLL.js → csv-EIXI4D7F.js} +13 -13
- package/dist/cli/{csv-ZGZX2IIP.mjs → csv-H2656YID.mjs} +4 -4
- package/dist/cli/{db-NBY4LHAY.js → db-7AQJE7CP.js} +27 -27
- package/dist/cli/{db-LUFEKPEK.mjs → db-CABNKWAS.mjs} +6 -6
- package/dist/cli/{describe-MLXMC47U.mjs → describe-5RUFO5ZR.mjs} +20 -20
- package/dist/cli/describe-ODBO2AMO.js +48 -0
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-JKVWM3P4.mjs → executions-4GUJEBEC.mjs} +6 -6
- package/dist/cli/{executions-HDJMKNBR.js → executions-OHOBXCPD.js} +8 -8
- package/dist/cli/{feedback-VXMP7HDF.js → feedback-JIJWTK2H.js} +8 -8
- package/dist/cli/{feedback-7E5Z4ZO5.mjs → feedback-N3CSL3OV.mjs} +4 -4
- package/dist/cli/git-TWNEROIX.js +25 -0
- package/dist/cli/{git-UFMRAGMY.mjs → git-Z5DTMOAQ.mjs} +5 -5
- package/dist/cli/index.js +139 -139
- package/dist/cli/index.mjs +41 -41
- package/dist/cli/{legacy-noops-BDULCVGD.mjs → legacy-noops-XTLI64KX.mjs} +5 -5
- package/dist/cli/{legacy-noops-4QKREY4K.js → legacy-noops-ZEJRXMTS.js} +8 -8
- package/dist/cli/{monitors-S6TDJYCK.mjs → monitors-3MDJEWZB.mjs} +7 -7
- package/dist/cli/{monitors-LNNSTELC.js → monitors-E3TTJB3S.js} +91 -91
- package/dist/cli/{org-OWM3IGOK.js → org-722NMZ4T.js} +113 -72
- package/dist/cli/{org-EEEMWKQ2.mjs → org-AJUXWQ6P.mjs} +51 -10
- package/dist/cli/{pages-7JF6AKDI.js → pages-CPCWTTPD.js} +17 -17
- package/dist/cli/{pages-ZYYMQUDX.mjs → pages-Y6AC7PBJ.mjs} +6 -6
- package/dist/cli/{play-WLAFXAHR.js → play-ACQ54HNN.js} +305 -305
- package/dist/cli/{play-5Z3E7KL6.mjs → play-TYHP7UNL.mjs} +18 -18
- package/dist/cli/{providers-JUT7IYD3.mjs → providers-BSXILLKJ.mjs} +6 -6
- package/dist/cli/{providers-TTDFQQU2.js → providers-UDG7V7WU.js} +9 -9
- package/dist/cli/{quickstart-P4TL4NWJ.mjs → quickstart-66MNFG2G.mjs} +4 -4
- package/dist/cli/{quickstart-OZYEGICI.js → quickstart-ZW7VOPFN.js} +6 -6
- package/dist/cli/{run-CM6OZUBR.mjs → run-JSAI5PRF.mjs} +25 -25
- package/dist/cli/{run-BYGE4LUB.js → run-KPS3O2VA.js} +40 -40
- package/dist/cli/{search-RZRJ73YL.mjs → search-GQGB3JIE.mjs} +7 -7
- package/dist/cli/search-JUXEQ5HQ.js +32 -0
- package/dist/cli/{secrets-DHI6ZMKE.mjs → secrets-LGGKGT3A.mjs} +6 -6
- package/dist/cli/{secrets-XLTN3SCL.js → secrets-UVQKUCBM.js} +15 -15
- package/dist/cli/{sessions-MZD5WZBT.mjs → sessions-JYPDKPVA.mjs} +5 -5
- package/dist/cli/{sessions-6NCQQXVK.js → sessions-MPZ42HUS.js} +6 -6
- package/dist/cli/{settings-S6GQ4XFZ.mjs → settings-5UVSGJ72.mjs} +11 -11
- package/dist/cli/{settings-JJH72W5V.js → settings-E7VTIIRT.js} +78 -78
- package/dist/cli/{setup-ZJ4G54XN.mjs → setup-FM6VKRER.mjs} +9 -9
- package/dist/cli/{setup-3BIOG6N2.js → setup-NQ5BQ3ZY.js} +44 -44
- package/dist/cli/skills-OLIMNV35.js +31 -0
- package/dist/cli/{skills-FBH4REPB.mjs → skills-WOCXEASX.mjs} +7 -7
- package/dist/cli/tools-IZNJT6RU.js +55 -0
- package/dist/cli/{tools-J6YGZTD5.mjs → tools-QZRDZS45.mjs} +18 -18
- package/dist/cli/update-4JVVAYI4.js +33 -0
- package/dist/cli/{update-6CSRALIQ.mjs → update-OW2FEGGG.mjs} +9 -9
- package/dist/cli/{workflow-2ETKYSJV.js → workflow-QJM2ELOS.js} +17 -17
- package/dist/cli/{workflow-3ATSB7HQ.mjs → workflow-QRGUHBKL.mjs} +7 -7
- package/dist/{client-BClp2yrq.d.ts → client-B3tlWsw7.d.ts} +1 -1
- package/dist/{client-ADFHNtFM.d.mts → client-CdJR18SJ.d.mts} +1 -1
- package/dist/{client-core-DWLmmJWo.d.mts → client-core-ByJD7QXj.d.mts} +24 -2
- package/dist/{client-core-BFU73Ttw.d.ts → client-core-CxHBKfE5.d.ts} +24 -2
- package/dist/{compiler-manifest-Cs17yO-H.d.ts → compiler-manifest-D5dARg3M.d.mts} +64 -10
- package/dist/{compiler-manifest-Cs17yO-H.d.mts → compiler-manifest-D5dARg3M.d.ts} +64 -10
- package/dist/{errors-Dee-QpVS.d.ts → errors-BtHHzWL8.d.ts} +1 -1
- package/dist/{errors-qNfvQuRB.d.mts → errors-BveMVPwA.d.mts} +1 -1
- package/dist/{index-BTqNNXmC.d.mts → index-BboApDGD.d.mts} +1 -1
- package/dist/{index-DXTh1Lxe.d.ts → index-C6sovoYP.d.ts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +277 -76
- package/dist/index.mjs +239 -38
- package/dist/install-integrity.json +114 -114
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/play-description.d.mts +2 -2
- package/dist/plays/play-description.d.ts +2 -2
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +2 -2
- 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 +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-Y3UTWD3W.js +0 -41
- package/dist/cli/describe-Z66CQESH.js +0 -48
- package/dist/cli/git-NNSJKW3V.js +0 -25
- package/dist/cli/search-RIG4LTCS.js +0 -32
- package/dist/cli/skills-ODISCL7S.js +0 -31
- package/dist/cli/tools-IHBHDI4P.js +0 -55
- package/dist/cli/update-5O3HDR5O.js +0 -33
|
@@ -39,6 +39,23 @@ Conventions (apply to every tool):
|
|
|
39
39
|
]]
|
|
40
40
|
`;
|
|
41
41
|
var COMMAND_DOCS = {
|
|
42
|
+
"org members list": {
|
|
43
|
+
core: `Purpose: List one page of members in the authenticated workspace.
|
|
44
|
+
Input: Optional --cursor from the previous page.
|
|
45
|
+
Output: members (id, userId, role, effective grants) and cursor (null at the end).
|
|
46
|
+
Cost: Does not spend credits.`
|
|
47
|
+
},
|
|
48
|
+
"org members set-grants": {
|
|
49
|
+
core: `Purpose: Replace a workspace member's grants. Requires an admin grant.
|
|
50
|
+
Input: a member id from org members list, followed by one or more grants:
|
|
51
|
+
read (explicitly read-only tools), run (any tool and existing Plays; cannot create or edit Plays), admin (tools and workspace management), member (existing access, including Play authoring).
|
|
52
|
+
Example: deepline org members set-grants <member-id> read
|
|
53
|
+
Multiple grants are additive. Run includes read; admin includes both and can create, edit, and publish Plays.
|
|
54
|
+
Existing member roles retain their permissions, including Play authoring. Only owners may change ownership,
|
|
55
|
+
and the last owner cannot be removed. Read-only tools may still spend credits.
|
|
56
|
+
Output: ok, memberId, and the stored role.
|
|
57
|
+
Cost: This command does not spend credits.`
|
|
58
|
+
},
|
|
42
59
|
"": {
|
|
43
60
|
core: `
|
|
44
61
|
[[cli:
|
|
@@ -776,10 +793,14 @@ Authoring rules:
|
|
|
776
793
|
completed operation receipt can still recover that operation after resume.
|
|
777
794
|
Read
|
|
778
795
|
results the way [[cli:describe]][[mcp:deepline_describe_tool]] lists them:
|
|
779
|
-
result.fields.<name>.value for a
|
|
780
|
-
|
|
796
|
+
result.fields.<name>.value for a value whose meaning is known, also by
|
|
797
|
+
field id (result.fields.person.email.value). .value throws when there are
|
|
798
|
+
several; .values is always an array;
|
|
781
799
|
result.extractedValues.<name>.get() for other declared values. Anything
|
|
782
800
|
else is in result.response, the provider's response with its nesting kept.
|
|
801
|
+
For a list, result.rows() gives one record per item, in the same format
|
|
802
|
+
for every tool: row.fields.email.value, and row.response for the rest.
|
|
803
|
+
Name the list when the tool declares several: result.rows('people').
|
|
783
804
|
Reuse before rebuilding: deepline.runPlay(key, 'prebuilt/<name>', input,
|
|
784
805
|
{ description }) runs a
|
|
785
806
|
prebuilt as one stage. Independent calls run together with Promise.all;
|
|
@@ -16,12 +16,12 @@ var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
|
|
|
16
16
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkEXXXRDCCjs = require('./chunk-EXXXRDCC.js');
|
|
20
20
|
|
|
21
21
|
// src/version.ts
|
|
22
|
-
var SDK_VERSION =
|
|
23
|
-
var SDK_API_MAJOR =
|
|
24
|
-
var SDK_API_CONTRACT = _nullishCoalesce(
|
|
22
|
+
var SDK_VERSION = _chunkEXXXRDCCjs.SDK_RELEASE.version;
|
|
23
|
+
var SDK_API_MAJOR = _chunkEXXXRDCCjs.SDK_RELEASE.contracts.api.currentMajor;
|
|
24
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunkEXXXRDCCjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
|
|
25
25
|
|
|
26
26
|
// src/agent-runtime.ts
|
|
27
27
|
var _os = require('os');
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
HttpClient,
|
|
3
3
|
resolveCliCommandContext,
|
|
4
4
|
resolveConfig
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-TVDBGEVP.mjs";
|
|
6
6
|
import {
|
|
7
7
|
detectAgentRuntime
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-CHD7NMZD.mjs";
|
|
9
9
|
import {
|
|
10
10
|
DeeplineError,
|
|
11
11
|
serializeToolExecutionFailure
|
|
@@ -564,6 +564,14 @@ function isOtherThing(id) {
|
|
|
564
564
|
const entity = _optionalChain([FIELDS_BY_ID, 'access', _10 => _10.get, 'call', _11 => _11(id), 'optionalAccess', _12 => _12.entity]);
|
|
565
565
|
return entity !== void 0 && entity !== "person" && entity !== "company" && entity !== "entity";
|
|
566
566
|
}
|
|
567
|
+
var LIST_NAMES = [
|
|
568
|
+
"people",
|
|
569
|
+
"companies",
|
|
570
|
+
"job_postings",
|
|
571
|
+
"posts",
|
|
572
|
+
"podcasts",
|
|
573
|
+
"pages"
|
|
574
|
+
];
|
|
567
575
|
function resolveFieldName(name, bindings, outputs = []) {
|
|
568
576
|
const byId = /* @__PURE__ */ new Map();
|
|
569
577
|
for (const binding of bindings) {
|
|
@@ -646,4 +654,6 @@ function fieldPaths(bindings, outputs, lists) {
|
|
|
646
654
|
|
|
647
655
|
|
|
648
656
|
|
|
649
|
-
|
|
657
|
+
|
|
658
|
+
|
|
659
|
+
exports.EMAIL_STATUS_JSON_SCHEMA = EMAIL_STATUS_JSON_SCHEMA; exports.buildEmailStatus = buildEmailStatus; exports.JOB_CHANGE_STATUS_VALUES = JOB_CHANGE_STATUS_VALUES; exports.JOB_CHANGE_JSON_SCHEMA = JOB_CHANGE_JSON_SCHEMA; exports.PHONE_STATUS_VALUES = PHONE_STATUS_VALUES; exports.DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS = DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS; exports.DEEPLINE_EXTRACTOR_TARGETS = DEEPLINE_EXTRACTOR_TARGETS; exports.isDeeplineExtractorTarget = isDeeplineExtractorTarget; exports.isFieldId = isFieldId; exports.fieldOfName = fieldOfName; exports.LIST_NAMES = LIST_NAMES; exports.resolveFieldName = resolveFieldName; exports.fieldPaths = fieldPaths;
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-F6QV42MC.mjs";
|
|
4
4
|
import {
|
|
5
5
|
parseLogLevel
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7PBIHKB4.mjs";
|
|
7
7
|
import {
|
|
8
8
|
setDottedInputValue
|
|
9
9
|
} from "./chunk-FAG4DFUC.mjs";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
argsWantJson,
|
|
12
12
|
jsonFieldArgs,
|
|
13
13
|
parseJsonFields
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NOQRM7LV.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineError
|
|
17
17
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkYD2KV7RTjs = require('./chunk-YD2KV7RT.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -22,12 +22,12 @@ var _chunkHOFXQYRFjs = require('./chunk-HOFXQYRF.js');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkYI6TIURRjs = require('./chunk-YI6TIURR.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _chunkLQ2KVMODjs = require('./chunk-LQ2KVMOD.js');
|
|
31
31
|
|
|
32
32
|
// src/cli/commands/auth.ts
|
|
33
33
|
|
|
@@ -54,7 +54,7 @@ function statusBannerLine(value) {
|
|
|
54
54
|
return `Service notice: ${banner.message}`;
|
|
55
55
|
}
|
|
56
56
|
function envFilePath(baseUrl) {
|
|
57
|
-
return
|
|
57
|
+
return _chunkYI6TIURRjs.hostEnvFilePath.call(void 0, baseUrl);
|
|
58
58
|
}
|
|
59
59
|
function normalizeAuthScope(value) {
|
|
60
60
|
if (!value || value === "global") return "global";
|
|
@@ -67,7 +67,7 @@ function parseAuthScope(args) {
|
|
|
67
67
|
}
|
|
68
68
|
function pendingClaimPath(baseUrl, scope) {
|
|
69
69
|
if (scope === "folder") {
|
|
70
|
-
const target =
|
|
70
|
+
const target = _chunkYI6TIURRjs.resolveProjectPinTarget.call(void 0, );
|
|
71
71
|
if (!target.ok) {
|
|
72
72
|
throw new Error(
|
|
73
73
|
`Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
|
|
@@ -77,10 +77,10 @@ function pendingClaimPath(baseUrl, scope) {
|
|
|
77
77
|
}
|
|
78
78
|
return _path.join.call(void 0, target.dir, ".deepline", "setup", "pending-auth.json");
|
|
79
79
|
}
|
|
80
|
-
return `${
|
|
80
|
+
return `${_chunkYI6TIURRjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
|
|
81
81
|
}
|
|
82
82
|
function legacyPendingClaimTokenPath(baseUrl) {
|
|
83
|
-
return `${
|
|
83
|
+
return `${_chunkYI6TIURRjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
|
|
84
84
|
}
|
|
85
85
|
function savePendingClaim(baseUrl, claim) {
|
|
86
86
|
const filePath = pendingClaimPath(baseUrl, claim.scope);
|
|
@@ -182,21 +182,21 @@ function parseRegisterWaitMode(args) {
|
|
|
182
182
|
function shouldWaitForRegisterClaim(mode) {
|
|
183
183
|
if (mode === "yes") return true;
|
|
184
184
|
if (mode === "no") return false;
|
|
185
|
-
return
|
|
185
|
+
return _chunkLQ2KVMODjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
|
|
186
186
|
}
|
|
187
187
|
function saveEnvValues(values, baseUrl, scope) {
|
|
188
188
|
const filtered = {
|
|
189
|
-
...values[
|
|
190
|
-
...values[
|
|
191
|
-
...values[
|
|
192
|
-
...Object.prototype.hasOwnProperty.call(values,
|
|
189
|
+
...values[_chunkYI6TIURRjs.HOST_URL_ENV] ? { [_chunkYI6TIURRjs.HOST_URL_ENV]: values[_chunkYI6TIURRjs.HOST_URL_ENV] } : {},
|
|
190
|
+
...values[_chunkYI6TIURRjs.API_KEY_ENV] ? { [_chunkYI6TIURRjs.API_KEY_ENV]: values[_chunkYI6TIURRjs.API_KEY_ENV] } : {},
|
|
191
|
+
...values[_chunkYI6TIURRjs.ACTIVE_ORG_ID_ENV] ? { [_chunkYI6TIURRjs.ACTIVE_ORG_ID_ENV]: values[_chunkYI6TIURRjs.ACTIVE_ORG_ID_ENV] } : {},
|
|
192
|
+
...Object.prototype.hasOwnProperty.call(values, _chunkYI6TIURRjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkYI6TIURRjs.ACTIVE_ORG_NAME_ENV]: values[_chunkYI6TIURRjs.ACTIVE_ORG_NAME_ENV] } : {},
|
|
193
193
|
// An explicit empty list must reach the store: it clears a stale line.
|
|
194
|
-
...Object.prototype.hasOwnProperty.call(values,
|
|
194
|
+
...Object.prototype.hasOwnProperty.call(values, _chunkYI6TIURRjs.FEATURES_ENV) ? { [_chunkYI6TIURRjs.FEATURES_ENV]: values[_chunkYI6TIURRjs.FEATURES_ENV] } : {}
|
|
195
195
|
};
|
|
196
196
|
if (scope === "folder") {
|
|
197
|
-
|
|
197
|
+
_chunkYI6TIURRjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
|
|
198
198
|
} else {
|
|
199
|
-
|
|
199
|
+
_chunkYI6TIURRjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
202
|
function activeOrgEnvValues(data) {
|
|
@@ -204,21 +204,21 @@ function activeOrgEnvValues(data) {
|
|
|
204
204
|
if (!orgId) return {};
|
|
205
205
|
const orgName = typeof data.org_name === "string" ? data.org_name.trim() : "";
|
|
206
206
|
return {
|
|
207
|
-
[
|
|
208
|
-
[
|
|
209
|
-
...
|
|
207
|
+
[_chunkYI6TIURRjs.ACTIVE_ORG_ID_ENV]: orgId,
|
|
208
|
+
[_chunkYI6TIURRjs.ACTIVE_ORG_NAME_ENV]: orgName,
|
|
209
|
+
..._chunkYI6TIURRjs.featureEnvValues.call(void 0, data)
|
|
210
210
|
};
|
|
211
211
|
}
|
|
212
212
|
async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT_MS) {
|
|
213
213
|
const headers = {
|
|
214
214
|
"Content-Type": "application/json",
|
|
215
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
215
|
+
"User-Agent": `deepline-ts-sdk/${_chunkLQ2KVMODjs.SDK_VERSION}`,
|
|
216
216
|
"X-Deepline-Client-Family": "sdk",
|
|
217
217
|
"X-Deepline-CLI-Family": "sdk",
|
|
218
|
-
"X-Deepline-Agent-Runtime":
|
|
219
|
-
"X-Deepline-CLI-Version":
|
|
220
|
-
"X-Deepline-SDK-Version":
|
|
221
|
-
"X-Deepline-API-Contract":
|
|
218
|
+
"X-Deepline-Agent-Runtime": _chunkLQ2KVMODjs.detectAgentRuntime.call(void 0, ),
|
|
219
|
+
"X-Deepline-CLI-Version": _chunkLQ2KVMODjs.SDK_VERSION,
|
|
220
|
+
"X-Deepline-SDK-Version": _chunkLQ2KVMODjs.SDK_VERSION,
|
|
221
|
+
"X-Deepline-API-Contract": _chunkLQ2KVMODjs.SDK_API_CONTRACT
|
|
222
222
|
};
|
|
223
223
|
if (apiKey) headers["Authorization"] = `Bearer ${apiKey}`;
|
|
224
224
|
const bypassToken = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.VERCEL_PROTECTION_BYPASS_TOKEN, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]);
|
|
@@ -264,7 +264,7 @@ async function readStatusBanner(baseUrl) {
|
|
|
264
264
|
return _optionalChain([response, 'optionalAccess', _11 => _11.status]) === 200 ? _nullishCoalesce(response.data.banner, () => ( null)) : null;
|
|
265
265
|
}
|
|
266
266
|
async function reportSetupCompleted(input) {
|
|
267
|
-
const apiKey = input.authScope === "folder" ?
|
|
267
|
+
const apiKey = input.authScope === "folder" ? _chunkYI6TIURRjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkYI6TIURRjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
268
268
|
if (!apiKey) return;
|
|
269
269
|
try {
|
|
270
270
|
await httpJson(
|
|
@@ -361,7 +361,7 @@ async function printClaimSuccessBanner(baseUrl, apiKey, statusData) {
|
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
363
|
async function handleRegister(args) {
|
|
364
|
-
const baseUrl =
|
|
364
|
+
const baseUrl = _chunkYI6TIURRjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
365
365
|
let orgName = "";
|
|
366
366
|
let orgId = "";
|
|
367
367
|
let agentName = "";
|
|
@@ -416,19 +416,19 @@ async function handleRegister(args) {
|
|
|
416
416
|
});
|
|
417
417
|
saveEnvValues(
|
|
418
418
|
{
|
|
419
|
-
[
|
|
419
|
+
[_chunkYI6TIURRjs.HOST_URL_ENV]: baseUrl
|
|
420
420
|
},
|
|
421
421
|
baseUrl,
|
|
422
422
|
authScope
|
|
423
423
|
);
|
|
424
424
|
}
|
|
425
425
|
if (claimUrl) {
|
|
426
|
-
const shouldOpen = waitMode !== "no" &&
|
|
426
|
+
const shouldOpen = waitMode !== "no" && _chunkLQ2KVMODjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
|
|
427
427
|
console.log(
|
|
428
428
|
shouldOpen ? " Opening approval page in your browser." : " Open this approval page in your browser:"
|
|
429
429
|
);
|
|
430
430
|
console.log(` ${claimUrl}`);
|
|
431
|
-
if (shouldOpen)
|
|
431
|
+
if (shouldOpen) _chunkYD2KV7RTjs.openInBrowser.call(void 0, claimUrl);
|
|
432
432
|
}
|
|
433
433
|
if (data.cli_message) {
|
|
434
434
|
console.log(String(data.cli_message));
|
|
@@ -471,8 +471,8 @@ async function handleRegister(args) {
|
|
|
471
471
|
if (apiKey) {
|
|
472
472
|
saveEnvValues(
|
|
473
473
|
{
|
|
474
|
-
[
|
|
475
|
-
[
|
|
474
|
+
[_chunkYI6TIURRjs.HOST_URL_ENV]: baseUrl,
|
|
475
|
+
[_chunkYI6TIURRjs.API_KEY_ENV]: apiKey,
|
|
476
476
|
...activeOrgEnvValues(statusData)
|
|
477
477
|
},
|
|
478
478
|
baseUrl,
|
|
@@ -494,7 +494,7 @@ async function handleRegister(args) {
|
|
|
494
494
|
}
|
|
495
495
|
}
|
|
496
496
|
async function handleWait(args) {
|
|
497
|
-
const baseUrl =
|
|
497
|
+
const baseUrl = _chunkYI6TIURRjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
498
498
|
let timeoutSeconds = 300;
|
|
499
499
|
let requestedScope;
|
|
500
500
|
if (args.includes("--auth-scope")) {
|
|
@@ -518,7 +518,7 @@ async function handleWait(args) {
|
|
|
518
518
|
const authScope = resumed.scope;
|
|
519
519
|
const claimToken = _nullishCoalesce(_optionalChain([pendingClaim, 'optionalAccess', _12 => _12.claimToken]), () => ( ""));
|
|
520
520
|
if (!pendingClaim) {
|
|
521
|
-
const scopedApiKey = authScope === "folder" ?
|
|
521
|
+
const scopedApiKey = authScope === "folder" ? _chunkYI6TIURRjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkYI6TIURRjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
522
522
|
if (scopedApiKey) {
|
|
523
523
|
console.log("Already connected.");
|
|
524
524
|
return EXIT_OK;
|
|
@@ -561,8 +561,8 @@ async function handleWait(args) {
|
|
|
561
561
|
if (apiKey) {
|
|
562
562
|
saveEnvValues(
|
|
563
563
|
{
|
|
564
|
-
[
|
|
565
|
-
[
|
|
564
|
+
[_chunkYI6TIURRjs.HOST_URL_ENV]: baseUrl,
|
|
565
|
+
[_chunkYI6TIURRjs.API_KEY_ENV]: apiKey,
|
|
566
566
|
...activeOrgEnvValues(data)
|
|
567
567
|
},
|
|
568
568
|
baseUrl,
|
|
@@ -586,8 +586,8 @@ async function handleWait(args) {
|
|
|
586
586
|
return EXIT_AUTH;
|
|
587
587
|
}
|
|
588
588
|
async function authStatusLine(timeoutMs = 3e3) {
|
|
589
|
-
const baseUrl =
|
|
590
|
-
const apiKey =
|
|
589
|
+
const baseUrl = _chunkYI6TIURRjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
590
|
+
const apiKey = _chunkYI6TIURRjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
591
591
|
if (!apiKey) return `Auth: not connected (${baseUrl})`;
|
|
592
592
|
try {
|
|
593
593
|
const { status, data } = await httpJson(
|
|
@@ -610,9 +610,9 @@ async function authStatusLine(timeoutMs = 3e3) {
|
|
|
610
610
|
}
|
|
611
611
|
}
|
|
612
612
|
async function handleStatus(args) {
|
|
613
|
-
const baseUrl =
|
|
613
|
+
const baseUrl = _chunkYI6TIURRjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
614
614
|
const reveal = args.includes("--reveal");
|
|
615
|
-
const jsonOutput =
|
|
615
|
+
const jsonOutput = _chunkYD2KV7RTjs.argsWantJson.call(void 0, args);
|
|
616
616
|
const hasExplicitAuthScope = args.includes("--auth-scope");
|
|
617
617
|
let authScope = null;
|
|
618
618
|
if (hasExplicitAuthScope) {
|
|
@@ -653,14 +653,14 @@ async function handleStatus(args) {
|
|
|
653
653
|
};
|
|
654
654
|
hostLines.push(`Host: ${baseUrl} (unreachable)`);
|
|
655
655
|
}
|
|
656
|
-
const apiKey = authScope === "folder" ?
|
|
656
|
+
const apiKey = authScope === "folder" ? _chunkYI6TIURRjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkYI6TIURRjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkYI6TIURRjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
657
657
|
if (!apiKey) {
|
|
658
658
|
const { claim: pendingClaim } = resolvePendingAuthClaimForResume(
|
|
659
659
|
baseUrl,
|
|
660
660
|
_nullishCoalesce(authScope, () => ( void 0))
|
|
661
661
|
);
|
|
662
662
|
if (pendingClaim) {
|
|
663
|
-
|
|
663
|
+
_chunkYD2KV7RTjs.printCommandEnvelope.call(void 0,
|
|
664
664
|
{
|
|
665
665
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
666
666
|
status: "pending",
|
|
@@ -681,7 +681,7 @@ async function handleStatus(args) {
|
|
|
681
681
|
);
|
|
682
682
|
return EXIT_OK;
|
|
683
683
|
}
|
|
684
|
-
|
|
684
|
+
_chunkYD2KV7RTjs.printCommandEnvelope.call(void 0,
|
|
685
685
|
{
|
|
686
686
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
687
687
|
status: "not connected",
|
|
@@ -714,7 +714,7 @@ async function handleStatus(args) {
|
|
|
714
714
|
}
|
|
715
715
|
);
|
|
716
716
|
if (status === 401 || status === 403) {
|
|
717
|
-
|
|
717
|
+
_chunkYD2KV7RTjs.printCommandEnvelope.call(void 0,
|
|
718
718
|
{
|
|
719
719
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
720
720
|
status: "unauthorized",
|
|
@@ -741,7 +741,7 @@ async function handleStatus(args) {
|
|
|
741
741
|
console.error(`Auth status error (status ${status}).`);
|
|
742
742
|
return EXIT_SERVER;
|
|
743
743
|
}
|
|
744
|
-
const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (
|
|
744
|
+
const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkYI6TIURRjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
|
|
745
745
|
clearSatisfiedPendingClaim(
|
|
746
746
|
baseUrl,
|
|
747
747
|
resolvedAuthScope,
|
|
@@ -769,28 +769,28 @@ async function handleStatus(args) {
|
|
|
769
769
|
if (apiKeyResp) {
|
|
770
770
|
saveEnvValues(
|
|
771
771
|
{
|
|
772
|
-
[
|
|
773
|
-
[
|
|
772
|
+
[_chunkYI6TIURRjs.HOST_URL_ENV]: baseUrl,
|
|
773
|
+
[_chunkYI6TIURRjs.API_KEY_ENV]: apiKeyResp,
|
|
774
774
|
...activeOrgEnvValues(data)
|
|
775
775
|
},
|
|
776
776
|
baseUrl,
|
|
777
777
|
resolvedAuthScope
|
|
778
778
|
);
|
|
779
779
|
if (resolvedAuthScope === "folder") {
|
|
780
|
-
const target =
|
|
780
|
+
const target = _chunkYI6TIURRjs.resolveProjectPinTarget.call(void 0, );
|
|
781
781
|
savedApiKeyPath = target.ok ? _path.join.call(void 0, target.dir, ".env.deepline") : null;
|
|
782
782
|
} else {
|
|
783
783
|
savedApiKeyPath = envFilePath(baseUrl);
|
|
784
784
|
}
|
|
785
785
|
}
|
|
786
|
-
} else if (resolvedAuthScope === "folder" ||
|
|
787
|
-
saveEnvValues(
|
|
786
|
+
} else if (resolvedAuthScope === "folder" || _chunkYI6TIURRjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
|
|
787
|
+
saveEnvValues(_chunkYI6TIURRjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
|
|
788
788
|
}
|
|
789
|
-
|
|
789
|
+
_chunkYD2KV7RTjs.printCommandEnvelope.call(void 0,
|
|
790
790
|
{
|
|
791
791
|
...payload,
|
|
792
|
-
...
|
|
793
|
-
command_context:
|
|
792
|
+
..._chunkLQ2KVMODjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
|
|
793
|
+
command_context: _chunkYI6TIURRjs.resolveCliCommandContext.call(void 0,
|
|
794
794
|
{ baseUrl, apiKey },
|
|
795
795
|
resolvedAuthScope
|
|
796
796
|
)
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
npmSupportsAllowScripts,
|
|
3
3
|
readNpmVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-EOWMLNCV.mjs";
|
|
5
5
|
import {
|
|
6
6
|
runSkillsCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UA42Q7R3.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveShellSpawn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-Q7NNU6KB.mjs";
|
|
11
11
|
import {
|
|
12
12
|
printCommandEnvelope
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-NOQRM7LV.mjs";
|
|
14
14
|
import {
|
|
15
15
|
autoDetectBaseUrl
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-TVDBGEVP.mjs";
|
|
17
17
|
|
|
18
18
|
// src/cli/commands/update.ts
|
|
19
19
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getActiveCliProgress
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UNLLMHY7.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-TVDBGEVP.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-CHD7NMZD.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-CXYMJSRQ.mjs";
|
|
30
30
|
|
|
31
31
|
// src/compat.ts
|
|
32
32
|
import { randomUUID } from "crypto";
|
|
@@ -6,7 +6,7 @@ var _chunkIAYSWZDJjs = require('./chunk-IAYSWZDJ.js');
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkYD2KV7RTjs = require('./chunk-YD2KV7RT.js');
|
|
10
10
|
|
|
11
11
|
// src/cli/describe-options.ts
|
|
12
12
|
function addDescribeOptions(command, options = {}) {
|
|
@@ -247,7 +247,7 @@ function projectRunDatasetCell(value) {
|
|
|
247
247
|
const logicalValue = parseSerializedDatasetValue(value);
|
|
248
248
|
if (logicalValue === null || logicalValue === void 0) return logicalValue;
|
|
249
249
|
if (typeof logicalValue === "object") {
|
|
250
|
-
return
|
|
250
|
+
return _chunkYD2KV7RTjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
|
|
251
251
|
}
|
|
252
252
|
return logicalValue;
|
|
253
253
|
}
|
|
@@ -642,7 +642,7 @@ function csvText(rows, columns = []) {
|
|
|
642
642
|
rows: rows.map((row) => record(row) ? row : { value: row }),
|
|
643
643
|
columns
|
|
644
644
|
});
|
|
645
|
-
return
|
|
645
|
+
return _chunkYD2KV7RTjs.csvStringFromRows.call(void 0, projection.rows, projection.columns);
|
|
646
646
|
}
|
|
647
647
|
function writeExecutionOutput(result, options) {
|
|
648
648
|
let temp;
|
|
@@ -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(); } } 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
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkYD2KV7RTjs = require('./chunk-YD2KV7RT.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkLQ2KVMODjs = require('./chunk-LQ2KVMOD.js');
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
|
|
@@ -139,7 +139,7 @@ function currentSessionFile(agent) {
|
|
|
139
139
|
const newestFirst = listSessionFiles(agent).sort(
|
|
140
140
|
(a, b) => b.mtimeMs - a.mtimeMs
|
|
141
141
|
);
|
|
142
|
-
const sessionId =
|
|
142
|
+
const sessionId = _chunkLQ2KVMODjs.agentSessionIdFromEnvironment.call(void 0,
|
|
143
143
|
process.env,
|
|
144
144
|
agent === "auto" ? void 0 : agent === "claude" ? "claude_code" : "codex"
|
|
145
145
|
);
|
|
@@ -451,7 +451,7 @@ function buildSessionUploadContent(raw) {
|
|
|
451
451
|
return { encodedContent: encoded, needsChunking: true };
|
|
452
452
|
}
|
|
453
453
|
async function uploadPayload(path, payload) {
|
|
454
|
-
const { http } =
|
|
454
|
+
const { http } = _chunkYD2KV7RTjs.getAuthedHttpClient.call(void 0, );
|
|
455
455
|
return await http.post(path, payload);
|
|
456
456
|
}
|
|
457
457
|
async function uploadChunkedSessions(sessions, options) {
|
|
@@ -484,7 +484,7 @@ async function uploadChunkedSessions(sessions, options) {
|
|
|
484
484
|
...options.rating ? { rating: options.rating } : {}
|
|
485
485
|
});
|
|
486
486
|
const sessionIds = sessions.map((session) => session.sessionId);
|
|
487
|
-
|
|
487
|
+
_chunkYD2KV7RTjs.printCommandEnvelope.call(void 0,
|
|
488
488
|
{
|
|
489
489
|
...response,
|
|
490
490
|
ok: true,
|
|
@@ -516,7 +516,7 @@ async function handleSessionsSend(options) {
|
|
|
516
516
|
filename: _path.basename.call(void 0, filePath),
|
|
517
517
|
...rating ? { rating } : {}
|
|
518
518
|
});
|
|
519
|
-
|
|
519
|
+
_chunkYD2KV7RTjs.printCommandEnvelope.call(void 0,
|
|
520
520
|
{
|
|
521
521
|
...response2,
|
|
522
522
|
ok: true,
|
|
@@ -566,7 +566,7 @@ async function handleSessionsSend(options) {
|
|
|
566
566
|
...rating ? { rating } : {}
|
|
567
567
|
});
|
|
568
568
|
const sessionIds = built.map((session) => session.sessionId);
|
|
569
|
-
|
|
569
|
+
_chunkYD2KV7RTjs.printCommandEnvelope.call(void 0,
|
|
570
570
|
{
|
|
571
571
|
...response,
|
|
572
572
|
ok: true,
|
|
@@ -674,7 +674,7 @@ ${refreshMeta}
|
|
|
674
674
|
</body>
|
|
675
675
|
</html>`;
|
|
676
676
|
_fs.writeFileSync.call(void 0, outputPath, html, "utf8");
|
|
677
|
-
|
|
677
|
+
_chunkYD2KV7RTjs.printCommandEnvelope.call(void 0,
|
|
678
678
|
{
|
|
679
679
|
ok: true,
|
|
680
680
|
file: outputPath,
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
var _chunkZM2YPJQJjs = require('./chunk-ZM2YPJQJ.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk2NE3LCEAjs = require('./chunk-2NE3LCEA.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkYD2KV7RTjs = require('./chunk-YD2KV7RT.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkYI6TIURRjs = require('./chunk-YI6TIURR.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -5713,7 +5713,7 @@ var _fs = require('fs');
|
|
|
5713
5713
|
var _path = require('path');
|
|
5714
5714
|
var SEARCH_REF_TTL_MS = 15 * 6e4;
|
|
5715
5715
|
function lastSearchPath() {
|
|
5716
|
-
return _path.join.call(void 0,
|
|
5716
|
+
return _path.join.call(void 0, _chunkYI6TIURRjs.sdkCliStateDirPath.call(void 0, _chunkYI6TIURRjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
5717
5717
|
}
|
|
5718
5718
|
function rememberSearchRef(searchRef) {
|
|
5719
5719
|
try {
|
|
@@ -5877,7 +5877,7 @@ var OPTIONAL_COLUMNS = [
|
|
|
5877
5877
|
];
|
|
5878
5878
|
function renderSearchResults(result, summaryWidth = DEFAULT_SUMMARY_WIDTH) {
|
|
5879
5879
|
if (result.results.length === 0)
|
|
5880
|
-
return
|
|
5880
|
+
return _chunkYD2KV7RTjs.renderCommandEnvelopeText.call(void 0, result);
|
|
5881
5881
|
const rows = result.results.map((item) => searchRow(item, summaryWidth));
|
|
5882
5882
|
const kinds = new Set(rows.map((row) => row.kind));
|
|
5883
5883
|
const onlyTools = kinds.size === 1 && kinds.has("tool");
|
|
@@ -5902,7 +5902,7 @@ function renderSearchResults(result, summaryWidth = DEFAULT_SUMMARY_WIDTH) {
|
|
|
5902
5902
|
actions: _optionalChain([render, 'optionalAccess', _12 => _12.actions])
|
|
5903
5903
|
};
|
|
5904
5904
|
const followUps = _optionalChain([remaining, 'access', _13 => _13.sections, 'optionalAccess', _14 => _14.length]) || _optionalChain([remaining, 'access', _15 => _15.actions, 'optionalAccess', _16 => _16.length]) ? `
|
|
5905
|
-
${
|
|
5905
|
+
${_chunkYD2KV7RTjs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
|
|
5906
5906
|
const notes = rows.flatMap(
|
|
5907
5907
|
(row) => row.notes.map((note) => ` ${row.id}: ${note}`)
|
|
5908
5908
|
);
|
|
@@ -5997,7 +5997,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
5997
5997
|
console.error("--summary-width must be an integer of at least 2.");
|
|
5998
5998
|
return 1;
|
|
5999
5999
|
}
|
|
6000
|
-
const { search_ref: searchRef, ...result } = await new (0,
|
|
6000
|
+
const { search_ref: searchRef, ...result } = await new (0, _chunk2NE3LCEAjs.DeeplineClient)().search({
|
|
6001
6001
|
query,
|
|
6002
6002
|
types,
|
|
6003
6003
|
exclude,
|
|
@@ -6011,7 +6011,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
6011
6011
|
});
|
|
6012
6012
|
if (searchRef) rememberSearchRef(searchRef);
|
|
6013
6013
|
pointAtDescribe(result);
|
|
6014
|
-
|
|
6014
|
+
_chunkYD2KV7RTjs.printCommandEnvelope.call(void 0, result, {
|
|
6015
6015
|
json: options.json === true,
|
|
6016
6016
|
text: renderSearchResults(result, summaryWidth)
|
|
6017
6017
|
});
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
traceCliSpan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QKGHYF7A.mjs";
|
|
4
4
|
import {
|
|
5
5
|
checkSdkCompatibility,
|
|
6
6
|
enforceSdkCompatibilityResponse,
|
|
7
7
|
flushDeferredSkillsSyncNotices
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-Q7NNU6KB.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|