deepline 0.3.445 → 0.3.446
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/cli/auth-LQFM7AUA.js +40 -0
- package/dist/cli/{auth-QNWYRLML.mjs → auth-QS4HFSPI.mjs} +4 -4
- package/dist/cli/{billing-3HFPC32I.js → billing-72BVAZ6M.js} +73 -73
- package/dist/cli/{billing-ULHQPQ2L.mjs → billing-X7ZJUBJE.mjs} +4 -4
- package/dist/cli/{chunk-THZL4XHV.js → chunk-4UD3HIUY.js} +8 -8
- package/dist/cli/{chunk-732QWWPG.js → chunk-6PTUA4M7.js} +10 -10
- package/dist/cli/{chunk-T7SLOS2J.mjs → chunk-6XL3IIFD.mjs} +4 -4
- package/dist/cli/{chunk-YXY6FCRU.mjs → chunk-7HUXIWE2.mjs} +3 -3
- package/dist/cli/{chunk-5JJ6JYTL.js → chunk-7X7GEXHC.js} +6 -6
- package/dist/cli/{chunk-FC7LS3Y5.js → chunk-BIQCGMZC.js} +50 -50
- package/dist/cli/{chunk-6DQTJ3DY.js → chunk-CNIFSBGW.js} +35 -35
- package/dist/cli/{chunk-IXJN2NLA.mjs → chunk-D7ES6PAW.mjs} +1 -1
- package/dist/cli/{chunk-E5JZH6CI.mjs → chunk-DPVDPJLA.mjs} +1 -1
- package/dist/cli/{chunk-TX6F2BB6.js → chunk-EATTWMIB.js} +2 -2
- package/dist/cli/{chunk-SSRKG7I5.mjs → chunk-FMUADJJ6.mjs} +3 -3
- package/dist/cli/{chunk-HU6PIQDF.mjs → chunk-G7L27KZB.mjs} +2 -2
- package/dist/cli/{chunk-6LVOC2HD.mjs → chunk-HBC7PNWS.mjs} +1 -1
- package/dist/cli/{chunk-W25OALCJ.mjs → chunk-HDFRJ4IT.mjs} +32 -5
- package/dist/cli/{chunk-2L2D2SXH.mjs → chunk-IQREZ6NU.mjs} +2 -2
- package/dist/cli/{chunk-BEI6ZL6E.mjs → chunk-ISQLFI2O.mjs} +1 -1
- package/dist/cli/{chunk-C54S4QPU.mjs → chunk-JZK7OEG7.mjs} +2 -2
- package/dist/cli/{chunk-KNAKCMGJ.js → chunk-KGQNIA37.js} +17 -17
- package/dist/cli/{chunk-LBZUIZKQ.mjs → chunk-KUWUIXC7.mjs} +2 -2
- package/dist/cli/{chunk-OAVHRVPA.js → chunk-LBZGICM5.js} +2 -2
- package/dist/cli/{chunk-CQ3ZZ3RL.js → chunk-MERFSCZL.js} +16 -16
- package/dist/cli/{chunk-3OBHZADJ.mjs → chunk-MTRBEEIJ.mjs} +1 -1
- package/dist/cli/{chunk-V247SCRQ.js → chunk-MU76KMIL.js} +20 -20
- package/dist/cli/{chunk-GGMJ2VTZ.js → chunk-N5CNBKPY.js} +246 -246
- package/dist/cli/{chunk-NHWNFLFK.mjs → chunk-PE4GNPHD.mjs} +2 -2
- package/dist/cli/{chunk-PP66EATA.js → chunk-PQUUWFXY.js} +2 -2
- package/dist/cli/{chunk-FB7VBDA3.mjs → chunk-R4AKASN2.mjs} +3 -3
- package/dist/cli/{chunk-3SELRVWB.mjs → chunk-R53NKATP.mjs} +5 -5
- package/dist/cli/{chunk-COCZROBN.js → chunk-RZ25NO6A.js} +26 -26
- package/dist/cli/{chunk-WQPJQEDE.mjs → chunk-SLEUWLJE.mjs} +4 -3
- package/dist/cli/{chunk-H6HZMADG.js → chunk-SSPHVLOF.js} +52 -52
- package/dist/cli/{chunk-ZRWX23RQ.mjs → chunk-T56WZU3Q.mjs} +1 -1
- package/dist/cli/{chunk-MMMA4OLB.js → chunk-TY6KOFLR.js} +8 -8
- package/dist/cli/{chunk-SAN2HUYZ.mjs → chunk-ULGMJRSU.mjs} +11 -11
- package/dist/cli/{chunk-TABMEHIP.js → chunk-WX4K4TNG.js} +4 -4
- package/dist/cli/{chunk-HFXG7GGH.js → chunk-XK7USWW3.js} +6 -6
- package/dist/cli/{chunk-EI2NN6HP.js → chunk-XQSQNS73.js} +1 -1
- package/dist/cli/{chunk-FKAHVFPJ.mjs → chunk-YBWAG72P.mjs} +1 -1
- package/dist/cli/{chunk-QFXPA2E4.js → chunk-Z2GUFYT6.js} +9 -8
- package/dist/cli/{chunk-LRNYRGCN.js → chunk-Z2XUZC34.js} +32 -5
- package/dist/cli/{csv-NAATVV3O.js → csv-I2U2XHF2.js} +12 -12
- package/dist/cli/{csv-QXMJNWPE.mjs → csv-J2CGPTVS.mjs} +3 -3
- package/dist/cli/{db-2ADNWVDN.mjs → db-7ZYN4RSF.mjs} +4 -4
- package/dist/cli/{db-IB426AKH.js → db-ID7WE25S.js} +25 -25
- package/dist/cli/{describe-6T2HEQ2V.js → describe-6MWB45ZF.js} +24 -24
- package/dist/cli/{describe-UM4PAI2I.mjs → describe-KIE5HRU6.mjs} +16 -16
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-3WVCUBHH.js → executions-NPH4K6V4.js} +6 -6
- package/dist/cli/{executions-4NCMXHDI.mjs → executions-UAKS7E5U.mjs} +4 -4
- package/dist/cli/{feedback-C4IBRZKH.js → feedback-T65QHRNJ.js} +7 -7
- package/dist/cli/{feedback-OKLN3VLD.mjs → feedback-VGRGR5TG.mjs} +3 -3
- package/dist/cli/{git-A6XP6LIW.mjs → git-MHBPDHFC.mjs} +4 -4
- package/dist/cli/git-YKUQZPWL.js +24 -0
- package/dist/cli/index.js +131 -131
- package/dist/cli/index.mjs +36 -36
- package/dist/cli/{legacy-noops-LCQXCYQY.mjs → legacy-noops-O27BEOS7.mjs} +4 -4
- package/dist/cli/{legacy-noops-ALY2PBIT.js → legacy-noops-UWDPM46V.js} +7 -7
- package/dist/cli/{monitors-T3YN2RYD.mjs → monitors-OEQ7GQ7Z.mjs} +4 -4
- package/dist/cli/{monitors-5C6PSVAT.js → monitors-U4O52KL7.js} +84 -84
- package/dist/cli/{org-4V76A3LD.js → org-FKNL42W7.js} +66 -66
- package/dist/cli/{org-7WLA42NC.mjs → org-TCP4TADK.mjs} +4 -4
- package/dist/cli/{play-WRHGX3WB.mjs → play-3UFJK5TR.mjs} +12 -12
- package/dist/cli/{play-UT3TLBM6.js → play-H2XWJ2GR.js} +296 -296
- package/dist/cli/{providers-UA2DJLBP.mjs → providers-SYZJQNNL.mjs} +4 -4
- package/dist/cli/{providers-ZR4SRGJF.js → providers-ZDLZX6AB.js} +7 -7
- package/dist/cli/{quickstart-QN5FXZWS.js → quickstart-GPFZQF5I.js} +5 -5
- package/dist/cli/{quickstart-IT46STSN.mjs → quickstart-LLZAA3YH.mjs} +3 -3
- package/dist/cli/search-WQ77HY2K.js +30 -0
- package/dist/cli/{search-QKK5SGMV.mjs → search-XEZ6YINQ.mjs} +5 -5
- package/dist/cli/{secrets-FX3IVBUP.js → secrets-6LG6WSV4.js} +13 -13
- package/dist/cli/{secrets-GWXM2FH4.mjs → secrets-GTUPRTIQ.mjs} +4 -4
- package/dist/cli/{sessions-G6LCRYTC.js → sessions-6T7GLRAE.js} +5 -5
- package/dist/cli/{sessions-FDZ24XY4.mjs → sessions-FCD3L6BO.mjs} +4 -4
- package/dist/cli/{settings-6W42BCZE.js → settings-BLS3NVLD.js} +75 -75
- package/dist/cli/{settings-77ODFZUE.mjs → settings-TMJK4XRG.mjs} +8 -8
- package/dist/cli/{setup-T3FF5IRN.js → setup-CLGJAUHO.js} +42 -42
- package/dist/cli/{setup-5OBB5UGB.mjs → setup-XIWCJNVC.mjs} +7 -7
- package/dist/cli/{skills-ADG7CBUP.mjs → skills-CAZWF6XW.mjs} +5 -5
- package/dist/cli/skills-VRIWFWDM.js +29 -0
- package/dist/cli/tools-E4JIROSM.js +44 -0
- package/dist/cli/{tools-OBZRYZ7K.mjs → tools-ZW5RKTQD.mjs} +15 -15
- package/dist/cli/update-DFQ3SX6R.js +31 -0
- package/dist/cli/{update-ODKOYFCA.mjs → update-EEAZY5SI.mjs} +7 -7
- package/dist/cli/{workflow-TBLNAOXJ.js → workflow-6WUBJEPO.js} +15 -15
- package/dist/cli/{workflow-RGKEVZSP.mjs → workflow-QQW22LYJ.mjs} +5 -5
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +86 -86
- 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-ZA4FRBSX.js +0 -40
- package/dist/cli/git-RRZOWDCN.js +0 -24
- package/dist/cli/search-INZD56I2.js +0 -30
- package/dist/cli/skills-ALCERVAB.js +0 -29
- package/dist/cli/tools-FNWIMNNK.js +0 -44
- package/dist/cli/update-N7I4MXRK.js +0 -31
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
var _chunkZM2YPJQJjs = require('./chunk-ZM2YPJQJ.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk6PTUA4M7js = require('./chunk-6PTUA4M7.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunk7X7GEXHCjs = require('./chunk-7X7GEXHC.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkWX4K4TNGjs = require('./chunk-WX4K4TNG.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, _chunkWX4K4TNGjs.sdkCliStateDirPath.call(void 0, _chunkWX4K4TNGjs.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 _chunk7X7GEXHCjs.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
|
+
${_chunk7X7GEXHCjs.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, _chunk6PTUA4M7js.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
|
+
_chunk7X7GEXHCjs.printCommandEnvelope.call(void 0, result, {
|
|
6005
6005
|
json: options.json === true,
|
|
6006
6006
|
text: renderSearchResults(result, summaryWidth)
|
|
6007
6007
|
});
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addDescribeOptions,
|
|
3
3
|
recordApiResponse
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-YBWAG72P.mjs";
|
|
5
5
|
import {
|
|
6
6
|
recentSearchRef,
|
|
7
7
|
registerDeprecatedSearchCommand
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-R4AKASN2.mjs";
|
|
9
9
|
import {
|
|
10
10
|
arrayField,
|
|
11
11
|
formatModelDescription,
|
|
@@ -24,10 +24,10 @@ import {
|
|
|
24
24
|
toolInputFieldsForDisplay,
|
|
25
25
|
toolMetadataJsonForDescribe,
|
|
26
26
|
toolOutputFieldsForDisplay
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-SLEUWLJE.mjs";
|
|
28
28
|
import {
|
|
29
29
|
rateLimitQualifier
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-HDFRJ4IT.mjs";
|
|
31
31
|
import {
|
|
32
32
|
shellQuote
|
|
33
33
|
} from "./chunk-OVDNJAJN.mjs";
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
import {
|
|
49
49
|
DeeplineClient,
|
|
50
50
|
validateExecutionIdempotencyKey
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-ISQLFI2O.mjs";
|
|
52
52
|
import {
|
|
53
53
|
stableStringify
|
|
54
54
|
} from "./chunk-UBKA33KY.mjs";
|
|
@@ -58,18 +58,18 @@ import {
|
|
|
58
58
|
maybeAutoUpdateAndRelaunch,
|
|
59
59
|
registerCompatibilityCatalog,
|
|
60
60
|
runToolExecuteStage
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-6XL3IIFD.mjs";
|
|
62
62
|
import {
|
|
63
63
|
isCliTraceEnabled,
|
|
64
64
|
recordCliTrace,
|
|
65
65
|
resolveCliMaintenancePolicy
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-D7ES6PAW.mjs";
|
|
67
67
|
import {
|
|
68
68
|
checkSdkCompatibility,
|
|
69
69
|
enforceSdkCompatibilityResponse,
|
|
70
70
|
flushDeferredSkillsSyncNotices,
|
|
71
71
|
syncSdkSkillsIfNeeded
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-7HUXIWE2.mjs";
|
|
73
73
|
import {
|
|
74
74
|
printCommandEnvelope,
|
|
75
75
|
printCompactJson,
|
|
@@ -77,12 +77,12 @@ import {
|
|
|
77
77
|
printJsonError,
|
|
78
78
|
renderCommandEnvelopeText,
|
|
79
79
|
shouldEmitJson
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-MTRBEEIJ.mjs";
|
|
81
81
|
import {
|
|
82
82
|
readSdkSkillsLocalVersion,
|
|
83
83
|
resolveConfig,
|
|
84
84
|
sdkCliStateDirPath
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-T56WZU3Q.mjs";
|
|
86
86
|
import {
|
|
87
87
|
DeeplineError
|
|
88
88
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
@@ -971,7 +971,7 @@ Examples:
|
|
|
971
971
|
process.exitCode = await narrowView();
|
|
972
972
|
return;
|
|
973
973
|
}
|
|
974
|
-
const { describeAnything } = await import("./describe-
|
|
974
|
+
const { describeAnything } = await import("./describe-KIE5HRU6.mjs");
|
|
975
975
|
process.exitCode = await describeAnything(
|
|
976
976
|
toolId,
|
|
977
977
|
{
|
|
@@ -17,7 +17,7 @@ var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
|
|
|
17
17
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkXQSQNS73js = require('./chunk-XQSQNS73.js');
|
|
21
21
|
|
|
22
22
|
// src/config.ts
|
|
23
23
|
|
|
@@ -649,9 +649,9 @@ function resolveCliCommandContext(inputConfig, requestedScope) {
|
|
|
649
649
|
}
|
|
650
650
|
|
|
651
651
|
// src/version.ts
|
|
652
|
-
var SDK_VERSION =
|
|
653
|
-
var SDK_API_MAJOR =
|
|
654
|
-
var SDK_API_CONTRACT = _nullishCoalesce(
|
|
652
|
+
var SDK_VERSION = _chunkXQSQNS73js.SDK_RELEASE.version;
|
|
653
|
+
var SDK_API_MAJOR = _chunkXQSQNS73js.SDK_RELEASE.contracts.api.currentMajor;
|
|
654
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunkXQSQNS73js.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
|
|
655
655
|
|
|
656
656
|
// src/agent-runtime.ts
|
|
657
657
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkLBZGICM5js = require('./chunk-LBZGICM5.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkSSPHVLOFjs = require('./chunk-SSPHVLOF.js');
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -14,17 +14,17 @@ function usesInlinePlayAdmission(command, args) {
|
|
|
14
14
|
);
|
|
15
15
|
}
|
|
16
16
|
async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configured") {
|
|
17
|
-
if (maintenancePolicy !== "off")
|
|
18
|
-
const compatibility = await
|
|
17
|
+
if (maintenancePolicy !== "off") _chunkSSPHVLOFjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
18
|
+
const compatibility = await _chunkLBZGICM5js.traceCliSpan.call(void 0,
|
|
19
19
|
"cli.sdk_compatibility",
|
|
20
20
|
{ baseUrl, command: "plays run" },
|
|
21
|
-
() =>
|
|
21
|
+
() => _chunkSSPHVLOFjs.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
22
22
|
command: "plays run",
|
|
23
23
|
persistCache: maintenancePolicy !== "off"
|
|
24
24
|
})
|
|
25
25
|
);
|
|
26
26
|
if (compatibility.error) throw compatibility.error;
|
|
27
|
-
|
|
27
|
+
_chunkSSPHVLOFjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
|
|
28
28
|
quietAdvisory: true
|
|
29
29
|
});
|
|
30
30
|
}
|
|
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
|
|
|
49
49
|
// getters keep their established compatibility behavior.
|
|
50
50
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
51
51
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
52
|
-
version: "0.3.
|
|
52
|
+
version: "0.3.446",
|
|
53
53
|
updateSummary: {
|
|
54
54
|
introducedIn: "0.3.90",
|
|
55
55
|
summary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release."
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkZ2XUZC34js = require('./chunk-Z2XUZC34.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -346,7 +346,7 @@ function extractorValueType(name) {
|
|
|
346
346
|
}
|
|
347
347
|
const named = NAMED_VALUE_SHAPES[definition.valueKind];
|
|
348
348
|
if (!named) return { type: "string" };
|
|
349
|
-
const { type, fields } =
|
|
349
|
+
const { type, fields } = _chunkZ2XUZC34js.schemaField.call(void 0, name, named.schema, true);
|
|
350
350
|
return { type, ...fields ? { fields } : {}, shape: named.shape };
|
|
351
351
|
}
|
|
352
352
|
function jsonSchemaOf(wrapper) {
|
|
@@ -383,7 +383,7 @@ function describedTool(tool, requestedToolId) {
|
|
|
383
383
|
description,
|
|
384
384
|
cost: stringField(recordField(tool, "pricing"), "displayText") || void 0,
|
|
385
385
|
guidance: [],
|
|
386
|
-
inputs:
|
|
386
|
+
inputs: _chunkZ2XUZC34js.schemaFields.call(void 0,
|
|
387
387
|
recordField(tool, "payload_schema", "payloadSchema")
|
|
388
388
|
),
|
|
389
389
|
outputs: [],
|
|
@@ -398,6 +398,7 @@ function describedTool(tool, requestedToolId) {
|
|
|
398
398
|
const billing = stringField(cost, "billingSourceLabel");
|
|
399
399
|
const deprecation = recordField(contract, "deprecation");
|
|
400
400
|
const getters = recordField(contract, "getters");
|
|
401
|
+
const inputSchema = jsonSchemaOf(recordField(contract, "inputSchema"));
|
|
401
402
|
const outputSchema = jsonSchemaOf(recordField(contract, "outputSchema"));
|
|
402
403
|
const toolResult = recordField(tool, "toolResult", "tool_result");
|
|
403
404
|
const getterDetails = (kind) => new Map(
|
|
@@ -419,7 +420,7 @@ function describedTool(tool, requestedToolId) {
|
|
|
419
420
|
(path) => path.replace(/^toolResponse\.raw\./, "")
|
|
420
421
|
);
|
|
421
422
|
const node = roots.flatMap((root) => paths.map((path) => schemaNodeAt(root, path))).find(isRecord);
|
|
422
|
-
const { fields, ...typed } =
|
|
423
|
+
const { fields, ...typed } = _chunkZ2XUZC34js.schemaField.call(void 0, name, node, true);
|
|
423
424
|
const valueType = stringField(_nullishCoalesce(details.get(name), () => ( {})), "valueType");
|
|
424
425
|
const deepline = kind === "extractedValues" ? extractorValueType(name) : void 0;
|
|
425
426
|
const known = typed.type !== "unknown" ? void 0 : kind === "extractedLists" ? { type: "object[]" } : deepline;
|
|
@@ -477,13 +478,13 @@ function describedTool(tool, requestedToolId) {
|
|
|
477
478
|
(line) => typeof line === "string" && /[a-z0-9]/i.test(line)
|
|
478
479
|
)
|
|
479
480
|
],
|
|
480
|
-
rateLimit:
|
|
481
|
+
rateLimit: _chunkZ2XUZC34js.rateLimitSummary.call(void 0,
|
|
481
482
|
recordField(contract, "executionMetadata").configuredRateLimits
|
|
482
483
|
),
|
|
483
|
-
inputs:
|
|
484
|
+
inputs: _chunkZ2XUZC34js.schemaFields.call(void 0, inputSchema),
|
|
484
485
|
outputs: [...lists, ...values].map(({ field }) => field),
|
|
485
|
-
rawResponse:
|
|
486
|
-
runner: playReference ? { via: "play", reference: playReference } : { via: "tool", toolId: String(contract.toolId) }
|
|
486
|
+
rawResponse: _chunkZ2XUZC34js.schemaFields.call(void 0, outputSchema),
|
|
487
|
+
runner: playReference ? { via: "play", reference: playReference } : { via: "tool", toolId: String(contract.toolId), inputSchema }
|
|
487
488
|
};
|
|
488
489
|
}
|
|
489
490
|
function sampleValueForField(field) {
|
|
@@ -178,11 +178,16 @@ function rateLimitQualifier(limit) {
|
|
|
178
178
|
].filter(Boolean);
|
|
179
179
|
return notes.length ? ` ${notes.join(", ")}` : "";
|
|
180
180
|
}
|
|
181
|
-
function exampleValue(field) {
|
|
181
|
+
function exampleValue(field, schema) {
|
|
182
182
|
if (field.example !== void 0) return field.example;
|
|
183
183
|
if (field.type.startsWith(RECORD)) {
|
|
184
184
|
const value = field.type.slice(RECORD.length).replace(/>( \| null)?$/, "");
|
|
185
|
-
return {
|
|
185
|
+
return {
|
|
186
|
+
key: exampleValue(
|
|
187
|
+
{ ...field, type: value },
|
|
188
|
+
isRecord(schema) ? schema.additionalProperties : void 0
|
|
189
|
+
)
|
|
190
|
+
};
|
|
186
191
|
}
|
|
187
192
|
const literal = /^"(?:[^"\\]|\\.)*"/.exec(field.type);
|
|
188
193
|
if (literal) return JSON.parse(literal[0]);
|
|
@@ -190,14 +195,30 @@ function exampleValue(field) {
|
|
|
190
195
|
if (type.includes("[]")) return [];
|
|
191
196
|
if (type.startsWith(SHAPE)) {
|
|
192
197
|
return Object.fromEntries(
|
|
193
|
-
(_nullishCoalesce(field.fields, () => ( []))).filter((child) => child.required).map((child) => [
|
|
198
|
+
(_nullishCoalesce(field.fields, () => ( []))).filter((child) => child.required).map((child) => [
|
|
199
|
+
child.name,
|
|
200
|
+
exampleValue(child, propertySchema(schema, child.name))
|
|
201
|
+
])
|
|
194
202
|
);
|
|
195
203
|
}
|
|
196
204
|
if (type.startsWith("object")) return {};
|
|
197
|
-
if (type.startsWith("integer") || type.startsWith("number"))
|
|
205
|
+
if (type.startsWith("integer") || type.startsWith("number")) {
|
|
206
|
+
return lowestNumber(schema);
|
|
207
|
+
}
|
|
198
208
|
if (type.startsWith("boolean")) return true;
|
|
199
209
|
return "...";
|
|
200
210
|
}
|
|
211
|
+
function propertySchema(schema, name) {
|
|
212
|
+
return isRecord(schema) && isRecord(schema.properties) ? schema.properties[name] : void 0;
|
|
213
|
+
}
|
|
214
|
+
function lowestNumber(schema) {
|
|
215
|
+
const bounds = isRecord(schema) ? schema : {};
|
|
216
|
+
const lowest = Math.max(
|
|
217
|
+
typeof bounds.minimum === "number" ? bounds.minimum : -Infinity,
|
|
218
|
+
typeof bounds.exclusiveMinimum === "number" ? bounds.exclusiveMinimum + 1 : -Infinity
|
|
219
|
+
);
|
|
220
|
+
return lowest >= 0 ? lowest : 1;
|
|
221
|
+
}
|
|
201
222
|
function shapeKey(fields) {
|
|
202
223
|
return JSON.stringify(
|
|
203
224
|
fields.map((field) => [
|
|
@@ -454,8 +475,14 @@ function examples(described, options) {
|
|
|
454
475
|
const { runner } = described;
|
|
455
476
|
const required = described.inputs.filter((field) => field.required);
|
|
456
477
|
const shown = options.verbose ? described.inputs : required.length ? required : described.inputs.slice(0, 1);
|
|
478
|
+
const inputSchema = runner.via === "tool" && runner.inputSchema !== void 0 ? withoutRefs(runner.inputSchema, runner.inputSchema) : void 0;
|
|
457
479
|
const input = JSON.stringify(
|
|
458
|
-
Object.fromEntries(
|
|
480
|
+
Object.fromEntries(
|
|
481
|
+
shown.map((field) => [
|
|
482
|
+
field.name,
|
|
483
|
+
exampleValue(field, propertySchema(inputSchema, field.name))
|
|
484
|
+
])
|
|
485
|
+
)
|
|
459
486
|
);
|
|
460
487
|
const read = options.verbose ? described.outputs : described.outputs.filter((field) => !field.secondary).slice(0, 1);
|
|
461
488
|
const reads = (expression) => read.flatMap((field) => {
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
7
|
+
var _chunk7X7GEXHCjs = require('./chunk-7X7GEXHC.js');
|
|
8
|
+
require('./chunk-WX4K4TNG.js');
|
|
9
9
|
require('./chunk-ALJJRZNJ.js');
|
|
10
10
|
require('./chunk-XNYIZMNQ.js');
|
|
11
11
|
require('./chunk-DIAWYWT5.js');
|
|
12
|
-
require('./chunk-
|
|
12
|
+
require('./chunk-XQSQNS73.js');
|
|
13
13
|
require('./chunk-OG64RBAC.js');
|
|
14
14
|
require('./chunk-COGTRVWW.js');
|
|
15
15
|
|
|
@@ -127,7 +127,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
|
|
|
127
127
|
column.length,
|
|
128
128
|
...rows.map((row) => {
|
|
129
129
|
const value = _nullishCoalesce(row[column], () => ( ""));
|
|
130
|
-
return (verbose ? value :
|
|
130
|
+
return (verbose ? value : _chunk7X7GEXHCjs.clip.call(void 0, value, 42)).length;
|
|
131
131
|
})
|
|
132
132
|
)
|
|
133
133
|
])
|
|
@@ -137,7 +137,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
|
|
|
137
137
|
const body = rows.map(
|
|
138
138
|
(row) => columns.map((column) => {
|
|
139
139
|
const raw = _nullishCoalesce(row[column], () => ( ""));
|
|
140
|
-
const display = verbose ? raw :
|
|
140
|
+
const display = verbose ? raw : _chunk7X7GEXHCjs.clip.call(void 0, raw, 42);
|
|
141
141
|
return display.padEnd(widths[column]);
|
|
142
142
|
}).join(" | ")
|
|
143
143
|
);
|
|
@@ -157,7 +157,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
157
157
|
{ exitCode: 2 }
|
|
158
158
|
);
|
|
159
159
|
}
|
|
160
|
-
const allRows =
|
|
160
|
+
const allRows = _chunk7X7GEXHCjs.readCsvRows.call(void 0, csvPath);
|
|
161
161
|
const [rowStart, rowEnd] = parseRowRange(options.rows);
|
|
162
162
|
const rows = options.summary && options.rows === void 0 ? allRows : selectRows(allRows, rowStart, rowEnd);
|
|
163
163
|
const { rows: selected, columns } = selectColumns(
|
|
@@ -170,7 +170,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
170
170
|
if (options.summary) {
|
|
171
171
|
const summaries = summarizeColumns(selected, columns);
|
|
172
172
|
if (format === "json") {
|
|
173
|
-
|
|
173
|
+
_chunk7X7GEXHCjs.printJson.call(void 0, {
|
|
174
174
|
rows: summaries,
|
|
175
175
|
total_rows: selected.length,
|
|
176
176
|
source_total_rows: allRows.length
|
|
@@ -179,7 +179,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
179
179
|
}
|
|
180
180
|
const displayRows = summaryDisplayRows(summaries);
|
|
181
181
|
if (format === "csv") {
|
|
182
|
-
process.stdout.write(
|
|
182
|
+
process.stdout.write(_chunk7X7GEXHCjs.csvStringFromRows.call(void 0, displayRows));
|
|
183
183
|
return;
|
|
184
184
|
}
|
|
185
185
|
process.stdout.write(
|
|
@@ -194,7 +194,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
194
194
|
return;
|
|
195
195
|
}
|
|
196
196
|
if (format === "json") {
|
|
197
|
-
|
|
197
|
+
_chunk7X7GEXHCjs.printJson.call(void 0, {
|
|
198
198
|
rows: selected.map((row, index) => ({ __row: rowStart + index, ...row }))
|
|
199
199
|
});
|
|
200
200
|
return;
|
|
@@ -437,7 +437,7 @@ async function handleCsvRenderStart(options) {
|
|
|
437
437
|
if (log) {
|
|
438
438
|
detail = `
|
|
439
439
|
CSV render log:
|
|
440
|
-
${
|
|
440
|
+
${_chunk7X7GEXHCjs.clip.call(void 0, log, 2e3)}`;
|
|
441
441
|
}
|
|
442
442
|
} catch (e7) {
|
|
443
443
|
}
|
|
@@ -488,7 +488,7 @@ async function handleCsvRenderStatus(options) {
|
|
|
488
488
|
if (payload.pid) lines.push(`Render PID: ${payload.pid}`);
|
|
489
489
|
if (payload.url) lines.push(`Render URL: ${payload.url}`);
|
|
490
490
|
lines.push(`Render Health: ${payload.health_status}`);
|
|
491
|
-
|
|
491
|
+
_chunk7X7GEXHCjs.printCommandEnvelope.call(void 0, payload, {
|
|
492
492
|
json: options.json,
|
|
493
493
|
text: `${lines.join("\n")}
|
|
494
494
|
`
|
|
@@ -524,7 +524,7 @@ async function handleCsvRenderStop(options) {
|
|
|
524
524
|
};
|
|
525
525
|
const text = stopped.length > 0 ? `Stopped CSV render process(es): ${stopped.join(" ")}
|
|
526
526
|
` : "No running CSV render process found.\n";
|
|
527
|
-
|
|
527
|
+
_chunk7X7GEXHCjs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
|
|
528
528
|
}
|
|
529
529
|
async function handleCsvRender(action, options) {
|
|
530
530
|
const normalized = _nullishCoalesce(action, () => ( "start"));
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
printCommandEnvelope,
|
|
5
5
|
printJson,
|
|
6
6
|
readCsvRows
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-MTRBEEIJ.mjs";
|
|
8
|
+
import "./chunk-T56WZU3Q.mjs";
|
|
9
9
|
import "./chunk-4QF2K7TM.mjs";
|
|
10
10
|
import "./chunk-DLIRSHV6.mjs";
|
|
11
11
|
import "./chunk-HBL4PM5Q.mjs";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-HBC7PNWS.mjs";
|
|
13
13
|
import "./chunk-WZYKRD7T.mjs";
|
|
14
14
|
import "./chunk-KRD6H754.mjs";
|
|
15
15
|
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
DeeplineClient,
|
|
6
6
|
planCustomerDbQuery
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ISQLFI2O.mjs";
|
|
8
8
|
import "./chunk-L2VKAASU.mjs";
|
|
9
9
|
import "./chunk-FAG4DFUC.mjs";
|
|
10
10
|
import "./chunk-EIMG75BT.mjs";
|
|
@@ -18,8 +18,8 @@ import {
|
|
|
18
18
|
printCommandEnvelope,
|
|
19
19
|
recordRows,
|
|
20
20
|
shouldEmitJson
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-MTRBEEIJ.mjs";
|
|
22
|
+
import "./chunk-T56WZU3Q.mjs";
|
|
23
23
|
import {
|
|
24
24
|
CustomerDbQueryOutcomeUnknownError
|
|
25
25
|
} from "./chunk-4QF2K7TM.mjs";
|
|
@@ -27,7 +27,7 @@ import "./chunk-DLIRSHV6.mjs";
|
|
|
27
27
|
import {
|
|
28
28
|
DeeplineError
|
|
29
29
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-HBC7PNWS.mjs";
|
|
31
31
|
import "./chunk-WZYKRD7T.mjs";
|
|
32
32
|
import "./chunk-KRD6H754.mjs";
|
|
33
33
|
|