deepline 0.3.501 → 0.3.502

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 (134) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +2 -2
  3. package/dist/bundling-sources/shared_libs/play-runtime/deployment/vercel-fly-rollback-alignment.ts +29 -14
  4. package/dist/bundling-sources/shared_libs/play-runtime/prebuilt-result-quality.ts +264 -0
  5. package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +5 -0
  6. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +32 -0
  7. package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-oidc.ts +30 -8
  8. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +22 -4
  9. package/dist/bundling-sources/shared_libs/product-notifications/slack-delivery.ts +2 -0
  10. package/dist/cli/{auth-6ECHXOI4.mjs → auth-EFHLOVG4.mjs} +5 -5
  11. package/dist/cli/auth-VM3IKP5F.js +43 -0
  12. package/dist/cli/{billing-75NZYRXA.mjs → billing-Q5XKEYPP.mjs} +6 -6
  13. package/dist/cli/{billing-QRR7O6BD.js → billing-SKT2VE34.js} +79 -79
  14. package/dist/cli/{chunk-RFV7PPLS.mjs → chunk-2JS3H6H6.mjs} +3 -3
  15. package/dist/cli/{chunk-66XDYH5T.mjs → chunk-2MVIS2UI.mjs} +2 -2
  16. package/dist/cli/{chunk-XEBFJ2PH.js → chunk-2S2F6YSI.js} +41 -41
  17. package/dist/cli/{chunk-463ZOO2L.js → chunk-32YQBJON.js} +7 -7
  18. package/dist/cli/{chunk-EOO7OSS4.mjs → chunk-3KEZVGGV.mjs} +4 -4
  19. package/dist/cli/{chunk-EHVFBD36.mjs → chunk-3MJSWVQ2.mjs} +1 -1
  20. package/dist/cli/{chunk-5S7MLAI7.mjs → chunk-4CCMD7QM.mjs} +20 -19
  21. package/dist/cli/{chunk-T7E3XEPG.mjs → chunk-4WTC5SSN.mjs} +7 -7
  22. package/dist/cli/{chunk-NA3J3F2Z.mjs → chunk-54QXWK3C.mjs} +1 -1
  23. package/dist/cli/{chunk-V5NHEYU7.mjs → chunk-7ZYSXSJJ.mjs} +5 -5
  24. package/dist/cli/{chunk-J6SVNKRP.js → chunk-AJL2Q6IQ.js} +2 -2
  25. package/dist/cli/{chunk-QQ3JJYE2.js → chunk-DKAMCJIT.js} +9 -9
  26. package/dist/cli/{chunk-C5R3UH5V.mjs → chunk-DRBD4IYQ.mjs} +1 -1
  27. package/dist/cli/{chunk-VVEMPC2I.js → chunk-DYHTXGLX.js} +2 -2
  28. package/dist/cli/{chunk-SV2TEZ2M.js → chunk-EUWRKWT4.js} +4 -4
  29. package/dist/cli/{chunk-GBICEYUA.js → chunk-FVM4PS5Q.js} +116 -8
  30. package/dist/cli/{chunk-I42EOZKQ.js → chunk-FWDAEWCD.js} +5 -5
  31. package/dist/cli/{chunk-FS7XYDOF.js → chunk-GINKIZ7S.js} +16 -16
  32. package/dist/cli/{chunk-VTDAJZIJ.mjs → chunk-HIVRCTDR.mjs} +1 -1
  33. package/dist/cli/{chunk-OKOXB3LY.mjs → chunk-HMZF2CSP.mjs} +2 -2
  34. package/dist/cli/{chunk-EKF4DKUA.js → chunk-IL666WJE.js} +5 -5
  35. package/dist/cli/{chunk-HDKXSHGA.js → chunk-JFBJLNBI.js} +53 -53
  36. package/dist/cli/{chunk-KSHAFYYG.mjs → chunk-JFUXUSKB.mjs} +112 -4
  37. package/dist/cli/{chunk-TOE7LHEA.js → chunk-JL6H4H3G.js} +6 -6
  38. package/dist/cli/{chunk-BOFCF4L7.js → chunk-JLYDLK6X.js} +3 -3
  39. package/dist/cli/{chunk-O3DDVP7Z.mjs → chunk-L5CTJY74.mjs} +1 -1
  40. package/dist/cli/{chunk-4OXHLTCP.js → chunk-LA3UYRVZ.js} +1 -1
  41. package/dist/cli/{chunk-Z6AUOV7D.mjs → chunk-MP5QY4A2.mjs} +2 -2
  42. package/dist/cli/{chunk-ZUQHQGC5.mjs → chunk-MYUISF3P.mjs} +5 -5
  43. package/dist/cli/{chunk-WJUDAHIQ.mjs → chunk-NKLM4J4X.mjs} +1 -1
  44. package/dist/cli/{chunk-UJRN6YP6.mjs → chunk-NXVYLX3F.mjs} +2 -2
  45. package/dist/cli/{chunk-J74N375S.mjs → chunk-NZXB27TP.mjs} +4 -4
  46. package/dist/cli/{chunk-VL72UKNW.js → chunk-OEUMXKR5.js} +26 -26
  47. package/dist/cli/{chunk-7L6QNHUL.mjs → chunk-OFBLT2LQ.mjs} +1 -1
  48. package/dist/cli/{chunk-PNF2ZU4R.js → chunk-OVZOMSH2.js} +8 -8
  49. package/dist/cli/{chunk-CJJ7JBM2.js → chunk-Q3NM6ZL3.js} +19 -19
  50. package/dist/cli/{chunk-APAHMCGR.js → chunk-QNELA7SX.js} +53 -53
  51. package/dist/cli/{chunk-EKZQ5LQO.js → chunk-QOJBRCAS.js} +3 -3
  52. package/dist/cli/{chunk-MSLXAVVK.mjs → chunk-R5F7JXT4.mjs} +2 -2
  53. package/dist/cli/{chunk-N2TJJNCW.js → chunk-TAK3MVXY.js} +270 -269
  54. package/dist/cli/{chunk-UR7JOSLT.js → chunk-UOANF3DR.js} +7 -7
  55. package/dist/cli/{chunk-MADTHS56.mjs → chunk-W5CHE5Q2.mjs} +1 -1
  56. package/dist/cli/{chunk-W6JTHVPF.js → chunk-WKFAX2K7.js} +21 -21
  57. package/dist/cli/{chunk-KTOAJP4N.js → chunk-X5MGQ7UT.js} +6 -6
  58. package/dist/cli/{chunk-RU5ROUFO.js → chunk-XMKUJ44Z.js} +5 -5
  59. package/dist/cli/{chunk-5X4AUFYW.js → chunk-YDXEXVBV.js} +7 -7
  60. package/dist/cli/{chunk-PXIF74UJ.mjs → chunk-YL2CCF6T.mjs} +4 -4
  61. package/dist/cli/{chunk-ZUOKIBLJ.mjs → chunk-YWOQYYYS.mjs} +2 -2
  62. package/dist/cli/{chunk-T4U245E4.mjs → chunk-Z2H7OQ6E.mjs} +2 -2
  63. package/dist/cli/{chunk-VD2374K7.mjs → chunk-ZNB6GR3P.mjs} +1 -1
  64. package/dist/cli/{csv-RZJ4SOIL.mjs → csv-6AEPKKCO.mjs} +4 -4
  65. package/dist/cli/{csv-JXX2LXK5.js → csv-OXGSCV75.js} +13 -13
  66. package/dist/cli/{db-T2KJNONM.js → db-6NVHDUZY.js} +27 -27
  67. package/dist/cli/{db-MUTT2NWI.mjs → db-K3KRK4CZ.mjs} +6 -6
  68. package/dist/cli/describe-JOUAXXPE.js +49 -0
  69. package/dist/cli/{describe-K3UMAAVO.mjs → describe-P3ZJS7TQ.mjs} +19 -20
  70. package/dist/cli/describe-core.js +3 -4
  71. package/dist/cli/describe-core.mjs +2 -3
  72. package/dist/cli/{executions-7HSLDRHR.js → executions-2C2FFG52.js} +8 -8
  73. package/dist/cli/{executions-PHS4R2OX.mjs → executions-I7XW6WWK.mjs} +6 -6
  74. package/dist/cli/{feedback-BJZRM637.js → feedback-47B57A5Y.js} +8 -8
  75. package/dist/cli/{feedback-RWMDCIDF.mjs → feedback-RSTNBJAI.mjs} +4 -4
  76. package/dist/cli/{git-YW6VHYZG.mjs → git-3G5AFKBT.mjs} +5 -5
  77. package/dist/cli/git-OPKIC6JQ.js +25 -0
  78. package/dist/cli/index.js +137 -137
  79. package/dist/cli/index.mjs +40 -40
  80. package/dist/cli/{legacy-noops-5UBSUPGG.mjs → legacy-noops-NQ262TKL.mjs} +5 -5
  81. package/dist/cli/{legacy-noops-2WUV2XD7.js → legacy-noops-P665PBG4.js} +8 -8
  82. package/dist/cli/{monitors-YZZRKSTG.js → monitors-IPWAD7LS.js} +95 -95
  83. package/dist/cli/{monitors-HWOQO3OK.mjs → monitors-KUPZODZS.mjs} +7 -7
  84. package/dist/cli/{org-JY7HLHBA.js → org-WFC3N672.js} +72 -72
  85. package/dist/cli/{org-NCXT6RB4.mjs → org-ZCQGEM3L.mjs} +6 -6
  86. package/dist/cli/{pages-6ZOHXL6X.js → pages-N5BNC67L.js} +18 -18
  87. package/dist/cli/{pages-QJO53QAT.mjs → pages-VE66IU7B.mjs} +6 -6
  88. package/dist/cli/{play-SQRS7JN3.mjs → play-EIMDIAJB.mjs} +17 -17
  89. package/dist/cli/{play-TAYGSR35.js → play-NKIRJSKX.js} +315 -315
  90. package/dist/cli/{providers-3IR3N5DT.mjs → providers-KDTJ63ED.mjs} +6 -6
  91. package/dist/cli/{providers-4Q5LOIQ5.js → providers-XU3AGY2F.js} +9 -9
  92. package/dist/cli/{quickstart-ITNUZENY.js → quickstart-OSCHOSXU.js} +6 -6
  93. package/dist/cli/{quickstart-KCZCYO6B.mjs → quickstart-TXFXUODF.mjs} +4 -4
  94. package/dist/cli/{run-YQ57LMKN.js → run-ET2KVTPK.js} +43 -44
  95. package/dist/cli/{run-JCWRWDSK.mjs → run-ODGML35U.mjs} +24 -25
  96. package/dist/cli/search-6U54Y3OK.js +32 -0
  97. package/dist/cli/{search-FUM27HQP.mjs → search-DK67K6PR.mjs} +7 -7
  98. package/dist/cli/{search-output-EWEYT34M.mjs → search-output-6SOKQTCW.mjs} +53 -75
  99. package/dist/cli/{search-output-XAMWKRJH.js → search-output-KXP4FA62.js} +58 -80
  100. package/dist/cli/{secrets-YTI4IAKR.mjs → secrets-C6SYTMU7.mjs} +6 -6
  101. package/dist/cli/{secrets-2IRRRZBL.js → secrets-WPS6NMNK.js} +15 -15
  102. package/dist/cli/{sessions-HWTRDXBQ.js → sessions-IP562J5Z.js} +6 -6
  103. package/dist/cli/{sessions-EFS4KUPF.mjs → sessions-PXVOH34X.mjs} +5 -5
  104. package/dist/cli/{settings-NTOO42DY.mjs → settings-FBUQGYVJ.mjs} +11 -11
  105. package/dist/cli/{settings-FRVEIOKR.js → settings-SUDUIVMY.js} +78 -78
  106. package/dist/cli/{setup-6ZIOAE2V.js → setup-I5H6IOEY.js} +49 -49
  107. package/dist/cli/{setup-PAVQPALX.mjs → setup-JSIMTR73.mjs} +9 -9
  108. package/dist/cli/{skills-3O3XTPUM.mjs → skills-FJQ3LX6N.mjs} +7 -7
  109. package/dist/cli/skills-VHININXC.js +36 -0
  110. package/dist/cli/{tools-7QSB65UL.mjs → tools-IGBK4BVE.mjs} +17 -18
  111. package/dist/cli/tools-XMBMHVKF.js +56 -0
  112. package/dist/cli/{update-T6CYS5ZT.mjs → update-7MTT6F5K.mjs} +9 -9
  113. package/dist/cli/update-H7JVW43I.js +34 -0
  114. package/dist/cli/{workflow-OMSXZ73T.mjs → workflow-PM2J2OU3.mjs} +7 -7
  115. package/dist/cli/{workflow-4KMJBMGX.js → workflow-UX3ZX6BQ.js} +17 -17
  116. package/dist/index.js +9 -9
  117. package/dist/index.mjs +6 -6
  118. package/dist/install-integrity.json +103 -104
  119. package/dist/release.d.mts +1 -1
  120. package/dist/release.d.ts +1 -1
  121. package/dist/release.js +2 -2
  122. package/dist/release.mjs +1 -1
  123. package/dist/server.js +5 -5
  124. package/dist/server.mjs +3 -3
  125. package/package.json +1 -1
  126. package/dist/cli/auth-VP7PMXKQ.js +0 -43
  127. package/dist/cli/chunk-XK5DMLZE.js +0 -111
  128. package/dist/cli/chunk-XRDXNAAY.mjs +0 -111
  129. package/dist/cli/describe-SEXUJLE4.js +0 -50
  130. package/dist/cli/git-VNS7UQWN.js +0 -25
  131. package/dist/cli/search-I425FRTK.js +0 -32
  132. package/dist/cli/skills-6ZNMO2PR.js +0 -36
  133. package/dist/cli/tools-DPV2JES6.js +0 -57
  134. package/dist/cli/update-Q5GUDEAW.js +0 -34
