deepline 0.3.333 → 0.3.335
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/play.ts +1 -1
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +227 -61
- package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +18 -0
- package/dist/bundling-sources/shared_libs/play-runtime/durable-receipt-execution.ts +8 -2
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +64 -7
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-deadline.ts +14 -14
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +12 -5
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-shared.ts +6 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +55 -6
- package/dist/bundling-sources/shared_libs/play-runtime/suspension.ts +1 -0
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +7 -0
- package/dist/cli/auth-7K5HVWDU.js +31 -0
- package/dist/cli/{auth-OQ356CEE.mjs → auth-UAPR5UHG.mjs} +4 -4
- package/dist/cli/{billing-7YVHLDMO.mjs → billing-2M2MOKZ2.mjs} +4 -4
- package/dist/cli/{billing-3APFTHNY.js → billing-7MFJB4YT.js} +71 -71
- package/dist/cli/{chunk-DROPDYOD.js → chunk-2BKBPQYB.js} +1 -1
- package/dist/cli/{chunk-N5KGBQPG.mjs → chunk-5CYUDMCR.mjs} +3 -3
- package/dist/cli/{chunk-H5SORD7Q.mjs → chunk-BC5OUOUV.mjs} +2 -2
- package/dist/cli/{chunk-KREEYWVL.mjs → chunk-DPTGX6LJ.mjs} +23 -10
- package/dist/cli/{chunk-JNNOCMQY.js → chunk-EBU7LQ64.js} +18 -6
- package/dist/cli/{chunk-NI4FJRFJ.mjs → chunk-F67PGWBO.mjs} +5 -5
- package/dist/cli/{chunk-HNX3RC6V.mjs → chunk-FTX3SMNS.mjs} +1 -1
- package/dist/cli/{chunk-2CLENWOQ.mjs → chunk-G7YDITCA.mjs} +1 -1
- package/dist/cli/{chunk-AFVETOG3.js → chunk-GP5TSYAJ.js} +15 -15
- package/dist/cli/{chunk-F2QKAGST.js → chunk-H2QPAGD4.js} +9 -9
- package/dist/cli/{chunk-V77J5ISS.js → chunk-H3ZK3C4S.js} +4 -4
- package/dist/cli/{chunk-AGGDEQDF.mjs → chunk-H6HO3EX2.mjs} +1 -1
- package/dist/cli/{chunk-KBXHB5P3.js → chunk-HNWBP7F4.js} +26 -26
- package/dist/cli/{chunk-3WQJWQ5T.js → chunk-L45TG5XU.js} +60 -60
- package/dist/cli/{chunk-F2XAQHQC.mjs → chunk-LD5NKLNP.mjs} +4 -4
- package/dist/cli/{chunk-64CZWDWT.js → chunk-MGQODOU7.js} +8 -8
- package/dist/cli/{chunk-6JPZJ5W7.mjs → chunk-NFZEBZN5.mjs} +2 -2
- package/dist/cli/{chunk-ABVOFJAE.mjs → chunk-OYWLA5NH.mjs} +1 -1
- package/dist/cli/{chunk-4DUEB2WO.mjs → chunk-R6HWDMKH.mjs} +2 -2
- package/dist/cli/{chunk-STVJ7ZPD.js → chunk-ROTTZP5Y.js} +6 -6
- package/dist/cli/{chunk-UHHTRBJF.js → chunk-T4A2PPAD.js} +45 -45
- package/dist/cli/{chunk-PRZ4S4NU.js → chunk-TMGNPDHK.js} +6 -6
- package/dist/cli/{chunk-SXX4ST3D.mjs → chunk-U5MMLE2K.mjs} +1 -1
- package/dist/cli/{chunk-IYFKFNEB.js → chunk-V67UHLXQ.js} +327 -314
- package/dist/cli/{chunk-SFLARO4Y.mjs → chunk-WIYWSYDS.mjs} +18 -6
- package/dist/cli/{chunk-5A44CWQE.js → chunk-YJWCFMIA.js} +48 -48
- package/dist/cli/{chunk-5UN6KLD2.mjs → chunk-Z3KXO6AE.mjs} +1 -1
- package/dist/cli/{chunk-IDEK4DND.js → chunk-ZY6VIQF3.js} +2 -2
- package/dist/cli/client-JEP4W4GO.js +20 -0
- package/dist/cli/{client-WKS7HQRP.mjs → client-O7SUBEWH.mjs} +3 -3
- package/dist/cli/{csv-ZFY2LD2K.mjs → csv-3QEFBKVA.mjs} +3 -3
- package/dist/cli/{csv-MMW6EKKD.js → csv-RKCZ32SM.js} +12 -12
- package/dist/cli/{db-FMOQU6QW.js → db-6NL2DXCZ.js} +29 -29
- package/dist/cli/{db-Q2NJVILC.mjs → db-YA77SZH2.mjs} +4 -4
- package/dist/cli/{describe-4KG2JAQV.js → describe-3T6SY4OF.js} +15 -15
- package/dist/cli/{describe-EWP7DMNU.mjs → describe-WRGAPAY4.mjs} +8 -8
- package/dist/cli/{executions-Y4XSGKN6.js → executions-4QH4WOAS.js} +6 -6
- package/dist/cli/{executions-UOD7FWEE.mjs → executions-QAXAJTVH.mjs} +4 -4
- package/dist/cli/{feedback-3F3EURZC.mjs → feedback-27PPTJMV.mjs} +3 -3
- package/dist/cli/{feedback-TEJJUXDI.js → feedback-LE2I5YC6.js} +6 -6
- package/dist/cli/getting-started.d.mts +47 -9
- package/dist/cli/getting-started.d.ts +47 -9
- package/dist/cli/getting-started.js +2 -2
- package/dist/cli/getting-started.mjs +1 -1
- package/dist/cli/{git-5YM22RGA.mjs → git-C7WLGDRA.mjs} +4 -4
- package/dist/cli/git-PY2E4CUB.js +23 -0
- package/dist/cli/index.js +79 -79
- package/dist/cli/index.mjs +31 -31
- package/dist/cli/{legacy-noops-T5OUSXMR.js → legacy-noops-LK44HVCZ.js} +7 -7
- package/dist/cli/{legacy-noops-D5XBVUHS.mjs → legacy-noops-MENMLXEB.mjs} +4 -4
- package/dist/cli/{monitors-VI7VBQRP.js → monitors-D2MOP24X.js} +85 -85
- package/dist/cli/{monitors-LPZNYNQW.mjs → monitors-EPYJCNDI.mjs} +4 -4
- package/dist/cli/{org-BYIDOMJB.mjs → org-N5YSFPOM.mjs} +4 -4
- package/dist/cli/{org-OBGIV5QE.js → org-ZEXEZJWX.js} +60 -60
- package/dist/cli/{play-Y5PQQRBO.mjs → play-EJJKDHUY.mjs} +7 -7
- package/dist/cli/play-ZLRJLPLS.js +153 -0
- package/dist/cli/{providers-GEGIGKOL.mjs → providers-5UPKT6WL.mjs} +4 -4
- package/dist/cli/{providers-VH6J7FFY.js → providers-BE7A6VON.js} +7 -7
- package/dist/cli/{quickstart-GHITFT27.mjs → quickstart-FPBWZ3XR.mjs} +4 -4
- package/dist/cli/{quickstart-ZQX5XNHG.js → quickstart-QYWCXL3Z.js} +12 -12
- package/dist/cli/{search-AFX3DYAC.mjs → search-WN6UAW3I.mjs} +5 -5
- package/dist/cli/search-XM4JURG3.js +26 -0
- package/dist/cli/{secrets-F37M7D7R.js → secrets-2NBEJSA7.js} +13 -13
- package/dist/cli/{secrets-4EOVXQJM.mjs → secrets-DGY65IAZ.mjs} +4 -4
- package/dist/cli/{sessions-T57Q72GD.js → sessions-EPSCU52L.js} +5 -5
- package/dist/cli/{sessions-RX5SFHDI.mjs → sessions-FQTEUX6Q.mjs} +4 -4
- package/dist/cli/{settings-764O5ZEH.mjs → settings-AVW7W6KG.mjs} +7 -7
- package/dist/cli/{settings-3FVWW7GL.js → settings-QWUYZKVG.js} +74 -74
- package/dist/cli/{setup-X7OAHFTO.mjs → setup-D3ZMOSVR.mjs} +7 -7
- package/dist/cli/{setup-FQVRVTR6.js → setup-G7F5LIFR.js} +49 -49
- package/dist/cli/{skills-O6ILHPV5.mjs → skills-744HOKKT.mjs} +4 -4
- package/dist/cli/skills-FNGT3DEV.js +28 -0
- package/dist/cli/tools-CPNEQIQP.js +40 -0
- package/dist/cli/{tools-HL4SQG35.mjs → tools-DJRG7RTC.mjs} +6 -6
- package/dist/cli/update-K7FVDY7F.js +28 -0
- package/dist/cli/{update-A3P2RSIB.mjs → update-ORTHR3FA.mjs} +6 -6
- package/dist/cli/{workflow-62AGKI6T.js → workflow-5IIN7CW2.js} +15 -15
- package/dist/cli/{workflow-44424AVE.mjs → workflow-XD7CRWCQ.mjs} +5 -5
- package/dist/{client-l-IoLh8Z.d.ts → client-DkoxT4wF.d.ts} +1 -1
- package/dist/{client-D5XOQKsA.d.mts → client-PDAfbylh.d.mts} +1 -1
- package/dist/{compiler-manifest-82q4jtfQ.d.ts → compiler-manifest-CButyeZ8.d.mts} +7 -0
- package/dist/{compiler-manifest-82q4jtfQ.d.mts → compiler-manifest-CButyeZ8.d.ts} +7 -0
- package/dist/{index-BPbW2XHF.d.mts → index-BMsNUoL5.d.mts} +1 -1
- package/dist/{index-k0rquHIm.d.ts → index-LDRzwo09.d.ts} +1 -1
- package/dist/index.d.mts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +82 -82
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- 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/package.json +1 -1
- package/dist/cli/auth-26GA3RM6.js +0 -31
- package/dist/cli/client-IZRTEBU4.js +0 -20
- package/dist/cli/git-GNEZSTVF.js +0 -23
- package/dist/cli/play-5JYRSXAL.js +0 -153
- package/dist/cli/search-YIXGQFXA.js +0 -26
- package/dist/cli/skills-DPGB67XX.js +0 -28
- package/dist/cli/tools-WZCXSXER.js +0 -40
- package/dist/cli/update-63MANY7U.js +0 -28
|
@@ -2,21 +2,33 @@
|
|
|
2
2
|
var DEEPLINE_GTM_SKILL = "/deepline-gtm";
|
|
3
3
|
var DEEPLINE_GTM_STARTER_PROMPTS = [
|
|
4
4
|
{
|
|
5
|
+
// Preserve the historical opaque SDK choice ID.
|
|
5
6
|
id: "competitor-tracking",
|
|
6
|
-
title: "
|
|
7
|
-
prompt: "/deepline-gtm
|
|
7
|
+
title: "Recently funded AI companies",
|
|
8
|
+
prompt: "/deepline-gtm Find 3 AI companies funded in the last 30 days, with founder contacts and verified work emails.",
|
|
9
|
+
prebuilt: "prebuilt/starter-funded-ai-founders",
|
|
10
|
+
defaultInput: { target_count: 3, days: 30 },
|
|
11
|
+
requiredInputs: [],
|
|
12
|
+
runCommand: "deepline plays run prebuilt/starter-funded-ai-founders --input '{}' --watch"
|
|
8
13
|
},
|
|
9
14
|
{
|
|
10
15
|
id: "contact-email-enrichment",
|
|
11
16
|
title: "Contact email enrichment",
|
|
12
|
-
prompt: "/deepline-gtm Find 10 CTOs at B2B SaaS companies and enrich them with email addresses."
|
|
17
|
+
prompt: "/deepline-gtm Find 10 CTOs at B2B SaaS companies and enrich them with email addresses.",
|
|
18
|
+
prebuilt: "prebuilt/starter-b2b-saas-ctos",
|
|
19
|
+
defaultInput: { target_count: 10 },
|
|
20
|
+
requiredInputs: [],
|
|
21
|
+
runCommand: "deepline plays run prebuilt/starter-b2b-saas-ctos --input '{}' --watch"
|
|
13
22
|
},
|
|
14
23
|
{
|
|
15
|
-
//
|
|
16
|
-
// starter copy is the fintech hiring-and-growth workflow below.
|
|
24
|
+
// Preserve the historical opaque SDK choice ID.
|
|
17
25
|
id: "decision-maker-discovery",
|
|
18
26
|
title: "Fintech hiring and growth",
|
|
19
|
-
prompt: "/deepline-gtm Find
|
|
27
|
+
prompt: "/deepline-gtm Find 3 fintech companies with live SDR openings and six-month headcount growth. Show dated evidence for both.",
|
|
28
|
+
prebuilt: "prebuilt/starter-fintech-hiring-growth",
|
|
29
|
+
defaultInput: { target_count: 3 },
|
|
30
|
+
requiredInputs: [],
|
|
31
|
+
runCommand: "deepline plays run prebuilt/starter-fintech-hiring-growth --input '{}' --watch"
|
|
20
32
|
}
|
|
21
33
|
];
|
|
22
34
|
var DEEPLINE_GTM_PRIMARY_STARTER_PROMPT = DEEPLINE_GTM_STARTER_PROMPTS[0].prompt;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkTMGNPDHKjs = require('./chunk-TMGNPDHK.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -25,7 +25,7 @@ var _chunkPRZ4S4NUjs = require('./chunk-PRZ4S4NU.js');
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkH3ZK3C4Sjs = require('./chunk-H3ZK3C4S.js');
|
|
29
29
|
|
|
30
30
|
// src/cli/commands/auth.ts
|
|
31
31
|
|
|
@@ -52,7 +52,7 @@ function statusBannerLine(value) {
|
|
|
52
52
|
return `Service notice: ${banner.message}`;
|
|
53
53
|
}
|
|
54
54
|
function envFilePath(baseUrl) {
|
|
55
|
-
return
|
|
55
|
+
return _chunkH3ZK3C4Sjs.hostEnvFilePath.call(void 0, baseUrl);
|
|
56
56
|
}
|
|
57
57
|
function normalizeAuthScope(value) {
|
|
58
58
|
if (!value || value === "global") return "global";
|
|
@@ -65,7 +65,7 @@ function parseAuthScope(args) {
|
|
|
65
65
|
}
|
|
66
66
|
function pendingClaimPath(baseUrl, scope) {
|
|
67
67
|
if (scope === "folder") {
|
|
68
|
-
const target =
|
|
68
|
+
const target = _chunkH3ZK3C4Sjs.resolveProjectPinTarget.call(void 0, );
|
|
69
69
|
if (!target.ok) {
|
|
70
70
|
throw new Error(
|
|
71
71
|
`Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
|
|
@@ -75,10 +75,10 @@ function pendingClaimPath(baseUrl, scope) {
|
|
|
75
75
|
}
|
|
76
76
|
return _path.join.call(void 0, target.dir, ".deepline", "setup", "pending-auth.json");
|
|
77
77
|
}
|
|
78
|
-
return `${
|
|
78
|
+
return `${_chunkH3ZK3C4Sjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
|
|
79
79
|
}
|
|
80
80
|
function legacyPendingClaimTokenPath(baseUrl) {
|
|
81
|
-
return `${
|
|
81
|
+
return `${_chunkH3ZK3C4Sjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
|
|
82
82
|
}
|
|
83
83
|
function savePendingClaim(baseUrl, claim) {
|
|
84
84
|
const filePath = pendingClaimPath(baseUrl, claim.scope);
|
|
@@ -180,21 +180,21 @@ function parseRegisterWaitMode(args) {
|
|
|
180
180
|
function shouldWaitForRegisterClaim(mode) {
|
|
181
181
|
if (mode === "yes") return true;
|
|
182
182
|
if (mode === "no") return false;
|
|
183
|
-
return
|
|
183
|
+
return _chunkH3ZK3C4Sjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
|
|
184
184
|
}
|
|
185
185
|
function saveEnvValues(values, baseUrl, scope) {
|
|
186
186
|
const filtered = {
|
|
187
|
-
...values[
|
|
188
|
-
...values[
|
|
189
|
-
...values[
|
|
190
|
-
...Object.prototype.hasOwnProperty.call(values,
|
|
187
|
+
...values[_chunkH3ZK3C4Sjs.HOST_URL_ENV] ? { [_chunkH3ZK3C4Sjs.HOST_URL_ENV]: values[_chunkH3ZK3C4Sjs.HOST_URL_ENV] } : {},
|
|
188
|
+
...values[_chunkH3ZK3C4Sjs.API_KEY_ENV] ? { [_chunkH3ZK3C4Sjs.API_KEY_ENV]: values[_chunkH3ZK3C4Sjs.API_KEY_ENV] } : {},
|
|
189
|
+
...values[_chunkH3ZK3C4Sjs.ACTIVE_ORG_ID_ENV] ? { [_chunkH3ZK3C4Sjs.ACTIVE_ORG_ID_ENV]: values[_chunkH3ZK3C4Sjs.ACTIVE_ORG_ID_ENV] } : {},
|
|
190
|
+
...Object.prototype.hasOwnProperty.call(values, _chunkH3ZK3C4Sjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkH3ZK3C4Sjs.ACTIVE_ORG_NAME_ENV]: values[_chunkH3ZK3C4Sjs.ACTIVE_ORG_NAME_ENV] } : {},
|
|
191
191
|
// An explicit empty list must reach the store: it clears a stale line.
|
|
192
|
-
...Object.prototype.hasOwnProperty.call(values,
|
|
192
|
+
...Object.prototype.hasOwnProperty.call(values, _chunkH3ZK3C4Sjs.FEATURES_ENV) ? { [_chunkH3ZK3C4Sjs.FEATURES_ENV]: values[_chunkH3ZK3C4Sjs.FEATURES_ENV] } : {}
|
|
193
193
|
};
|
|
194
194
|
if (scope === "folder") {
|
|
195
|
-
|
|
195
|
+
_chunkH3ZK3C4Sjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
|
|
196
196
|
} else {
|
|
197
|
-
|
|
197
|
+
_chunkH3ZK3C4Sjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
function activeOrgEnvValues(data) {
|
|
@@ -202,21 +202,21 @@ function activeOrgEnvValues(data) {
|
|
|
202
202
|
if (!orgId) return {};
|
|
203
203
|
const orgName = typeof data.org_name === "string" ? data.org_name.trim() : "";
|
|
204
204
|
return {
|
|
205
|
-
[
|
|
206
|
-
[
|
|
207
|
-
...
|
|
205
|
+
[_chunkH3ZK3C4Sjs.ACTIVE_ORG_ID_ENV]: orgId,
|
|
206
|
+
[_chunkH3ZK3C4Sjs.ACTIVE_ORG_NAME_ENV]: orgName,
|
|
207
|
+
..._chunkH3ZK3C4Sjs.featureEnvValues.call(void 0, data)
|
|
208
208
|
};
|
|
209
209
|
}
|
|
210
210
|
async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT_MS) {
|
|
211
211
|
const headers = {
|
|
212
212
|
"Content-Type": "application/json",
|
|
213
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
213
|
+
"User-Agent": `deepline-ts-sdk/${_chunkH3ZK3C4Sjs.SDK_VERSION}`,
|
|
214
214
|
"X-Deepline-Client-Family": "sdk",
|
|
215
215
|
"X-Deepline-CLI-Family": "sdk",
|
|
216
|
-
"X-Deepline-Agent-Runtime":
|
|
217
|
-
"X-Deepline-CLI-Version":
|
|
218
|
-
"X-Deepline-SDK-Version":
|
|
219
|
-
"X-Deepline-API-Contract":
|
|
216
|
+
"X-Deepline-Agent-Runtime": _chunkH3ZK3C4Sjs.detectAgentRuntime.call(void 0, ),
|
|
217
|
+
"X-Deepline-CLI-Version": _chunkH3ZK3C4Sjs.SDK_VERSION,
|
|
218
|
+
"X-Deepline-SDK-Version": _chunkH3ZK3C4Sjs.SDK_VERSION,
|
|
219
|
+
"X-Deepline-API-Contract": _chunkH3ZK3C4Sjs.SDK_API_CONTRACT
|
|
220
220
|
};
|
|
221
221
|
if (apiKey) headers["Authorization"] = `Bearer ${apiKey}`;
|
|
222
222
|
const bypassToken = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.VERCEL_PROTECTION_BYPASS_TOKEN, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]);
|
|
@@ -254,7 +254,7 @@ async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT
|
|
|
254
254
|
throw lastError instanceof Error ? lastError : new Error(String(lastError));
|
|
255
255
|
}
|
|
256
256
|
async function reportSetupCompleted(input) {
|
|
257
|
-
const apiKey = input.authScope === "folder" ?
|
|
257
|
+
const apiKey = input.authScope === "folder" ? _chunkH3ZK3C4Sjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkH3ZK3C4Sjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
258
258
|
if (!apiKey) return;
|
|
259
259
|
try {
|
|
260
260
|
await httpJson(
|
|
@@ -351,7 +351,7 @@ async function printClaimSuccessBanner(baseUrl, apiKey, statusData) {
|
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
353
|
async function handleRegister(args) {
|
|
354
|
-
const baseUrl =
|
|
354
|
+
const baseUrl = _chunkH3ZK3C4Sjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
355
355
|
let orgName = "";
|
|
356
356
|
let orgId = "";
|
|
357
357
|
let agentName = "";
|
|
@@ -406,19 +406,19 @@ async function handleRegister(args) {
|
|
|
406
406
|
});
|
|
407
407
|
saveEnvValues(
|
|
408
408
|
{
|
|
409
|
-
[
|
|
409
|
+
[_chunkH3ZK3C4Sjs.HOST_URL_ENV]: baseUrl
|
|
410
410
|
},
|
|
411
411
|
baseUrl,
|
|
412
412
|
authScope
|
|
413
413
|
);
|
|
414
414
|
}
|
|
415
415
|
if (claimUrl) {
|
|
416
|
-
const shouldOpen = waitMode !== "no" &&
|
|
416
|
+
const shouldOpen = waitMode !== "no" && _chunkH3ZK3C4Sjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
|
|
417
417
|
console.log(
|
|
418
418
|
shouldOpen ? " Opening approval page in your browser." : " Open this approval page in your browser:"
|
|
419
419
|
);
|
|
420
420
|
console.log(` ${claimUrl}`);
|
|
421
|
-
if (shouldOpen)
|
|
421
|
+
if (shouldOpen) _chunkTMGNPDHKjs.openInBrowser.call(void 0, claimUrl);
|
|
422
422
|
}
|
|
423
423
|
if (data.cli_message) {
|
|
424
424
|
console.log(String(data.cli_message));
|
|
@@ -461,8 +461,8 @@ async function handleRegister(args) {
|
|
|
461
461
|
if (apiKey) {
|
|
462
462
|
saveEnvValues(
|
|
463
463
|
{
|
|
464
|
-
[
|
|
465
|
-
[
|
|
464
|
+
[_chunkH3ZK3C4Sjs.HOST_URL_ENV]: baseUrl,
|
|
465
|
+
[_chunkH3ZK3C4Sjs.API_KEY_ENV]: apiKey,
|
|
466
466
|
...activeOrgEnvValues(statusData)
|
|
467
467
|
},
|
|
468
468
|
baseUrl,
|
|
@@ -484,7 +484,7 @@ async function handleRegister(args) {
|
|
|
484
484
|
}
|
|
485
485
|
}
|
|
486
486
|
async function handleWait(args) {
|
|
487
|
-
const baseUrl =
|
|
487
|
+
const baseUrl = _chunkH3ZK3C4Sjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
488
488
|
let timeoutSeconds = 300;
|
|
489
489
|
let requestedScope;
|
|
490
490
|
if (args.includes("--auth-scope")) {
|
|
@@ -508,7 +508,7 @@ async function handleWait(args) {
|
|
|
508
508
|
const authScope = resumed.scope;
|
|
509
509
|
const claimToken = _nullishCoalesce(_optionalChain([pendingClaim, 'optionalAccess', _11 => _11.claimToken]), () => ( ""));
|
|
510
510
|
if (!pendingClaim) {
|
|
511
|
-
const scopedApiKey = authScope === "folder" ?
|
|
511
|
+
const scopedApiKey = authScope === "folder" ? _chunkH3ZK3C4Sjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkH3ZK3C4Sjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
512
512
|
if (scopedApiKey) {
|
|
513
513
|
console.log("Already connected.");
|
|
514
514
|
return EXIT_OK;
|
|
@@ -551,8 +551,8 @@ async function handleWait(args) {
|
|
|
551
551
|
if (apiKey) {
|
|
552
552
|
saveEnvValues(
|
|
553
553
|
{
|
|
554
|
-
[
|
|
555
|
-
[
|
|
554
|
+
[_chunkH3ZK3C4Sjs.HOST_URL_ENV]: baseUrl,
|
|
555
|
+
[_chunkH3ZK3C4Sjs.API_KEY_ENV]: apiKey,
|
|
556
556
|
...activeOrgEnvValues(data)
|
|
557
557
|
},
|
|
558
558
|
baseUrl,
|
|
@@ -576,9 +576,9 @@ async function handleWait(args) {
|
|
|
576
576
|
return EXIT_AUTH;
|
|
577
577
|
}
|
|
578
578
|
async function handleStatus(args) {
|
|
579
|
-
const baseUrl =
|
|
579
|
+
const baseUrl = _chunkH3ZK3C4Sjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
580
580
|
const reveal = args.includes("--reveal");
|
|
581
|
-
const jsonOutput =
|
|
581
|
+
const jsonOutput = _chunkTMGNPDHKjs.argsWantJson.call(void 0, args);
|
|
582
582
|
const hasExplicitAuthScope = args.includes("--auth-scope");
|
|
583
583
|
let authScope = null;
|
|
584
584
|
if (hasExplicitAuthScope) {
|
|
@@ -618,14 +618,14 @@ async function handleStatus(args) {
|
|
|
618
618
|
};
|
|
619
619
|
hostLines.push(`Host: ${baseUrl} (unreachable)`);
|
|
620
620
|
}
|
|
621
|
-
const apiKey = authScope === "folder" ?
|
|
621
|
+
const apiKey = authScope === "folder" ? _chunkH3ZK3C4Sjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkH3ZK3C4Sjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkH3ZK3C4Sjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
622
622
|
if (!apiKey) {
|
|
623
623
|
const { claim: pendingClaim } = resolvePendingAuthClaimForResume(
|
|
624
624
|
baseUrl,
|
|
625
625
|
_nullishCoalesce(authScope, () => ( void 0))
|
|
626
626
|
);
|
|
627
627
|
if (pendingClaim) {
|
|
628
|
-
|
|
628
|
+
_chunkTMGNPDHKjs.printCommandEnvelope.call(void 0,
|
|
629
629
|
{
|
|
630
630
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
631
631
|
status: "pending",
|
|
@@ -646,7 +646,7 @@ async function handleStatus(args) {
|
|
|
646
646
|
);
|
|
647
647
|
return EXIT_OK;
|
|
648
648
|
}
|
|
649
|
-
|
|
649
|
+
_chunkTMGNPDHKjs.printCommandEnvelope.call(void 0,
|
|
650
650
|
{
|
|
651
651
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
652
652
|
status: "not connected",
|
|
@@ -682,7 +682,7 @@ async function handleStatus(args) {
|
|
|
682
682
|
}
|
|
683
683
|
);
|
|
684
684
|
if (status === 401 || status === 403) {
|
|
685
|
-
|
|
685
|
+
_chunkTMGNPDHKjs.printCommandEnvelope.call(void 0,
|
|
686
686
|
{
|
|
687
687
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
688
688
|
status: "unauthorized",
|
|
@@ -712,7 +712,7 @@ async function handleStatus(args) {
|
|
|
712
712
|
console.error(`Auth status error (status ${status}).`);
|
|
713
713
|
return EXIT_SERVER;
|
|
714
714
|
}
|
|
715
|
-
const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (
|
|
715
|
+
const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkH3ZK3C4Sjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
|
|
716
716
|
clearSatisfiedPendingClaim(
|
|
717
717
|
baseUrl,
|
|
718
718
|
resolvedAuthScope,
|
|
@@ -740,28 +740,28 @@ async function handleStatus(args) {
|
|
|
740
740
|
if (apiKeyResp) {
|
|
741
741
|
saveEnvValues(
|
|
742
742
|
{
|
|
743
|
-
[
|
|
744
|
-
[
|
|
743
|
+
[_chunkH3ZK3C4Sjs.HOST_URL_ENV]: baseUrl,
|
|
744
|
+
[_chunkH3ZK3C4Sjs.API_KEY_ENV]: apiKeyResp,
|
|
745
745
|
...activeOrgEnvValues(data)
|
|
746
746
|
},
|
|
747
747
|
baseUrl,
|
|
748
748
|
resolvedAuthScope
|
|
749
749
|
);
|
|
750
750
|
if (resolvedAuthScope === "folder") {
|
|
751
|
-
const target =
|
|
751
|
+
const target = _chunkH3ZK3C4Sjs.resolveProjectPinTarget.call(void 0, );
|
|
752
752
|
savedApiKeyPath = target.ok ? _path.join.call(void 0, target.dir, ".env.deepline") : null;
|
|
753
753
|
} else {
|
|
754
754
|
savedApiKeyPath = envFilePath(baseUrl);
|
|
755
755
|
}
|
|
756
756
|
}
|
|
757
|
-
} else if (resolvedAuthScope === "folder" ||
|
|
758
|
-
saveEnvValues(
|
|
757
|
+
} else if (resolvedAuthScope === "folder" || _chunkH3ZK3C4Sjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
|
|
758
|
+
saveEnvValues(_chunkH3ZK3C4Sjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
|
|
759
759
|
}
|
|
760
|
-
|
|
760
|
+
_chunkTMGNPDHKjs.printCommandEnvelope.call(void 0,
|
|
761
761
|
{
|
|
762
762
|
...payload,
|
|
763
|
-
...
|
|
764
|
-
command_context:
|
|
763
|
+
..._chunkH3ZK3C4Sjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
|
|
764
|
+
command_context: _chunkH3ZK3C4Sjs.resolveCliCommandContext.call(void 0,
|
|
765
765
|
{ baseUrl, apiKey },
|
|
766
766
|
resolvedAuthScope
|
|
767
767
|
)
|
|
@@ -1,6 +1,6 @@
|
|
|
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 _chunkL45TG5XUjs = require('./chunk-L45TG5XU.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/npm-script-policy.ts
|
|
6
6
|
var _child_process = require('child_process');
|
|
@@ -13,7 +13,7 @@ function npmSupportsAllowScripts(version) {
|
|
|
13
13
|
}
|
|
14
14
|
function readNpmVersion(env) {
|
|
15
15
|
try {
|
|
16
|
-
const plan =
|
|
16
|
+
const plan = _chunkL45TG5XUjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
|
|
17
17
|
const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
|
|
18
18
|
encoding: "utf8",
|
|
19
19
|
env,
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _chunkH2QPAGD4js = require('./chunk-H2QPAGD4.js');
|
|
7
|
+
require('./chunk-LA46MMTL.js');
|
|
8
|
+
require('./chunk-H3ZK3C4S.js');
|
|
9
|
+
require('./chunk-XNYIZMNQ.js');
|
|
10
|
+
require('./chunk-2BKBPQYB.js');
|
|
11
|
+
require('./chunk-S6R3OX7B.js');
|
|
12
|
+
require('./chunk-7P5AA3SN.js');
|
|
13
|
+
require('./chunk-OG64RBAC.js');
|
|
14
|
+
require('./chunk-COGTRVWW.js');
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
exports.DeeplineClient = _chunkH2QPAGD4js.DeeplineClient; exports.MONITOR_JOB_PHASES = _chunkH2QPAGD4js.MONITOR_JOB_PHASES; exports.MONITOR_JOB_RECONCILIATION_STATES = _chunkH2QPAGD4js.MONITOR_JOB_RECONCILIATION_STATES; exports.MONITOR_JOB_STATES = _chunkH2QPAGD4js.MONITOR_JOB_STATES;
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
MONITOR_JOB_PHASES,
|
|
4
4
|
MONITOR_JOB_RECONCILIATION_STATES,
|
|
5
5
|
MONITOR_JOB_STATES
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-U5MMLE2K.mjs";
|
|
7
7
|
import "./chunk-CBVIJSHF.mjs";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-Z3KXO6AE.mjs";
|
|
9
9
|
import "./chunk-DLIRSHV6.mjs";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-G7YDITCA.mjs";
|
|
11
11
|
import "./chunk-6IKARAYD.mjs";
|
|
12
12
|
import "./chunk-NXGCO4JB.mjs";
|
|
13
13
|
import "./chunk-WZYKRD7T.mjs";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
printCommandEnvelope,
|
|
5
5
|
printJson,
|
|
6
6
|
readCsvRows
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-FTX3SMNS.mjs";
|
|
8
|
+
import "./chunk-Z3KXO6AE.mjs";
|
|
9
9
|
import "./chunk-DLIRSHV6.mjs";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-G7YDITCA.mjs";
|
|
11
11
|
import "./chunk-NXGCO4JB.mjs";
|
|
12
12
|
import "./chunk-WZYKRD7T.mjs";
|
|
13
13
|
import "./chunk-KRD6H754.mjs";
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
7
|
+
var _chunkTMGNPDHKjs = require('./chunk-TMGNPDHK.js');
|
|
8
|
+
require('./chunk-H3ZK3C4S.js');
|
|
9
9
|
require('./chunk-XNYIZMNQ.js');
|
|
10
|
-
require('./chunk-
|
|
10
|
+
require('./chunk-2BKBPQYB.js');
|
|
11
11
|
require('./chunk-7P5AA3SN.js');
|
|
12
12
|
require('./chunk-OG64RBAC.js');
|
|
13
13
|
require('./chunk-COGTRVWW.js');
|
|
@@ -126,7 +126,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
|
|
|
126
126
|
column.length,
|
|
127
127
|
...rows.map((row) => {
|
|
128
128
|
const value = _nullishCoalesce(row[column], () => ( ""));
|
|
129
|
-
return (verbose ? value :
|
|
129
|
+
return (verbose ? value : _chunkTMGNPDHKjs.clip.call(void 0, value, 42)).length;
|
|
130
130
|
})
|
|
131
131
|
)
|
|
132
132
|
])
|
|
@@ -136,7 +136,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
|
|
|
136
136
|
const body = rows.map(
|
|
137
137
|
(row) => columns.map((column) => {
|
|
138
138
|
const raw = _nullishCoalesce(row[column], () => ( ""));
|
|
139
|
-
const display = verbose ? raw :
|
|
139
|
+
const display = verbose ? raw : _chunkTMGNPDHKjs.clip.call(void 0, raw, 42);
|
|
140
140
|
return display.padEnd(widths[column]);
|
|
141
141
|
}).join(" | ")
|
|
142
142
|
);
|
|
@@ -156,7 +156,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
156
156
|
{ exitCode: 2 }
|
|
157
157
|
);
|
|
158
158
|
}
|
|
159
|
-
const allRows =
|
|
159
|
+
const allRows = _chunkTMGNPDHKjs.readCsvRows.call(void 0, csvPath);
|
|
160
160
|
const [rowStart, rowEnd] = parseRowRange(options.rows);
|
|
161
161
|
const rows = options.summary && options.rows === void 0 ? allRows : selectRows(allRows, rowStart, rowEnd);
|
|
162
162
|
const { rows: selected, columns } = selectColumns(
|
|
@@ -169,7 +169,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
169
169
|
if (options.summary) {
|
|
170
170
|
const summaries = summarizeColumns(selected, columns);
|
|
171
171
|
if (format === "json") {
|
|
172
|
-
|
|
172
|
+
_chunkTMGNPDHKjs.printJson.call(void 0, {
|
|
173
173
|
rows: summaries,
|
|
174
174
|
total_rows: selected.length,
|
|
175
175
|
source_total_rows: allRows.length
|
|
@@ -178,7 +178,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
178
178
|
}
|
|
179
179
|
const displayRows = summaryDisplayRows(summaries);
|
|
180
180
|
if (format === "csv") {
|
|
181
|
-
process.stdout.write(
|
|
181
|
+
process.stdout.write(_chunkTMGNPDHKjs.csvStringFromRows.call(void 0, displayRows));
|
|
182
182
|
return;
|
|
183
183
|
}
|
|
184
184
|
process.stdout.write(
|
|
@@ -193,7 +193,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
193
193
|
return;
|
|
194
194
|
}
|
|
195
195
|
if (format === "json") {
|
|
196
|
-
|
|
196
|
+
_chunkTMGNPDHKjs.printJson.call(void 0, {
|
|
197
197
|
rows: selected.map((row, index) => ({ __row: rowStart + index, ...row }))
|
|
198
198
|
});
|
|
199
199
|
return;
|
|
@@ -436,7 +436,7 @@ async function handleCsvRenderStart(options) {
|
|
|
436
436
|
if (log) {
|
|
437
437
|
detail = `
|
|
438
438
|
CSV render log:
|
|
439
|
-
${
|
|
439
|
+
${_chunkTMGNPDHKjs.clip.call(void 0, log, 2e3)}`;
|
|
440
440
|
}
|
|
441
441
|
} catch (e7) {
|
|
442
442
|
}
|
|
@@ -487,7 +487,7 @@ async function handleCsvRenderStatus(options) {
|
|
|
487
487
|
if (payload.pid) lines.push(`Render PID: ${payload.pid}`);
|
|
488
488
|
if (payload.url) lines.push(`Render URL: ${payload.url}`);
|
|
489
489
|
lines.push(`Render Health: ${payload.health_status}`);
|
|
490
|
-
|
|
490
|
+
_chunkTMGNPDHKjs.printCommandEnvelope.call(void 0, payload, {
|
|
491
491
|
json: options.json,
|
|
492
492
|
text: `${lines.join("\n")}
|
|
493
493
|
`
|
|
@@ -523,7 +523,7 @@ async function handleCsvRenderStop(options) {
|
|
|
523
523
|
};
|
|
524
524
|
const text = stopped.length > 0 ? `Stopped CSV render process(es): ${stopped.join(" ")}
|
|
525
525
|
` : "No running CSV render process found.\n";
|
|
526
|
-
|
|
526
|
+
_chunkTMGNPDHKjs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
|
|
527
527
|
}
|
|
528
528
|
async function handleCsvRender(action, options) {
|
|
529
529
|
const normalized = _nullishCoalesce(action, () => ( "start"));
|