deepline 0.3.493 → 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.
Files changed (155) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +2 -2
  2. package/dist/bundling-sources/sdk/src/types.ts +5 -4
  3. package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +15 -0
  4. package/dist/bundling-sources/shared_libs/plays/field-catalog.ts +101 -3
  5. package/dist/cli/{auth-3NAY3AST.mjs → auth-6X5YXMFN.mjs} +5 -5
  6. package/dist/cli/auth-RWLCLMDY.js +43 -0
  7. package/dist/cli/{billing-FSB4BBBO.js → billing-5F5PZB77.js} +79 -79
  8. package/dist/cli/{billing-SBWQCC7B.mjs → billing-IN74SDSC.mjs} +6 -6
  9. package/dist/cli/{chunk-3RGWTKK3.mjs → chunk-2GEYN3H4.mjs} +89 -3
  10. package/dist/cli/{chunk-MLEUOTEQ.js → chunk-3KVFOKPR.js} +53 -53
  11. package/dist/cli/{chunk-IOBPR2VO.js → chunk-4A5WXQJK.js} +16 -16
  12. package/dist/cli/{chunk-NALJJTPS.mjs → chunk-4RWH4LRQ.mjs} +5 -5
  13. package/dist/cli/{chunk-UCMY2SO2.js → chunk-4ZKZS43N.js} +3 -3
  14. package/dist/cli/{chunk-IJOHWGPF.js → chunk-5WYH2LAP.js} +6 -6
  15. package/dist/cli/{chunk-2BRTYIAH.mjs → chunk-65NMOP4T.mjs} +3 -3
  16. package/dist/cli/{chunk-VFHIYWMC.mjs → chunk-6DMLWM7L.mjs} +2 -2
  17. package/dist/cli/{chunk-3QGUWB6E.mjs → chunk-6XZR2642.mjs} +8 -7
  18. package/dist/cli/{chunk-XQX476QK.js → chunk-7B7A36XZ.js} +9 -9
  19. package/dist/cli/{chunk-DWJ4RXSA.js → chunk-AARXOBVD.js} +1 -0
  20. package/dist/cli/{chunk-ZVW7EWTC.mjs → chunk-BLHQRETG.mjs} +184 -184
  21. package/dist/cli/{chunk-NPZBE64X.js → chunk-BLMB4N63.js} +89 -3
  22. package/dist/cli/{chunk-LGTZYI5B.js → chunk-BNI653WN.js} +21 -21
  23. package/dist/cli/{chunk-2H4OFVR5.js → chunk-BU5Y7HOD.js} +5 -5
  24. package/dist/cli/{chunk-KGDDQMI7.mjs → chunk-C5R3UH5V.mjs} +28 -1
  25. package/dist/cli/{chunk-NPNAEPY4.js → chunk-CAWOSHEC.js} +26 -26
  26. package/dist/cli/{chunk-HTUSTPP4.js → chunk-CK5MA6S6.js} +7 -7
  27. package/dist/cli/{chunk-EBAS3UT2.mjs → chunk-DKKAJ3U2.mjs} +5 -5
  28. package/dist/cli/{chunk-4IJFQV3O.mjs → chunk-EG3OSUBO.mjs} +1 -1
  29. package/dist/cli/{chunk-TNQOR6XQ.mjs → chunk-FAT6CUZK.mjs} +1 -1
  30. package/dist/cli/{chunk-TIFRRLZT.js → chunk-GBICEYUA.js} +6 -6
  31. package/dist/cli/{chunk-XLE7KXE7.js → chunk-GDNQXLBM.js} +2 -2
  32. package/dist/cli/{chunk-AWMCZAUR.js → chunk-GLDBMKTV.js} +3 -3
  33. package/dist/cli/{chunk-GSC35TPZ.mjs → chunk-GNSGDIA4.mjs} +2 -2
  34. package/dist/cli/{chunk-7HABWOMB.js → chunk-GSCCDGGT.js} +259 -259
  35. package/dist/cli/{chunk-IRDYBMA7.mjs → chunk-H46X7YDU.mjs} +1 -0
  36. package/dist/cli/{chunk-NWIDPT7H.js → chunk-HINVMRGQ.js} +4 -4
  37. package/dist/cli/{chunk-C2MRDPA5.js → chunk-I42EOZKQ.js} +32 -5
  38. package/dist/cli/{chunk-HLM2UFQ5.mjs → chunk-IPWYDANJ.mjs} +1 -1
  39. package/dist/cli/{chunk-5DIZ2G74.mjs → chunk-IZJSX3SZ.mjs} +2 -2
  40. package/dist/cli/{chunk-WTFI7BVH.mjs → chunk-J2HOVZOE.mjs} +1 -1
  41. package/dist/cli/{chunk-IOMEJKGK.js → chunk-J3UHNUWI.js} +2 -2
  42. package/dist/cli/{chunk-4NIGNT7X.mjs → chunk-KR2XEI5T.mjs} +1 -1
  43. package/dist/cli/{chunk-5WOPBX3H.mjs → chunk-KSHAFYYG.mjs} +1 -1
  44. package/dist/cli/{chunk-DYP27IWC.mjs → chunk-KVCQL6SP.mjs} +4 -4
  45. package/dist/cli/{chunk-SXD2EYAH.mjs → chunk-L2P2XRPO.mjs} +37 -5
  46. package/dist/cli/{chunk-67ZG7XZV.mjs → chunk-L4QPBQUX.mjs} +2 -2
  47. package/dist/cli/{chunk-QTPS5RLG.js → chunk-L6KA4ENU.js} +45 -13
  48. package/dist/cli/{chunk-ZQH4TXM2.mjs → chunk-L6L57RSG.mjs} +2 -2
  49. package/dist/cli/{chunk-Y3NN2UAF.mjs → chunk-MWZNMWR2.mjs} +2 -2
  50. package/dist/cli/{chunk-2IHGVAGT.mjs → chunk-ODWTFVE4.mjs} +2 -2
  51. package/dist/cli/{chunk-KKSKYZO4.mjs → chunk-QOEI42IU.mjs} +2 -2
  52. package/dist/cli/{chunk-WCZFCOMZ.js → chunk-QSRWBOPV.js} +11 -10
  53. package/dist/cli/{chunk-E5ILCMKQ.mjs → chunk-RPFNIMUO.mjs} +1 -1
  54. package/dist/cli/{chunk-EFO5GVYS.js → chunk-S3XQH7DW.js} +2 -2
  55. package/dist/cli/{chunk-IJJ6D5WL.mjs → chunk-TLQXN4ZZ.mjs} +11 -11
  56. package/dist/cli/{chunk-KCDZWS2B.js → chunk-USWLB4KV.js} +231 -231
  57. package/dist/cli/{chunk-2NGIBJM2.js → chunk-VMPM2FKT.js} +8 -8
  58. package/dist/cli/{chunk-ZVXB7OU7.mjs → chunk-WCZBIE5L.mjs} +1 -1
  59. package/dist/cli/{chunk-EYG336YV.js → chunk-WP45PUPW.js} +41 -41
  60. package/dist/cli/{chunk-AGTXL6LZ.js → chunk-X6HIIHQO.js} +5 -5
  61. package/dist/cli/{chunk-JO2JZUBR.js → chunk-Y4GRL533.js} +3 -3
  62. package/dist/cli/{chunk-2I7VN65H.js → chunk-ZZD245Z2.js} +7 -7
  63. package/dist/cli/command-docs.js +2 -2
  64. package/dist/cli/command-docs.mjs +1 -1
  65. package/dist/cli/{csv-DKYZE2KM.js → csv-QD7JJGSP.js} +13 -13
  66. package/dist/cli/{csv-XR22YQXT.mjs → csv-UBW4ID5D.mjs} +4 -4
  67. package/dist/cli/{db-RNYRTCMV.js → db-AARR3WYD.js} +27 -27
  68. package/dist/cli/{db-EOKG36YN.mjs → db-QFDXKIVD.mjs} +6 -6
  69. package/dist/cli/{describe-ICFXOQBW.mjs → describe-OBVIAC2H.mjs} +20 -20
  70. package/dist/cli/describe-RYJ6HDYD.js +50 -0
  71. package/dist/cli/describe-core.d.mts +5 -11
  72. package/dist/cli/describe-core.d.ts +5 -11
  73. package/dist/cli/describe-core.js +4 -4
  74. package/dist/cli/describe-core.mjs +3 -3
  75. package/dist/cli/{executions-3RAOACNS.mjs → executions-IZYUDYTZ.mjs} +6 -6
  76. package/dist/cli/{executions-OBWPSWH7.js → executions-KXY7KMZY.js} +8 -8
  77. package/dist/cli/{feedback-6GPEUBLF.js → feedback-3334HBPD.js} +8 -8
  78. package/dist/cli/{feedback-6EQRVBKF.mjs → feedback-IVCVBERN.mjs} +4 -4
  79. package/dist/cli/git-4VLYFHNU.js +25 -0
  80. package/dist/cli/{git-CVQ24DTR.mjs → git-JHNVET5A.mjs} +5 -5
  81. package/dist/cli/index.js +141 -141
  82. package/dist/cli/index.mjs +41 -41
  83. package/dist/cli/{legacy-noops-XPOATG5V.js → legacy-noops-DBA32JCV.js} +8 -8
  84. package/dist/cli/{legacy-noops-QULJZYNH.mjs → legacy-noops-WGVBUOCC.mjs} +5 -5
  85. package/dist/cli/{monitors-OJ4CMREE.js → monitors-GHWZ5AZS.js} +91 -91
  86. package/dist/cli/{monitors-AFT5YJPZ.mjs → monitors-ZGANC7JY.mjs} +7 -7
  87. package/dist/cli/{org-WHKNXANG.mjs → org-CUS42N2T.mjs} +6 -6
  88. package/dist/cli/{org-RKT52CSL.js → org-S7JWP264.js} +72 -72
  89. package/dist/cli/{pages-EEAQFGVD.mjs → pages-IH56T6L6.mjs} +6 -6
  90. package/dist/cli/{pages-SOE3R667.js → pages-QXRZDEJW.js} +17 -17
  91. package/dist/cli/{play-OTJJ4E4T.js → play-4C5PYS62.js} +314 -314
  92. package/dist/cli/{play-LXFWHUBP.mjs → play-Z65ZFOQH.mjs} +17 -17
  93. package/dist/cli/{providers-U3CPKTMM.mjs → providers-FSZSJX4Z.mjs} +6 -6
  94. package/dist/cli/{providers-RU4HIAT3.js → providers-XYQGYF3O.js} +9 -9
  95. package/dist/cli/{quickstart-75AO2AJC.mjs → quickstart-DHWVE32I.mjs} +4 -4
  96. package/dist/cli/{quickstart-N72IVA2Y.js → quickstart-ZA25RJT3.js} +6 -6
  97. package/dist/cli/{run-MMYES3IW.js → run-5MP6LEHM.js} +40 -40
  98. package/dist/cli/{run-IGWFL6WH.mjs → run-WRPPEPLG.mjs} +25 -25
  99. package/dist/cli/search-4SQFVNTB.js +32 -0
  100. package/dist/cli/{search-FIYESBLZ.mjs → search-A6NVJPKX.mjs} +7 -7
  101. package/dist/cli/{search-output-3I5KSW36.mjs → search-output-PAOUMVXY.mjs} +4 -4
  102. package/dist/cli/{search-output-2FXN4ZWD.js → search-output-YA6TXWGO.js} +6 -6
  103. package/dist/cli/{secrets-HCZQ6JNP.js → secrets-AZYOGH3I.js} +15 -15
  104. package/dist/cli/{secrets-O7IUQ3VT.mjs → secrets-ZGF7JOBI.mjs} +6 -6
  105. package/dist/cli/{sessions-5AYTT4IW.js → sessions-GCIN5VXT.js} +6 -6
  106. package/dist/cli/{sessions-KY7A3EZO.mjs → sessions-RNEAXZPV.mjs} +5 -5
  107. package/dist/cli/{settings-P4VFYWJK.js → settings-LMEZNLBB.js} +78 -78
  108. package/dist/cli/{settings-WSMRR2GS.mjs → settings-NO5KXQJF.mjs} +11 -11
  109. package/dist/cli/{setup-YTVKVQC7.mjs → setup-GCYB4IFS.mjs} +9 -9
  110. package/dist/cli/{setup-J7CA3EJL.js → setup-XKTZPYYH.js} +49 -49
  111. package/dist/cli/{skills-W5WY764N.mjs → skills-TY4HHIKH.mjs} +7 -7
  112. package/dist/cli/skills-V4APQA2I.js +36 -0
  113. package/dist/cli/tools-HKQLQ7HT.js +57 -0
  114. package/dist/cli/{tools-YECI6N3N.mjs → tools-RDTHHYJ3.mjs} +18 -18
  115. package/dist/cli/{update-BIFBIEII.mjs → update-BRLLTTCS.mjs} +9 -9
  116. package/dist/cli/update-Z4MUAHWM.js +34 -0
  117. package/dist/cli/{workflow-XZVDNARC.mjs → workflow-F72EVZWM.mjs} +7 -7
  118. package/dist/cli/{workflow-D2TUFFH6.js → workflow-YHA4WE3K.js} +17 -17
  119. package/dist/{client-BDB_VbE4.d.ts → client-97yTcdLl.d.ts} +1 -1
  120. package/dist/{client-CNzJ1LTF.d.mts → client-CFo9qalW.d.mts} +1 -1
  121. package/dist/{client-core-xEa9x3pl.d.ts → client-core-BRZrY13B.d.ts} +5 -5
  122. package/dist/{client-core-CSv3DlPD.d.mts → client-core-Dl6xgfLq.d.mts} +5 -5
  123. package/dist/{compiler-manifest-BFTwq1HI.d.ts → compiler-manifest-CPEF48NM.d.mts} +91 -0
  124. package/dist/{compiler-manifest-BFTwq1HI.d.mts → compiler-manifest-CPEF48NM.d.ts} +91 -0
  125. package/dist/{errors-c3pMsylw.d.ts → errors-B-PJXveg.d.ts} +1 -1
  126. package/dist/{errors-w31ybrQM.d.mts → errors-BWbPzqwo.d.mts} +1 -1
  127. package/dist/{index-DvNtxucX.d.mts → index-BJ8AA1F9.d.mts} +1 -1
  128. package/dist/{index-CQ-15-QL.d.ts → index-CvVxPpE8.d.ts} +1 -1
  129. package/dist/index.d.mts +7 -7
  130. package/dist/index.d.ts +7 -7
  131. package/dist/index.js +26 -18
  132. package/dist/index.mjs +15 -7
  133. package/dist/install-integrity.json +116 -116
  134. package/dist/plays/bundle-play-file.d.mts +3 -3
  135. package/dist/plays/bundle-play-file.d.ts +3 -3
  136. package/dist/plays/play-description.d.mts +2 -2
  137. package/dist/plays/play-description.d.ts +2 -2
  138. package/dist/plays/run-request.d.mts +2 -2
  139. package/dist/plays/run-request.d.ts +2 -2
  140. package/dist/release.d.mts +2 -2
  141. package/dist/release.d.ts +2 -2
  142. package/dist/release.js +2 -2
  143. package/dist/release.mjs +1 -1
  144. package/dist/server.d.mts +4 -4
  145. package/dist/server.d.ts +4 -4
  146. package/dist/server.js +5 -5
  147. package/dist/server.mjs +3 -3
  148. package/package.json +1 -1
  149. package/dist/cli/auth-KYQLDI6V.js +0 -43
  150. package/dist/cli/describe-RS75I33X.js +0 -50
  151. package/dist/cli/git-DEFE4SSB.js +0 -25
  152. package/dist/cli/search-EQURI7SZ.js +0 -32
  153. package/dist/cli/skills-KKPEGLAR.js +0 -36
  154. package/dist/cli/tools-65Y4QTW6.js +0 -57
  155. package/dist/cli/update-WDG7VFOW.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: { url: value("The page URL.") }
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 _chunk2I7VN65Hjs = require('./chunk-2I7VN65H.js');
5
+ var _chunkZZD245Z2js = require('./chunk-ZZD245Z2.js');
6
6
 
