deepline 0.3.347 → 0.3.349
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/client.ts +5 -0
- package/dist/bundling-sources/sdk/src/index.ts +1 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/integration-contracts/billing-entitlements.ts +29 -0
- package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +32 -1
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +17 -1
- package/dist/bundling-sources/shared_libs/play-runtime/execution-capabilities.ts +18 -0
- package/dist/bundling-sources/shared_libs/play-runtime/internal-bootstrap-token.ts +9 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-authority.ts +11 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-operation-contract.ts +6 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +38 -13
- package/dist/bundling-sources/shared_libs/play-runtime/workflow-executor-auth.ts +3 -0
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +13 -0
- package/dist/bundling-sources/shared_libs/product-notifications/billing-sales.ts +1 -1
- package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +1 -1
- package/dist/bundling-sources/shared_libs/product-notifications/events.ts +5 -1
- package/dist/cli/auth-KGXZELZ3.js +31 -0
- package/dist/cli/{auth-RWP45MJX.mjs → auth-MPHXSP64.mjs} +4 -4
- package/dist/cli/{billing-F6RNSQWW.js → billing-2KUUGVDZ.js} +99 -72
- package/dist/cli/{billing-XPKHI4LF.mjs → billing-K5WCTRBE.mjs} +31 -4
- package/dist/cli/{chunk-FKKNYKDY.js → chunk-5O4B6AUN.js} +2 -0
- package/dist/cli/{chunk-AOKWJJLP.mjs → chunk-6OVLJLYH.mjs} +1 -1
- package/dist/cli/{chunk-GS2ZSOAQ.js → chunk-6YZDQZE6.js} +2 -2
- package/dist/cli/{chunk-NTVTZAVZ.mjs → chunk-7E66A24V.mjs} +2 -0
- package/dist/cli/{chunk-VRYRVD3F.mjs → chunk-BEGPN6NG.mjs} +1 -1
- package/dist/cli/{chunk-X32ZLEUU.mjs → chunk-BPJTGASI.mjs} +2 -2
- package/dist/cli/{chunk-AGV2VS4U.js → chunk-CRSMVSER.js} +54 -54
- package/dist/cli/{chunk-NU5EU2SH.mjs → chunk-DOHULRK2.mjs} +4 -4
- package/dist/cli/{chunk-IIOBMOMH.mjs → chunk-DSWSEHRX.mjs} +1 -1
- package/dist/cli/{chunk-ROEN4NXY.js → chunk-GHYMVZID.js} +60 -60
- package/dist/cli/{chunk-Y6D2JYBR.mjs → chunk-GXN7DGNL.mjs} +2 -2
- package/dist/cli/{chunk-LH4VHCN5.mjs → chunk-HVD3DK7S.mjs} +6 -6
- package/dist/cli/{chunk-BUXJSW26.js → chunk-I4VZKXMX.js} +26 -26
- package/dist/cli/{chunk-EOS73ZCP.js → chunk-IHYVEM5Q.js} +8 -8
- package/dist/cli/{chunk-5UJOJKPW.js → chunk-JBGR6U57.js} +4 -4
- package/dist/cli/{chunk-PQGDU7B5.mjs → chunk-JKJSTQ2I.mjs} +1 -1
- package/dist/cli/{chunk-L4TXOCCC.js → chunk-KW25DKRC.js} +1 -1
- package/dist/cli/{chunk-LPKV6IBM.js → chunk-M42H2BPA.js} +8 -8
- package/dist/cli/{chunk-3PRBUTJK.js → chunk-MVQ3JAJA.js} +242 -242
- package/dist/cli/{chunk-LTJOC47W.mjs → chunk-O2FM2MS5.mjs} +7 -7
- package/dist/cli/{chunk-GT7OCAWV.js → chunk-QAM2K3CG.js} +48 -48
- package/dist/cli/{chunk-JB4UKD3B.js → chunk-QCSLIEMC.js} +6 -6
- package/dist/cli/{chunk-OJVAVQLB.js → chunk-QGKPTBRR.js} +3 -3
- package/dist/cli/{chunk-723POEH5.js → chunk-S347PHNB.js} +10 -9
- package/dist/cli/{chunk-U2GPF4SB.mjs → chunk-SPB6CF4S.mjs} +2 -2
- package/dist/cli/{chunk-WX7W76U7.js → chunk-TVS3TAFR.js} +15 -15
- package/dist/cli/{chunk-OS6CZRJE.mjs → chunk-UE7DS2YV.mjs} +3 -3
- package/dist/cli/{chunk-AYR45POY.mjs → chunk-VDOH4A34.mjs} +2 -1
- package/dist/cli/{chunk-3JJLQQLW.mjs → chunk-WOFHIUOT.mjs} +2 -2
- package/dist/cli/{chunk-SFJEAK54.mjs → chunk-ZQ6UF55Y.mjs} +1 -1
- package/dist/cli/{client-FZJ3RSO3.mjs → client-JWKYNLCR.mjs} +3 -3
- package/dist/cli/client-O4DPNWVJ.js +20 -0
- package/dist/cli/{csv-QSMT5HZS.js → csv-IW75DRFX.js} +12 -12
- package/dist/cli/{csv-HPBPBU3I.mjs → csv-Y2O237NO.mjs} +3 -3
- package/dist/cli/{db-IKZKICP3.js → db-6Q4VK5T2.js} +29 -29
- package/dist/cli/{db-2KAUAVVC.mjs → db-JW6UUJXC.mjs} +4 -4
- package/dist/cli/{describe-QM7Q5Y2H.js → describe-DI65QISF.js} +17 -17
- package/dist/cli/{describe-EW4GZMUK.mjs → describe-JLN4RTGM.mjs} +10 -10
- package/dist/cli/{executions-5ICONLFX.js → executions-GB2E3BU6.js} +6 -6
- package/dist/cli/{executions-U5WWUFEZ.mjs → executions-UK6LA2O5.mjs} +4 -4
- package/dist/cli/{feedback-N2KGAK4V.js → feedback-MJE3A5ON.js} +7 -7
- package/dist/cli/{feedback-ZBQPQPFG.mjs → feedback-N2KAFS3R.mjs} +3 -3
- package/dist/cli/git-A7J4SSRV.js +23 -0
- package/dist/cli/{git-M5YEP57H.mjs → git-NWRJFNII.mjs} +4 -4
- package/dist/cli/index.js +79 -79
- package/dist/cli/index.mjs +31 -31
- package/dist/cli/{legacy-noops-IQIPPJF7.js → legacy-noops-EIO65N6W.js} +7 -7
- package/dist/cli/{legacy-noops-GJUYBH2F.mjs → legacy-noops-RR4W2TTE.mjs} +4 -4
- package/dist/cli/{monitors-XJAJNMG4.mjs → monitors-HNUCJYET.mjs} +4 -4
- package/dist/cli/{monitors-DQUCHISX.js → monitors-U7NVJDQL.js} +85 -85
- package/dist/cli/{org-DFWDN4EJ.mjs → org-O7MFRQNG.mjs} +4 -4
- package/dist/cli/{org-G45CXUJV.js → org-UBHNTBSB.js} +60 -60
- package/dist/cli/{play-URTZW2Q4.mjs → play-4EIIEFQK.mjs} +9 -9
- package/dist/cli/play-IHLNNVPR.js +153 -0
- package/dist/cli/{providers-IVUWWGFP.js → providers-CJ56HZIT.js} +7 -7
- package/dist/cli/{providers-CCKMRCXU.mjs → providers-REJIT7CX.mjs} +4 -4
- package/dist/cli/{quickstart-MMIVNRV4.js → quickstart-BZUQWQK5.js} +5 -5
- package/dist/cli/{quickstart-CRHIA3PZ.mjs → quickstart-DQN2LYBC.mjs} +3 -3
- package/dist/cli/{search-NDRDOINX.mjs → search-35UOMFL2.mjs} +5 -5
- package/dist/cli/search-4EPCIU2T.js +26 -0
- package/dist/cli/{secrets-GQUBMJGM.js → secrets-G4RYNUUD.js} +13 -13
- package/dist/cli/{secrets-SUC3KLLH.mjs → secrets-YJB66UXU.mjs} +4 -4
- package/dist/cli/{sessions-7CAU6JL5.mjs → sessions-BUWSRUSJ.mjs} +4 -4
- package/dist/cli/{sessions-AQCRVLHW.js → sessions-DGS7S6XX.js} +5 -5
- package/dist/cli/{settings-LFFOFAU6.mjs → settings-OCMJXIFD.mjs} +7 -7
- package/dist/cli/{settings-4SDI73XW.js → settings-OTWDMCM5.js} +74 -74
- package/dist/cli/{setup-FQ3E7U7G.js → setup-MYD34DUG.js} +41 -41
- package/dist/cli/{setup-BKCQOJBD.mjs → setup-UXYFRGIX.mjs} +6 -6
- package/dist/cli/skills-7UHWU7XL.js +28 -0
- package/dist/cli/{skills-USGJ5MF7.mjs → skills-LOWITZWQ.mjs} +4 -4
- package/dist/cli/tools-CBYKQ7IY.js +40 -0
- package/dist/cli/{tools-5HTXLDZ4.mjs → tools-YJHZJLES.mjs} +7 -7
- package/dist/cli/update-5M3OKPEU.js +28 -0
- package/dist/cli/{update-F7TIJEIV.mjs → update-PB5UCW4I.mjs} +6 -6
- package/dist/cli/{workflow-J5JVOUIL.js → workflow-DJYTA2YM.js} +15 -15
- package/dist/cli/{workflow-FXJ2D2MG.mjs → workflow-IH2FQSYZ.mjs} +5 -5
- package/dist/{client-rHyf5s_Y.d.ts → client-4DbE-U6e.d.ts} +3 -1
- package/dist/{client-D20uyRYB.d.mts → client-DIJpwhl-.d.mts} +3 -1
- package/dist/{compiler-manifest-CButyeZ8.d.ts → compiler-manifest-DgdW0q0b.d.mts} +42 -1
- package/dist/{compiler-manifest-CButyeZ8.d.mts → compiler-manifest-DgdW0q0b.d.ts} +42 -1
- package/dist/{index-BMsNUoL5.d.mts → index-C3nQQTI-.d.mts} +1 -1
- package/dist/{index-LDRzwo09.d.ts → index-CEYQAfS0.d.ts} +1 -1
- package/dist/index.d.mts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +7 -7
- package/dist/index.mjs +4 -4
- package/dist/install-integrity.json +85 -84
- 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/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +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-PSMCNXBC.js +0 -31
- package/dist/cli/client-J4QGSQ6Y.js +0 -20
- package/dist/cli/git-2N5LS25H.js +0 -23
- package/dist/cli/play-WWMUYKWS.js +0 -153
- package/dist/cli/search-YZL2QRIF.js +0 -26
- package/dist/cli/skills-7BPEGDIA.js +0 -28
- package/dist/cli/tools-5VEZ4QR4.js +0 -40
- package/dist/cli/update-YFPMWKI4.js +0 -28
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkQCSLIEMCjs = require('./chunk-QCSLIEMC.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkJBGR6U57js = require('./chunk-JBGR6U57.js');
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
|
|
@@ -139,7 +139,7 @@ function currentSessionFile(agent) {
|
|
|
139
139
|
const newestFirst = listSessionFiles(agent).sort(
|
|
140
140
|
(a, b) => b.mtimeMs - a.mtimeMs
|
|
141
141
|
);
|
|
142
|
-
const sessionId =
|
|
142
|
+
const sessionId = _chunkJBGR6U57js.agentSessionIdFromEnvironment.call(void 0, );
|
|
143
143
|
const cwd = process.cwd();
|
|
144
144
|
return _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(newestFirst.find((candidate) => candidate.sessionId === sessionId), () => ( newestFirst.find(
|
|
145
145
|
(candidate) => sessionStartedInDirectory(candidate, cwd)
|
|
@@ -448,7 +448,7 @@ function buildSessionUploadContent(raw) {
|
|
|
448
448
|
return { encodedContent: encoded, needsChunking: true };
|
|
449
449
|
}
|
|
450
450
|
async function uploadPayload(path, payload) {
|
|
451
|
-
const { http } =
|
|
451
|
+
const { http } = _chunkQCSLIEMCjs.getAuthedHttpClient.call(void 0, );
|
|
452
452
|
return await http.post(path, payload);
|
|
453
453
|
}
|
|
454
454
|
async function uploadChunkedSessions(sessions, options) {
|
|
@@ -481,7 +481,7 @@ async function uploadChunkedSessions(sessions, options) {
|
|
|
481
481
|
...options.rating ? { rating: options.rating } : {}
|
|
482
482
|
});
|
|
483
483
|
const sessionIds = sessions.map((session) => session.sessionId);
|
|
484
|
-
|
|
484
|
+
_chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
|
|
485
485
|
{
|
|
486
486
|
...response,
|
|
487
487
|
ok: true,
|
|
@@ -513,7 +513,7 @@ async function handleSessionsSend(options) {
|
|
|
513
513
|
filename: _path.basename.call(void 0, filePath),
|
|
514
514
|
...rating ? { rating } : {}
|
|
515
515
|
});
|
|
516
|
-
|
|
516
|
+
_chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
|
|
517
517
|
{
|
|
518
518
|
...response2,
|
|
519
519
|
ok: true,
|
|
@@ -563,7 +563,7 @@ async function handleSessionsSend(options) {
|
|
|
563
563
|
...rating ? { rating } : {}
|
|
564
564
|
});
|
|
565
565
|
const sessionIds = built.map((session) => session.sessionId);
|
|
566
|
-
|
|
566
|
+
_chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
|
|
567
567
|
{
|
|
568
568
|
...response,
|
|
569
569
|
ok: true,
|
|
@@ -671,7 +671,7 @@ ${refreshMeta}
|
|
|
671
671
|
</body>
|
|
672
672
|
</html>`;
|
|
673
673
|
_fs.writeFileSync.call(void 0, outputPath, html, "utf8");
|
|
674
|
-
|
|
674
|
+
_chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
|
|
675
675
|
{
|
|
676
676
|
ok: true,
|
|
677
677
|
file: outputPath,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkKW25DKRCjs = require('./chunk-KW25DKRC.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -743,9 +743,9 @@ function resolveCliCommandContext(inputConfig, requestedScope) {
|
|
|
743
743
|
}
|
|
744
744
|
|
|
745
745
|
// src/version.ts
|
|
746
|
-
var SDK_VERSION =
|
|
747
|
-
var SDK_API_MAJOR =
|
|
748
|
-
var SDK_API_CONTRACT = _nullishCoalesce(
|
|
746
|
+
var SDK_VERSION = _chunkKW25DKRCjs.SDK_RELEASE.version;
|
|
747
|
+
var SDK_API_MAJOR = _chunkKW25DKRCjs.SDK_RELEASE.contracts.api.currentMajor;
|
|
748
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunkKW25DKRCjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
|
|
749
749
|
|
|
750
750
|
// src/agent-runtime.ts
|
|
751
751
|
|
|
@@ -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.349",
|
|
53
53
|
updateSummary: "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.",
|
|
54
54
|
packageCapabilities: {
|
|
55
55
|
updatePreferences: 1
|
|
@@ -1,14 +1,14 @@
|
|
|
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 _chunkS347PHNBjs = require('./chunk-S347PHNB.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkQCSLIEMCjs = require('./chunk-QCSLIEMC.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkJBGR6U57js = require('./chunk-JBGR6U57.js');
|
|
12
12
|
|
|
13
13
|
// src/cli/commands/search.ts
|
|
14
14
|
var _commander = require('commander');
|
|
@@ -18,7 +18,7 @@ var _fs = require('fs');
|
|
|
18
18
|
var _path = require('path');
|
|
19
19
|
var SEARCH_REF_TTL_MS = 15 * 6e4;
|
|
20
20
|
function lastSearchPath() {
|
|
21
|
-
return _path.join.call(void 0,
|
|
21
|
+
return _path.join.call(void 0, _chunkJBGR6U57js.sdkCliStateDirPath.call(void 0, _chunkJBGR6U57js.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
22
22
|
}
|
|
23
23
|
function rememberSearchRef(searchRef) {
|
|
24
24
|
try {
|
|
@@ -130,7 +130,7 @@ function searchRow(item) {
|
|
|
130
130
|
}
|
|
131
131
|
function renderSearchResults(result) {
|
|
132
132
|
if (result.results.length === 0)
|
|
133
|
-
return
|
|
133
|
+
return _chunkQCSLIEMCjs.renderCommandEnvelopeText.call(void 0, result);
|
|
134
134
|
const rows = result.results.map(searchRow);
|
|
135
135
|
const kinds = new Set(rows.map((row) => row.kind));
|
|
136
136
|
const onlyTools = kinds.size === 1 && kinds.has("tool");
|
|
@@ -147,7 +147,7 @@ function renderSearchResults(result) {
|
|
|
147
147
|
actions: _optionalChain([render, 'optionalAccess', _9 => _9.actions])
|
|
148
148
|
};
|
|
149
149
|
const followUps = _optionalChain([remaining, 'access', _10 => _10.sections, 'optionalAccess', _11 => _11.length]) || _optionalChain([remaining, 'access', _12 => _12.actions, 'optionalAccess', _13 => _13.length]) ? `
|
|
150
|
-
${
|
|
150
|
+
${_chunkQCSLIEMCjs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
|
|
151
151
|
const notes = rows.flatMap(
|
|
152
152
|
(row) => row.notes.map((note) => ` ${row.id}: ${note}`)
|
|
153
153
|
);
|
|
@@ -224,7 +224,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
224
224
|
console.error(USAGE);
|
|
225
225
|
return 1;
|
|
226
226
|
}
|
|
227
|
-
const { search_ref: searchRef, ...result } = await new (0,
|
|
227
|
+
const { search_ref: searchRef, ...result } = await new (0, _chunkS347PHNBjs.DeeplineClient)().search({
|
|
228
228
|
query,
|
|
229
229
|
types,
|
|
230
230
|
exclude,
|
|
@@ -238,7 +238,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
238
238
|
});
|
|
239
239
|
if (searchRef) rememberSearchRef(searchRef);
|
|
240
240
|
pointAtDescribe(result);
|
|
241
|
-
|
|
241
|
+
_chunkQCSLIEMCjs.printCommandEnvelope.call(void 0, result, {
|
|
242
242
|
json: options.json === true,
|
|
243
243
|
text: renderSearchResults(result)
|
|
244
244
|
});
|