deepline 0.3.492 → 0.3.494
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 +11 -5
- package/dist/bundling-sources/sdk/src/plays/run-request.ts +1 -0
- package/dist/bundling-sources/sdk/src/release.ts +2 -2
- package/dist/bundling-sources/sdk/src/types.ts +11 -4
- package/dist/bundling-sources/shared_libs/monitors/fleets/verdict.ts +25 -9
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +36 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-work-manual.ts +5 -4
- package/dist/bundling-sources/shared_libs/play-runtime/crustdata-company-identify-batching.ts +162 -0
- package/dist/bundling-sources/shared_libs/play-runtime/daytona-sandbox-reaper.ts +19 -3
- package/dist/bundling-sources/shared_libs/play-runtime/play-runtime-batching-registry.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/receipt-sql.ts +17 -23
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-modal-fallback.ts +28 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-sandbox-placement-policy.ts +75 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +20 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +412 -59
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +38 -10
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-ledger-reconciliation.ts +19 -11
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-operation.ts +165 -12
- package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +15 -0
- package/dist/bundling-sources/shared_libs/play-runtime/work-receipt-state-machine.ts +358 -0
- package/dist/bundling-sources/shared_libs/plays/field-catalog.ts +101 -3
- package/dist/cli/{auth-4I6QY5WX.mjs → auth-6X5YXMFN.mjs} +5 -5
- package/dist/cli/auth-RWLCLMDY.js +43 -0
- package/dist/cli/{billing-2H4GOJZY.js → billing-5F5PZB77.js} +80 -80
- package/dist/cli/{billing-4F6L4JSI.mjs → billing-IN74SDSC.mjs} +7 -7
- package/dist/cli/{chunk-3RGWTKK3.mjs → chunk-2GEYN3H4.mjs} +89 -3
- package/dist/cli/{chunk-JJAHWKJ2.js → chunk-3KVFOKPR.js} +73 -59
- package/dist/cli/{chunk-NBL6JMIY.js → chunk-4A5WXQJK.js} +17 -17
- package/dist/cli/{chunk-YOCEY4EI.mjs → chunk-4RWH4LRQ.mjs} +5 -5
- package/dist/cli/{chunk-OGNIB64W.js → chunk-4ZKZS43N.js} +23 -15
- package/dist/cli/{chunk-TKLDKIJU.mjs → chunk-5JPKRDFC.mjs} +7 -5
- package/dist/cli/{chunk-3TISK5RQ.js → chunk-5WYH2LAP.js} +6 -6
- package/dist/cli/{chunk-MQ2LQOAM.mjs → chunk-65NMOP4T.mjs} +23 -9
- package/dist/cli/{chunk-O65HDVA7.mjs → chunk-6DMLWM7L.mjs} +5 -5
- package/dist/cli/{chunk-OTUT3XTX.mjs → chunk-6XZR2642.mjs} +8 -7
- package/dist/cli/{chunk-Q3CCCTRQ.js → chunk-7B7A36XZ.js} +14 -14
- package/dist/cli/{chunk-O3K22ZC7.js → chunk-AARXOBVD.js} +35 -11
- package/dist/cli/{chunk-DVGCPOEA.mjs → chunk-BLHQRETG.mjs} +187 -187
- package/dist/cli/{chunk-NPZBE64X.js → chunk-BLMB4N63.js} +89 -3
- package/dist/cli/{chunk-OTDX4A4W.js → chunk-BNI653WN.js} +21 -21
- package/dist/cli/{chunk-E47VAVAR.js → chunk-BU5Y7HOD.js} +5 -5
- package/dist/cli/{chunk-CGDUFVNE.mjs → chunk-C5R3UH5V.mjs} +29 -2
- package/dist/cli/{chunk-HFEJ7JJT.js → chunk-CAWOSHEC.js} +26 -26
- package/dist/cli/{chunk-TVUE4CPW.js → chunk-CK5MA6S6.js} +32 -32
- package/dist/cli/{chunk-Y7QCMOGZ.mjs → chunk-DKKAJ3U2.mjs} +6 -6
- package/dist/cli/{chunk-ONONSV2Q.mjs → chunk-DVQHG6AM.mjs} +1 -0
- package/dist/cli/{chunk-3BRDP4UP.mjs → chunk-EG3OSUBO.mjs} +1 -1
- package/dist/cli/{chunk-ZCKUNXXR.mjs → chunk-FAT6CUZK.mjs} +1 -1
- package/dist/cli/{chunk-YNWET57Z.js → chunk-GBICEYUA.js} +13 -13
- package/dist/cli/{chunk-42Z6VC2Q.js → chunk-GDNQXLBM.js} +2 -2
- package/dist/cli/{chunk-SE23YSBK.js → chunk-GLDBMKTV.js} +3 -3
- package/dist/cli/{chunk-OKHBAAJG.mjs → chunk-GNSGDIA4.mjs} +2 -2
- package/dist/cli/{chunk-W4FEX5ZF.js → chunk-GSCCDGGT.js} +261 -261
- package/dist/cli/{chunk-A7ZMG2QZ.mjs → chunk-H46X7YDU.mjs} +35 -11
- package/dist/cli/{chunk-3IBKEOL4.js → chunk-HINVMRGQ.js} +4 -4
- package/dist/cli/{chunk-HHTVRICE.js → chunk-I42EOZKQ.js} +44 -17
- package/dist/cli/{chunk-MPITIXW4.mjs → chunk-IPWYDANJ.mjs} +13 -5
- package/dist/cli/{chunk-YVOYZPMY.mjs → chunk-IZJSX3SZ.mjs} +2 -2
- package/dist/cli/{chunk-FFOJRD53.mjs → chunk-J2HOVZOE.mjs} +3 -3
- package/dist/cli/{chunk-EFFHRXKB.js → chunk-J3UHNUWI.js} +2 -2
- package/dist/cli/{chunk-4IP5MLWU.js → chunk-JO5FFSR7.js} +6 -1
- package/dist/cli/{chunk-PIC6M4X3.mjs → chunk-KR2XEI5T.mjs} +1 -1
- package/dist/cli/{chunk-FTXIJTV2.mjs → chunk-KSHAFYYG.mjs} +2 -2
- package/dist/cli/{chunk-6YO4OJPM.mjs → chunk-KVCQL6SP.mjs} +99 -24
- package/dist/cli/{chunk-RC366IJS.mjs → chunk-L2P2XRPO.mjs} +38 -6
- package/dist/cli/{chunk-R5MP3CIY.mjs → chunk-L4QPBQUX.mjs} +3 -3
- package/dist/cli/{chunk-4RB74KJX.js → chunk-L6KA4ENU.js} +47 -15
- package/dist/cli/{chunk-MJFVF5AW.mjs → chunk-L6L57RSG.mjs} +2 -2
- package/dist/cli/{chunk-F6EQWY4E.mjs → chunk-MWZNMWR2.mjs} +2 -2
- package/dist/cli/{chunk-LCCFGSV7.mjs → chunk-ODWTFVE4.mjs} +2 -2
- package/dist/cli/{chunk-AUQQVDAB.js → chunk-PKV5CD3W.js} +1 -0
- package/dist/cli/{chunk-UUH4GQRL.mjs → chunk-QOEI42IU.mjs} +2 -2
- package/dist/cli/{chunk-JHBRJDUC.js → chunk-QSRWBOPV.js} +11 -10
- package/dist/cli/{chunk-4OLXMJ2L.js → chunk-RLX5ZFNX.js} +8 -6
- package/dist/cli/{chunk-EANFUHRM.mjs → chunk-RPFNIMUO.mjs} +1 -1
- package/dist/cli/{chunk-DJOLMS2A.js → chunk-S3XQH7DW.js} +2 -2
- package/dist/cli/{chunk-DEJIN4DF.mjs → chunk-SAW3FBCA.mjs} +5 -0
- package/dist/cli/{chunk-GDSZWTJK.mjs → chunk-TLQXN4ZZ.mjs} +12 -12
- package/dist/cli/{chunk-O2FB42N2.js → chunk-USWLB4KV.js} +234 -234
- package/dist/cli/{chunk-BDUFZSUL.js → chunk-VMPM2FKT.js} +8 -8
- package/dist/cli/{chunk-4GJIJHRQ.mjs → chunk-WCZBIE5L.mjs} +1 -1
- package/dist/cli/{chunk-NF7NUKWF.js → chunk-WP45PUPW.js} +132 -57
- package/dist/cli/{chunk-FPLN7PHP.js → chunk-X6HIIHQO.js} +5 -5
- package/dist/cli/{chunk-B2JE3HD6.js → chunk-Y4GRL533.js} +3 -3
- package/dist/cli/{chunk-ZDTPSVGF.js → chunk-ZZD245Z2.js} +10 -10
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-JGJNDRSA.js → csv-QD7JJGSP.js} +13 -13
- package/dist/cli/{csv-VGXGV7YM.mjs → csv-UBW4ID5D.mjs} +4 -4
- package/dist/cli/{db-W52WJ6E5.js → db-AARR3WYD.js} +28 -28
- package/dist/cli/{db-OYG27ZBM.mjs → db-QFDXKIVD.mjs} +7 -7
- package/dist/cli/describe-OBVIAC2H.mjs +50 -0
- package/dist/cli/describe-RYJ6HDYD.js +50 -0
- package/dist/cli/describe-core.d.mts +5 -11
- package/dist/cli/describe-core.d.ts +5 -11
- package/dist/cli/describe-core.js +5 -5
- package/dist/cli/describe-core.mjs +4 -4
- package/dist/cli/{executions-EVE4KUGL.mjs → executions-IZYUDYTZ.mjs} +7 -7
- package/dist/cli/{executions-LAJHZGPY.js → executions-KXY7KMZY.js} +9 -9
- package/dist/cli/{feedback-ZABCN7RT.js → feedback-3334HBPD.js} +8 -8
- package/dist/cli/{feedback-75QB7KVG.mjs → feedback-IVCVBERN.mjs} +4 -4
- package/dist/cli/getting-started.d.mts +12 -10
- package/dist/cli/getting-started.d.ts +12 -10
- package/dist/cli/getting-started.js +4 -2
- package/dist/cli/getting-started.mjs +3 -1
- package/dist/cli/git-4VLYFHNU.js +25 -0
- package/dist/cli/{git-QIFEYQGY.mjs → git-JHNVET5A.mjs} +5 -5
- package/dist/cli/index.js +143 -143
- package/dist/cli/index.mjs +43 -43
- package/dist/cli/{legacy-noops-2TBIAMCM.js → legacy-noops-DBA32JCV.js} +8 -8
- package/dist/cli/{legacy-noops-PNTWBBGY.mjs → legacy-noops-WGVBUOCC.mjs} +5 -5
- package/dist/cli/{monitors-UKBOEGBS.js → monitors-GHWZ5AZS.js} +169 -129
- package/dist/cli/{monitors-LOHUYJEI.mjs → monitors-ZGANC7JY.mjs} +49 -9
- package/dist/cli/{org-JRUKUOUF.mjs → org-CUS42N2T.mjs} +7 -7
- package/dist/cli/{org-E7A6QLBW.js → org-S7JWP264.js} +73 -73
- package/dist/cli/{pages-K76HA473.mjs → pages-IH56T6L6.mjs} +7 -7
- package/dist/cli/{pages-EUDFFLLD.js → pages-QXRZDEJW.js} +18 -18
- package/dist/cli/{play-UWHNUJRA.js → play-4C5PYS62.js} +661 -566
- package/dist/cli/{play-DG2N66SV.mjs → play-Z65ZFOQH.mjs} +147 -52
- package/dist/cli/{providers-RUTTPUZD.mjs → providers-FSZSJX4Z.mjs} +7 -7
- package/dist/cli/{providers-DZX6TTC6.js → providers-XYQGYF3O.js} +10 -10
- package/dist/cli/{quickstart-RGZZN2YE.mjs → quickstart-DHWVE32I.mjs} +5 -5
- package/dist/cli/{quickstart-U4NMD7KX.js → quickstart-ZA25RJT3.js} +13 -13
- package/dist/cli/{run-5UNF4FHG.js → run-5MP6LEHM.js} +45 -44
- package/dist/cli/{run-MOJWQYFQ.mjs → run-WRPPEPLG.mjs} +30 -29
- package/dist/cli/search-4SQFVNTB.js +32 -0
- package/dist/cli/{search-5B3ZDU7H.mjs → search-A6NVJPKX.mjs} +8 -8
- package/dist/cli/{search-output-QS4IWWHA.mjs → search-output-PAOUMVXY.mjs} +7 -4
- package/dist/cli/{search-output-VQWJS3FN.js → search-output-YA6TXWGO.js} +9 -6
- package/dist/cli/{secrets-S3PJMEAC.js → secrets-AZYOGH3I.js} +16 -16
- package/dist/cli/{secrets-V5XVDBIS.mjs → secrets-ZGF7JOBI.mjs} +7 -7
- package/dist/cli/{sessions-Y5QMEZ3D.js → sessions-GCIN5VXT.js} +6 -6
- package/dist/cli/{sessions-5V3X24XI.mjs → sessions-RNEAXZPV.mjs} +5 -5
- package/dist/cli/{settings-3U6RRO5F.js → settings-LMEZNLBB.js} +80 -80
- package/dist/cli/{settings-LHZYY5PT.mjs → settings-NO5KXQJF.mjs} +13 -13
- package/dist/cli/{setup-AJLWXYAN.mjs → setup-GCYB4IFS.mjs} +13 -13
- package/dist/cli/{setup-MLLIGO2S.js → setup-XKTZPYYH.js} +57 -57
- package/dist/cli/{skills-5O2MUWKK.mjs → skills-TY4HHIKH.mjs} +10 -10
- package/dist/cli/skills-V4APQA2I.js +36 -0
- package/dist/cli/tools-HKQLQ7HT.js +57 -0
- package/dist/cli/{tools-PWNMI5CD.mjs → tools-RDTHHYJ3.mjs} +21 -21
- package/dist/cli/{update-SXT4QW7S.mjs → update-BRLLTTCS.mjs} +10 -10
- package/dist/cli/update-Z4MUAHWM.js +34 -0
- package/dist/cli/{workflow-KPRM6ARO.mjs → workflow-F72EVZWM.mjs} +8 -8
- package/dist/cli/{workflow-3WTF5IYT.js → workflow-YHA4WE3K.js} +18 -18
- package/dist/{client-Cb1ej1Vr.d.ts → client-97yTcdLl.d.ts} +1 -1
- package/dist/{client-vWpbLNCB.d.mts → client-CFo9qalW.d.mts} +1 -1
- package/dist/{client-core-BmVs6SP0.d.ts → client-core-BRZrY13B.d.ts} +15 -8
- package/dist/{client-core-CoBTvsXG.d.mts → client-core-Dl6xgfLq.d.mts} +15 -8
- package/dist/{compiler-manifest-BFTwq1HI.d.mts → compiler-manifest-CPEF48NM.d.mts} +91 -0
- package/dist/{compiler-manifest-BFTwq1HI.d.ts → compiler-manifest-CPEF48NM.d.ts} +91 -0
- package/dist/{errors-c3pMsylw.d.ts → errors-B-PJXveg.d.ts} +1 -1
- package/dist/{errors-w31ybrQM.d.mts → errors-BWbPzqwo.d.mts} +1 -1
- package/dist/{index-DvNtxucX.d.mts → index-BJ8AA1F9.d.mts} +1 -1
- package/dist/{index-CQ-15-QL.d.ts → index-CvVxPpE8.d.ts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +27 -19
- package/dist/index.mjs +16 -8
- package/dist/install-integrity.json +123 -122
- 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/plays/run-request.js +2 -2
- package/dist/plays/run-request.mjs +1 -1
- package/dist/release.d.mts +2 -2
- package/dist/release.d.ts +2 -2
- 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 +6 -6
- package/dist/server.mjs +4 -4
- package/package.json +1 -1
- package/dist/cli/auth-7BCLZU6K.js +0 -43
- package/dist/cli/describe-FIXCRO5N.mjs +0 -50
- package/dist/cli/describe-G3O6OUBG.js +0 -50
- package/dist/cli/git-QBAR46NW.js +0 -25
- package/dist/cli/search-3DAEJL6S.js +0 -32
- package/dist/cli/skills-BBLIML5M.js +0 -36
- package/dist/cli/tools-X5SQXUMM.js +0 -57
- package/dist/cli/update-AEJ2ZSZQ.js +0 -34
|
@@ -276,6 +276,21 @@ function buildEmailStatus({
|
|
|
276
276
|
|
|
277
277
|
// ../plays/field-catalog.ts
|
|
278
278
|
var value = (description) => ({ type: "string", description });
|
|
279
|
+
var count = (description) => ({ type: "number", description });
|
|
280
|
+
var date = (description) => ({
|
|
281
|
+
type: "string",
|
|
282
|
+
description: `${description} An ISO 8601 date.`
|
|
283
|
+
});
|
|
284
|
+
var LOCATION = {
|
|
285
|
+
description: "Where it is. Without a kind, a location in some form.",
|
|
286
|
+
leaves: { value: value("The location.") },
|
|
287
|
+
kinds: {
|
|
288
|
+
country: "The country.",
|
|
289
|
+
region: "The state, province or region.",
|
|
290
|
+
city: "The city.",
|
|
291
|
+
address: "The full street address."
|
|
292
|
+
}
|
|
293
|
+
};
|
|
279
294
|
var SOURCE = {
|
|
280
295
|
type: "string",
|
|
281
296
|
description: "The provider or step that found it."
|
|
@@ -303,6 +318,10 @@ var FIELD_CATALOG = {
|
|
|
303
318
|
type: "EmailStatus",
|
|
304
319
|
description: "The validation verdict and its signals."
|
|
305
320
|
},
|
|
321
|
+
available: {
|
|
322
|
+
type: "boolean",
|
|
323
|
+
description: "Whether the provider has an address it could reveal, without the address itself."
|
|
324
|
+
},
|
|
306
325
|
source: SOURCE
|
|
307
326
|
},
|
|
308
327
|
kinds: {
|
|
@@ -322,6 +341,10 @@ var FIELD_CATALOG = {
|
|
|
322
341
|
type: '"valid" | "invalid" | "unknown"',
|
|
323
342
|
description: "The validation verdict."
|
|
324
343
|
},
|
|
344
|
+
available: {
|
|
345
|
+
type: "boolean",
|
|
346
|
+
description: "Whether the provider has a number it could reveal, without the number itself."
|
|
347
|
+
},
|
|
325
348
|
line_type: value("Mobile, landline, VoIP and so on."),
|
|
326
349
|
carrier: value("The carrier serving the number."),
|
|
327
350
|
source: SOURCE
|
|
@@ -358,9 +381,17 @@ var FIELD_CATALOG = {
|
|
|
358
381
|
change_status: {
|
|
359
382
|
type: "JobChangeStatus",
|
|
360
383
|
description: "The job-change verdict alone."
|
|
361
|
-
}
|
|
384
|
+
},
|
|
385
|
+
seniority: value("How senior the role is, such as director or VP."),
|
|
386
|
+
department: value("The department or function, such as sales."),
|
|
387
|
+
started_at: date("When they started the role.")
|
|
362
388
|
}
|
|
363
389
|
},
|
|
390
|
+
location: LOCATION,
|
|
391
|
+
skills: {
|
|
392
|
+
description: "Skills the person lists. Usually several: read `.values`.",
|
|
393
|
+
leaves: { value: value("One skill.") }
|
|
394
|
+
},
|
|
364
395
|
record: {
|
|
365
396
|
description: "A provider's own record of the person.",
|
|
366
397
|
leaves: { id: value("The provider's id for the person.") }
|
|
@@ -382,7 +413,10 @@ var FIELD_CATALOG = {
|
|
|
382
413
|
},
|
|
383
414
|
linkedin: {
|
|
384
415
|
description: "The company's LinkedIn page.",
|
|
385
|
-
leaves: {
|
|
416
|
+
leaves: {
|
|
417
|
+
url: value("The page URL."),
|
|
418
|
+
id: value("LinkedIn's numeric id or public identifier for the page.")
|
|
419
|
+
}
|
|
386
420
|
},
|
|
387
421
|
phone: {
|
|
388
422
|
description: "A phone number for the company.",
|
|
@@ -392,6 +426,40 @@ var FIELD_CATALOG = {
|
|
|
392
426
|
description: "The industry the company is in.",
|
|
393
427
|
leaves: { value: value("The industry.") }
|
|
394
428
|
},
|
|
429
|
+
description: {
|
|
430
|
+
description: "What the company does, in its own or a provider's words.",
|
|
431
|
+
leaves: { value: value("The description.") }
|
|
432
|
+
},
|
|
433
|
+
location: LOCATION,
|
|
434
|
+
headcount: {
|
|
435
|
+
description: "How many people work there. Without a kind, a count in some form.",
|
|
436
|
+
leaves: { value: value("The headcount.") },
|
|
437
|
+
kinds: {
|
|
438
|
+
exact: "A single number of employees.",
|
|
439
|
+
range: "A range such as 51-200."
|
|
440
|
+
}
|
|
441
|
+
},
|
|
442
|
+
funding: {
|
|
443
|
+
description: "Money the company has raised.",
|
|
444
|
+
groups: {
|
|
445
|
+
total: {
|
|
446
|
+
description: "Everything raised to date.",
|
|
447
|
+
leaves: { value: count("The total, in US dollars.") }
|
|
448
|
+
},
|
|
449
|
+
last_round: {
|
|
450
|
+
description: "The most recent funding round.",
|
|
451
|
+
leaves: {
|
|
452
|
+
type: value("The round type, such as Series A."),
|
|
453
|
+
amount: count("The amount raised, in US dollars."),
|
|
454
|
+
date: date("When it was announced.")
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
},
|
|
459
|
+
technologies: {
|
|
460
|
+
description: "Technologies the company uses. Usually several: read `.values`.",
|
|
461
|
+
leaves: { value: value("One technology.") }
|
|
462
|
+
},
|
|
395
463
|
record: {
|
|
396
464
|
description: "A provider's own record of the company.",
|
|
397
465
|
leaves: { id: value("The provider's id for the company.") }
|
|
@@ -400,10 +468,16 @@ var FIELD_CATALOG = {
|
|
|
400
468
|
job: {
|
|
401
469
|
posting: {
|
|
402
470
|
description: "A job posting.",
|
|
471
|
+
leaves: { url: value("The posting's page.") },
|
|
403
472
|
groups: {
|
|
404
473
|
title: {
|
|
405
474
|
description: "The posting's title. Not a person's job title.",
|
|
406
475
|
leaves: { value: value("The title.") }
|
|
476
|
+
},
|
|
477
|
+
location: LOCATION,
|
|
478
|
+
posted_at: {
|
|
479
|
+
description: "When the posting was published.",
|
|
480
|
+
leaves: { value: date("The date.") }
|
|
407
481
|
}
|
|
408
482
|
}
|
|
409
483
|
}
|
|
@@ -419,6 +493,10 @@ var FIELD_CATALOG = {
|
|
|
419
493
|
}
|
|
420
494
|
},
|
|
421
495
|
post: {
|
|
496
|
+
url: {
|
|
497
|
+
description: "A social or business post's own page.",
|
|
498
|
+
leaves: { value: value("The URL.") }
|
|
499
|
+
},
|
|
422
500
|
title: {
|
|
423
501
|
description: "A social or business post's title.",
|
|
424
502
|
leaves: { value: value("The title.") }
|
|
@@ -437,6 +515,10 @@ var FIELD_CATALOG = {
|
|
|
437
515
|
title: {
|
|
438
516
|
description: "A web page's title.",
|
|
439
517
|
leaves: { value: value("The title.") }
|
|
518
|
+
},
|
|
519
|
+
url: {
|
|
520
|
+
description: "A web page's address, when it is not a known profile.",
|
|
521
|
+
leaves: { value: value("The URL.") }
|
|
440
522
|
}
|
|
441
523
|
},
|
|
442
524
|
// Some entity's value, when a tool cannot say whether it is a person's or a
|
|
@@ -551,8 +633,12 @@ function fieldOfName(name, declared) {
|
|
|
551
633
|
if (declared === void 0) {
|
|
552
634
|
return meanings.length === 1 ? meanings[0] : void 0;
|
|
553
635
|
}
|
|
636
|
+
if (!isSharedName(name)) return isFieldId(declared) ? declared : void 0;
|
|
554
637
|
return isOtherThing(declared) || meanings.some((meaning) => relatedFields(declared, meaning)) ? declared : void 0;
|
|
555
638
|
}
|
|
639
|
+
function isSharedName(name) {
|
|
640
|
+
return Object.hasOwn(EXTRACTOR_TARGET_FIELDS, name);
|
|
641
|
+
}
|
|
556
642
|
function nameMeanings(name) {
|
|
557
643
|
return EXTRACTOR_TARGET_FIELDS[name] ?? [];
|
|
558
644
|
}
|
|
@@ -590,7 +676,7 @@ function resolveFieldName(name, bindings, outputs = []) {
|
|
|
590
676
|
if (isFieldId(name)) return viaId(name);
|
|
591
677
|
const own = bindings.find((binding) => binding.name === name);
|
|
592
678
|
if (own) {
|
|
593
|
-
return nameMeanings(name).some((id) => relatedFields(own.id, id)) ? byId.get(own.id) : void 0;
|
|
679
|
+
return !isSharedName(name) || nameMeanings(name).some((id) => relatedFields(own.id, id)) ? byId.get(own.id) : void 0;
|
|
594
680
|
}
|
|
595
681
|
if (outputs.includes(name)) return void 0;
|
|
596
682
|
const found = nameMeanings(name).flatMap((id) => {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkZZD245Z2js = require('./chunk-ZZD245Z2.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -22,14 +22,14 @@ var _chunkZDTPSVGFjs = require('./chunk-ZDTPSVGF.js');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkY4GRL533js = require('./chunk-Y4GRL533.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunkHINVMRGQjs = require('./chunk-HINVMRGQ.js');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.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 _chunkY4GRL533js.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 = _chunkY4GRL533js.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 `${_chunkY4GRL533js.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
|
|
87
87
|
}
|
|
88
88
|
function legacyPendingClaimTokenPath(baseUrl) {
|
|
89
|
-
return `${
|
|
89
|
+
return `${_chunkY4GRL533js.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
|
|
90
90
|
}
|
|
91
91
|
function savePendingClaim(baseUrl, claim) {
|
|
92
92
|
const filePath = pendingClaimPath(baseUrl, claim.scope);
|
|
@@ -190,21 +190,21 @@ function parseRegisterWaitMode(args) {
|
|
|
190
190
|
function shouldWaitForRegisterClaim(mode) {
|
|
191
191
|
if (mode === "yes") return true;
|
|
192
192
|
if (mode === "no") return false;
|
|
193
|
-
return
|
|
193
|
+
return _chunkHINVMRGQjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
|
|
194
194
|
}
|
|
195
195
|
function saveEnvValues(values, baseUrl, scope) {
|
|
196
196
|
const filtered = {
|
|
197
|
-
...values[
|
|
198
|
-
...values[
|
|
199
|
-
...values[
|
|
200
|
-
...Object.prototype.hasOwnProperty.call(values,
|
|
197
|
+
...values[_chunkY4GRL533js.HOST_URL_ENV] ? { [_chunkY4GRL533js.HOST_URL_ENV]: values[_chunkY4GRL533js.HOST_URL_ENV] } : {},
|
|
198
|
+
...values[_chunkY4GRL533js.API_KEY_ENV] ? { [_chunkY4GRL533js.API_KEY_ENV]: values[_chunkY4GRL533js.API_KEY_ENV] } : {},
|
|
199
|
+
...values[_chunkY4GRL533js.ACTIVE_ORG_ID_ENV] ? { [_chunkY4GRL533js.ACTIVE_ORG_ID_ENV]: values[_chunkY4GRL533js.ACTIVE_ORG_ID_ENV] } : {},
|
|
200
|
+
...Object.prototype.hasOwnProperty.call(values, _chunkY4GRL533js.ACTIVE_ORG_NAME_ENV) ? { [_chunkY4GRL533js.ACTIVE_ORG_NAME_ENV]: values[_chunkY4GRL533js.ACTIVE_ORG_NAME_ENV] } : {},
|
|
201
201
|
// An explicit empty list must reach the store: it clears a stale line.
|
|
202
|
-
...Object.prototype.hasOwnProperty.call(values,
|
|
202
|
+
...Object.prototype.hasOwnProperty.call(values, _chunkY4GRL533js.FEATURES_ENV) ? { [_chunkY4GRL533js.FEATURES_ENV]: values[_chunkY4GRL533js.FEATURES_ENV] } : {}
|
|
203
203
|
};
|
|
204
204
|
if (scope === "folder") {
|
|
205
|
-
|
|
205
|
+
_chunkY4GRL533js.saveProjectDeeplineEnvValues.call(void 0, filtered);
|
|
206
206
|
} else {
|
|
207
|
-
|
|
207
|
+
_chunkY4GRL533js.saveHostEnvValues.call(void 0, baseUrl, filtered);
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
210
|
function activeOrgEnvValues(data) {
|
|
@@ -212,21 +212,21 @@ function activeOrgEnvValues(data) {
|
|
|
212
212
|
if (!orgId) return {};
|
|
213
213
|
const orgName = typeof data.org_name === "string" ? data.org_name.trim() : "";
|
|
214
214
|
return {
|
|
215
|
-
[
|
|
216
|
-
[
|
|
217
|
-
...
|
|
215
|
+
[_chunkY4GRL533js.ACTIVE_ORG_ID_ENV]: orgId,
|
|
216
|
+
[_chunkY4GRL533js.ACTIVE_ORG_NAME_ENV]: orgName,
|
|
217
|
+
..._chunkY4GRL533js.featureEnvValues.call(void 0, data)
|
|
218
218
|
};
|
|
219
219
|
}
|
|
220
220
|
async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT_MS) {
|
|
221
221
|
const headers = {
|
|
222
222
|
"Content-Type": "application/json",
|
|
223
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
223
|
+
"User-Agent": `deepline-ts-sdk/${_chunkHINVMRGQjs.SDK_VERSION}`,
|
|
224
224
|
"X-Deepline-Client-Family": "sdk",
|
|
225
225
|
"X-Deepline-CLI-Family": "sdk",
|
|
226
|
-
"X-Deepline-Agent-Runtime":
|
|
227
|
-
"X-Deepline-CLI-Version":
|
|
228
|
-
"X-Deepline-SDK-Version":
|
|
229
|
-
"X-Deepline-API-Contract":
|
|
226
|
+
"X-Deepline-Agent-Runtime": _chunkHINVMRGQjs.detectAgentRuntime.call(void 0, ),
|
|
227
|
+
"X-Deepline-CLI-Version": _chunkHINVMRGQjs.SDK_VERSION,
|
|
228
|
+
"X-Deepline-SDK-Version": _chunkHINVMRGQjs.SDK_VERSION,
|
|
229
|
+
"X-Deepline-API-Contract": _chunkHINVMRGQjs.SDK_API_CONTRACT
|
|
230
230
|
};
|
|
231
231
|
if (apiKey) headers["Authorization"] = `Bearer ${apiKey}`;
|
|
232
232
|
const bypassToken = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.VERCEL_PROTECTION_BYPASS_TOKEN, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]);
|
|
@@ -265,10 +265,10 @@ async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT
|
|
|
265
265
|
if (failure.name === "AbortError" || failure.name === "TimeoutError") {
|
|
266
266
|
throw failure;
|
|
267
267
|
}
|
|
268
|
-
const causeCode =
|
|
268
|
+
const causeCode = _chunkHINVMRGQjs.networkCauseCode.call(void 0, failure);
|
|
269
269
|
throw Object.assign(
|
|
270
270
|
new (0, _chunkDIAWYWT5js.DeeplineError)(
|
|
271
|
-
|
|
271
|
+
_chunkHINVMRGQjs.connectionFailureMessage.call(void 0, new URL(url).origin, failure),
|
|
272
272
|
void 0,
|
|
273
273
|
"NETWORK_ERROR",
|
|
274
274
|
causeCode ? { causeCode } : void 0
|
|
@@ -285,7 +285,7 @@ async function readStatusBanner(baseUrl) {
|
|
|
285
285
|
return _optionalChain([response, 'optionalAccess', _11 => _11.status]) === 200 ? _nullishCoalesce(response.data.banner, () => ( null)) : null;
|
|
286
286
|
}
|
|
287
287
|
async function reportSetupCompleted(input) {
|
|
288
|
-
const apiKey = input.authScope === "folder" ?
|
|
288
|
+
const apiKey = input.authScope === "folder" ? _chunkY4GRL533js.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkY4GRL533js.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
289
289
|
if (!apiKey) return;
|
|
290
290
|
try {
|
|
291
291
|
await httpJson(
|
|
@@ -397,8 +397,24 @@ async function reportApprovalLinkShown(baseUrl, claim, mode) {
|
|
|
397
397
|
} catch (e8) {
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
|
+
var CLAIM_REVEAL_REFUSAL_CODES = /* @__PURE__ */ new Set([
|
|
401
|
+
"CLAIM_ALREADY_REVEALED",
|
|
402
|
+
"CLAIM_REVEAL_FAILED"
|
|
403
|
+
]);
|
|
404
|
+
function endClaimPollOnRefusal(status, data, baseUrl, authScope) {
|
|
405
|
+
if (status === 400 && CLAIM_REVEAL_REFUSAL_CODES.has(data.code)) {
|
|
406
|
+
clearPendingClaim(baseUrl, authScope);
|
|
407
|
+
console.error(
|
|
408
|
+
typeof data.error === "string" && data.error ? data.error : "Could not finish connecting. Run: deepline auth register"
|
|
409
|
+
);
|
|
410
|
+
return EXIT_AUTH;
|
|
411
|
+
}
|
|
412
|
+
console.error(`Auth status error (status ${status}).`);
|
|
413
|
+
if (typeof data.error === "string" && data.error) console.error(data.error);
|
|
414
|
+
return EXIT_SERVER;
|
|
415
|
+
}
|
|
400
416
|
async function handleRegister(args, options) {
|
|
401
|
-
const baseUrl =
|
|
417
|
+
const baseUrl = _chunkY4GRL533js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
402
418
|
let orgName = "";
|
|
403
419
|
let orgId = "";
|
|
404
420
|
let agentName = "";
|
|
@@ -457,19 +473,19 @@ async function handleRegister(args, options) {
|
|
|
457
473
|
savePendingClaim(baseUrl, pendingClaim);
|
|
458
474
|
saveEnvValues(
|
|
459
475
|
{
|
|
460
|
-
[
|
|
476
|
+
[_chunkY4GRL533js.HOST_URL_ENV]: baseUrl
|
|
461
477
|
},
|
|
462
478
|
baseUrl,
|
|
463
479
|
authScope
|
|
464
480
|
);
|
|
465
481
|
}
|
|
466
482
|
if (claimUrl) {
|
|
467
|
-
const shouldOpen = waitMode !== "no" &&
|
|
483
|
+
const shouldOpen = waitMode !== "no" && _chunkHINVMRGQjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
|
|
468
484
|
console.log(
|
|
469
485
|
shouldOpen ? " Opening approval page in your browser." : " Open this approval page in your browser:"
|
|
470
486
|
);
|
|
471
487
|
console.log(` ${claimUrl}`);
|
|
472
|
-
if (shouldOpen)
|
|
488
|
+
if (shouldOpen) _chunkZZD245Z2js.openInBrowser.call(void 0, claimUrl);
|
|
473
489
|
if (claimToken && pendingClaim.approvalLinkReporting && !_optionalChain([options, 'optionalAccess', _16 => _16.deferApprovalLinkReport])) {
|
|
474
490
|
await reportApprovalLinkShown(
|
|
475
491
|
baseUrl,
|
|
@@ -498,13 +514,12 @@ async function handleRegister(args, options) {
|
|
|
498
514
|
console.log("Status: unauthorized");
|
|
499
515
|
return EXIT_AUTH;
|
|
500
516
|
}
|
|
501
|
-
if (s >= 500 || s === 0
|
|
517
|
+
if (s >= 500 || s === 0) {
|
|
502
518
|
await sleep(2e3);
|
|
503
519
|
continue;
|
|
504
520
|
}
|
|
505
521
|
if (s >= 400) {
|
|
506
|
-
|
|
507
|
-
return EXIT_SERVER;
|
|
522
|
+
return endClaimPollOnRefusal(s, statusData, baseUrl, authScope);
|
|
508
523
|
}
|
|
509
524
|
const state = String(statusData.status || "").toLowerCase();
|
|
510
525
|
if (statusData.code === "REQUESTED_WORKSPACE_NOT_IN_ACCOUNT") {
|
|
@@ -519,8 +534,8 @@ async function handleRegister(args, options) {
|
|
|
519
534
|
if (apiKey) {
|
|
520
535
|
saveEnvValues(
|
|
521
536
|
{
|
|
522
|
-
[
|
|
523
|
-
[
|
|
537
|
+
[_chunkY4GRL533js.HOST_URL_ENV]: baseUrl,
|
|
538
|
+
[_chunkY4GRL533js.API_KEY_ENV]: apiKey,
|
|
524
539
|
...activeOrgEnvValues(statusData)
|
|
525
540
|
},
|
|
526
541
|
baseUrl,
|
|
@@ -542,7 +557,7 @@ async function handleRegister(args, options) {
|
|
|
542
557
|
}
|
|
543
558
|
}
|
|
544
559
|
async function handleWait(args) {
|
|
545
|
-
const baseUrl =
|
|
560
|
+
const baseUrl = _chunkY4GRL533js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
546
561
|
let timeoutSeconds = 300;
|
|
547
562
|
let requestedScope;
|
|
548
563
|
if (args.includes("--auth-scope")) {
|
|
@@ -566,7 +581,7 @@ async function handleWait(args) {
|
|
|
566
581
|
const authScope = resumed.scope;
|
|
567
582
|
const claimToken = _nullishCoalesce(_optionalChain([pendingClaim, 'optionalAccess', _17 => _17.claimToken]), () => ( ""));
|
|
568
583
|
if (!pendingClaim) {
|
|
569
|
-
const scopedApiKey = authScope === "folder" ?
|
|
584
|
+
const scopedApiKey = authScope === "folder" ? _chunkY4GRL533js.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkY4GRL533js.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
570
585
|
if (scopedApiKey) {
|
|
571
586
|
console.log("Already connected.");
|
|
572
587
|
return EXIT_OK;
|
|
@@ -588,13 +603,12 @@ async function handleWait(args) {
|
|
|
588
603
|
console.error("Claim is invalid. Run: deepline auth register");
|
|
589
604
|
return EXIT_AUTH;
|
|
590
605
|
}
|
|
591
|
-
if (status >= 500 || status === 0
|
|
606
|
+
if (status >= 500 || status === 0) {
|
|
592
607
|
await sleep(Math.min(2e3, Math.max(0, deadline - Date.now())));
|
|
593
608
|
continue;
|
|
594
609
|
}
|
|
595
610
|
if (status >= 400) {
|
|
596
|
-
|
|
597
|
-
return EXIT_SERVER;
|
|
611
|
+
return endClaimPollOnRefusal(status, data, baseUrl, authScope);
|
|
598
612
|
}
|
|
599
613
|
const state = String(data.status || "").toLowerCase();
|
|
600
614
|
if (data.code === "REQUESTED_WORKSPACE_NOT_IN_ACCOUNT") {
|
|
@@ -609,8 +623,8 @@ async function handleWait(args) {
|
|
|
609
623
|
if (apiKey) {
|
|
610
624
|
saveEnvValues(
|
|
611
625
|
{
|
|
612
|
-
[
|
|
613
|
-
[
|
|
626
|
+
[_chunkY4GRL533js.HOST_URL_ENV]: baseUrl,
|
|
627
|
+
[_chunkY4GRL533js.API_KEY_ENV]: apiKey,
|
|
614
628
|
...activeOrgEnvValues(data)
|
|
615
629
|
},
|
|
616
630
|
baseUrl,
|
|
@@ -634,8 +648,8 @@ async function handleWait(args) {
|
|
|
634
648
|
return EXIT_AUTH;
|
|
635
649
|
}
|
|
636
650
|
async function authStatusLine(timeoutMs = 3e3) {
|
|
637
|
-
const baseUrl =
|
|
638
|
-
const apiKey =
|
|
651
|
+
const baseUrl = _chunkY4GRL533js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
652
|
+
const apiKey = _chunkY4GRL533js.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
639
653
|
if (!apiKey) return `Auth: not connected (${baseUrl})`;
|
|
640
654
|
try {
|
|
641
655
|
const { status, data } = await httpJson(
|
|
@@ -658,9 +672,9 @@ async function authStatusLine(timeoutMs = 3e3) {
|
|
|
658
672
|
}
|
|
659
673
|
}
|
|
660
674
|
async function handleStatus(args) {
|
|
661
|
-
const baseUrl =
|
|
675
|
+
const baseUrl = _chunkY4GRL533js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
662
676
|
const reveal = args.includes("--reveal");
|
|
663
|
-
const jsonOutput =
|
|
677
|
+
const jsonOutput = _chunkZZD245Z2js.argsWantJson.call(void 0, args);
|
|
664
678
|
const hasExplicitAuthScope = args.includes("--auth-scope");
|
|
665
679
|
let authScope = null;
|
|
666
680
|
if (hasExplicitAuthScope) {
|
|
@@ -701,14 +715,14 @@ async function handleStatus(args) {
|
|
|
701
715
|
};
|
|
702
716
|
hostLines.push(`Host: ${baseUrl} (unreachable)`);
|
|
703
717
|
}
|
|
704
|
-
const apiKey = authScope === "folder" ?
|
|
718
|
+
const apiKey = authScope === "folder" ? _chunkY4GRL533js.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkY4GRL533js.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkY4GRL533js.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
705
719
|
if (!apiKey) {
|
|
706
720
|
const { claim: pendingClaim } = resolvePendingAuthClaimForResume(
|
|
707
721
|
baseUrl,
|
|
708
722
|
_nullishCoalesce(authScope, () => ( void 0))
|
|
709
723
|
);
|
|
710
724
|
if (pendingClaim) {
|
|
711
|
-
|
|
725
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0,
|
|
712
726
|
{
|
|
713
727
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
714
728
|
status: "pending",
|
|
@@ -729,7 +743,7 @@ async function handleStatus(args) {
|
|
|
729
743
|
);
|
|
730
744
|
return EXIT_OK;
|
|
731
745
|
}
|
|
732
|
-
|
|
746
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0,
|
|
733
747
|
{
|
|
734
748
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
735
749
|
status: "not connected",
|
|
@@ -762,7 +776,7 @@ async function handleStatus(args) {
|
|
|
762
776
|
}
|
|
763
777
|
);
|
|
764
778
|
if (status === 401 || status === 403) {
|
|
765
|
-
|
|
779
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0,
|
|
766
780
|
{
|
|
767
781
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
768
782
|
status: "unauthorized",
|
|
@@ -789,7 +803,7 @@ async function handleStatus(args) {
|
|
|
789
803
|
console.error(`Auth status error (status ${status}).`);
|
|
790
804
|
return EXIT_SERVER;
|
|
791
805
|
}
|
|
792
|
-
const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (
|
|
806
|
+
const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkY4GRL533js.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
|
|
793
807
|
clearSatisfiedPendingClaim(
|
|
794
808
|
baseUrl,
|
|
795
809
|
resolvedAuthScope,
|
|
@@ -817,28 +831,28 @@ async function handleStatus(args) {
|
|
|
817
831
|
if (apiKeyResp) {
|
|
818
832
|
saveEnvValues(
|
|
819
833
|
{
|
|
820
|
-
[
|
|
821
|
-
[
|
|
834
|
+
[_chunkY4GRL533js.HOST_URL_ENV]: baseUrl,
|
|
835
|
+
[_chunkY4GRL533js.API_KEY_ENV]: apiKeyResp,
|
|
822
836
|
...activeOrgEnvValues(data)
|
|
823
837
|
},
|
|
824
838
|
baseUrl,
|
|
825
839
|
resolvedAuthScope
|
|
826
840
|
);
|
|
827
841
|
if (resolvedAuthScope === "folder") {
|
|
828
|
-
const target =
|
|
842
|
+
const target = _chunkY4GRL533js.resolveProjectPinTarget.call(void 0, );
|
|
829
843
|
savedApiKeyPath = target.ok ? _path.join.call(void 0, target.dir, ".env.deepline") : null;
|
|
830
844
|
} else {
|
|
831
845
|
savedApiKeyPath = envFilePath(baseUrl);
|
|
832
846
|
}
|
|
833
847
|
}
|
|
834
|
-
} else if (resolvedAuthScope === "folder" ||
|
|
835
|
-
saveEnvValues(
|
|
848
|
+
} else if (resolvedAuthScope === "folder" || _chunkY4GRL533js.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
|
|
849
|
+
saveEnvValues(_chunkY4GRL533js.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
|
|
836
850
|
}
|
|
837
|
-
|
|
851
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0,
|
|
838
852
|
{
|
|
839
853
|
...payload,
|
|
840
|
-
...
|
|
841
|
-
command_context:
|
|
854
|
+
..._chunkHINVMRGQjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
|
|
855
|
+
command_context: _chunkY4GRL533js.resolveCliCommandContext.call(void 0,
|
|
842
856
|
{ baseUrl, apiKey },
|
|
843
857
|
resolvedAuthScope
|
|
844
858
|
)
|
|
@@ -1,19 +1,19 @@
|
|
|
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 _chunkGDNQXLBMjs = require('./chunk-GDNQXLBM.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkWP45PUPWjs = require('./chunk-WP45PUPW.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkUSWLB4KVjs = require('./chunk-USWLB4KV.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkZZD245Z2js = require('./chunk-ZZD245Z2.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkY4GRL533js = require('./chunk-Y4GRL533.js');
|
|
17
17
|
|
|
18
18
|
// src/cli/commands/update.ts
|
|
19
19
|
var _child_process = require('child_process');
|
|
@@ -495,7 +495,7 @@ function normalizedNpmPrefix(value) {
|
|
|
495
495
|
}
|
|
496
496
|
function resolveNpmGlobalPrefix(env) {
|
|
497
497
|
try {
|
|
498
|
-
const plan =
|
|
498
|
+
const plan = _chunkUSWLB4KVjs.resolveShellSpawn.call(void 0,
|
|
499
499
|
"npm",
|
|
500
500
|
["prefix", "-g"],
|
|
501
501
|
process.platform,
|
|
@@ -556,8 +556,8 @@ function resolveUpdatePlan(options = {}) {
|
|
|
556
556
|
const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
|
|
557
557
|
const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
|
|
558
558
|
const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
|
|
559
|
-
const npmVersion = options.npmVersion === void 0 ?
|
|
560
|
-
const npmGlobalInstallFlags =
|
|
559
|
+
const npmVersion = options.npmVersion === void 0 ? _chunkGDNQXLBMjs.readNpmVersion.call(void 0, env) : options.npmVersion;
|
|
560
|
+
const npmGlobalInstallFlags = _chunkGDNQXLBMjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
|
|
561
561
|
const args = installPrefix ? [
|
|
562
562
|
"install",
|
|
563
563
|
"-g",
|
|
@@ -567,7 +567,7 @@ function resolveUpdatePlan(options = {}) {
|
|
|
567
567
|
packageSpec
|
|
568
568
|
] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
|
|
569
569
|
const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
|
|
570
|
-
_optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) ||
|
|
570
|
+
_optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkY4GRL533js.autoDetectBaseUrl.call(void 0, )
|
|
571
571
|
);
|
|
572
572
|
return {
|
|
573
573
|
kind: "npm-global",
|
|
@@ -816,7 +816,7 @@ function sidecarInstallFailure(versionDir) {
|
|
|
816
816
|
function runCommand(command, args, env = process.env) {
|
|
817
817
|
return new Promise((resolveResult) => {
|
|
818
818
|
let output = "";
|
|
819
|
-
const plan =
|
|
819
|
+
const plan = _chunkUSWLB4KVjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
|
|
820
820
|
const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
|
|
821
821
|
stdio: ["inherit", "pipe", "pipe"],
|
|
822
822
|
shell: plan.shell,
|
|
@@ -1199,14 +1199,14 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
|
|
|
1199
1199
|
throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
|
|
1200
1200
|
}
|
|
1201
1201
|
async function runUpdateCommand(options, dependencies = {}) {
|
|
1202
|
-
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => (
|
|
1202
|
+
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkY4GRL533js.autoDetectBaseUrl));
|
|
1203
1203
|
const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
|
|
1204
1204
|
const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
|
|
1205
1205
|
const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
|
|
1206
1206
|
const originalWrite = process.stdout.write.bind(process.stdout);
|
|
1207
1207
|
process.stdout.write = (() => true);
|
|
1208
1208
|
try {
|
|
1209
|
-
const exitCode = await
|
|
1209
|
+
const exitCode = await _chunkWP45PUPWjs.runSkillsCommand.call(void 0, { json: true });
|
|
1210
1210
|
if (exitCode !== 0) {
|
|
1211
1211
|
throw new Error(
|
|
1212
1212
|
`Deepline skills update failed with exit ${exitCode}.`
|
|
@@ -1277,11 +1277,11 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1277
1277
|
]
|
|
1278
1278
|
};
|
|
1279
1279
|
if (options.json && !options.executeWithJson) {
|
|
1280
|
-
|
|
1280
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
|
|
1281
1281
|
return 0;
|
|
1282
1282
|
}
|
|
1283
1283
|
if (options.printCommand) {
|
|
1284
|
-
|
|
1284
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0,
|
|
1285
1285
|
{
|
|
1286
1286
|
...plan,
|
|
1287
1287
|
render: {
|
|
@@ -1294,7 +1294,7 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1294
1294
|
return 0;
|
|
1295
1295
|
}
|
|
1296
1296
|
if (plan.kind === "source" || plan.kind === "homebrew") {
|
|
1297
|
-
|
|
1297
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
|
|
1298
1298
|
return 0;
|
|
1299
1299
|
}
|
|
1300
1300
|
stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
|
|
@@ -1319,12 +1319,12 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1319
1319
|
stderr.write(
|
|
1320
1320
|
`Deepline SDK/CLI update completed, but the optional local agent-skills refresh failed. Your CLI update succeeded; this does not affect authentication, data, billing, or the command result.
|
|
1321
1321
|
Skills refresh detail: ${detail}
|
|
1322
|
-
To retry with full installer output, run: deepline skills
|
|
1322
|
+
To retry with full installer output, run: deepline skills install
|
|
1323
1323
|
`
|
|
1324
1324
|
);
|
|
1325
1325
|
}
|
|
1326
1326
|
if (options.executeWithJson && options.json) {
|
|
1327
|
-
|
|
1327
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0,
|
|
1328
1328
|
{
|
|
1329
1329
|
ok: true,
|
|
1330
1330
|
pinnedVersion
|