7
7
 
8
8
 
@@ -22,14 +22,14 @@ var _chunk2I7VN65Hjs = require('./chunk-2I7VN65H.js');
22
22
 
23
23
 
24
24
 
25
- var _chunkJO2JZUBRjs = require('./chunk-JO2JZUBR.js');
25
+ var _chunkY4GRL533js = require('./chunk-Y4GRL533.js');
26
26
 
27
27
 
28
28
 
29
29
 
30
30
 
31
31
 
32
- var _chunkNWIDPT7Hjs = require('./chunk-NWIDPT7H.js');
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 _chunkJO2JZUBRjs.hostEnvFilePath.call(void 0, baseUrl);
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 = _chunkJO2JZUBRjs.resolveProjectPinTarget.call(void 0, );
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 `${_chunkJO2JZUBRjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
86
+ return `${_chunkY4GRL533js.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
87
87
  }
88
88
  function legacyPendingClaimTokenPath(baseUrl) {
89
- return `${_chunkJO2JZUBRjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
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 _chunkNWIDPT7Hjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
193
+ return _chunkHINVMRGQjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
194
194
  }
195
195
  function saveEnvValues(values, baseUrl, scope) {
196
196
  const filtered = {
197
- ...values[_chunkJO2JZUBRjs.HOST_URL_ENV] ? { [_chunkJO2JZUBRjs.HOST_URL_ENV]: values[_chunkJO2JZUBRjs.HOST_URL_ENV] } : {},
198
- ...values[_chunkJO2JZUBRjs.API_KEY_ENV] ? { [_chunkJO2JZUBRjs.API_KEY_ENV]: values[_chunkJO2JZUBRjs.API_KEY_ENV] } : {},
199
- ...values[_chunkJO2JZUBRjs.ACTIVE_ORG_ID_ENV] ? { [_chunkJO2JZUBRjs.ACTIVE_ORG_ID_ENV]: values[_chunkJO2JZUBRjs.ACTIVE_ORG_ID_ENV] } : {},
200
- ...Object.prototype.hasOwnProperty.call(values, _chunkJO2JZUBRjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkJO2JZUBRjs.ACTIVE_ORG_NAME_ENV]: values[_chunkJO2JZUBRjs.ACTIVE_ORG_NAME_ENV] } : {},
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, _chunkJO2JZUBRjs.FEATURES_ENV) ? { [_chunkJO2JZUBRjs.FEATURES_ENV]: values[_chunkJO2JZUBRjs.FEATURES_ENV] } : {}
202
+ ...Object.prototype.hasOwnProperty.call(values, _chunkY4GRL533js.FEATURES_ENV) ? { [_chunkY4GRL533js.FEATURES_ENV]: values[_chunkY4GRL533js.FEATURES_ENV] } : {}
203
203
  };
204
204
  if (scope === "folder") {
205
- _chunkJO2JZUBRjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
205
+ _chunkY4GRL533js.saveProjectDeeplineEnvValues.call(void 0, filtered);
206
206
  } else {
207
- _chunkJO2JZUBRjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
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
- [_chunkJO2JZUBRjs.ACTIVE_ORG_ID_ENV]: orgId,
216
- [_chunkJO2JZUBRjs.ACTIVE_ORG_NAME_ENV]: orgName,
217
- ..._chunkJO2JZUBRjs.featureEnvValues.call(void 0, data)
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/${_chunkNWIDPT7Hjs.SDK_VERSION}`,
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": _chunkNWIDPT7Hjs.detectAgentRuntime.call(void 0, ),
227
- "X-Deepline-CLI-Version": _chunkNWIDPT7Hjs.SDK_VERSION,
228
- "X-Deepline-SDK-Version": _chunkNWIDPT7Hjs.SDK_VERSION,
229
- "X-Deepline-API-Contract": _chunkNWIDPT7Hjs.SDK_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 = _chunkNWIDPT7Hjs.networkCauseCode.call(void 0, failure);
268
+ const causeCode = _chunkHINVMRGQjs.networkCauseCode.call(void 0, failure);
269
269
  throw Object.assign(
270
270
  new (0, _chunkDIAWYWT5js.DeeplineError)(
271
- _chunkNWIDPT7Hjs.connectionFailureMessage.call(void 0, new URL(url).origin, failure),
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" ? _chunkJO2JZUBRjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkJO2JZUBRjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
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(
@@ -414,7 +414,7 @@ function endClaimPollOnRefusal(status, data, baseUrl, authScope) {
414
414
  return EXIT_SERVER;
415
415
  }
416
416
  async function handleRegister(args, options) {
417
- const baseUrl = _chunkJO2JZUBRjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
417
+ const baseUrl = _chunkY4GRL533js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
418
418
  let orgName = "";
419
419
  let orgId = "";
420
420
  let agentName = "";
@@ -473,19 +473,19 @@ async function handleRegister(args, options) {
473
473
  savePendingClaim(baseUrl, pendingClaim);
474
474
  saveEnvValues(
475
475
  {
476
- [_chunkJO2JZUBRjs.HOST_URL_ENV]: baseUrl
476
+ [_chunkY4GRL533js.HOST_URL_ENV]: baseUrl
477
477
  },
478
478
  baseUrl,
479
479
  authScope
480
480
  );
481
481
  }
482
482
  if (claimUrl) {
483
- const shouldOpen = waitMode !== "no" && _chunkNWIDPT7Hjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
483
+ const shouldOpen = waitMode !== "no" && _chunkHINVMRGQjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
484
484
  console.log(
485
485
  shouldOpen ? " Opening approval page in your browser." : " Open this approval page in your browser:"
486
486
  );
487
487
  console.log(` ${claimUrl}`);
488
- if (shouldOpen) _chunk2I7VN65Hjs.openInBrowser.call(void 0, claimUrl);
488
+ if (shouldOpen) _chunkZZD245Z2js.openInBrowser.call(void 0, claimUrl);
489
489
  if (claimToken && pendingClaim.approvalLinkReporting && !_optionalChain([options, 'optionalAccess', _16 => _16.deferApprovalLinkReport])) {
490
490
  await reportApprovalLinkShown(
491
491
  baseUrl,
@@ -534,8 +534,8 @@ async function handleRegister(args, options) {
534
534
  if (apiKey) {
535
535
  saveEnvValues(
536
536
  {
537
- [_chunkJO2JZUBRjs.HOST_URL_ENV]: baseUrl,
538
- [_chunkJO2JZUBRjs.API_KEY_ENV]: apiKey,
537
+ [_chunkY4GRL533js.HOST_URL_ENV]: baseUrl,
538
+ [_chunkY4GRL533js.API_KEY_ENV]: apiKey,
539
539
  ...activeOrgEnvValues(statusData)
540
540
  },
541
541
  baseUrl,
@@ -557,7 +557,7 @@ async function handleRegister(args, options) {
557
557
  }
558
558
  }
559
559
  async function handleWait(args) {
560
- const baseUrl = _chunkJO2JZUBRjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
560
+ const baseUrl = _chunkY4GRL533js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
561
561
  let timeoutSeconds = 300;
562
562
  let requestedScope;
563
563
  if (args.includes("--auth-scope")) {
@@ -581,7 +581,7 @@ async function handleWait(args) {
581
581
  const authScope = resumed.scope;
582
582
  const claimToken = _nullishCoalesce(_optionalChain([pendingClaim, 'optionalAccess', _17 => _17.claimToken]), () => ( ""));
583
583
  if (!pendingClaim) {
584
- const scopedApiKey = authScope === "folder" ? _chunkJO2JZUBRjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkJO2JZUBRjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
584
+ const scopedApiKey = authScope === "folder" ? _chunkY4GRL533js.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkY4GRL533js.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
585
585
  if (scopedApiKey) {
586
586
  console.log("Already connected.");
587
587
  return EXIT_OK;
@@ -623,8 +623,8 @@ async function handleWait(args) {
623
623
  if (apiKey) {
624
624
  saveEnvValues(
625
625
  {
626
- [_chunkJO2JZUBRjs.HOST_URL_ENV]: baseUrl,
627
- [_chunkJO2JZUBRjs.API_KEY_ENV]: apiKey,
626
+ [_chunkY4GRL533js.HOST_URL_ENV]: baseUrl,
627
+ [_chunkY4GRL533js.API_KEY_ENV]: apiKey,
628
628
  ...activeOrgEnvValues(data)
629
629
  },
630
630
  baseUrl,
@@ -648,8 +648,8 @@ async function handleWait(args) {
648
648
  return EXIT_AUTH;
649
649
  }
650
650
  async function authStatusLine(timeoutMs = 3e3) {
651
- const baseUrl = _chunkJO2JZUBRjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
652
- const apiKey = _chunkJO2JZUBRjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
651
+ const baseUrl = _chunkY4GRL533js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
652
+ const apiKey = _chunkY4GRL533js.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
653
653
  if (!apiKey) return `Auth: not connected (${baseUrl})`;
654
654
  try {
655
655
  const { status, data } = await httpJson(
@@ -672,9 +672,9 @@ async function authStatusLine(timeoutMs = 3e3) {
672
672
  }
673
673
  }
674
674
  async function handleStatus(args) {
675
- const baseUrl = _chunkJO2JZUBRjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
675
+ const baseUrl = _chunkY4GRL533js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
676
676
  const reveal = args.includes("--reveal");
677
- const jsonOutput = _chunk2I7VN65Hjs.argsWantJson.call(void 0, args);
677
+ const jsonOutput = _chunkZZD245Z2js.argsWantJson.call(void 0, args);
678
678
  const hasExplicitAuthScope = args.includes("--auth-scope");
679
679
  let authScope = null;
680
680
  if (hasExplicitAuthScope) {
@@ -715,14 +715,14 @@ async function handleStatus(args) {
715
715
  };
716
716
  hostLines.push(`Host: ${baseUrl} (unreachable)`);
717
717
  }
718
- const apiKey = authScope === "folder" ? _chunkJO2JZUBRjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkJO2JZUBRjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkJO2JZUBRjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
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);
719
719
  if (!apiKey) {
720
720
  const { claim: pendingClaim } = resolvePendingAuthClaimForResume(
721
721
  baseUrl,
722
722
  _nullishCoalesce(authScope, () => ( void 0))
723
723
  );
724
724
  if (pendingClaim) {
725
- _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
725
+ _chunkZZD245Z2js.printCommandEnvelope.call(void 0,
726
726
  {
727
727
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
728
728
  status: "pending",
@@ -743,7 +743,7 @@ async function handleStatus(args) {
743
743
  );
744
744
  return EXIT_OK;
745
745
  }
746
- _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
746
+ _chunkZZD245Z2js.printCommandEnvelope.call(void 0,
747
747
  {
748
748
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
749
749
  status: "not connected",
@@ -776,7 +776,7 @@ async function handleStatus(args) {
776
776
  }
777
777
  );
778
778
  if (status === 401 || status === 403) {
779
- _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
779
+ _chunkZZD245Z2js.printCommandEnvelope.call(void 0,
780
780
  {
781
781
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
782
782
  status: "unauthorized",
@@ -803,7 +803,7 @@ async function handleStatus(args) {
803
803
  console.error(`Auth status error (status ${status}).`);
804
804
  return EXIT_SERVER;
805
805
  }
806
- const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkJO2JZUBRjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
806
+ const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkY4GRL533js.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
807
807
  clearSatisfiedPendingClaim(
808
808
  baseUrl,
809
809
  resolvedAuthScope,
@@ -831,28 +831,28 @@ async function handleStatus(args) {
831
831
  if (apiKeyResp) {
832
832
  saveEnvValues(
833
833
  {
834
- [_chunkJO2JZUBRjs.HOST_URL_ENV]: baseUrl,
835
- [_chunkJO2JZUBRjs.API_KEY_ENV]: apiKeyResp,
834
+ [_chunkY4GRL533js.HOST_URL_ENV]: baseUrl,
835
+ [_chunkY4GRL533js.API_KEY_ENV]: apiKeyResp,
836
836
  ...activeOrgEnvValues(data)
837
837
  },
838
838
  baseUrl,
839
839
  resolvedAuthScope
840
840
  );
841
841
  if (resolvedAuthScope === "folder") {
842
- const target = _chunkJO2JZUBRjs.resolveProjectPinTarget.call(void 0, );
842
+ const target = _chunkY4GRL533js.resolveProjectPinTarget.call(void 0, );
843
843
  savedApiKeyPath = target.ok ? _path.join.call(void 0, target.dir, ".env.deepline") : null;
844
844
  } else {
845
845
  savedApiKeyPath = envFilePath(baseUrl);
846
846
  }
847
847
  }
848
- } else if (resolvedAuthScope === "folder" || _chunkJO2JZUBRjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
849
- saveEnvValues(_chunkJO2JZUBRjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
848
+ } else if (resolvedAuthScope === "folder" || _chunkY4GRL533js.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
849
+ saveEnvValues(_chunkY4GRL533js.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
850
850
  }
851
- _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
851
+ _chunkZZD245Z2js.printCommandEnvelope.call(void 0,
852
852
  {
853
853
  ...payload,
854
- ..._chunkNWIDPT7Hjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
855
- command_context: _chunkJO2JZUBRjs.resolveCliCommandContext.call(void 0,
854
+ ..._chunkHINVMRGQjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
855
+ command_context: _chunkY4GRL533js.resolveCliCommandContext.call(void 0,
856
856
  { baseUrl, apiKey },
857
857
  resolvedAuthScope
858
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 _chunkXLE7KXE7js = require('./chunk-XLE7KXE7.js');
4
+ var _chunkGDNQXLBMjs = require('./chunk-GDNQXLBM.js');
5
5
 
6
6
 
7
- var _chunkEYG336YVjs = require('./chunk-EYG336YV.js');
7
+ var _chunkWP45PUPWjs = require('./chunk-WP45PUPW.js');
8
8
 
9
9
 
10
- var _chunkKCDZWS2Bjs = require('./chunk-KCDZWS2B.js');
10
+ var _chunkUSWLB4KVjs = require('./chunk-USWLB4KV.js');
11
11
 
12
12
 
13
- var _chunk2I7VN65Hjs = require('./chunk-2I7VN65H.js');
13
+ var _chunkZZD245Z2js = require('./chunk-ZZD245Z2.js');
14
14
 
15
15
 
16
- var _chunkJO2JZUBRjs = require('./chunk-JO2JZUBR.js');
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 = _chunkKCDZWS2Bjs.resolveShellSpawn.call(void 0,
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 ? _chunkXLE7KXE7js.readNpmVersion.call(void 0, env) : options.npmVersion;
560
- const npmGlobalInstallFlags = _chunkXLE7KXE7js.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
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()]) || _chunkJO2JZUBRjs.autoDetectBaseUrl.call(void 0, )
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 = _chunkKCDZWS2Bjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
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, () => ( _chunkJO2JZUBRjs.autoDetectBaseUrl));
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 _chunkEYG336YVjs.runSkillsCommand.call(void 0, { json: true });
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
- _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1280
+ _chunkZZD245Z2js.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1281
1281
  return 0;
1282
1282
  }
1283
1283
  if (options.printCommand) {
1284
- _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
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
- _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
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}
@@ -1324,7 +1324,7 @@ To retry with full installer output, run: deepline skills install
1324
1324
  );
1325
1325
  }
1326
1326
  if (options.executeWithJson && options.json) {
1327
- _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
1327
+ _chunkZZD245Z2js.printCommandEnvelope.call(void 0,
1328
1328
  {
1329
1329
  ok: true,
1330
1330
  pinnedVersion
@@ -4,20 +4,20 @@ import {
4
4
  resolveUpdatePlan,
5
5
  runAutomaticUpdatePlan,
6
6
  shouldRunCliAutoUpdate
7
- } from "./chunk-EBAS3UT2.mjs";
7
+ } from "./chunk-DKKAJ3U2.mjs";
8
8
  import {
9
9
  isCiEnvironment
10
- } from "./chunk-ZVW7EWTC.mjs";
10
+ } from "./chunk-BLHQRETG.mjs";
11
11
  import {
12
12
  addJsonNotice,
13
13
  isJsonOutputMode
14
- } from "./chunk-VFHIYWMC.mjs";
14
+ } from "./chunk-6DMLWM7L.mjs";
15
15
  import {
16
16
  resolveApiKeyForBaseUrl
17
- } from "./chunk-4NIGNT7X.mjs";
17
+ } from "./chunk-KR2XEI5T.mjs";
18
18
  import {
19
19
  SDK_VERSION
20
- } from "./chunk-TNQOR6XQ.mjs";
20
+ } from "./chunk-FAT6CUZK.mjs";
21
21
 
22
22
  // src/cli/compatibility-catalog.ts
23
23
  var readers = /* @__PURE__ */ new WeakMap();
@@ -6,7 +6,7 @@ var _chunkJO5FFSR7js = require('./chunk-JO5FFSR7.js');
6
6
 
7
7
 
8
8
 
9
- var _chunk2I7VN65Hjs = require('./chunk-2I7VN65H.js');
9
+ var _chunkZZD245Z2js = require('./chunk-ZZD245Z2.js');
10
10
 
11
11
  // src/cli/describe-options.ts
12
12
  function addDescribeOptions(command, options = {}) {
@@ -247,7 +247,7 @@ function projectRunDatasetCell(value) {
247
247
  const logicalValue = parseSerializedDatasetValue(value);
248
248
  if (logicalValue === null || logicalValue === void 0) return logicalValue;
249
249
  if (typeof logicalValue === "object") {
250
- return _chunk2I7VN65Hjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
250
+ return _chunkZZD245Z2js.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
251
251
  }
252
252
  return logicalValue;
253
253
  }
@@ -642,7 +642,7 @@ function csvText(rows, columns = []) {
642
642
  rows: rows.map((row) => record(row) ? row : { value: row }),
643
643
  columns
644
644
  });
645
- return _chunk2I7VN65Hjs.csvStringFromRows.call(void 0, projection.rows, projection.columns);
645
+ return _chunkZZD245Z2js.csvStringFromRows.call(void 0, projection.rows, projection.columns);
646
646
  }
647
647
  function writeExecutionOutput(result, options) {
648
648
  let temp;