deepline 0.3.335 → 0.3.336
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/internal-bootstrap-token.ts +81 -0
- package/dist/cli/auth-6RQLNYNF.js +31 -0
- package/dist/cli/{auth-UAPR5UHG.mjs → auth-M45QKCUL.mjs} +4 -4
- package/dist/cli/{billing-2M2MOKZ2.mjs → billing-E7ADEFLX.mjs} +4 -4
- package/dist/cli/{billing-7MFJB4YT.js → billing-XCJVALTC.js} +71 -71
- package/dist/cli/{chunk-ROTTZP5Y.js → chunk-2CJUQWW2.js} +6 -6
- package/dist/cli/{chunk-OYWLA5NH.mjs → chunk-4NJCGGHK.mjs} +1 -1
- package/dist/cli/{chunk-BC5OUOUV.mjs → chunk-4S3G43M3.mjs} +2 -2
- package/dist/cli/{chunk-H2QPAGD4.js → chunk-4WHJDGBC.js} +9 -9
- package/dist/cli/{chunk-MGQODOU7.js → chunk-5S4FMN6T.js} +8 -8
- package/dist/cli/{chunk-G7YDITCA.mjs → chunk-B53RXFGP.mjs} +1 -1
- package/dist/cli/{chunk-ZY6VIQF3.js → chunk-EBIISKOH.js} +2 -2
- package/dist/cli/{chunk-H6HO3EX2.mjs → chunk-GATWDGMB.mjs} +1 -1
- package/dist/cli/{chunk-TMGNPDHK.js → chunk-I5XF4PWD.js} +6 -6
- package/dist/cli/{chunk-5CYUDMCR.mjs → chunk-IT3AQZDG.mjs} +3 -3
- package/dist/cli/{chunk-Z3KXO6AE.mjs → chunk-IU3TFWPR.mjs} +1 -1
- package/dist/cli/{chunk-HNWBP7F4.js → chunk-JEE7AKWP.js} +26 -26
- package/dist/cli/{chunk-F67PGWBO.mjs → chunk-JULF4SPK.mjs} +5 -5
- package/dist/cli/{chunk-2BKBPQYB.js → chunk-KZT7YX7R.js} +1 -1
- package/dist/cli/{chunk-GP5TSYAJ.js → chunk-LDMQDERZ.js} +15 -15
- package/dist/cli/{chunk-T4A2PPAD.js → chunk-LOD6RKCD.js} +45 -45
- package/dist/cli/{chunk-L45TG5XU.js → chunk-NCPAHNXJ.js} +60 -60
- package/dist/cli/{chunk-LD5NKLNP.mjs → chunk-PWY5DNNP.mjs} +4 -4
- package/dist/cli/{chunk-YJWCFMIA.js → chunk-Q2HYQOID.js} +48 -48
- package/dist/cli/{chunk-FTX3SMNS.mjs → chunk-TGMDQIYJ.mjs} +1 -1
- package/dist/cli/{chunk-NFZEBZN5.mjs → chunk-TV6BWFGU.mjs} +2 -2
- package/dist/cli/{chunk-DPTGX6LJ.mjs → chunk-VD45LDLL.mjs} +6 -6
- package/dist/cli/{chunk-U5MMLE2K.mjs → chunk-VOD4V4G4.mjs} +1 -1
- package/dist/cli/{chunk-R6HWDMKH.mjs → chunk-WWZJ6P22.mjs} +2 -2
- package/dist/cli/{chunk-H3ZK3C4S.js → chunk-ZPLBQ24U.js} +4 -4
- package/dist/cli/{chunk-V67UHLXQ.js → chunk-ZXBVQAQW.js} +225 -225
- package/dist/cli/client-LNCVWDUS.js +20 -0
- package/dist/cli/{client-O7SUBEWH.mjs → client-MUO4FRKO.mjs} +3 -3
- package/dist/cli/{csv-3QEFBKVA.mjs → csv-2RT3FVOD.mjs} +3 -3
- package/dist/cli/{csv-RKCZ32SM.js → csv-NGNI7CWG.js} +12 -12
- package/dist/cli/{db-6NL2DXCZ.js → db-7GKM6IUK.js} +29 -29
- package/dist/cli/{db-YA77SZH2.mjs → db-KUKHLFYS.mjs} +4 -4
- package/dist/cli/{describe-WRGAPAY4.mjs → describe-6MJ4B7NU.mjs} +8 -8
- package/dist/cli/{describe-3T6SY4OF.js → describe-RDSWCQCO.js} +15 -15
- package/dist/cli/{executions-QAXAJTVH.mjs → executions-C7NXL7QR.mjs} +4 -4
- package/dist/cli/{executions-4QH4WOAS.js → executions-E6NAUIUO.js} +6 -6
- package/dist/cli/{feedback-27PPTJMV.mjs → feedback-D52ZWOTA.mjs} +3 -3
- package/dist/cli/{feedback-LE2I5YC6.js → feedback-K5MAECHI.js} +6 -6
- package/dist/cli/git-E62XZHQW.js +23 -0
- package/dist/cli/{git-C7WLGDRA.mjs → git-YJLIAQJW.mjs} +4 -4
- package/dist/cli/index.js +79 -79
- package/dist/cli/index.mjs +31 -31
- package/dist/cli/{legacy-noops-MENMLXEB.mjs → legacy-noops-PK6JF4Y5.mjs} +4 -4
- package/dist/cli/{legacy-noops-LK44HVCZ.js → legacy-noops-V3BNZ4BV.js} +7 -7
- package/dist/cli/{monitors-EPYJCNDI.mjs → monitors-ABKZDCOX.mjs} +4 -4
- package/dist/cli/{monitors-D2MOP24X.js → monitors-ZC6CFUHS.js} +85 -85
- package/dist/cli/{org-N5YSFPOM.mjs → org-JB46ECLU.mjs} +4 -4
- package/dist/cli/{org-ZEXEZJWX.js → org-RQGEMXS6.js} +60 -60
- package/dist/cli/play-TRKFECQV.js +153 -0
- package/dist/cli/{play-EJJKDHUY.mjs → play-WANQPXLR.mjs} +7 -7
- package/dist/cli/{providers-BE7A6VON.js → providers-JRRQEOUN.js} +7 -7
- package/dist/cli/{providers-5UPKT6WL.mjs → providers-T4FBXHMX.mjs} +4 -4
- package/dist/cli/{quickstart-QYWCXL3Z.js → quickstart-35VIDBJK.js} +5 -5
- package/dist/cli/{quickstart-FPBWZ3XR.mjs → quickstart-KTT4JBZY.mjs} +3 -3
- package/dist/cli/{search-WN6UAW3I.mjs → search-DZ5I6Q5Z.mjs} +5 -5
- package/dist/cli/search-KMMM4BRX.js +26 -0
- package/dist/cli/{secrets-2NBEJSA7.js → secrets-4FZIXXPT.js} +13 -13
- package/dist/cli/{secrets-DGY65IAZ.mjs → secrets-H6UBIMY7.mjs} +4 -4
- package/dist/cli/{sessions-FQTEUX6Q.mjs → sessions-63S3OOVP.mjs} +4 -4
- package/dist/cli/{sessions-EPSCU52L.js → sessions-RDM6DBHZ.js} +5 -5
- package/dist/cli/{settings-AVW7W6KG.mjs → settings-JQQVY5I5.mjs} +7 -7
- package/dist/cli/{settings-QWUYZKVG.js → settings-S4AHAT3J.js} +74 -74
- package/dist/cli/{setup-G7F5LIFR.js → setup-76X6E2IB.js} +41 -41
- package/dist/cli/{setup-D3ZMOSVR.mjs → setup-W6U2T7HU.mjs} +6 -6
- package/dist/cli/skills-HLLZUL4W.js +28 -0
- package/dist/cli/{skills-744HOKKT.mjs → skills-ONHUMRAF.mjs} +4 -4
- package/dist/cli/{tools-DJRG7RTC.mjs → tools-JEC63YLX.mjs} +6 -6
- package/dist/cli/tools-YSUGUPYH.js +40 -0
- package/dist/cli/{update-ORTHR3FA.mjs → update-3M5CUY4U.mjs} +6 -6
- package/dist/cli/update-ASHUXHC5.js +28 -0
- package/dist/cli/{workflow-5IIN7CW2.js → workflow-PEU7CC4I.js} +15 -15
- package/dist/cli/{workflow-XD7CRWCQ.mjs → workflow-SDT7YIQ7.mjs} +5 -5
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +74 -74
- 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-7K5HVWDU.js +0 -31
- package/dist/cli/client-JEP4W4GO.js +0 -20
- package/dist/cli/git-PY2E4CUB.js +0 -23
- package/dist/cli/play-ZLRJLPLS.js +0 -153
- package/dist/cli/search-XM4JURG3.js +0 -26
- package/dist/cli/skills-FNGT3DEV.js +0 -28
- package/dist/cli/tools-CPNEQIQP.js +0 -40
- package/dist/cli/update-K7FVDY7F.js +0 -28
|
@@ -200,7 +200,7 @@ export const SDK_RELEASE = {
|
|
|
200
200
|
// getters keep their established compatibility behavior.
|
|
201
201
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
202
202
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
203
|
-
version: '0.3.
|
|
203
|
+
version: '0.3.336',
|
|
204
204
|
updateSummary:
|
|
205
205
|
'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.',
|
|
206
206
|
packageCapabilities: {
|
|
@@ -112,6 +112,9 @@ const PRODUCT_NOTIFICATION_UNSUBSCRIBE_PURPOSE =
|
|
|
112
112
|
const MONITOR_FLEET_DISPATCH_AUDIENCE =
|
|
113
113
|
'deepline.monitor_fleet.dispatch' as const;
|
|
114
114
|
const MONITOR_FLEET_DISPATCH_PURPOSE = 'monitor_fleet_dispatch' as const;
|
|
115
|
+
const AUTO_RECHARGE_TRIGGER_AUDIENCE =
|
|
116
|
+
'deepline.billing.auto_recharge_trigger' as const;
|
|
117
|
+
const AUTO_RECHARGE_TRIGGER_PURPOSE = 'auto_recharge_trigger' as const;
|
|
115
118
|
const INTERNAL_BOOTSTRAP_TOKEN_DERIVATION_LABEL =
|
|
116
119
|
'deepline:internal-bootstrap-token:v1';
|
|
117
120
|
const WORKFLOW_EXECUTOR_KEY_DERIVATION_LABEL =
|
|
@@ -245,6 +248,18 @@ export type ProductNotificationUnsubscribeTokenClaims = {
|
|
|
245
248
|
v: typeof INTERNAL_BOOTSTRAP_TOKEN_VERSION;
|
|
246
249
|
};
|
|
247
250
|
|
|
251
|
+
/** Capability to ask the recharge controller to evaluate one workspace. */
|
|
252
|
+
export type AutoRechargeTriggerTokenClaims = {
|
|
253
|
+
aud: typeof AUTO_RECHARGE_TRIGGER_AUDIENCE;
|
|
254
|
+
exp: number;
|
|
255
|
+
iat: number;
|
|
256
|
+
iss: typeof INTERNAL_BOOTSTRAP_TOKEN_ISSUER;
|
|
257
|
+
org_id: string;
|
|
258
|
+
purpose: typeof AUTO_RECHARGE_TRIGGER_PURPOSE;
|
|
259
|
+
sub: 'credit_balance_reaction';
|
|
260
|
+
v: typeof INTERNAL_BOOTSTRAP_TOKEN_VERSION;
|
|
261
|
+
};
|
|
262
|
+
|
|
248
263
|
/** Capability scoped to one durable Monitor Fleet control-plane operation. */
|
|
249
264
|
export type MonitorFleetDispatchTokenClaims = {
|
|
250
265
|
aud: typeof MONITOR_FLEET_DISPATCH_AUDIENCE;
|
|
@@ -1512,6 +1527,72 @@ export async function verifyProductNotificationUnsubscribeToken(
|
|
|
1512
1527
|
return claims as ProductNotificationUnsubscribeTokenClaims;
|
|
1513
1528
|
}
|
|
1514
1529
|
|
|
1530
|
+
/**
|
|
1531
|
+
* Mints a short-lived capability for the balance-triggered recharge
|
|
1532
|
+
* evaluation. It carries no amount: the controller decides from saved policy.
|
|
1533
|
+
*/
|
|
1534
|
+
export async function mintAutoRechargeTriggerToken(input: {
|
|
1535
|
+
orgId: string;
|
|
1536
|
+
nowMs?: number;
|
|
1537
|
+
}): Promise<string> {
|
|
1538
|
+
const issuedAt = Math.floor((input.nowMs ?? Date.now()) / 1000);
|
|
1539
|
+
const claims: AutoRechargeTriggerTokenClaims = {
|
|
1540
|
+
v: INTERNAL_BOOTSTRAP_TOKEN_VERSION,
|
|
1541
|
+
iss: INTERNAL_BOOTSTRAP_TOKEN_ISSUER,
|
|
1542
|
+
aud: AUTO_RECHARGE_TRIGGER_AUDIENCE,
|
|
1543
|
+
purpose: AUTO_RECHARGE_TRIGGER_PURPOSE,
|
|
1544
|
+
org_id: input.orgId,
|
|
1545
|
+
sub: 'credit_balance_reaction',
|
|
1546
|
+
iat: issuedAt,
|
|
1547
|
+
exp: issuedAt + INTERNAL_BOOTSTRAP_TOKEN_TTL_SECONDS,
|
|
1548
|
+
};
|
|
1549
|
+
const signingInput = `${encodeJson({ alg: 'HS256', typ: 'JWT' })}.${encodeJson(claims)}`;
|
|
1550
|
+
return `${signingInput}.${await signTokenMaterial(signingInput)}`;
|
|
1551
|
+
}
|
|
1552
|
+
|
|
1553
|
+
export async function verifyAutoRechargeTriggerToken(
|
|
1554
|
+
token: string,
|
|
1555
|
+
nowMs = Date.now(),
|
|
1556
|
+
): Promise<AutoRechargeTriggerTokenClaims> {
|
|
1557
|
+
const segments = token.split('.');
|
|
1558
|
+
if (segments.length !== 3)
|
|
1559
|
+
throw new Error('Invalid automatic recharge trigger token.');
|
|
1560
|
+
const [encodedHeader, encodedClaims, signature] = segments;
|
|
1561
|
+
const header = decodeJson<Record<string, unknown>>(encodedHeader);
|
|
1562
|
+
if (header.alg !== 'HS256' || header.typ !== 'JWT') {
|
|
1563
|
+
throw new Error('Invalid automatic recharge trigger token.');
|
|
1564
|
+
}
|
|
1565
|
+
const expectedSignature = await signTokenMaterial(
|
|
1566
|
+
`${encodedHeader}.${encodedClaims}`,
|
|
1567
|
+
);
|
|
1568
|
+
if (
|
|
1569
|
+
!timingSafeEqual(fromBase64Url(signature), fromBase64Url(expectedSignature))
|
|
1570
|
+
) {
|
|
1571
|
+
throw new Error('Invalid automatic recharge trigger token.');
|
|
1572
|
+
}
|
|
1573
|
+
const claims = decodeJson<Record<string, unknown>>(encodedClaims);
|
|
1574
|
+
if (
|
|
1575
|
+
claims.v !== INTERNAL_BOOTSTRAP_TOKEN_VERSION ||
|
|
1576
|
+
claims.iss !== INTERNAL_BOOTSTRAP_TOKEN_ISSUER ||
|
|
1577
|
+
claims.aud !== AUTO_RECHARGE_TRIGGER_AUDIENCE ||
|
|
1578
|
+
claims.purpose !== AUTO_RECHARGE_TRIGGER_PURPOSE ||
|
|
1579
|
+
claims.sub !== 'credit_balance_reaction' ||
|
|
1580
|
+
typeof claims.org_id !== 'string' ||
|
|
1581
|
+
!claims.org_id ||
|
|
1582
|
+
typeof claims.iat !== 'number' ||
|
|
1583
|
+
!Number.isFinite(claims.iat) ||
|
|
1584
|
+
typeof claims.exp !== 'number' ||
|
|
1585
|
+
!Number.isFinite(claims.exp)
|
|
1586
|
+
) {
|
|
1587
|
+
throw new Error('Invalid automatic recharge trigger token.');
|
|
1588
|
+
}
|
|
1589
|
+
const nowSeconds = Math.floor(nowMs / 1000);
|
|
1590
|
+
if (claims.exp <= nowSeconds || claims.iat > nowSeconds + 30) {
|
|
1591
|
+
throw new Error('Automatic recharge trigger token expired.');
|
|
1592
|
+
}
|
|
1593
|
+
return claims as AutoRechargeTriggerTokenClaims;
|
|
1594
|
+
}
|
|
1595
|
+
|
|
1515
1596
|
export async function mintMonitorFleetDispatchToken(input: {
|
|
1516
1597
|
orgId: string;
|
|
1517
1598
|
operation: 'dispatch' | 'daily_sync' | 'job_dispatch';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
var _chunkQ2HYQOIDjs = require('./chunk-Q2HYQOID.js');
|
|
13
|
+
require('./chunk-I5XF4PWD.js');
|
|
14
|
+
require('./chunk-ZPLBQ24U.js');
|
|
15
|
+
require('./chunk-XNYIZMNQ.js');
|
|
16
|
+
require('./chunk-KZT7YX7R.js');
|
|
17
|
+
require('./chunk-7P5AA3SN.js');
|
|
18
|
+
require('./chunk-OG64RBAC.js');
|
|
19
|
+
require('./chunk-COGTRVWW.js');
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
exports.EXIT_WORKSPACE_MISMATCH = _chunkQ2HYQOIDjs.EXIT_WORKSPACE_MISMATCH; exports.clearPendingClaim = _chunkQ2HYQOIDjs.clearPendingClaim; exports.clearSatisfiedPendingClaim = _chunkQ2HYQOIDjs.clearSatisfiedPendingClaim; exports.handleRegister = _chunkQ2HYQOIDjs.handleRegister; exports.handleStatus = _chunkQ2HYQOIDjs.handleStatus; exports.handleWait = _chunkQ2HYQOIDjs.handleWait; exports.readPendingAuthClaim = _chunkQ2HYQOIDjs.readPendingAuthClaim; exports.registerAuthCommands = _chunkQ2HYQOIDjs.registerAuthCommands; exports.reportSetupCompleted = _chunkQ2HYQOIDjs.reportSetupCompleted; exports.resolvePendingAuthClaimForResume = _chunkQ2HYQOIDjs.resolvePendingAuthClaimForResume;
|
|
@@ -9,11 +9,11 @@ import {
|
|
|
9
9
|
registerAuthCommands,
|
|
10
10
|
reportSetupCompleted,
|
|
11
11
|
resolvePendingAuthClaimForResume
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-4S3G43M3.mjs";
|
|
13
|
+
import "./chunk-TGMDQIYJ.mjs";
|
|
14
|
+
import "./chunk-IU3TFWPR.mjs";
|
|
15
15
|
import "./chunk-DLIRSHV6.mjs";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-B53RXFGP.mjs";
|
|
17
17
|
import "./chunk-NXGCO4JB.mjs";
|
|
18
18
|
import "./chunk-WZYKRD7T.mjs";
|
|
19
19
|
import "./chunk-KRD6H754.mjs";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
DeeplineClient,
|
|
3
3
|
iterateCursorPages,
|
|
4
4
|
requireBillingIdempotencyKey
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VOD4V4G4.mjs";
|
|
6
6
|
import "./chunk-CBVIJSHF.mjs";
|
|
7
7
|
import {
|
|
8
8
|
createTimestampedName,
|
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
openInBrowser,
|
|
11
11
|
printCommandEnvelope,
|
|
12
12
|
shouldEmitJson
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-TGMDQIYJ.mjs";
|
|
14
14
|
import {
|
|
15
15
|
AuthError,
|
|
16
16
|
ConfigError
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-IU3TFWPR.mjs";
|
|
18
18
|
import "./chunk-DLIRSHV6.mjs";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-B53RXFGP.mjs";
|
|
20
20
|
import "./chunk-6IKARAYD.mjs";
|
|
21
21
|
import {
|
|
22
22
|
DeeplineError
|