deepline 0.3.555 → 0.3.557
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +19 -0
- package/dist/cli/auth-F7QPLPTB.js +44 -0
- package/dist/cli/{auth-UFANBJW3.mjs → auth-SGWFS2DS.mjs} +5 -5
- package/dist/cli/{billing-BGIT2VYM.js → billing-G6C2LUSN.js} +99 -99
- package/dist/cli/{billing-S7MCXBND.mjs → billing-XJZX3JSG.mjs} +8 -8
- package/dist/cli/{chunk-66BQY77L.mjs → chunk-24PL5QN5.mjs} +1 -1
- package/dist/cli/{chunk-MIXPZ4G7.js → chunk-25SOYGAX.js} +274 -274
- package/dist/cli/{chunk-W6K6WULS.mjs → chunk-2TTAHHSJ.mjs} +2 -2
- package/dist/cli/{chunk-LY5MMXFF.js → chunk-2YT2TFNX.js} +17 -2
- package/dist/cli/{chunk-TGUQET3O.mjs → chunk-4AE3A4SL.mjs} +1 -1
- package/dist/cli/{chunk-6R5Y7U52.mjs → chunk-4YNKJTCP.mjs} +2 -2
- package/dist/cli/{chunk-6M2SDRWN.js → chunk-5H7BLMNH.js} +4 -4
- package/dist/cli/{chunk-ZU6A4H6P.mjs → chunk-5RVSMMQV.mjs} +2 -2
- package/dist/cli/{chunk-M5YBTQQX.js → chunk-5S2G32ZX.js} +53 -53
- package/dist/cli/{chunk-LU25WURE.js → chunk-6C3E6ZZ3.js} +13 -13
- package/dist/cli/{chunk-EG44APVW.js → chunk-6ZBAXLOR.js} +12 -12
- package/dist/cli/{chunk-T3QSHU6E.js → chunk-7AMUXIZ5.js} +1 -1
- package/dist/cli/{chunk-W7SPSF63.js → chunk-A6FYP3KU.js} +5 -5
- package/dist/cli/{chunk-T4BFNFBL.mjs → chunk-ARYKF2YT.mjs} +2 -2
- package/dist/cli/{chunk-SF2LIUVO.js → chunk-B2V6NKX7.js} +20 -20
- package/dist/cli/{chunk-72VEVAIX.js → chunk-C46GRCHZ.js} +48 -48
- package/dist/cli/{chunk-7H753VC5.mjs → chunk-C6M5TIPZ.mjs} +1 -1
- package/dist/cli/{chunk-Z3O5GCQM.mjs → chunk-CDLTF6M2.mjs} +2 -2
- package/dist/cli/{chunk-EN5NHCCQ.js → chunk-CPDXS2UK.js} +17 -17
- package/dist/cli/{chunk-MOJ65E7L.js → chunk-DTMUYIUO.js} +9 -9
- package/dist/cli/{chunk-RO7SIWBG.mjs → chunk-DUXL7U7U.mjs} +2 -2
- package/dist/cli/{chunk-Z2T7XTND.js → chunk-EZNYE6GZ.js} +10 -10
- package/dist/cli/{chunk-FO3U5YTL.mjs → chunk-GC4HHDE4.mjs} +3 -3
- package/dist/cli/{chunk-PGPPZMXD.mjs → chunk-GENZXMNR.mjs} +1 -1
- package/dist/cli/{chunk-QMDG7FKA.js → chunk-JMDLLVIR.js} +11 -11
- package/dist/cli/{chunk-HQK2NPXE.mjs → chunk-JORWYP5P.mjs} +1 -1
- package/dist/cli/{chunk-U6KGXTYS.js → chunk-JWPJXCD2.js} +23 -23
- package/dist/cli/{chunk-AUY53RLU.mjs → chunk-JX4X4KAZ.mjs} +7 -7
- package/dist/cli/{chunk-QZ2C5ARH.js → chunk-JY2EJQL5.js} +5 -5
- package/dist/cli/{chunk-6F5GNZQH.js → chunk-K35ZLTN2.js} +5 -5
- package/dist/cli/{chunk-AYCC5JAS.js → chunk-L5JD66EF.js} +3 -3
- package/dist/cli/{chunk-DYWOBLYL.js → chunk-L7DGWNF7.js} +8 -8
- package/dist/cli/{chunk-YXH5Q7OY.js → chunk-MZSUMGWN.js} +20 -20
- package/dist/cli/{chunk-7LM55DIN.js → chunk-NHGQHMV7.js} +41 -41
- package/dist/cli/{chunk-5J6TKML2.mjs → chunk-NW6NYTYM.mjs} +4 -4
- package/dist/cli/{chunk-IHWXC7UU.js → chunk-NWQZIBPY.js} +26 -26
- package/dist/cli/{chunk-PC2FTUCP.mjs → chunk-NXYBZSRL.mjs} +2 -2
- package/dist/cli/{chunk-UUU5WUKM.mjs → chunk-OBW2YFHR.mjs} +2 -2
- package/dist/cli/{chunk-SE56PJ46.js → chunk-ODBQY6MD.js} +2 -2
- package/dist/cli/{chunk-M2CW4UZV.mjs → chunk-OOCGLW46.mjs} +4 -4
- package/dist/cli/{chunk-NFWZAQAU.mjs → chunk-PITVKXY3.mjs} +1 -1
- package/dist/cli/{chunk-3IKGZ4CG.js → chunk-PK6MYC5E.js} +7 -7
- package/dist/cli/{chunk-ASDVROA5.mjs → chunk-QUAPOFCA.mjs} +5 -5
- package/dist/cli/{chunk-TFPKGTMD.js → chunk-T26CM5LC.js} +2 -2
- package/dist/cli/{chunk-732RWNDP.mjs → chunk-TPRMS2D7.mjs} +3 -3
- package/dist/cli/{chunk-RL7ZI4ZG.mjs → chunk-TW7HFIQG.mjs} +13 -13
- package/dist/cli/{chunk-XIHZUWIG.mjs → chunk-U7LDRRRB.mjs} +1 -1
- package/dist/cli/{chunk-S2CNGS7O.js → chunk-UP2CQTGX.js} +2 -2
- package/dist/cli/{chunk-RWT6N2SU.js → chunk-UVFR7FW4.js} +20 -20
- package/dist/cli/{chunk-XFZX6FNM.mjs → chunk-VLXLKNR4.mjs} +17 -2
- package/dist/cli/{chunk-S65SZ74B.mjs → chunk-VVGGQBAV.mjs} +2 -2
- package/dist/cli/{chunk-KSUI4YX5.js → chunk-WSX76BQX.js} +6 -6
- package/dist/cli/{chunk-57J3OOCR.mjs → chunk-WZKWSIZS.mjs} +1 -1
- package/dist/cli/{chunk-UYYOO7VT.mjs → chunk-XJUHHIH4.mjs} +5 -5
- package/dist/cli/{chunk-I45RNMNZ.mjs → chunk-YQDBHVYJ.mjs} +5 -5
- package/dist/cli/{chunk-DFL3UBW2.mjs → chunk-YUB7OX65.mjs} +1 -1
- package/dist/cli/{chunk-WTQGJBHD.js → chunk-ZAR6JSI6.js} +3 -3
- package/dist/cli/{chunk-N55EUVKV.mjs → chunk-ZKLUGMPE.mjs} +2 -2
- package/dist/cli/concurrent-runs-help-3KEUX2GA.js +22 -0
- package/dist/cli/{concurrent-runs-help-I7ZLXZDD.mjs → concurrent-runs-help-HSBXPVDN.mjs} +6 -6
- package/dist/cli/{csv-Q2Y3KKK2.js → csv-JEOU3DOF.js} +13 -13
- package/dist/cli/{csv-K7FNSHIM.mjs → csv-OQGWJ4HU.mjs} +4 -4
- package/dist/cli/{db-E4XSIQDS.js → db-75WPSR3C.js} +27 -27
- package/dist/cli/{db-74RBHX6G.mjs → db-YHCKYQJI.mjs} +6 -6
- package/dist/cli/{describe-UYB6WDHS.mjs → describe-TSW245QQ.mjs} +21 -21
- package/dist/cli/describe-ZUATHN4Z.js +50 -0
- package/dist/cli/describe-core.d.mts +5 -0
- package/dist/cli/describe-core.d.ts +5 -0
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-6LKXZRL4.mjs → executions-NW3SQULX.mjs} +6 -6
- package/dist/cli/{executions-LX6HJM72.js → executions-PNSETDOA.js} +8 -8
- package/dist/cli/{feedback-7D2JRVOM.js → feedback-LXTVGS4E.js} +14 -14
- package/dist/cli/{feedback-B2V64TYZ.mjs → feedback-R2Y4APBY.mjs} +6 -6
- package/dist/cli/git-GAXMETIP.js +26 -0
- package/dist/cli/{git-7KNCB2HN.mjs → git-S7DESBSB.mjs} +5 -5
- package/dist/cli/index.js +143 -143
- package/dist/cli/index.mjs +45 -45
- package/dist/cli/{integrations-J3RHOSAR.mjs → integrations-CQWODJ23.mjs} +7 -7
- package/dist/cli/{integrations-34UK7XET.js → integrations-ZLMM2CMG.js} +15 -15
- package/dist/cli/{legacy-noops-HXJ6UMK7.js → legacy-noops-4UDVSN5R.js} +9 -9
- package/dist/cli/{legacy-noops-WQUDES3K.mjs → legacy-noops-EGD7QOML.mjs} +6 -6
- package/dist/cli/{mcp-EZENPRPY.js → mcp-5W4HWAMB.js} +24 -24
- package/dist/cli/{mcp-JZPAPQYI.mjs → mcp-Q3SKD3A2.mjs} +4 -4
- package/dist/cli/{monitors-GS2P4OUK.js → monitors-NA6QQRUK.js} +100 -100
- package/dist/cli/{monitors-GF2WEFF6.mjs → monitors-ZXHOLBOO.mjs} +7 -7
- package/dist/cli/{org-V56HBHPB.js → org-25E7SBZP.js} +121 -121
- package/dist/cli/{org-WJ2RO7ZE.mjs → org-O3NSKVA7.mjs} +6 -6
- package/dist/cli/{outcomes-D6KXYKGW.js → outcomes-O5DS5XSH.js} +14 -14
- package/dist/cli/{outcomes-WP5WV54Y.mjs → outcomes-TEXVO2EV.mjs} +6 -6
- package/dist/cli/{play-PXUVRS4K.js → play-2FVIRT7Z.js} +337 -337
- package/dist/cli/{play-FHHCHNQH.mjs → play-UFAJEDX4.mjs} +20 -20
- package/dist/cli/{providers-TOXIJOY2.js → providers-4C4TJ5N3.js} +9 -9
- package/dist/cli/{providers-HJ77LN3M.mjs → providers-LCJA4VQ7.mjs} +6 -6
- package/dist/cli/{quickstart-MDXLT5SR.js → quickstart-2OAKQFLT.js} +6 -6
- package/dist/cli/{quickstart-UEQHXEWP.mjs → quickstart-QOJLPGFW.mjs} +4 -4
- package/dist/cli/{run-ZZ5ABZL7.mjs → run-SNAFQJWR.mjs} +26 -26
- package/dist/cli/{run-2MXAEH6U.js → run-SV3EPJGU.js} +48 -48
- package/dist/cli/search-DCHBSXPZ.js +32 -0
- package/dist/cli/{search-AF4XVWC2.mjs → search-KIJZGURG.mjs} +7 -7
- package/dist/cli/{search-output-3GFQJJGJ.mjs → search-output-OESDMVBG.mjs} +5 -5
- package/dist/cli/{search-output-LEKJVZSH.js → search-output-WRHLYDZX.js} +8 -8
- package/dist/cli/{secrets-TLH3FKCT.mjs → secrets-5WCCHFM5.mjs} +6 -6
- package/dist/cli/{secrets-MR2FNFGD.js → secrets-GH6KF5VR.js} +15 -15
- package/dist/cli/{sessions-LUL5P66K.mjs → sessions-52MAEUFQ.mjs} +6 -6
- package/dist/cli/sessions-MYG6BH6T.js +23 -0
- package/dist/cli/{settings-Z2HYUOL7.js → settings-5RSARPXF.js} +85 -85
- package/dist/cli/{settings-AWSRUTZR.mjs → settings-HDOBMJ5A.mjs} +12 -12
- package/dist/cli/{setup-FIMXN4IC.js → setup-4DTCFBOX.js} +49 -49
- package/dist/cli/{setup-PFPAJOUI.mjs → setup-UY3TSZZV.mjs} +9 -9
- package/dist/cli/skills-EOC2MSQK.js +37 -0
- package/dist/cli/{skills-5DKSATY5.mjs → skills-QUWJHOEZ.mjs} +7 -7
- package/dist/cli/tools-AGOX64LC.js +57 -0
- package/dist/cli/{tools-BDNASCSH.mjs → tools-U2LH642W.mjs} +19 -19
- package/dist/cli/{update-CAFUZ5XT.mjs → update-3H4E5YJ7.mjs} +9 -9
- package/dist/cli/update-OLLOIH4U.js +37 -0
- package/dist/cli/{views-XJOBO6US.js → views-2LUZ3ATR.js} +21 -21
- package/dist/cli/{views-7PDXZUQA.mjs → views-7WOYBLLQ.mjs} +6 -6
- package/dist/cli/{workflow-2BMUGN7M.mjs → workflow-55OASFLG.mjs} +7 -7
- package/dist/cli/{workflow-KCPLU5R7.js → workflow-YME2SGMA.js} +17 -17
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +118 -118
- 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-MRVTS74X.js +0 -44
- package/dist/cli/concurrent-runs-help-CHBVPWYT.js +0 -22
- package/dist/cli/describe-TUW35JSY.js +0 -50
- package/dist/cli/git-TH4M62KL.js +0 -26
- package/dist/cli/search-6DT2TGOU.js +0 -32
- package/dist/cli/sessions-EJYLWV2M.js +0 -23
- package/dist/cli/skills-232RNG5G.js +0 -37
- package/dist/cli/tools-P7FBJVJA.js +0 -57
- package/dist/cli/update-OC4UB2XE.js +0 -37
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
httpJson
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GC4HHDE4.mjs";
|
|
4
4
|
import {
|
|
5
5
|
PRICING_PAGE_NOTE
|
|
6
6
|
} from "./chunk-2RIKOPIM.mjs";
|
|
7
7
|
import {
|
|
8
8
|
autoDetectBaseUrl,
|
|
9
9
|
resolveApiKeyForBaseUrl
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-24PL5QN5.mjs";
|
|
11
11
|
|
|
12
12
|
// src/cli/concurrent-runs-help.ts
|
|
13
13
|
var CONCURRENT_RUNS_HELP_COMMANDS = /* @__PURE__ */ new Set([
|
|
@@ -99,8 +99,21 @@ function schemaType(schema) {
|
|
|
99
99
|
type: nonNull ? nonNull + nullable : nullable ? "null" : "unknown"
|
|
100
100
|
};
|
|
101
101
|
}
|
|
102
|
+
function pageSizeNote(schema) {
|
|
103
|
+
const declaration = schema.pageSize;
|
|
104
|
+
if (!isRecord(declaration)) return void 0;
|
|
105
|
+
const { minimum, maximum } = schema;
|
|
106
|
+
const range = typeof minimum === "number" && typeof maximum === "number" ? ` ${minimum} to ${maximum}` : typeof maximum === "number" ? ` up to ${maximum}` : "";
|
|
107
|
+
const notes = [
|
|
108
|
+
`page size${range}`,
|
|
109
|
+
typeof maximum === "number" ? `more runs at ${maximum}` : void 0,
|
|
110
|
+
typeof declaration.next === "string" ? `next page: ${declaration.next}` : typeof declaration.nextHint === "string" ? declaration.nextHint : void 0
|
|
111
|
+
];
|
|
112
|
+
return notes.filter(Boolean).join("; ");
|
|
113
|
+
}
|
|
102
114
|
function schemaField(name, node, required) {
|
|
103
115
|
const schema = isRecord(node) ? node : {};
|
|
116
|
+
const pageSize = pageSizeNote(schema);
|
|
104
117
|
const { type, fields } = schemaType(schema);
|
|
105
118
|
const example = [
|
|
106
119
|
schema.example,
|
|
@@ -115,7 +128,8 @@ function schemaField(name, node, required) {
|
|
|
115
128
|
...typeof schema.description === "string" && schema.description ? { description: schema.description } : {},
|
|
116
129
|
...fields ? { fields } : {},
|
|
117
130
|
...schema.secondary === true ? { secondary: true } : {},
|
|
118
|
-
...typeof schema.means === "string" ? { means: schema.means } : {}
|
|
131
|
+
...typeof schema.means === "string" ? { means: schema.means } : {},
|
|
132
|
+
...pageSize ? { pageSize } : {}
|
|
119
133
|
};
|
|
120
134
|
}
|
|
121
135
|
function resolveSchemaReference(root, ref) {
|
|
@@ -434,7 +448,7 @@ function schemaBlocks(sections, maxDepth, everyField = false) {
|
|
|
434
448
|
const start = `${indent}${JSON.stringify(field.name)}${field.required ? "" : "?"}: `;
|
|
435
449
|
if (!field.fields) {
|
|
436
450
|
return [
|
|
437
|
-
`${start}${field.type},${comment([field.means, example, field.description])}`
|
|
451
|
+
`${start}${field.type},${comment([field.means, example, field.pageSize, field.description])}`
|
|
438
452
|
];
|
|
439
453
|
}
|
|
440
454
|
const [before, after] = field.type.split(SHAPE);
|
|
@@ -750,6 +764,7 @@ function jsonFields(fields, options) {
|
|
|
750
764
|
...options.input ? { required: field.required } : {},
|
|
751
765
|
...field.means ? { means: field.means } : {},
|
|
752
766
|
...field.example !== void 0 ? { example: field.example } : {},
|
|
767
|
+
...field.pageSize ? { page_size: field.pageSize } : {},
|
|
753
768
|
...field.description && field.description !== _optionalChain([shape, 'optionalAccess', _21 => _21.description]) ? { description: field.description } : {},
|
|
754
769
|
...field.secondary ? { secondary: true } : {},
|
|
755
770
|
...field.read ? { read: field.read } : {},
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OBW2YFHR.mjs";
|
|
4
4
|
import {
|
|
5
5
|
printCommandEnvelope
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZKLUGMPE.mjs";
|
|
7
7
|
|
|
8
8
|
// src/cli/commands/integration-commands.ts
|
|
9
9
|
import { Option } from "commander";
|
|
@@ -21,12 +21,12 @@ var _chunkLFQJW4S2js = require('./chunk-LFQJW4S2.js');
|
|
|
21
21
|
var _chunkCFJFUVX2js = require('./chunk-CFJFUVX2.js');
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunk7AMUXIZ5js = require('./chunk-7AMUXIZ5.js');
|
|
25
25
|
|
|
26
26
|
// src/version.ts
|
|
27
|
-
var SDK_VERSION =
|
|
28
|
-
var SDK_API_MAJOR =
|
|
29
|
-
var SDK_API_CONTRACT = _nullishCoalesce(
|
|
27
|
+
var SDK_VERSION = _chunk7AMUXIZ5js.SDK_RELEASE.version;
|
|
28
|
+
var SDK_API_MAJOR = _chunk7AMUXIZ5js.SDK_RELEASE.contracts.api.currentMajor;
|
|
29
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunk7AMUXIZ5js.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
|
|
30
30
|
|
|
31
31
|
// src/agent-runtime.ts
|
|
32
32
|
var _fs = require('fs');
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ZKLUGMPE.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-24PL5QN5.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkUVFR7FW4js = require('./chunk-UVFR7FW4.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -22,14 +22,14 @@ var _chunkRWT6N2SUjs = require('./chunk-RWT6N2SU.js');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkL5JD66EFjs = require('./chunk-L5JD66EF.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunk5H7BLMNHjs = require('./chunk-5H7BLMNH.js');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
var _chunkLFQJW4S2js = require('./chunk-LFQJW4S2.js');
|
|
@@ -60,7 +60,7 @@ function statusBannerLine(value) {
|
|
|
60
60
|
return `Service notice: ${banner.message}`;
|
|
61
61
|
}
|
|
62
62
|
function envFilePath(baseUrl) {
|
|
63
|
-
return
|
|
63
|
+
return _chunkL5JD66EFjs.hostEnvFilePath.call(void 0, baseUrl);
|
|
64
64
|
}
|
|
65
65
|
function normalizeAuthScope(value) {
|
|
66
66
|
if (!value || value === "global") return "global";
|
|
@@ -73,7 +73,7 @@ function parseAuthScope(args) {
|
|
|
73
73
|
}
|
|
74
74
|
function pendingClaimPath(baseUrl, scope) {
|
|
75
75
|
if (scope === "folder") {
|
|
76
|
-
const target =
|
|
76
|
+
const target = _chunkL5JD66EFjs.resolveProjectPinTarget.call(void 0, );
|
|
77
77
|
if (!target.ok) {
|
|
78
78
|
throw new Error(
|
|
79
79
|
`Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
|
|
@@ -83,10 +83,10 @@ function pendingClaimPath(baseUrl, scope) {
|
|
|
83
83
|
}
|
|
84
84
|
return _path.join.call(void 0, target.dir, ".deepline", "setup", "pending-auth.json");
|
|
85
85
|
}
|
|
86
|
-
return `${
|
|
86
|
+
return `${_chunkL5JD66EFjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
|
|
87
87
|
}
|
|
88
88
|
function legacyPendingClaimTokenPath(baseUrl) {
|
|
89
|
-
return `${
|
|
89
|
+
return `${_chunkL5JD66EFjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
|
|
90
90
|
}
|
|
91
91
|
function savePendingClaim(baseUrl, claim) {
|
|
92
92
|
const filePath = pendingClaimPath(baseUrl, claim.scope);
|
|
@@ -191,21 +191,21 @@ function parseRegisterWaitMode(args) {
|
|
|
191
191
|
function shouldWaitForRegisterClaim(mode) {
|
|
192
192
|
if (mode === "yes") return true;
|
|
193
193
|
if (mode === "no") return false;
|
|
194
|
-
return
|
|
194
|
+
return _chunk5H7BLMNHjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
|
|
195
195
|
}
|
|
196
196
|
function saveEnvValues(values, baseUrl, scope) {
|
|
197
197
|
const filtered = {
|
|
198
|
-
...values[
|
|
199
|
-
...values[
|
|
200
|
-
...values[
|
|
201
|
-
...Object.prototype.hasOwnProperty.call(values,
|
|
198
|
+
...values[_chunkL5JD66EFjs.HOST_URL_ENV] ? { [_chunkL5JD66EFjs.HOST_URL_ENV]: values[_chunkL5JD66EFjs.HOST_URL_ENV] } : {},
|
|
199
|
+
...values[_chunkL5JD66EFjs.API_KEY_ENV] ? { [_chunkL5JD66EFjs.API_KEY_ENV]: values[_chunkL5JD66EFjs.API_KEY_ENV] } : {},
|
|
200
|
+
...values[_chunkL5JD66EFjs.ACTIVE_ORG_ID_ENV] ? { [_chunkL5JD66EFjs.ACTIVE_ORG_ID_ENV]: values[_chunkL5JD66EFjs.ACTIVE_ORG_ID_ENV] } : {},
|
|
201
|
+
...Object.prototype.hasOwnProperty.call(values, _chunkL5JD66EFjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkL5JD66EFjs.ACTIVE_ORG_NAME_ENV]: values[_chunkL5JD66EFjs.ACTIVE_ORG_NAME_ENV] } : {},
|
|
202
202
|
// An explicit empty list must reach the store: it clears a stale line.
|
|
203
|
-
...Object.prototype.hasOwnProperty.call(values,
|
|
203
|
+
...Object.prototype.hasOwnProperty.call(values, _chunkL5JD66EFjs.FEATURES_ENV) ? { [_chunkL5JD66EFjs.FEATURES_ENV]: values[_chunkL5JD66EFjs.FEATURES_ENV] } : {}
|
|
204
204
|
};
|
|
205
205
|
if (scope === "folder") {
|
|
206
|
-
|
|
206
|
+
_chunkL5JD66EFjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
|
|
207
207
|
} else {
|
|
208
|
-
|
|
208
|
+
_chunkL5JD66EFjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
211
|
function activeOrgEnvValues(data) {
|
|
@@ -213,21 +213,21 @@ function activeOrgEnvValues(data) {
|
|
|
213
213
|
if (!orgId) return {};
|
|
214
214
|
const orgName = typeof data.org_name === "string" ? data.org_name.trim() : "";
|
|
215
215
|
return {
|
|
216
|
-
[
|
|
217
|
-
[
|
|
218
|
-
...
|
|
216
|
+
[_chunkL5JD66EFjs.ACTIVE_ORG_ID_ENV]: orgId,
|
|
217
|
+
[_chunkL5JD66EFjs.ACTIVE_ORG_NAME_ENV]: orgName,
|
|
218
|
+
..._chunkL5JD66EFjs.featureEnvValues.call(void 0, data)
|
|
219
219
|
};
|
|
220
220
|
}
|
|
221
221
|
async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT_MS) {
|
|
222
222
|
const headers = {
|
|
223
223
|
"Content-Type": "application/json",
|
|
224
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
224
|
+
"User-Agent": `deepline-ts-sdk/${_chunk5H7BLMNHjs.SDK_VERSION}`,
|
|
225
225
|
"X-Deepline-Client-Family": "sdk",
|
|
226
226
|
"X-Deepline-CLI-Family": "sdk",
|
|
227
|
-
"X-Deepline-Agent-Runtime":
|
|
228
|
-
"X-Deepline-CLI-Version":
|
|
229
|
-
"X-Deepline-SDK-Version":
|
|
230
|
-
"X-Deepline-API-Contract":
|
|
227
|
+
"X-Deepline-Agent-Runtime": _chunk5H7BLMNHjs.detectAgentRuntime.call(void 0, ),
|
|
228
|
+
"X-Deepline-CLI-Version": _chunk5H7BLMNHjs.SDK_VERSION,
|
|
229
|
+
"X-Deepline-SDK-Version": _chunk5H7BLMNHjs.SDK_VERSION,
|
|
230
|
+
"X-Deepline-API-Contract": _chunk5H7BLMNHjs.SDK_API_CONTRACT
|
|
231
231
|
};
|
|
232
232
|
if (apiKey) headers["Authorization"] = `Bearer ${apiKey}`;
|
|
233
233
|
const bypassToken = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.VERCEL_PROTECTION_BYPASS_TOKEN, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]);
|
|
@@ -266,10 +266,10 @@ async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT
|
|
|
266
266
|
if (failure.name === "AbortError" || failure.name === "TimeoutError") {
|
|
267
267
|
throw failure;
|
|
268
268
|
}
|
|
269
|
-
const causeCode =
|
|
269
|
+
const causeCode = _chunk5H7BLMNHjs.networkCauseCode.call(void 0, failure);
|
|
270
270
|
throw Object.assign(
|
|
271
271
|
new (0, _chunkLFQJW4S2js.DeeplineError)(
|
|
272
|
-
|
|
272
|
+
_chunk5H7BLMNHjs.connectionFailureMessage.call(void 0, new URL(url).origin, failure),
|
|
273
273
|
void 0,
|
|
274
274
|
"NETWORK_ERROR",
|
|
275
275
|
causeCode ? { causeCode } : void 0
|
|
@@ -286,7 +286,7 @@ async function readStatusBanner(baseUrl) {
|
|
|
286
286
|
return _optionalChain([response, 'optionalAccess', _11 => _11.status]) === 200 ? _nullishCoalesce(response.data.banner, () => ( null)) : null;
|
|
287
287
|
}
|
|
288
288
|
async function reportSetupCompleted(input) {
|
|
289
|
-
const apiKey = input.authScope === "folder" ?
|
|
289
|
+
const apiKey = input.authScope === "folder" ? _chunkL5JD66EFjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkL5JD66EFjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
290
290
|
if (!apiKey) return;
|
|
291
291
|
try {
|
|
292
292
|
await httpJson(
|
|
@@ -415,7 +415,7 @@ function endClaimPollOnRefusal(status, data, baseUrl, authScope) {
|
|
|
415
415
|
return EXIT_SERVER;
|
|
416
416
|
}
|
|
417
417
|
async function handleRegister(args, options) {
|
|
418
|
-
const baseUrl =
|
|
418
|
+
const baseUrl = _chunkL5JD66EFjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
419
419
|
let orgName = "";
|
|
420
420
|
let orgId = "";
|
|
421
421
|
let agentName = "";
|
|
@@ -486,14 +486,14 @@ async function handleRegister(args, options) {
|
|
|
486
486
|
savePendingClaim(baseUrl, pendingClaim);
|
|
487
487
|
saveEnvValues(
|
|
488
488
|
{
|
|
489
|
-
[
|
|
489
|
+
[_chunkL5JD66EFjs.HOST_URL_ENV]: baseUrl
|
|
490
490
|
},
|
|
491
491
|
baseUrl,
|
|
492
492
|
authScope
|
|
493
493
|
);
|
|
494
494
|
}
|
|
495
495
|
if (claimUrl && !_optionalChain([options, 'optionalAccess', _16 => _16.delegatedApproval])) {
|
|
496
|
-
const shouldOpen = waitMode !== "no" &&
|
|
496
|
+
const shouldOpen = waitMode !== "no" && _chunk5H7BLMNHjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
|
|
497
497
|
console.log(" Open this approval page in your browser:");
|
|
498
498
|
console.log(` ${claimUrl}`);
|
|
499
499
|
if (pendingClaim.device) {
|
|
@@ -501,7 +501,7 @@ async function handleRegister(args, options) {
|
|
|
501
501
|
` Click Approve if the page shows ${pendingClaim.device.userCode}.`
|
|
502
502
|
);
|
|
503
503
|
}
|
|
504
|
-
const opened = shouldOpen &&
|
|
504
|
+
const opened = shouldOpen && _chunkUVFR7FW4js.openInBrowser.call(void 0, claimUrl) === "opened";
|
|
505
505
|
if (claimToken && pendingClaim.approvalLinkReporting) {
|
|
506
506
|
await reportApprovalLinkShown(
|
|
507
507
|
baseUrl,
|
|
@@ -554,8 +554,8 @@ async function handleRegister(args, options) {
|
|
|
554
554
|
if (apiKey) {
|
|
555
555
|
saveEnvValues(
|
|
556
556
|
{
|
|
557
|
-
[
|
|
558
|
-
[
|
|
557
|
+
[_chunkL5JD66EFjs.HOST_URL_ENV]: baseUrl,
|
|
558
|
+
[_chunkL5JD66EFjs.API_KEY_ENV]: apiKey,
|
|
559
559
|
...activeOrgEnvValues(statusData)
|
|
560
560
|
},
|
|
561
561
|
baseUrl,
|
|
@@ -577,7 +577,7 @@ async function handleRegister(args, options) {
|
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
579
|
async function handleWait(args, options) {
|
|
580
|
-
const baseUrl =
|
|
580
|
+
const baseUrl = _chunkL5JD66EFjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
581
581
|
let timeoutSeconds = 300;
|
|
582
582
|
let requestedScope;
|
|
583
583
|
if (args.includes("--auth-scope")) {
|
|
@@ -601,7 +601,7 @@ async function handleWait(args, options) {
|
|
|
601
601
|
const authScope = resumed.scope;
|
|
602
602
|
const claimToken = _nullishCoalesce(_optionalChain([pendingClaim, 'optionalAccess', _18 => _18.claimToken]), () => ( ""));
|
|
603
603
|
if (!pendingClaim) {
|
|
604
|
-
const scopedApiKey = authScope === "folder" ?
|
|
604
|
+
const scopedApiKey = authScope === "folder" ? _chunkL5JD66EFjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkL5JD66EFjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
605
605
|
if (scopedApiKey) {
|
|
606
606
|
if (!_optionalChain([options, 'optionalAccess', _19 => _19.quiet])) console.log("Already connected.");
|
|
607
607
|
return EXIT_OK;
|
|
@@ -664,8 +664,8 @@ async function handleWait(args, options) {
|
|
|
664
664
|
if (apiKey) {
|
|
665
665
|
saveEnvValues(
|
|
666
666
|
{
|
|
667
|
-
[
|
|
668
|
-
[
|
|
667
|
+
[_chunkL5JD66EFjs.HOST_URL_ENV]: baseUrl,
|
|
668
|
+
[_chunkL5JD66EFjs.API_KEY_ENV]: apiKey,
|
|
669
669
|
...activeOrgEnvValues(data)
|
|
670
670
|
},
|
|
671
671
|
baseUrl,
|
|
@@ -695,8 +695,8 @@ async function handleWait(args, options) {
|
|
|
695
695
|
return EXIT_AUTH;
|
|
696
696
|
}
|
|
697
697
|
async function authStatusLine(timeoutMs = 3e3) {
|
|
698
|
-
const baseUrl =
|
|
699
|
-
const apiKey =
|
|
698
|
+
const baseUrl = _chunkL5JD66EFjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
699
|
+
const apiKey = _chunkL5JD66EFjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
700
700
|
if (!apiKey) return `Auth: not connected (${baseUrl})`;
|
|
701
701
|
try {
|
|
702
702
|
const { status, data } = await httpJson(
|
|
@@ -719,9 +719,9 @@ async function authStatusLine(timeoutMs = 3e3) {
|
|
|
719
719
|
}
|
|
720
720
|
}
|
|
721
721
|
async function handleStatus(args) {
|
|
722
|
-
const baseUrl =
|
|
722
|
+
const baseUrl = _chunkL5JD66EFjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
723
723
|
const reveal = args.includes("--reveal");
|
|
724
|
-
const jsonOutput =
|
|
724
|
+
const jsonOutput = _chunkUVFR7FW4js.argsWantJson.call(void 0, args);
|
|
725
725
|
const hasExplicitAuthScope = args.includes("--auth-scope");
|
|
726
726
|
let authScope = null;
|
|
727
727
|
if (hasExplicitAuthScope) {
|
|
@@ -762,14 +762,14 @@ async function handleStatus(args) {
|
|
|
762
762
|
};
|
|
763
763
|
hostLines.push(`Host: ${baseUrl} (unreachable)`);
|
|
764
764
|
}
|
|
765
|
-
const apiKey = authScope === "folder" ?
|
|
765
|
+
const apiKey = authScope === "folder" ? _chunkL5JD66EFjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkL5JD66EFjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkL5JD66EFjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
766
766
|
if (!apiKey) {
|
|
767
767
|
const { claim: pendingClaim } = resolvePendingAuthClaimForResume(
|
|
768
768
|
baseUrl,
|
|
769
769
|
_nullishCoalesce(authScope, () => ( void 0))
|
|
770
770
|
);
|
|
771
771
|
if (pendingClaim) {
|
|
772
|
-
|
|
772
|
+
_chunkUVFR7FW4js.printCommandEnvelope.call(void 0,
|
|
773
773
|
{
|
|
774
774
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
775
775
|
status: "pending",
|
|
@@ -799,7 +799,7 @@ async function handleStatus(args) {
|
|
|
799
799
|
);
|
|
800
800
|
return EXIT_OK;
|
|
801
801
|
}
|
|
802
|
-
|
|
802
|
+
_chunkUVFR7FW4js.printCommandEnvelope.call(void 0,
|
|
803
803
|
{
|
|
804
804
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
805
805
|
status: "not connected",
|
|
@@ -832,7 +832,7 @@ async function handleStatus(args) {
|
|
|
832
832
|
}
|
|
833
833
|
);
|
|
834
834
|
if (status === 401 || status === 403) {
|
|
835
|
-
|
|
835
|
+
_chunkUVFR7FW4js.printCommandEnvelope.call(void 0,
|
|
836
836
|
{
|
|
837
837
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
838
838
|
status: "unauthorized",
|
|
@@ -859,7 +859,7 @@ async function handleStatus(args) {
|
|
|
859
859
|
console.error(`Auth status error (status ${status}).`);
|
|
860
860
|
return EXIT_SERVER;
|
|
861
861
|
}
|
|
862
|
-
const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (
|
|
862
|
+
const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkL5JD66EFjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
|
|
863
863
|
clearSatisfiedPendingClaim(
|
|
864
864
|
baseUrl,
|
|
865
865
|
resolvedAuthScope,
|
|
@@ -887,28 +887,28 @@ async function handleStatus(args) {
|
|
|
887
887
|
if (apiKeyResp) {
|
|
888
888
|
saveEnvValues(
|
|
889
889
|
{
|
|
890
|
-
[
|
|
891
|
-
[
|
|
890
|
+
[_chunkL5JD66EFjs.HOST_URL_ENV]: baseUrl,
|
|
891
|
+
[_chunkL5JD66EFjs.API_KEY_ENV]: apiKeyResp,
|
|
892
892
|
...activeOrgEnvValues(data)
|
|
893
893
|
},
|
|
894
894
|
baseUrl,
|
|
895
895
|
resolvedAuthScope
|
|
896
896
|
);
|
|
897
897
|
if (resolvedAuthScope === "folder") {
|
|
898
|
-
const target =
|
|
898
|
+
const target = _chunkL5JD66EFjs.resolveProjectPinTarget.call(void 0, );
|
|
899
899
|
savedApiKeyPath = target.ok ? _path.join.call(void 0, target.dir, ".env.deepline") : null;
|
|
900
900
|
} else {
|
|
901
901
|
savedApiKeyPath = envFilePath(baseUrl);
|
|
902
902
|
}
|
|
903
903
|
}
|
|
904
|
-
} else if (resolvedAuthScope === "folder" ||
|
|
905
|
-
saveEnvValues(
|
|
904
|
+
} else if (resolvedAuthScope === "folder" || _chunkL5JD66EFjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
|
|
905
|
+
saveEnvValues(_chunkL5JD66EFjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
|
|
906
906
|
}
|
|
907
|
-
|
|
907
|
+
_chunkUVFR7FW4js.printCommandEnvelope.call(void 0,
|
|
908
908
|
{
|
|
909
909
|
...payload,
|
|
910
|
-
...
|
|
911
|
-
command_context:
|
|
910
|
+
..._chunk5H7BLMNHjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
|
|
911
|
+
command_context: _chunkL5JD66EFjs.resolveCliCommandContext.call(void 0,
|
|
912
912
|
{ baseUrl, apiKey },
|
|
913
913
|
resolvedAuthScope
|
|
914
914
|
)
|
|
@@ -1,15 +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 _chunkUP2CQTGXjs = require('./chunk-UP2CQTGX.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkUVFR7FW4js = require('./chunk-UVFR7FW4.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunk5H7BLMNHjs = require('./chunk-5H7BLMNH.js');
|
|
13
13
|
|
|
14
14
|
// src/cli/commands/sessions.ts
|
|
15
15
|
|
|
@@ -55,7 +55,7 @@ function codexSessionsRoot() {
|
|
|
55
55
|
}
|
|
56
56
|
function listClaudeSessionFiles() {
|
|
57
57
|
const files = [];
|
|
58
|
-
for (const root of
|
|
58
|
+
for (const root of _chunk5H7BLMNHjs.claudeProjectsRoots.call(void 0, )) {
|
|
59
59
|
files.push(...listClaudeSessionFilesIn(root));
|
|
60
60
|
}
|
|
61
61
|
return files;
|
|
@@ -147,7 +147,7 @@ function currentSessionFile(agent) {
|
|
|
147
147
|
const newestFirst = listSessionFiles(agent).sort(
|
|
148
148
|
(a, b) => b.mtimeMs - a.mtimeMs
|
|
149
149
|
);
|
|
150
|
-
const sessionId =
|
|
150
|
+
const sessionId = _chunk5H7BLMNHjs.agentSessionIdFromEnvironment.call(void 0,
|
|
151
151
|
process.env,
|
|
152
152
|
agent === "auto" ? void 0 : agent === "claude" ? "claude_code" : "codex"
|
|
153
153
|
);
|
|
@@ -156,7 +156,7 @@ function currentSessionFile(agent) {
|
|
|
156
156
|
(candidate) => candidate.sessionId === sessionId
|
|
157
157
|
);
|
|
158
158
|
if (named) return named;
|
|
159
|
-
const cowork = agent === "codex" ? null :
|
|
159
|
+
const cowork = agent === "codex" ? null : _chunk5H7BLMNHjs.coworkTranscriptFromEnvironment.call(void 0, );
|
|
160
160
|
const coworkStat = cowork ? statIfReadable(cowork.filePath) : null;
|
|
161
161
|
if (cowork && coworkStat) {
|
|
162
162
|
return { agent: "claude", ...cowork, mtimeMs: coworkStat.mtimeMs };
|
|
@@ -166,7 +166,7 @@ function currentSessionFile(agent) {
|
|
|
166
166
|
), () => ( newestFirst[0])), () => ( null));
|
|
167
167
|
}
|
|
168
168
|
function feedbackAgentSessionId(agentRuntime) {
|
|
169
|
-
return _nullishCoalesce(
|
|
169
|
+
return _nullishCoalesce(_chunk5H7BLMNHjs.agentSessionIdFromEnvironment.call(void 0, process.env, agentRuntime), () => ( (agentRuntime === "claude_cowork" || agentRuntime === "claude_code" ? _nullishCoalesce(_optionalChain([_chunk5H7BLMNHjs.coworkTranscriptFromEnvironment.call(void 0, ), 'optionalAccess', _17 => _17.sessionId]), () => ( null)) : null)));
|
|
170
170
|
}
|
|
171
171
|
function sessionStartedInDirectory(candidate, cwd) {
|
|
172
172
|
if (candidate.agent === "claude") {
|
|
@@ -215,7 +215,7 @@ function readCodexSessionId(filePath) {
|
|
|
215
215
|
return null;
|
|
216
216
|
}
|
|
217
217
|
function sessionSearchDescription(agent) {
|
|
218
|
-
const claude =
|
|
218
|
+
const claude = _chunk5H7BLMNHjs.claudeProjectsRoots.call(void 0, ).map((root) => _path.join.call(void 0, root, "*", "<session-id>.jsonl")).join(", ");
|
|
219
219
|
if (agent === "claude") return claude;
|
|
220
220
|
if (agent === "codex") return "~/.codex/sessions/**/*.jsonl";
|
|
221
221
|
return `${claude} or ~/.codex/sessions/**/*.jsonl`;
|
|
@@ -472,7 +472,7 @@ function buildSessionUploadContent(raw) {
|
|
|
472
472
|
return { encodedContent: encoded, needsChunking: true };
|
|
473
473
|
}
|
|
474
474
|
async function uploadPayload(path, payload) {
|
|
475
|
-
const { http } =
|
|
475
|
+
const { http } = _chunkUVFR7FW4js.getAuthedHttpClient.call(void 0, );
|
|
476
476
|
return await http.post(path, payload);
|
|
477
477
|
}
|
|
478
478
|
async function uploadChunkedSessions(sessions, options) {
|
|
@@ -550,7 +550,7 @@ async function uploadAgentSession(agentRuntime) {
|
|
|
550
550
|
return target.sessionId;
|
|
551
551
|
}
|
|
552
552
|
async function handleSessionsSend(options) {
|
|
553
|
-
if (
|
|
553
|
+
if (_chunkUP2CQTGXjs.rejectRestrictedFeedback.call(void 0, options)) return;
|
|
554
554
|
const rating = parseSessionRating(options.rating);
|
|
555
555
|
if (options.file) {
|
|
556
556
|
const filePath = _path.resolve.call(void 0, options.file);
|
|
@@ -562,7 +562,7 @@ async function handleSessionsSend(options) {
|
|
|
562
562
|
filename: _path.basename.call(void 0, filePath),
|
|
563
563
|
...rating ? { rating } : {}
|
|
564
564
|
});
|
|
565
|
-
|
|
565
|
+
_chunkUVFR7FW4js.printCommandEnvelope.call(void 0,
|
|
566
566
|
{
|
|
567
567
|
...response2,
|
|
568
568
|
ok: true,
|
|
@@ -594,7 +594,7 @@ async function handleSessionsSend(options) {
|
|
|
594
594
|
labeled: Boolean(_optionalChain([options, 'access', _27 => _27.label, 'optionalAccess', _28 => _28.length]))
|
|
595
595
|
});
|
|
596
596
|
const sessionIds = built.map((session) => session.sessionId);
|
|
597
|
-
|
|
597
|
+
_chunkUVFR7FW4js.printCommandEnvelope.call(void 0,
|
|
598
598
|
{
|
|
599
599
|
...response,
|
|
600
600
|
ok: true,
|
|
@@ -702,7 +702,7 @@ ${refreshMeta}
|
|
|
702
702
|
</body>
|
|
703
703
|
</html>`;
|
|
704
704
|
_fs.writeFileSync.call(void 0, outputPath, html, "utf8");
|
|
705
|
-
|
|
705
|
+
_chunkUVFR7FW4js.printCommandEnvelope.call(void 0,
|
|
706
706
|
{
|
|
707
707
|
ok: true,
|
|
708
708
|
file: outputPath,
|
|
@@ -1,16 +1,16 @@
|
|
|
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 _chunkJY2EJQL5js = require('./chunk-JY2EJQL5.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkUVFR7FW4js = require('./chunk-UVFR7FW4.js');
|
|
7
7
|
|
|
8
8
|
// src/cli/commands/integration-commands.ts
|
|
9
9
|
var _commander = require('commander');
|
|
10
10
|
var _fs = require('fs');
|
|
11
11
|
var _path = require('path');
|
|
12
12
|
function printIntegrationResult(value, json, lines, nextCursor) {
|
|
13
|
-
|
|
13
|
+
_chunkUVFR7FW4js.printCommandEnvelope.call(void 0,
|
|
14
14
|
{},
|
|
15
15
|
{
|
|
16
16
|
json: json || void 0,
|
|
@@ -26,7 +26,7 @@ function registerIntegrationBalanceCommand(parent, hidden = false) {
|
|
|
26
26
|
return parent.command("balance <provider>", { hidden }).description(
|
|
27
27
|
"Read a fresh balance using this org\u2019s own provider connection (LeadMagic)."
|
|
28
28
|
).option("--json", "Print the balance and observation timestamp as JSON").action(async (provider, options) => {
|
|
29
|
-
const balance = await new (0,
|
|
29
|
+
const balance = await new (0, _chunkJY2EJQL5js.DeeplineClient)().getIntegrationBalance(
|
|
30
30
|
provider
|
|
31
31
|
);
|
|
32
32
|
printIntegrationResult(balance, options.json, [
|
|
@@ -40,7 +40,7 @@ function registerWorkspaceConnectionListCommand(parent, name = "workspace-connec
|
|
|
40
40
|
"List teammates\u2019 personal connections for this provider"
|
|
41
41
|
).option("--cursor <cursor>", "Read the next page of members").action(
|
|
42
42
|
async (options) => {
|
|
43
|
-
const client = new (0,
|
|
43
|
+
const client = new (0, _chunkJY2EJQL5js.DeeplineClient)();
|
|
44
44
|
if (name === "list" && options.cursor && !options.members)
|
|
45
45
|
throw new Error(
|
|
46
46
|
"Use --cursor with --members to continue a member page."
|
|
@@ -82,7 +82,7 @@ function registerWorkspaceConnectionListCommand(parent, name = "workspace-connec
|
|
|
82
82
|
}
|
|
83
83
|
function registerLegacyHubSpotMembersCommand(parent, hidden = false) {
|
|
84
84
|
return parent.command("hubspot-members", { hidden }).description("List personal HubSpot connection status for org members.").option("--cursor <cursor>", "Read the next roster page").option("--json", "Print the roster page as JSON").action(async (options) => {
|
|
85
|
-
const page = await new (0,
|
|
85
|
+
const page = await new (0, _chunkJY2EJQL5js.DeeplineClient)().listPersonalHubSpotMembers(
|
|
86
86
|
options.cursor
|
|
87
87
|
);
|
|
88
88
|
const rows = page.members.map((member) => {
|
|
@@ -108,7 +108,7 @@ function registerLegacyWorkspaceConnectionCommand(parent, hidden = false) {
|
|
|
108
108
|
);
|
|
109
109
|
if (options.autoName && (action !== "connect" || options.name !== void 0))
|
|
110
110
|
throw new Error("Use --auto-name with connect and omit --name.");
|
|
111
|
-
const client = new (0,
|
|
111
|
+
const client = new (0, _chunkJY2EJQL5js.DeeplineClient)();
|
|
112
112
|
const { connections } = action === "connect" ? { connections: [] } : options.name ? await client.listWorkspaceConnectionInventory(provider) : await client.listWorkspaceIntegrationConnections();
|
|
113
113
|
const row = connections.find(
|
|
114
114
|
(connection) => connection.provider === provider && (!("type" in connection) || connection.type === "oauth") && (options.name === void 0 || "name" in connection && connection.name === options.name)
|
|
@@ -141,7 +141,7 @@ function registerLegacyCalendarDelegationCommand(parent, hidden = false) {
|
|
|
141
141
|
"Print the proposed change without contacting Google or saving it"
|
|
142
142
|
).option("--json", "Print the result as JSON").action(
|
|
143
143
|
async (action, options) => {
|
|
144
|
-
const client = new (0,
|
|
144
|
+
const client = new (0, _chunkJY2EJQL5js.DeeplineClient)();
|
|
145
145
|
if (action === "list") {
|
|
146
146
|
const inventory = await client.listCalendarAvailabilityConnections();
|
|
147
147
|
const approvals = _optionalChain([inventory, 'access', _3 => _3.approvals, 'optionalAccess', _4 => _4.length]) ? inventory.approvals.map(
|
|
@@ -291,7 +291,7 @@ function registerLegacyCalendarDelegationCommand(parent, hidden = false) {
|
|
|
291
291
|
}
|
|
292
292
|
function registerLegacyAvailabilityCalendarsCommand(parent, hidden = false) {
|
|
293
293
|
return parent.command("availability-calendars", { hidden }).description("Calendar discovery compatibility command for the pilot.").option("--cursor <cursor>", "Legacy calendar page cursor").option("--json", "Print the response as JSON").action(async (options) => {
|
|
294
|
-
const page = await new (0,
|
|
294
|
+
const page = await new (0, _chunkJY2EJQL5js.DeeplineClient)().listAvailabilityCalendars(
|
|
295
295
|
options.cursor
|
|
296
296
|
);
|
|
297
297
|
printIntegrationResult(page, options.json, [
|
|
@@ -335,7 +335,7 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
|
|
|
335
335
|
printSetupPlan({ provider, action: "connect_link" }, options.json);
|
|
336
336
|
return;
|
|
337
337
|
}
|
|
338
|
-
const link = await new (0,
|
|
338
|
+
const link = await new (0, _chunkJY2EJQL5js.DeeplineClient)().getIntegrationConnectLink(
|
|
339
339
|
provider
|
|
340
340
|
);
|
|
341
341
|
printIntegrationResult(link, options.json, [link.connect_url]);
|
|
@@ -362,7 +362,7 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
|
|
|
362
362
|
);
|
|
363
363
|
return;
|
|
364
364
|
}
|
|
365
|
-
const result2 = await new (0,
|
|
365
|
+
const result2 = await new (0, _chunkJY2EJQL5js.DeeplineClient)().startIntegrationOAuth(
|
|
366
366
|
provider,
|
|
367
367
|
{
|
|
368
368
|
...options.preset !== void 0 ? { preset: options.preset } : {},
|
|
@@ -412,7 +412,7 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
|
|
|
412
412
|
"--credentials-file must contain a nonempty JSON object of string credential values."
|
|
413
413
|
);
|
|
414
414
|
}
|
|
415
|
-
const result = await new (0,
|
|
415
|
+
const result = await new (0, _chunkJY2EJQL5js.DeeplineClient)().setIntegrationCredentials(
|
|
416
416
|
provider,
|
|
417
417
|
credentials,
|
|
418
418
|
{ expectedConnectionId: options.expectedConnectionId }
|
|
@@ -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.557",
|
|
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."
|