package/dist/server.js CHANGED
@@ -1,13 +1,13 @@
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 _chunkUR7JOSLTjs = require('./cli/chunk-UR7JOSLT.js');
3
+ var _chunkUOANF3DRjs = require('./cli/chunk-UOANF3DR.js');
4
4
  require('./cli/chunk-E4CABWXL.js');
5
5
  require('./cli/chunk-RNSHCJME.js');
6
6
  require('./cli/chunk-NMU3VR5U.js');
7
7
  require('./cli/chunk-WSGXBROE.js');
8
8
 
9
9
 
10
- var _chunkSV2TEZ2Mjs = require('./cli/chunk-SV2TEZ2M.js');
10
+ var _chunkEUWRKWT4js = require('./cli/chunk-EUWRKWT4.js');
11
11
 
12
12
 
13
13
 
@@ -24,12 +24,12 @@ require('./cli/chunk-XNYIZMNQ.js');
24
24
 
25
25
 
26
26
  var _chunkDIAWYWT5js = require('./cli/chunk-DIAWYWT5.js');
27
- require('./cli/chunk-4OXHLTCP.js');
27
+ require('./cli/chunk-LA3UYRVZ.js');
28
28
  require('./cli/chunk-OG64RBAC.js');
29
29
  require('./cli/chunk-COGTRVWW.js');
