deepline 0.3.440 → 0.3.441
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +10 -1
- package/dist/bundling-sources/shared_libs/plays/tool-execution-error.ts +17 -3
- package/dist/bundling-sources/shared_libs/tool-execution-error.ts +17 -3
- package/dist/cli/{auth-KBORTFO6.mjs → auth-D2ZF664Y.mjs} +6 -6
- package/dist/cli/auth-XTW4JZT4.js +40 -0
- package/dist/cli/{billing-VJSUCB5I.mjs → billing-4MIYCPSV.mjs} +7 -7
- package/dist/cli/{billing-RE5WN7IQ.js → billing-5OLSZRHE.js} +83 -83
- package/dist/cli/{chunk-R2P756BJ.js → chunk-27LQEDGO.js} +16 -16
- package/dist/cli/{chunk-GRAEERVE.mjs → chunk-2LVCAPN7.mjs} +3 -3
- package/dist/cli/{chunk-M6WSQZHP.js → chunk-2MMUUSBN.js} +57 -57
- package/dist/cli/{chunk-CI56TXRS.js → chunk-2VZKT2PE.js} +35 -35
- package/dist/cli/{chunk-BBYGXP2I.js → chunk-3IRJIEIE.js} +12 -12
- package/dist/cli/{chunk-ATTUUPIU.js → chunk-3XPO3MWC.js} +8 -8
- package/dist/cli/{chunk-V74O7X2X.mjs → chunk-4N3ZT6OJ.mjs} +2 -2
- package/dist/cli/{chunk-MAMVGOSC.mjs → chunk-4QF2K7TM.mjs} +1 -1
- package/dist/cli/{chunk-PCNOULRB.mjs → chunk-55GDG7QJ.mjs} +4 -4
- package/dist/cli/{chunk-N5D4EMIY.mjs → chunk-7DH2FD7Y.mjs} +1 -1
- package/dist/cli/{chunk-WU4U6VSB.js → chunk-A6QCMBGL.js} +5 -5
- package/dist/cli/{chunk-EPABMF45.js → chunk-AG5SQSH5.js} +6 -6
- package/dist/cli/{chunk-NPBJI7RE.js → chunk-ALJJRZNJ.js} +8 -8
- package/dist/cli/{chunk-OX5JAD3D.mjs → chunk-ARVYJDPQ.mjs} +4 -4
- package/dist/cli/{chunk-Z7SKBAOU.js → chunk-AVQ4V6Y7.js} +93 -93
- package/dist/cli/{chunk-42YHEY2R.mjs → chunk-AZZCCHOL.mjs} +2 -2
- package/dist/cli/{chunk-KAJK6XVI.js → chunk-CFUTOWE4.js} +6 -6
- package/dist/cli/{chunk-4RKPT6IE.js → chunk-DE354WOP.js} +2 -2
- package/dist/cli/{chunk-PPDBRJRW.js → chunk-DIAWYWT5.js} +6 -1
- package/dist/cli/{chunk-RAJP44MZ.mjs → chunk-DIDMHGVH.mjs} +1 -1
- package/dist/cli/{chunk-GJI7C2OU.js → chunk-DV4G676C.js} +8 -8
- package/dist/cli/{chunk-V2ZITVZA.js → chunk-F2EMJUDJ.js} +26 -26
- package/dist/cli/{chunk-KCC3FKIW.mjs → chunk-FAG4DFUC.mjs} +1 -1
- package/dist/cli/{chunk-K23LXA4N.mjs → chunk-FOLT3LUQ.mjs} +2 -2
- package/dist/cli/{chunk-GFEWNYQ4.js → chunk-GAGGHXYN.js} +2 -2
- package/dist/cli/{chunk-RDIN3NKA.js → chunk-GEQOPXOS.js} +2 -2
- package/dist/cli/{chunk-E4IXDAZI.mjs → chunk-HBL4PM5Q.mjs} +6 -1
- package/dist/cli/{chunk-ZLD46RSR.mjs → chunk-HS6ASYW5.mjs} +2 -2
- package/dist/cli/{chunk-VXQQZV4A.js → chunk-HUH6EA5B.js} +33 -33
- package/dist/cli/{chunk-2H4EY7KH.js → chunk-JKVRBCZL.js} +26 -26
- package/dist/cli/{chunk-CWFN7MUU.mjs → chunk-KSWTIOZT.mjs} +9 -9
- package/dist/cli/{chunk-NIR2UK5V.mjs → chunk-LB5TQPKK.mjs} +1 -1
- package/dist/cli/{chunk-O7PC3VOI.mjs → chunk-M65GHY4K.mjs} +1 -1
- package/dist/cli/{chunk-GWC7OBRD.mjs → chunk-NYLJMRYD.mjs} +2 -2
- package/dist/cli/{chunk-4GHEUG6W.js → chunk-OWXLYPMV.js} +20 -20
- package/dist/cli/{chunk-NUX2QHNC.mjs → chunk-OZDT2CZW.mjs} +1 -1
- package/dist/cli/{chunk-OOVQITRM.js → chunk-PNS3K6A2.js} +50 -50
- package/dist/cli/{chunk-R7GGDUOM.mjs → chunk-POSRLOHP.mjs} +3 -3
- package/dist/cli/{chunk-XL4FJX7J.mjs → chunk-PPJ4PF6F.mjs} +3 -3
- package/dist/cli/{chunk-GOHOTLUV.mjs → chunk-PUWMWNBM.mjs} +4 -4
- package/dist/cli/{chunk-DS7Y7X26.mjs → chunk-SKXQZUMX.mjs} +1 -1
- package/dist/cli/{chunk-HNMQSS7P.js → chunk-UJLPE55B.js} +1 -1
- package/dist/cli/{chunk-FGTKAXRJ.js → chunk-XM5Z53VA.js} +101 -101
- package/dist/cli/{chunk-T6XBX45B.mjs → chunk-XUART5TY.mjs} +5 -5
- package/dist/cli/{csv-L64ECPD5.js → csv-PWSQ7DBG.js} +14 -14
- package/dist/cli/{csv-MP3WOYPE.mjs → csv-ZWRKX6NU.mjs} +5 -5
- package/dist/cli/{db-FOV7GHXS.mjs → db-AYIEGUOY.mjs} +7 -7
- package/dist/cli/{db-RZJK6LGN.js → db-M24C22YN.js} +34 -34
- package/dist/cli/{describe-WWENJAG2.js → describe-F34NXGCE.js} +22 -22
- package/dist/cli/{describe-R2BEQHVZ.mjs → describe-K2CCAFJO.mjs} +16 -16
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-C5WO6TGN.mjs → executions-TMH5FSYX.mjs} +7 -7
- package/dist/cli/{executions-3LFEK56I.js → executions-UHHRRBBT.js} +9 -9
- package/dist/cli/{feedback-K6OAZUQ4.mjs → feedback-GCTX3HJS.mjs} +5 -5
- package/dist/cli/{feedback-EMWUZ4LV.js → feedback-Z7C47J2X.js} +9 -9
- package/dist/cli/git-MCFHPAML.js +24 -0
- package/dist/cli/{git-DJLL3OCZ.mjs → git-RDHXJML2.mjs} +6 -6
- package/dist/cli/index.js +136 -136
- package/dist/cli/index.mjs +38 -38
- package/dist/cli/{legacy-noops-EAJG56KP.mjs → legacy-noops-3E75KHWC.mjs} +6 -6
- package/dist/cli/{legacy-noops-57SRSZ7M.js → legacy-noops-X6QQUMNF.js} +9 -9
- package/dist/cli/{monitors-OI57AAIG.js → monitors-AVTVW5L2.js} +93 -93
- package/dist/cli/{monitors-FHTQ6227.mjs → monitors-HCNIDGV2.mjs} +7 -7
- package/dist/cli/{org-YGHFZTWJ.mjs → org-ILD73S74.mjs} +7 -7
- package/dist/cli/{org-26EHPBKF.js → org-QUJYCJJE.js} +69 -69
- package/dist/cli/{play-PXGYS4DH.js → play-7M53PMCN.js} +373 -373
- package/dist/cli/{play-KBKWTIXK.mjs → play-DQJ7LGQG.mjs} +15 -15
- package/dist/cli/{providers-IZYBWI6M.js → providers-3HC5S52G.js} +10 -10
- package/dist/cli/{providers-YPFEVK5C.mjs → providers-WV35XXID.mjs} +7 -7
- package/dist/cli/{quickstart-RBCTFLI3.js → quickstart-KJZOURAH.js} +7 -7
- package/dist/cli/{quickstart-SJ2M56CV.mjs → quickstart-UESOANHH.mjs} +5 -5
- package/dist/cli/search-255SE477.js +30 -0
- package/dist/cli/{search-PSPZTTKR.mjs → search-V3ZQE4UU.mjs} +8 -8
- package/dist/cli/{secrets-BCS4FE5D.mjs → secrets-ILDTXJ3L.mjs} +7 -7
- package/dist/cli/{secrets-XIWKYXGD.js → secrets-IU2FWIQI.js} +16 -16
- package/dist/cli/{sessions-L3UEERFX.mjs → sessions-4M6WBATB.mjs} +6 -6
- package/dist/cli/sessions-Y25VJZSV.js +16 -0
- package/dist/cli/{settings-X2GMYBE7.js → settings-5BMSV6EL.js} +78 -78
- package/dist/cli/{settings-SFFP7AR5.mjs → settings-Z4R5U5OZ.mjs} +11 -11
- package/dist/cli/{setup-QIHAXFBL.mjs → setup-FWSJMJWR.mjs} +9 -9
- package/dist/cli/{setup-4ERUKDQ5.js → setup-QZ3ZN4RI.js} +44 -44
- package/dist/cli/skills-4JXC4C57.js +29 -0
- package/dist/cli/{skills-BYNSDIKJ.mjs → skills-RA7HJTXG.mjs} +7 -7
- package/dist/cli/{tools-PQSMCIA7.mjs → tools-5VI3FPWV.mjs} +15 -15
- package/dist/cli/tools-BGVCWIZ5.js +44 -0
- package/dist/cli/update-GPXJHQXJ.js +31 -0
- package/dist/cli/{update-BI4E6UXI.mjs → update-O7B44SN5.mjs} +9 -9
- package/dist/cli/{workflow-PMRFMZVP.mjs → workflow-3MOKM4IM.mjs} +8 -8
- package/dist/cli/{workflow-52P63K65.js → workflow-7W3BTJPH.js} +18 -18
- package/dist/{client-Doml68vC.d.mts → client-BCmnJaL9.d.mts} +1 -1
- package/dist/{client-9nH8tx4R.d.ts → client-BqQ7Rb11.d.ts} +1 -1
- package/dist/{compiler-manifest-CF2qngKr.d.ts → compiler-manifest-CWz_sNOQ.d.mts} +6 -2
- package/dist/{compiler-manifest-CF2qngKr.d.mts → compiler-manifest-CWz_sNOQ.d.ts} +6 -2
- package/dist/{index-Bq37k0sE.d.ts → index-4NPXDzlD.d.ts} +1 -1
- package/dist/{index-DTI-iNw8.d.mts → index-BF2JB_Ug.d.mts} +1 -1
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +10 -10
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +96 -96
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/bundle-play-file.mjs +2 -2
- package/dist/plays/csv-data-input.js +3 -3
- package/dist/plays/csv-data-input.mjs +2 -2
- 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 +3 -3
- package/dist/plays/run-request.mjs +2 -2
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/package.json +1 -1
- package/dist/cli/auth-LXI5K7V6.js +0 -40
- package/dist/cli/git-2BW2UDK6.js +0 -24
- package/dist/cli/search-5CFJRSGN.js +0 -30
- package/dist/cli/sessions-YX2AJF5I.js +0 -16
- package/dist/cli/skills-EOPZVMJS.js +0 -29
- package/dist/cli/tools-UEZW4OD7.js +0 -44
- package/dist/cli/update-6TOZCQ4Y.js +0 -31
|
@@ -14,7 +14,7 @@ var _chunkE4CABWXLjs = require('./chunk-E4CABWXL.js');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
var _chunkOG64RBACjs = require('./chunk-OG64RBAC.js');
|
|
@@ -1800,7 +1800,7 @@ var PLAY_ARTIFACT_VERSION = _chunkOG64RBACjs.CURRENT_PLAY_ARTIFACT_CONTRACT_VERS
|
|
|
1800
1800
|
var UnsupportedPlayToolErrorSchemaVersionError = class extends Error {
|
|
1801
1801
|
constructor(value) {
|
|
1802
1802
|
super(
|
|
1803
|
-
`Unsupported Play tool error schema version ${String(value)}. Supported versions: ${
|
|
1803
|
+
`Unsupported Play tool error schema version ${String(value)}. Supported versions: ${_chunkDIAWYWT5js.SUPPORTED_TOOL_EXECUTION_ERROR_SCHEMA_VERSIONS.join(", ")}.`
|
|
1804
1804
|
);
|
|
1805
1805
|
this.name = "UnsupportedPlayToolErrorSchemaVersionError";
|
|
1806
1806
|
}
|
|
@@ -1815,13 +1815,13 @@ function normalizePlayContractCompatibility(compatibility) {
|
|
|
1815
1815
|
if (!compatibility || typeof compatibility !== "object" || Array.isArray(compatibility)) {
|
|
1816
1816
|
throw new InvalidPlayContractCompatibilityError();
|
|
1817
1817
|
}
|
|
1818
|
-
const requestedToolErrorSchemaVersion = _nullishCoalesce(compatibility.toolErrorSchemaVersion, () => (
|
|
1818
|
+
const requestedToolErrorSchemaVersion = _nullishCoalesce(compatibility.toolErrorSchemaVersion, () => ( _chunkDIAWYWT5js.TOOL_EXECUTION_ERROR_SCHEMA_VERSION));
|
|
1819
1819
|
if (compatibility.datasetRowInput !== void 0 && compatibility.datasetRowInput !== "current_run") {
|
|
1820
1820
|
throw new InvalidPlayContractCompatibilityError(
|
|
1821
1821
|
`Unsupported dataset row input policy ${String(compatibility.datasetRowInput)}.`
|
|
1822
1822
|
);
|
|
1823
1823
|
}
|
|
1824
|
-
if (!
|
|
1824
|
+
if (!_chunkDIAWYWT5js.SUPPORTED_TOOL_EXECUTION_ERROR_SCHEMA_VERSIONS.includes(
|
|
1825
1825
|
requestedToolErrorSchemaVersion
|
|
1826
1826
|
)) {
|
|
1827
1827
|
throw new UnsupportedPlayToolErrorSchemaVersionError(
|
|
@@ -1845,7 +1845,7 @@ function normalizePlayContractCompatibility(compatibility) {
|
|
|
1845
1845
|
}
|
|
1846
1846
|
return {
|
|
1847
1847
|
...compatibility,
|
|
1848
|
-
toolErrorSchemaVersion:
|
|
1848
|
+
toolErrorSchemaVersion: _chunkDIAWYWT5js.TOOL_EXECUTION_ERROR_SCHEMA_VERSION,
|
|
1849
1849
|
toolResponseContract,
|
|
1850
1850
|
...toolResponseReceiptRevision ? { toolResponseReceiptRevision } : {},
|
|
1851
1851
|
authoringContractEdition: normalizePlayAuthoringContractEdition(
|
|
@@ -1858,7 +1858,7 @@ function buildPlayContractCompatibility(input) {
|
|
|
1858
1858
|
artifactVersion: PLAY_ARTIFACT_VERSION,
|
|
1859
1859
|
..._optionalChain([input, 'optionalAccess', _ => _.datasetRowInput]) ? { datasetRowInput: input.datasetRowInput } : {},
|
|
1860
1860
|
runtimeBackend: _nullishCoalesce(_optionalChain([input, 'optionalAccess', _2 => _2.runtimeBackend]), () => ( null)),
|
|
1861
|
-
toolErrorSchemaVersion: _nullishCoalesce(_optionalChain([input, 'optionalAccess', _3 => _3.toolErrorSchemaVersion]), () => (
|
|
1861
|
+
toolErrorSchemaVersion: _nullishCoalesce(_optionalChain([input, 'optionalAccess', _3 => _3.toolErrorSchemaVersion]), () => ( _chunkDIAWYWT5js.TOOL_EXECUTION_ERROR_SCHEMA_VERSION)),
|
|
1862
1862
|
authoringContractEdition: _nullishCoalesce(_optionalChain([input, 'optionalAccess', _4 => _4.authoringContractEdition]), () => ( PLAY_AUTHORING_CONTRACT_EDITION)),
|
|
1863
1863
|
toolResponseContract: _nullishCoalesce(_optionalChain([input, 'optionalAccess', _5 => _5.toolResponseContract]), () => ( _chunkE4CABWXLjs.RAW_V2_TOOL_RESPONSE_CONTRACT)),
|
|
1864
1864
|
toolResponseReceiptRevision: _chunkE4CABWXLjs.normalizeToolResponseReceiptRevision.call(void 0,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk3IRJIEIEjs = require('./chunk-3IRJIEIE.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/maintenance-policy.ts
|
|
6
6
|
var _commander = require('commander');
|
|
@@ -33,7 +33,7 @@ function recordCliTrace(event) {
|
|
|
33
33
|
sinceStartMs: now - cliTraceStartedAt,
|
|
34
34
|
...event
|
|
35
35
|
};
|
|
36
|
-
|
|
36
|
+
_chunk3IRJIEIEjs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
|
|
37
37
|
`);
|
|
38
38
|
}
|
|
39
39
|
async function traceCliSpan(phase, fields, run) {
|
|
@@ -153,6 +153,9 @@ var ProviderTransientError = (_class = class _ProviderTransientError extends Too
|
|
|
153
153
|
}, _class);
|
|
154
154
|
function getProviderUnavailableReason(error) {
|
|
155
155
|
if (error instanceof ProviderTransientError) return error.category;
|
|
156
|
+
if (error instanceof ToolExecutionError && error.origin === "deepline" && error.category === "rate_limit") {
|
|
157
|
+
return "rate_limit";
|
|
158
|
+
}
|
|
156
159
|
if (error instanceof ToolExecutionError && error.origin === "provider" && error.code === "PROVIDER_ACCOUNT_CAPACITY") {
|
|
157
160
|
return "account_capacity";
|
|
158
161
|
}
|
|
@@ -281,7 +284,9 @@ function normalizeToolExecutionFailure(value) {
|
|
|
281
284
|
operation
|
|
282
285
|
});
|
|
283
286
|
const category = normalizeToolExecutionCategory(value.category);
|
|
284
|
-
const publicDetails = normalizeToolExecutionPublicDetails(
|
|
287
|
+
const publicDetails = normalizeToolExecutionPublicDetails(
|
|
288
|
+
value.publicDetails
|
|
289
|
+
);
|
|
285
290
|
const trustworthy = origin !== "unknown" && category !== "unknown" && typeof value.retryable === "boolean";
|
|
286
291
|
return {
|
|
287
292
|
schemaVersion: TOOL_EXECUTION_ERROR_SCHEMA_VERSION,
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
var _chunkZM2YPJQJjs = require('./chunk-ZM2YPJQJ.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkXM5Z53VAjs = require('./chunk-XM5Z53VA.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunk3IRJIEIEjs = require('./chunk-3IRJIEIE.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkHUH6EA5Bjs = require('./chunk-HUH6EA5B.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -5713,7 +5713,7 @@ var _fs = require('fs');
|
|
|
5713
5713
|
var _path = require('path');
|
|
5714
5714
|
var SEARCH_REF_TTL_MS = 15 * 6e4;
|
|
5715
5715
|
function lastSearchPath() {
|
|
5716
|
-
return _path.join.call(void 0,
|
|
5716
|
+
return _path.join.call(void 0, _chunkHUH6EA5Bjs.sdkCliStateDirPath.call(void 0, _chunkHUH6EA5Bjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
5717
5717
|
}
|
|
5718
5718
|
function rememberSearchRef(searchRef) {
|
|
5719
5719
|
try {
|
|
@@ -5877,7 +5877,7 @@ var OPTIONAL_COLUMNS = [
|
|
|
5877
5877
|
];
|
|
5878
5878
|
function renderSearchResults(result, summaryWidth = DEFAULT_SUMMARY_WIDTH) {
|
|
5879
5879
|
if (result.results.length === 0)
|
|
5880
|
-
return
|
|
5880
|
+
return _chunk3IRJIEIEjs.renderCommandEnvelopeText.call(void 0, result);
|
|
5881
5881
|
const rows = result.results.map((item) => searchRow(item, summaryWidth));
|
|
5882
5882
|
const kinds = new Set(rows.map((row) => row.kind));
|
|
5883
5883
|
const onlyTools = kinds.size === 1 && kinds.has("tool");
|
|
@@ -5902,7 +5902,7 @@ function renderSearchResults(result, summaryWidth = DEFAULT_SUMMARY_WIDTH) {
|
|
|
5902
5902
|
actions: _optionalChain([render, 'optionalAccess', _12 => _12.actions])
|
|
5903
5903
|
};
|
|
5904
5904
|
const followUps = _optionalChain([remaining, 'access', _13 => _13.sections, 'optionalAccess', _14 => _14.length]) || _optionalChain([remaining, 'access', _15 => _15.actions, 'optionalAccess', _16 => _16.length]) ? `
|
|
5905
|
-
${
|
|
5905
|
+
${_chunk3IRJIEIEjs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
|
|
5906
5906
|
const notes = rows.flatMap(
|
|
5907
5907
|
(row) => row.notes.map((note) => ` ${row.id}: ${note}`)
|
|
5908
5908
|
);
|
|
@@ -5987,7 +5987,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
5987
5987
|
console.error("--summary-width must be an integer of at least 2.");
|
|
5988
5988
|
return 1;
|
|
5989
5989
|
}
|
|
5990
|
-
const { search_ref: searchRef, ...result } = await new (0,
|
|
5990
|
+
const { search_ref: searchRef, ...result } = await new (0, _chunkXM5Z53VAjs.DeeplineClient)().search({
|
|
5991
5991
|
query,
|
|
5992
5992
|
types,
|
|
5993
5993
|
exclude,
|
|
@@ -6001,7 +6001,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
6001
6001
|
});
|
|
6002
6002
|
if (searchRef) rememberSearchRef(searchRef);
|
|
6003
6003
|
pointAtDescribe(result);
|
|
6004
|
-
|
|
6004
|
+
_chunk3IRJIEIEjs.printCommandEnvelope.call(void 0, result, {
|
|
6005
6005
|
json: options.json === true,
|
|
6006
6006
|
text: renderSearchResults(result, summaryWidth)
|
|
6007
6007
|
});
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk3IRJIEIEjs = require('./chunk-3IRJIEIE.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkHUH6EA5Bjs = require('./chunk-HUH6EA5B.js');
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -32,11 +32,11 @@ function renderDeployment(deployment) {
|
|
|
32
32
|
return `${deployment.id} ${source} (${kind}) - ${deployment.status}${suffix}`;
|
|
33
33
|
}
|
|
34
34
|
async function handleList(options) {
|
|
35
|
-
const { http } =
|
|
35
|
+
const { http } = _chunk3IRJIEIEjs.getAuthedHttpClient.call(void 0, );
|
|
36
36
|
const payload = await http.get(
|
|
37
37
|
`/api/v2/play-projects${options.all ? "?includeDisabled=1" : ""}`
|
|
38
38
|
);
|
|
39
|
-
|
|
39
|
+
_chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
|
|
40
40
|
{
|
|
41
41
|
projects: payload.projects,
|
|
42
42
|
count: payload.projects.length,
|
|
@@ -73,7 +73,7 @@ function describeInstallationStatus(installation) {
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
async function handleStatus(options) {
|
|
76
|
-
const { http } =
|
|
76
|
+
const { http } = _chunk3IRJIEIEjs.getAuthedHttpClient.call(void 0, );
|
|
77
77
|
const payload = await http.get("/api/v2/github/installation");
|
|
78
78
|
const installation = payload.installation;
|
|
79
79
|
const others = (_nullishCoalesce(payload.installations, () => ( []))).filter(
|
|
@@ -136,7 +136,7 @@ async function handleStatus(options) {
|
|
|
136
136
|
)
|
|
137
137
|
);
|
|
138
138
|
}
|
|
139
|
-
|
|
139
|
+
_chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
|
|
140
140
|
{
|
|
141
141
|
installation,
|
|
142
142
|
installations: _nullishCoalesce(payload.installations, () => ( [])),
|
|
@@ -147,10 +147,10 @@ async function handleStatus(options) {
|
|
|
147
147
|
);
|
|
148
148
|
}
|
|
149
149
|
async function handleRepos(options) {
|
|
150
|
-
const { http } =
|
|
150
|
+
const { http } = _chunk3IRJIEIEjs.getAuthedHttpClient.call(void 0, );
|
|
151
151
|
const query = options.installation ? `?installationId=${encodeURIComponent(options.installation)}` : "";
|
|
152
152
|
const payload = await http.get(`/api/v2/github/repos${query}`);
|
|
153
|
-
|
|
153
|
+
_chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
|
|
154
154
|
{
|
|
155
155
|
installation: payload.installation,
|
|
156
156
|
repositories: payload.repositories,
|
|
@@ -171,7 +171,7 @@ async function handleRepos(options) {
|
|
|
171
171
|
}
|
|
172
172
|
async function resolveRepoId(repo, installation) {
|
|
173
173
|
if (/^\d+$/.test(repo)) return Number(repo);
|
|
174
|
-
const { http } =
|
|
174
|
+
const { http } = _chunk3IRJIEIEjs.getAuthedHttpClient.call(void 0, );
|
|
175
175
|
const query = installation ? `?installationId=${encodeURIComponent(installation)}` : "";
|
|
176
176
|
const payload = await http.get(
|
|
177
177
|
`/api/v2/github/repos${query}`
|
|
@@ -188,7 +188,7 @@ async function resolveRepoId(repo, installation) {
|
|
|
188
188
|
}
|
|
189
189
|
async function handleLink(repo, options) {
|
|
190
190
|
const repoId = await resolveRepoId(repo, options.installation);
|
|
191
|
-
const { http } =
|
|
191
|
+
const { http } = _chunk3IRJIEIEjs.getAuthedHttpClient.call(void 0, );
|
|
192
192
|
const payload = await http.post("/api/v2/play-projects", {
|
|
193
193
|
repoId,
|
|
194
194
|
...options.installation !== void 0 ? { installationId: options.installation } : {},
|
|
@@ -197,7 +197,7 @@ async function handleLink(repo, options) {
|
|
|
197
197
|
...options.branch !== void 0 ? { productionBranch: options.branch } : {},
|
|
198
198
|
...options.prChecks !== void 0 ? { checkOnPullRequest: options.prChecks } : {}
|
|
199
199
|
});
|
|
200
|
-
|
|
200
|
+
_chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
|
|
201
201
|
{
|
|
202
202
|
project: payload.project,
|
|
203
203
|
render: {
|
|
@@ -220,11 +220,11 @@ async function handleLink(repo, options) {
|
|
|
220
220
|
);
|
|
221
221
|
}
|
|
222
222
|
async function handleGet(id, options) {
|
|
223
|
-
const { http } =
|
|
223
|
+
const { http } = _chunk3IRJIEIEjs.getAuthedHttpClient.call(void 0, );
|
|
224
224
|
const payload = await http.get(
|
|
225
225
|
`/api/v2/play-projects/${encodeURIComponent(id)}`
|
|
226
226
|
);
|
|
227
|
-
|
|
227
|
+
_chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
|
|
228
228
|
{
|
|
229
229
|
project: payload.project,
|
|
230
230
|
render: {
|
|
@@ -240,7 +240,7 @@ async function handleGet(id, options) {
|
|
|
240
240
|
);
|
|
241
241
|
}
|
|
242
242
|
async function handleSet(id, options) {
|
|
243
|
-
const { http } =
|
|
243
|
+
const { http } = _chunk3IRJIEIEjs.getAuthedHttpClient.call(void 0, );
|
|
244
244
|
const payload = await http.patch(
|
|
245
245
|
`/api/v2/play-projects/${encodeURIComponent(id)}`,
|
|
246
246
|
{
|
|
@@ -251,7 +251,7 @@ async function handleSet(id, options) {
|
|
|
251
251
|
...options.disabled !== void 0 ? { disabled: options.disabled } : {}
|
|
252
252
|
}
|
|
253
253
|
);
|
|
254
|
-
|
|
254
|
+
_chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
|
|
255
255
|
{
|
|
256
256
|
project: payload.project,
|
|
257
257
|
render: {
|
|
@@ -264,9 +264,9 @@ async function handleSet(id, options) {
|
|
|
264
264
|
);
|
|
265
265
|
}
|
|
266
266
|
async function handleUnlink(id, options) {
|
|
267
|
-
const { http } =
|
|
267
|
+
const { http } = _chunk3IRJIEIEjs.getAuthedHttpClient.call(void 0, );
|
|
268
268
|
await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
|
|
269
|
-
|
|
269
|
+
_chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
|
|
270
270
|
{
|
|
271
271
|
ok: true,
|
|
272
272
|
id,
|
|
@@ -286,10 +286,10 @@ async function handleUnlink(id, options) {
|
|
|
286
286
|
);
|
|
287
287
|
}
|
|
288
288
|
async function handleConnect(options) {
|
|
289
|
-
const baseUrl =
|
|
289
|
+
const baseUrl = _chunkHUH6EA5Bjs.resolveBaseUrlOnly.call(void 0, );
|
|
290
290
|
const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
|
|
291
|
-
const opened =
|
|
292
|
-
|
|
291
|
+
const opened = _chunk3IRJIEIEjs.openInBrowser.call(void 0, connectUrl);
|
|
292
|
+
_chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
|
|
293
293
|
{
|
|
294
294
|
connectUrl,
|
|
295
295
|
browser: opened,
|
|
@@ -311,7 +311,7 @@ async function handleConnect(options) {
|
|
|
311
311
|
);
|
|
312
312
|
}
|
|
313
313
|
async function handleDeploymentsList(options) {
|
|
314
|
-
const { http } =
|
|
314
|
+
const { http } = _chunk3IRJIEIEjs.getAuthedHttpClient.call(void 0, );
|
|
315
315
|
const query = new URLSearchParams();
|
|
316
316
|
if (options.repo) query.set("projectId", options.repo);
|
|
317
317
|
if (options.limit) query.set("limit", options.limit);
|
|
@@ -319,7 +319,7 @@ async function handleDeploymentsList(options) {
|
|
|
319
319
|
const payload = await http.get(
|
|
320
320
|
`/api/v2/deployments${suffix}`
|
|
321
321
|
);
|
|
322
|
-
|
|
322
|
+
_chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
|
|
323
323
|
{
|
|
324
324
|
deployments: payload.deployments,
|
|
325
325
|
count: payload.deployments.length,
|
|
@@ -363,12 +363,12 @@ function renderDeploymentMonitorLines(results) {
|
|
|
363
363
|
]);
|
|
364
364
|
}
|
|
365
365
|
async function handleDeploymentGet(id, options) {
|
|
366
|
-
const { http } =
|
|
366
|
+
const { http } = _chunk3IRJIEIEjs.getAuthedHttpClient.call(void 0, );
|
|
367
367
|
const payload = await http.get(`/api/v2/deployments/${encodeURIComponent(id)}`);
|
|
368
368
|
const playLines = renderDeploymentPlayLines(payload.deployment.results);
|
|
369
369
|
const monitorLines = renderDeploymentMonitorLines(payload.deployment.results);
|
|
370
370
|
const repository = _nullishCoalesce(_optionalChain([payload, 'access', _10 => _10.project, 'optionalAccess', _11 => _11.repoFullName]), () => ( payload.deployment.repoFullName));
|
|
371
|
-
|
|
371
|
+
_chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
|
|
372
372
|
{
|
|
373
373
|
deployment: payload.deployment,
|
|
374
374
|
project: payload.project,
|
|
@@ -387,9 +387,9 @@ async function handleDeploymentGet(id, options) {
|
|
|
387
387
|
);
|
|
388
388
|
}
|
|
389
389
|
async function handleDeploymentCancel(id, options) {
|
|
390
|
-
const { http } =
|
|
390
|
+
const { http } = _chunk3IRJIEIEjs.getAuthedHttpClient.call(void 0, );
|
|
391
391
|
const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
|
|
392
|
-
|
|
392
|
+
_chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
cancelled: payload.cancelled,
|
|
395
395
|
deployment: payload.deployment,
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
detectAgentRuntime,
|
|
4
4
|
resolveCliCommandContext,
|
|
5
5
|
resolveConfig
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PPJ4PF6F.mjs";
|
|
7
7
|
import {
|
|
8
8
|
DeeplineError,
|
|
9
9
|
serializeToolExecutionFailure
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-HBL4PM5Q.mjs";
|
|
11
11
|
|
|
12
12
|
// src/cli/json-fields.ts
|
|
13
13
|
var RUN_FIELDS = new Set(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk2MMUUSBNjs = require('./chunk-2MMUUSBN.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/npm-script-policy.ts
|
|
6
6
|
var _child_process = require('child_process');
|
|
@@ -13,7 +13,7 @@ function npmSupportsAllowScripts(version) {
|
|
|
13
13
|
}
|
|
14
14
|
function readNpmVersion(env) {
|
|
15
15
|
try {
|
|
16
|
-
const plan =
|
|
16
|
+
const plan = _chunk2MMUUSBNjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
|
|
17
17
|
const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
|
|
18
18
|
encoding: "utf8",
|
|
19
19
|
env,
|
|
@@ -16,7 +16,7 @@ var _chunkR2QWSSAGjs = require('./chunk-R2QWSSAG.js');
|
|
|
16
16
|
var _chunkVUYUI35Qjs = require('./chunk-VUYUI35Q.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
20
20
|
|
|
21
21
|
// src/cli/tool-features.ts
|
|
22
22
|
var VIEWS = {
|
|
@@ -92,7 +92,7 @@ async function found(lookup) {
|
|
|
92
92
|
try {
|
|
93
93
|
return await lookup;
|
|
94
94
|
} catch (error) {
|
|
95
|
-
if (error instanceof
|
|
95
|
+
if (error instanceof _chunkDIAWYWT5js.DeeplineError && (error.statusCode === 404 || error.code === "PLAY_NOT_FOUND" || error.code === "NOT_FOUND")) {
|
|
96
96
|
return null;
|
|
97
97
|
}
|
|
98
98
|
throw error;
|
|
@@ -153,6 +153,9 @@ var ProviderTransientError = class _ProviderTransientError extends ToolExecution
|
|
|
153
153
|
};
|
|
154
154
|
function getProviderUnavailableReason(error) {
|
|
155
155
|
if (error instanceof ProviderTransientError) return error.category;
|
|
156
|
+
if (error instanceof ToolExecutionError && error.origin === "deepline" && error.category === "rate_limit") {
|
|
157
|
+
return "rate_limit";
|
|
158
|
+
}
|
|
156
159
|
if (error instanceof ToolExecutionError && error.origin === "provider" && error.code === "PROVIDER_ACCOUNT_CAPACITY") {
|
|
157
160
|
return "account_capacity";
|
|
158
161
|
}
|
|
@@ -281,7 +284,9 @@ function normalizeToolExecutionFailure(value) {
|
|
|
281
284
|
operation
|
|
282
285
|
});
|
|
283
286
|
const category = normalizeToolExecutionCategory(value.category);
|
|
284
|
-
const publicDetails = normalizeToolExecutionPublicDetails(
|
|
287
|
+
const publicDetails = normalizeToolExecutionPublicDetails(
|
|
288
|
+
value.publicDetails
|
|
289
|
+
);
|
|
285
290
|
const trustworthy = origin !== "unknown" && category !== "unknown" && typeof value.retryable === "boolean";
|
|
286
291
|
return {
|
|
287
292
|
schemaVersion: TOOL_EXECUTION_ERROR_SCHEMA_VERSION,
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
argsWantJson,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-FOLT3LUQ.mjs";
|
|
6
6
|
import {
|
|
7
7
|
ACTIVE_ORG_ID_ENV,
|
|
8
8
|
ACTIVE_ORG_NAME_ENV,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
saveHostEnvValues,
|
|
26
26
|
saveProjectDeeplineEnvValues,
|
|
27
27
|
storedHostApiKey
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-PPJ4PF6F.mjs";
|
|
29
29
|
|
|
30
30
|
// src/cli/commands/auth.ts
|
|
31
31
|
import {
|