30
30
 
31
31
  // src/server.ts
32
- var DeeplineClient2 = class extends _chunkUR7JOSLTjs.DeeplineClient {
32
+ var DeeplineClient2 = class extends _chunkUOANF3DRjs.DeeplineClient {
33
33
  constructor(options) {
34
34
  const apiKey = _optionalChain([options, 'access', _ => _.apiKey, 'optionalAccess', _2 => _2.trim, 'call', _3 => _3()]);
35
35
  if (!apiKey)
@@ -57,7 +57,7 @@ var DeeplineClient2 = class extends _chunkUR7JOSLTjs.DeeplineClient {
57
57
  maxRetries: _nullishCoalesce(options.maxRetries, () => ( 3)),
58
58
  ...options.headers ? { headers: { ...options.headers } } : {}
59
59
  };
60
- super(config, new (0, _chunkSV2TEZ2Mjs.HttpClient)(config), options.timeout);
60
+ super(config, new (0, _chunkEUWRKWT4js.HttpClient)(config), options.timeout);
61
61
  }
62
62
  };
63
63
 
package/dist/server.mjs CHANGED
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  DeeplineClient
3
- } from "./cli/chunk-VTDAJZIJ.mjs";
3
+ } from "./cli/chunk-HIVRCTDR.mjs";
4
4
  import "./cli/chunk-L2VKAASU.mjs";
5
5
  import "./cli/chunk-N4TR6QRI.mjs";
6
6
  import "./cli/chunk-S3A4IXBQ.mjs";
7
7
  import "./cli/chunk-BMCRTI6Z.mjs";
8
8
  import {
9
9
  HttpClient
10
- } from "./cli/chunk-EHVFBD36.mjs";
10
+ } from "./cli/chunk-3MJSWVQ2.mjs";
11
11
  import {
12
12
  AuthError,
13
13
  ConfigError,
@@ -24,7 +24,7 @@ import {
24
24
  isProviderUnavailable,
25
25
  isProviderWaterfallUnavailableError
26
26
  } from "./cli/chunk-HBL4PM5Q.mjs";
27
- import "./cli/chunk-7L6QNHUL.mjs";
27
+ import "./cli/chunk-OFBLT2LQ.mjs";
28
28
  import "./cli/chunk-WZYKRD7T.mjs";
29
29
  import "./cli/chunk-KRD6H754.mjs";
30
30
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deepline",
3
- "version": "0.3.501",
3
+ "version": "0.3.502",
4
4
  "description": "GTM data CLI and TypeScript SDK for coding agents",
5
5
  "license": "MIT",
6
6
  "homepage": "https://code.deepline.com",
@@ -1,43 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
-
5
-
6
-
7
-
8
-
9
-
10
-
11
-
12
-
13
-
14
-
15
-
16
-
17
- var _chunkHDKXSHGAjs = require('./chunk-HDKXSHGA.js');
18
- require('./chunk-5X4AUFYW.js');
19
- require('./chunk-BOFCF4L7.js');
20
- require('./chunk-SV2TEZ2M.js');
21
- require('./chunk-ALJJRZNJ.js');
22
- require('./chunk-XNYIZMNQ.js');
23
- require('./chunk-DIAWYWT5.js');
24
- require('./chunk-4OXHLTCP.js');
25
- require('./chunk-OG64RBAC.js');
26
- require('./chunk-COGTRVWW.js');
27
-
28
-
29
-
30
-
31
-
32
-
33
-
34
-
35
-
36
-
37
-
38
-
39
-
40
-
41
-
42
-
43
- exports.EXIT_WORKSPACE_MISMATCH = _chunkHDKXSHGAjs.EXIT_WORKSPACE_MISMATCH; exports.authStatusLine = _chunkHDKXSHGAjs.authStatusLine; exports.clearPendingClaim = _chunkHDKXSHGAjs.clearPendingClaim; exports.clearSatisfiedPendingClaim = _chunkHDKXSHGAjs.clearSatisfiedPendingClaim; exports.handleRegister = _chunkHDKXSHGAjs.handleRegister; exports.handleStatus = _chunkHDKXSHGAjs.handleStatus; exports.handleWait = _chunkHDKXSHGAjs.handleWait; exports.httpJson = _chunkHDKXSHGAjs.httpJson; exports.readPendingAuthClaim = _chunkHDKXSHGAjs.readPendingAuthClaim; exports.readStatusBanner = _chunkHDKXSHGAjs.readStatusBanner; exports.registerAuthCommands = _chunkHDKXSHGAjs.registerAuthCommands; exports.reportApprovalLinkShown = _chunkHDKXSHGAjs.reportApprovalLinkShown; exports.reportSetupCompleted = _chunkHDKXSHGAjs.reportSetupCompleted; exports.resolvePendingAuthClaimForResume = _chunkHDKXSHGAjs.resolvePendingAuthClaimForResume; exports.statusBannerLine = _chunkHDKXSHGAjs.statusBannerLine;
@@ -1,111 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }// src/cli/tool-description.ts
2
- function observedMaxText(pricing) {
3
- const max = recordValue(recordValue(pricing).observedMax);
4
- if (typeof max.creditsPerCall !== "number" || max.creditsPerCall <= 0)
5
- return "";
6
- const avg = typeof max.avgCreditsPerCall === "number" && typeof max.sampleCount === "number" ? `${max.avgCreditsPerCall} avg, ` : "";
7
- const calls = avg && typeof max.sampleCount === "number" ? `${max.sampleCount} observed, ` : "";
8
- return `observed ${avg}${max.creditsPerCall} max credits/call (${calls}last ${String(max.windowDays)} days)`;
9
- }
10
- var Capability = class _Capability {
11
- #catalogEntry;
12
- constructor(catalogEntry) {
13
- this.#catalogEntry = catalogEntry;
14
- }
15
- static fromCatalogEntry(catalogEntry) {
16
- return new _Capability(catalogEntry);
17
- }
18
- describe() {
19
- return CapabilityDescription.fromCatalogEntry(this.#catalogEntry);
20
- }
21
- };
22
- var CapabilityDescription = class _CapabilityDescription {
23
- #catalogEntry;
24
- constructor(catalogEntry) {
25
- this.#catalogEntry = catalogEntry;
26
- }
27
- static fromCatalogEntry(catalogEntry) {
28
- return new _CapabilityDescription(catalogEntry);
29
- }
30
- /**
31
- * The customer price already resolved by the catalog. This intentionally
32
- * omits provider-price fields, even when a catalog Adapter carried them.
33
- */
34
- customerCost() {
35
- const legacyCost = recordValue(this.#catalogEntry.cost);
36
- const pricing = recordValue(this.#catalogEntry.pricing);
37
- const unit = stringValue(pricing.unit);
38
- const legacyPricingModel = stringValue(
39
- _nullishCoalesce(legacyCost.pricingModel, () => ( legacyCost.pricing_model))
40
- );
41
- const pricingModel = unit === "call" ? "fixed" : unit === "result" || unit === "page" ? `per_${unit}` : unit === "usage" ? "provider_usage" : legacyPricingModel;
42
- const canonicalCredits = pricingNumber(
43
- pricing,
44
- "creditsPerUnit",
45
- "credits_per_unit",
46
- _nullishCoalesce(this.#catalogEntry.deeplineCreditsPerPricingUnit, () => ( this.#catalogEntry.deepline_credits_per_pricing_unit))
47
- );
48
- const canonicalUsd = pricingNumber(
49
- pricing,
50
- "usdPerUnit",
51
- "usd_per_unit",
52
- _nullishCoalesce(this.#catalogEntry.deeplineUsdPerPricingUnit, () => ( this.#catalogEntry.deepline_usd_per_pricing_unit))
53
- );
54
- const billingSource = stringValue(
55
- _nullishCoalesce(this.#catalogEntry.billingSource, () => ( this.#catalogEntry.billing_source))
56
- );
57
- const billingSourceLabel = stringValue(
58
- _nullishCoalesce(this.#catalogEntry.billingSourceLabel, () => ( this.#catalogEntry.billing_source_label))
59
- );
60
- const isFree = billingSource === "free";
61
- return {
62
- pricingModel: pricingModel || null,
63
- unit: unit || null,
64
- displayText: isFree ? "Free" : stringValue(_nullishCoalesce(pricing.displayText, () => ( pricing.display_text))),
65
- summary: isFree ? null : stringValue(pricing.summary),
66
- billingMode: stringValue(
67
- _nullishCoalesce(legacyCost.billingMode, () => ( legacyCost.billing_mode))
68
- ),
69
- billingSource,
70
- billingSourceLabel,
71
- deeplineCreditsPerPricingUnit: isFree ? 0 : canonicalCredits,
72
- deeplineUsdPerPricingUnit: isFree ? 0 : canonicalUsd,
73
- ...pricing.estimatedRange && !isFree && billingSource !== "own_provider_credentials" ? {
74
- estimatedRange: pricing.estimatedRange,
75
- details: Array.isArray(pricing.details) ? pricing.details.filter(
76
- (value) => typeof value === "string"
77
- ) : []
78
- } : {},
79
- ...pricing.observedReference && !isFree && billingSource !== "own_provider_credentials" ? {
80
- observedReference: pricing.observedReference,
81
- details: Array.isArray(pricing.details) ? pricing.details.filter(
82
- (value) => typeof value === "string"
83
- ) : []
84
- } : {},
85
- ...pricing.observedMax && !isFree && billingSource !== "own_provider_credentials" ? {
86
- observedMax: pricing.observedMax
87
- } : {}
88
- };
89
- }
90
- };
91
- function recordValue(value) {
92
- return value && typeof value === "object" && !Array.isArray(value) ? value : {};
93
- }
94
- function stringValue(value) {
95
- return typeof value === "string" && value.trim() ? value : null;
96
- }
97
- function numberValue(value) {
98
- return typeof value === "number" && Number.isFinite(value) ? value : null;
99
- }
100
- function pricingNumber(pricing, canonicalKey, aliasKey, legacyValue) {
101
- for (const key of [canonicalKey, aliasKey]) {
102
- if (Object.prototype.hasOwnProperty.call(pricing, key))
103
- return numberValue(pricing[key]);
104
- }
105
- return numberValue(legacyValue);
106
- }
107
-
108
-
109
-
110
-
111
- exports.observedMaxText = observedMaxText; exports.Capability = Capability;
@@ -1,111 +0,0 @@
1
- // src/cli/tool-description.ts
2
- function observedMaxText(pricing) {
3
- const max = recordValue(recordValue(pricing).observedMax);
4
- if (typeof max.creditsPerCall !== "number" || max.creditsPerCall <= 0)
5
- return "";
6
- const avg = typeof max.avgCreditsPerCall === "number" && typeof max.sampleCount === "number" ? `${max.avgCreditsPerCall} avg, ` : "";
7
- const calls = avg && typeof max.sampleCount === "number" ? `${max.sampleCount} observed, ` : "";
8
- return `observed ${avg}${max.creditsPerCall} max credits/call (${calls}last ${String(max.windowDays)} days)`;
9
- }
10
- var Capability = class _Capability {
11
- #catalogEntry;
12
- constructor(catalogEntry) {
13
- this.#catalogEntry = catalogEntry;
14
- }
15
- static fromCatalogEntry(catalogEntry) {
16
- return new _Capability(catalogEntry);
17
- }
18
- describe() {
19
- return CapabilityDescription.fromCatalogEntry(this.#catalogEntry);
20
- }
21
- };
22
- var CapabilityDescription = class _CapabilityDescription {
23
- #catalogEntry;
24
- constructor(catalogEntry) {
25
- this.#catalogEntry = catalogEntry;
26
- }
27
- static fromCatalogEntry(catalogEntry) {
28
- return new _CapabilityDescription(catalogEntry);
29
- }
30
- /**
31
- * The customer price already resolved by the catalog. This intentionally
32
- * omits provider-price fields, even when a catalog Adapter carried them.
33
- */
34
- customerCost() {
35
- const legacyCost = recordValue(this.#catalogEntry.cost);
36
- const pricing = recordValue(this.#catalogEntry.pricing);
37
- const unit = stringValue(pricing.unit);
38
- const legacyPricingModel = stringValue(
39
- legacyCost.pricingModel ?? legacyCost.pricing_model
40
- );
41
- const pricingModel = unit === "call" ? "fixed" : unit === "result" || unit === "page" ? `per_${unit}` : unit === "usage" ? "provider_usage" : legacyPricingModel;
42
- const canonicalCredits = pricingNumber(
43
- pricing,
44
- "creditsPerUnit",
45
- "credits_per_unit",
46
- this.#catalogEntry.deeplineCreditsPerPricingUnit ?? this.#catalogEntry.deepline_credits_per_pricing_unit
47
- );
48
- const canonicalUsd = pricingNumber(
49
- pricing,
50
- "usdPerUnit",
51
- "usd_per_unit",
52
- this.#catalogEntry.deeplineUsdPerPricingUnit ?? this.#catalogEntry.deepline_usd_per_pricing_unit
53
- );
54
- const billingSource = stringValue(
55
- this.#catalogEntry.billingSource ?? this.#catalogEntry.billing_source
56
- );
57
- const billingSourceLabel = stringValue(
58
- this.#catalogEntry.billingSourceLabel ?? this.#catalogEntry.billing_source_label
59
- );
60
- const isFree = billingSource === "free";
61
- return {
62
- pricingModel: pricingModel || null,
63
- unit: unit || null,
64
- displayText: isFree ? "Free" : stringValue(pricing.displayText ?? pricing.display_text),
65
- summary: isFree ? null : stringValue(pricing.summary),
66
- billingMode: stringValue(
67
- legacyCost.billingMode ?? legacyCost.billing_mode
68
- ),
69
- billingSource,
70
- billingSourceLabel,
71
- deeplineCreditsPerPricingUnit: isFree ? 0 : canonicalCredits,
72
- deeplineUsdPerPricingUnit: isFree ? 0 : canonicalUsd,
73
- ...pricing.estimatedRange && !isFree && billingSource !== "own_provider_credentials" ? {
74
- estimatedRange: pricing.estimatedRange,
75
- details: Array.isArray(pricing.details) ? pricing.details.filter(
76
- (value) => typeof value === "string"
77
- ) : []
78
- } : {},
79
- ...pricing.observedReference && !isFree && billingSource !== "own_provider_credentials" ? {
80
- observedReference: pricing.observedReference,
81
- details: Array.isArray(pricing.details) ? pricing.details.filter(
82
- (value) => typeof value === "string"
83
- ) : []
84
- } : {},
85
- ...pricing.observedMax && !isFree && billingSource !== "own_provider_credentials" ? {
86
- observedMax: pricing.observedMax
87
- } : {}
88
- };
89
- }
90
- };
91
- function recordValue(value) {
92
- return value && typeof value === "object" && !Array.isArray(value) ? value : {};
93
- }
94
- function stringValue(value) {
95
- return typeof value === "string" && value.trim() ? value : null;
96
- }
97
- function numberValue(value) {
98
- return typeof value === "number" && Number.isFinite(value) ? value : null;
99
- }
100
- function pricingNumber(pricing, canonicalKey, aliasKey, legacyValue) {
101
- for (const key of [canonicalKey, aliasKey]) {
102
- if (Object.prototype.hasOwnProperty.call(pricing, key))
103
- return numberValue(pricing[key]);
104
- }
105
- return numberValue(legacyValue);
106
- }
107
-
108
- export {
109
- observedMaxText,
110
- Capability
111
- };
@@ -1,50 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
-
5
-
6
- var _chunkCJJ7JBM2js = require('./chunk-CJJ7JBM2.js');
7
- require('./chunk-N2TJJNCW.js');
8
- require('./chunk-KTOAJP4N.js');
9
- require('./chunk-463ZOO2L.js');
10
- require('./chunk-D3BCSAN7.js');
11
-
12
-
13
- var _chunkI42EOZKQjs = require('./chunk-I42EOZKQ.js');
14
- require('./chunk-GBICEYUA.js');
15
- require('./chunk-JO5FFSR7.js');
16
- require('./chunk-AID3OYVJ.js');
17
- require('./chunk-XK5DMLZE.js');
18
- require('./chunk-J33TSWO5.js');
19
- require('./chunk-HGFFYVXN.js');
20
- require('./chunk-RU5ROUFO.js');
21
- require('./chunk-BLMB4N63.js');
22
- require('./chunk-UR7JOSLT.js');
23
- require('./chunk-E4CABWXL.js');
24
- require('./chunk-RNSHCJME.js');
25
- require('./chunk-NMU3VR5U.js');
26
- require('./chunk-WSGXBROE.js');
27
- require('./chunk-W6JTHVPF.js');
28
- require('./chunk-J6SVNKRP.js');
29
- require('./chunk-FS7XYDOF.js');
30
- require('./chunk-VVEMPC2I.js');
31
- require('./chunk-XEBFJ2PH.js');
32
- require('./chunk-APAHMCGR.js');
33
- require('./chunk-EKZQ5LQO.js');
34
- require('./chunk-5X4AUFYW.js');
35
- require('./chunk-BOFCF4L7.js');
36
- require('./chunk-SV2TEZ2M.js');
37
- require('./chunk-ALJJRZNJ.js');
38
- require('./chunk-XNYIZMNQ.js');
39
- require('./chunk-DIAWYWT5.js');
40
- require('./chunk-4OXHLTCP.js');
41
- require('./chunk-OG64RBAC.js');
42
- require('./chunk-RLX5ZFNX.js');
43
- require('./chunk-COGTRVWW.js');
44
-
45
-
46
-
47
-
48
-
49
-
50
- exports.DEEPLINE_NAMESPACE = _chunkI42EOZKQjs.DEEPLINE_NAMESPACE; exports.describeAnything = _chunkCJJ7JBM2js.describeAnything; exports.findNamed = _chunkCJJ7JBM2js.findNamed; exports.nothingNamed = _chunkCJJ7JBM2js.nothingNamed; exports.registerDescribeCommand = _chunkCJJ7JBM2js.registerDescribeCommand;
@@ -1,25 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
-
5
-
6
-
7
-
8
- var _chunkVL72UKNWjs = require('./chunk-VL72UKNW.js');
9
- require('./chunk-5X4AUFYW.js');
10
- require('./chunk-BOFCF4L7.js');
11
- require('./chunk-SV2TEZ2M.js');
12
- require('./chunk-ALJJRZNJ.js');
13
- require('./chunk-XNYIZMNQ.js');
14
- require('./chunk-DIAWYWT5.js');
15
- require('./chunk-4OXHLTCP.js');
16
- require('./chunk-OG64RBAC.js');
17
- require('./chunk-COGTRVWW.js');
18
-
19
-
20
-
21
-
22
-
23
-
24
-
25
- exports.handleDeploymentGet = _chunkVL72UKNWjs.handleDeploymentGet; exports.handleDeploymentsList = _chunkVL72UKNWjs.handleDeploymentsList; exports.registerGitCommands = _chunkVL72UKNWjs.registerGitCommands; exports.renderDeployment = _chunkVL72UKNWjs.renderDeployment; exports.renderDeploymentMonitorLines = _chunkVL72UKNWjs.renderDeploymentMonitorLines; exports.renderDeploymentPlayLines = _chunkVL72UKNWjs.renderDeploymentPlayLines;
@@ -1,32 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
-
5
-
6
-
7
-
8
- var _chunk463ZOO2Ljs = require('./chunk-463ZOO2L.js');
9
- require('./chunk-D3BCSAN7.js');
10
- require('./chunk-RU5ROUFO.js');
11
- require('./chunk-UR7JOSLT.js');
12
- require('./chunk-E4CABWXL.js');
13
- require('./chunk-RNSHCJME.js');
14
- require('./chunk-NMU3VR5U.js');
15
- require('./chunk-WSGXBROE.js');
16
- require('./chunk-5X4AUFYW.js');
17
- require('./chunk-BOFCF4L7.js');
18
- require('./chunk-SV2TEZ2M.js');
19
- require('./chunk-ALJJRZNJ.js');
20
- require('./chunk-XNYIZMNQ.js');
21
- require('./chunk-DIAWYWT5.js');
22
- require('./chunk-4OXHLTCP.js');
23
- require('./chunk-OG64RBAC.js');
24
- require('./chunk-COGTRVWW.js');
25
-
26
-
27
-
28
-
29
-
30
-
31
-
32
- exports.SEARCH_TYPES = _chunk463ZOO2Ljs.SEARCH_TYPES; exports.appendCsv = _chunk463ZOO2Ljs.appendCsv; exports.parseTypes = _chunk463ZOO2Ljs.parseTypes; exports.pointAtDescribe = _chunk463ZOO2Ljs.pointAtDescribe; exports.registerDeprecatedSearchCommand = _chunk463ZOO2Ljs.registerDeprecatedSearchCommand; exports.registerSearchCommand = _chunk463ZOO2Ljs.registerSearchCommand;
@@ -1,36 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
-
5
-
6
-
7
-
8
-
9
-
10
-
11
-
12
- var _chunkXEBFJ2PHjs = require('./chunk-XEBFJ2PH.js');
13
- require('./chunk-APAHMCGR.js');
14
- require('./chunk-EKZQ5LQO.js');
15
- require('./chunk-5X4AUFYW.js');
16
- require('./chunk-BOFCF4L7.js');
17
- require('./chunk-SV2TEZ2M.js');
18
- require('./chunk-ALJJRZNJ.js');
19
- require('./chunk-XNYIZMNQ.js');
20
- require('./chunk-DIAWYWT5.js');
21
- require('./chunk-4OXHLTCP.js');
22
- require('./chunk-OG64RBAC.js');
23
- require('./chunk-RLX5ZFNX.js');
24
- require('./chunk-COGTRVWW.js');
25
-
26
-
27
-
28
-
29
-
30
-
31
-
32
-
33
-
34
-
35
-
36
- exports.buildSkillsPlan = _chunkXEBFJ2PHjs.buildSkillsPlan; exports.deeplineGtmSkillRoots = _chunkXEBFJ2PHjs.deeplineGtmSkillRoots; exports.detectSkillsAgents = _chunkXEBFJ2PHjs.detectSkillsAgents; exports.inferActiveSkillsScope = _chunkXEBFJ2PHjs.inferActiveSkillsScope; exports.isSkillsPlanCurrent = _chunkXEBFJ2PHjs.isSkillsPlanCurrent; exports.missingInstalledSkills = _chunkXEBFJ2PHjs.missingInstalledSkills; exports.registerSkillsCommand = _chunkXEBFJ2PHjs.registerSkillsCommand; exports.runSkillsCommand = _chunkXEBFJ2PHjs.runSkillsCommand; exports.skillsStatePathForScope = _chunkXEBFJ2PHjs.skillsStatePathForScope; exports.workspaceSkillRootsForAgents = _chunkXEBFJ2PHjs.workspaceSkillRootsForAgents;
@@ -1,57 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
-
5
-
6
-
7
-
8
-
9
-
10
-
11
-
12
- var _chunkN2TJJNCWjs = require('./chunk-N2TJJNCW.js');
13
- require('./chunk-KTOAJP4N.js');
14
- require('./chunk-463ZOO2L.js');
15
- require('./chunk-D3BCSAN7.js');
16
- require('./chunk-GBICEYUA.js');
17
- require('./chunk-JO5FFSR7.js');
18
- require('./chunk-AID3OYVJ.js');
19
- require('./chunk-XK5DMLZE.js');
20
- require('./chunk-J33TSWO5.js');
21
- require('./chunk-HGFFYVXN.js');
22
- require('./chunk-RU5ROUFO.js');
23
- require('./chunk-BLMB4N63.js');
24
- require('./chunk-UR7JOSLT.js');
25
- require('./chunk-E4CABWXL.js');
26
- require('./chunk-RNSHCJME.js');
27
- require('./chunk-NMU3VR5U.js');
28
- require('./chunk-WSGXBROE.js');
29
- require('./chunk-W6JTHVPF.js');
30
- require('./chunk-J6SVNKRP.js');
31
- require('./chunk-FS7XYDOF.js');
32
- require('./chunk-VVEMPC2I.js');
33
- require('./chunk-XEBFJ2PH.js');
34
- require('./chunk-APAHMCGR.js');
35
- require('./chunk-EKZQ5LQO.js');
36
- require('./chunk-5X4AUFYW.js');
37
- require('./chunk-BOFCF4L7.js');
38
- require('./chunk-SV2TEZ2M.js');
39
- require('./chunk-ALJJRZNJ.js');
40
- require('./chunk-XNYIZMNQ.js');
41
- require('./chunk-DIAWYWT5.js');
42
- require('./chunk-4OXHLTCP.js');
43
- require('./chunk-OG64RBAC.js');
44
- require('./chunk-RLX5ZFNX.js');
45
- require('./chunk-COGTRVWW.js');
46
-
47
-
48
-
49
-
50
-
51
-
52
-
53
-
54
-
55
-
56
-
57
- exports.buildToolExecuteBaseEnvelope = _chunkN2TJJNCWjs.buildToolExecuteBaseEnvelope; exports.executeToolForReceipt = _chunkN2TJJNCWjs.executeToolForReceipt; exports.extractToolExecutionWarningMessages = _chunkN2TJJNCWjs.extractToolExecutionWarningMessages; exports.getToolExecutionReceipt = _chunkN2TJJNCWjs.getToolExecutionReceipt; exports.parseToolExecuteTimeout = _chunkN2TJJNCWjs.parseToolExecuteTimeout; exports.printCompactToolContract = _chunkN2TJJNCWjs.printCompactToolContract; exports.printMonitorTypeContract = _chunkN2TJJNCWjs.printMonitorTypeContract; exports.registerToolsCommands = _chunkN2TJJNCWjs.registerToolsCommands; exports.seedToolListScript = _chunkN2TJJNCWjs.seedToolListScript; exports.writeToolReceipt = _chunkN2TJJNCWjs.writeToolReceipt;
@@ -1,34 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
-
5
-
6
-
7
-
8
-
9
-
10
- var _chunkFS7XYDOFjs = require('./chunk-FS7XYDOF.js');
11
- require('./chunk-VVEMPC2I.js');
12
- require('./chunk-XEBFJ2PH.js');
13
- require('./chunk-APAHMCGR.js');
14
- require('./chunk-EKZQ5LQO.js');
15
- require('./chunk-5X4AUFYW.js');
16
- require('./chunk-BOFCF4L7.js');
17
- require('./chunk-SV2TEZ2M.js');
18
- require('./chunk-ALJJRZNJ.js');
19
- require('./chunk-XNYIZMNQ.js');
20
- require('./chunk-DIAWYWT5.js');
21
- require('./chunk-4OXHLTCP.js');
22
- require('./chunk-OG64RBAC.js');
23
- require('./chunk-RLX5ZFNX.js');
24
- require('./chunk-COGTRVWW.js');
25
-
26
-
27
-
28
-
29
-
30
-
31
-
32
-
33
-
34
- exports.canAutomaticallyApplyUpdatePlan = _chunkFS7XYDOFjs.canAutomaticallyApplyUpdatePlan; exports.compareUpdateVersions = _chunkFS7XYDOFjs.compareUpdateVersions; exports.publishedVersionSupportsPin = _chunkFS7XYDOFjs.publishedVersionSupportsPin; exports.registerUpdateCommand = _chunkFS7XYDOFjs.registerUpdateCommand; exports.resolveUpdatePlan = _chunkFS7XYDOFjs.resolveUpdatePlan; exports.runAutomaticUpdatePlan = _chunkFS7XYDOFjs.runAutomaticUpdatePlan; exports.runUpdateCommand = _chunkFS7XYDOFjs.runUpdateCommand; exports.runUpdatePlan = _chunkFS7XYDOFjs.runUpdatePlan;