deepline 0.3.156 → 0.3.157
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/scheduler-backends/absurd-play-deploy-task.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +16 -0
- package/dist/bundling-sources/shared_libs/plays/bundling/index.ts +4 -1
- package/dist/bundling-sources/shared_libs/plays/deploy/api-client.ts +31 -0
- package/dist/bundling-sources/shared_libs/plays/deploy/run-deployment.ts +5 -2
- package/dist/cli/index.js +28 -2
- package/dist/cli/index.mjs +40 -14
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/plays/bundle-play-file.d.mts +2 -1
- package/dist/plays/bundle-play-file.d.ts +2 -1
- package/dist/plays/bundle-play-file.mjs +2 -0
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +1 -1
- package/dist/release.mjs +1 -1
- package/package.json +1 -1
|
@@ -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.157',
|
|
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: {
|
package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-play-deploy-task.ts
CHANGED
|
@@ -149,6 +149,8 @@ export type PlayDeployTaskParams = {
|
|
|
149
149
|
playProjectId: string;
|
|
150
150
|
deployToken: string;
|
|
151
151
|
appBaseUrl: string;
|
|
152
|
+
/** Pinned by the first enqueue. Missing means the original Fly executor. */
|
|
153
|
+
buildBackend?: 'fly' | 'vercel';
|
|
152
154
|
};
|
|
153
155
|
|
|
154
156
|
const deployQueueReadyPromises = new Map<string, Promise<void>>();
|
|
@@ -1875,6 +1875,10 @@ export async function ensurePostgresSchedulerOnlineAdditiveExpansion(
|
|
|
1875
1875
|
options?: Pick<PostgresSchedulerOptions, 'schema'>,
|
|
1876
1876
|
): Promise<void> {
|
|
1877
1877
|
const schema = schemaName(options);
|
|
1878
|
+
// Historical main v36 predates runtime-owned cron cursors. This is an
|
|
1879
|
+
// additive deployment concern, like the receipt-reference expansion below;
|
|
1880
|
+
// requiring it as a baseline would strand a retained Preview namespace.
|
|
1881
|
+
await ensurePostgresSchedulerCronScheduleSchema(client, options);
|
|
1878
1882
|
await client.query(`
|
|
1879
1883
|
ALTER TABLE ${tableName('receipts', options)}
|
|
1880
1884
|
ADD COLUMN IF NOT EXISTS output_ref jsonb
|
|
@@ -13291,14 +13295,26 @@ export async function countPostgresSchedulerReceipts(
|
|
|
13291
13295
|
client: PostgresSchedulerQueryClient,
|
|
13292
13296
|
input: {
|
|
13293
13297
|
runId: string;
|
|
13298
|
+
orgId?: string;
|
|
13294
13299
|
status: WorkReceiptStatus;
|
|
13295
13300
|
keyContains?: string | null;
|
|
13296
13301
|
outputContains?: string | null;
|
|
13302
|
+
receiptKeySha256?: string;
|
|
13297
13303
|
},
|
|
13298
13304
|
options?: Pick<PostgresSchedulerOptions, 'schema'>,
|
|
13299
13305
|
): Promise<number> {
|
|
13300
13306
|
const params: unknown[] = [input.runId, input.status];
|
|
13301
13307
|
const predicates = ['run_id = $1', 'status = $2'];
|
|
13308
|
+
if (input.orgId) {
|
|
13309
|
+
params.push(input.orgId);
|
|
13310
|
+
predicates.push(`org_id = $${params.length}`);
|
|
13311
|
+
}
|
|
13312
|
+
if (input.receiptKeySha256) {
|
|
13313
|
+
params.push(input.receiptKeySha256);
|
|
13314
|
+
predicates.push(
|
|
13315
|
+
`encode(sha256(convert_to(k, 'UTF8')), 'hex') = $${params.length}`,
|
|
13316
|
+
);
|
|
13317
|
+
}
|
|
13302
13318
|
const keyContains = input.keyContains?.trim();
|
|
13303
13319
|
if (keyContains) {
|
|
13304
13320
|
params.push(keyContains);
|
|
@@ -130,7 +130,8 @@ export type PlayBundlingAdapter = {
|
|
|
130
130
|
*/
|
|
131
131
|
sourceIdentityRoot?: string;
|
|
132
132
|
nodeModulesDir: string;
|
|
133
|
-
|
|
133
|
+
/** null disables disk caching (for ephemeral serverless build invocations). */
|
|
134
|
+
cacheDir?: string | null;
|
|
134
135
|
sdkSourceRoot: string;
|
|
135
136
|
sdkPackageJson: string;
|
|
136
137
|
sdkEntryFile: string;
|
|
@@ -2159,6 +2160,7 @@ async function readArtifactCache(
|
|
|
2159
2160
|
artifactKind: PlayArtifactKind,
|
|
2160
2161
|
adapter: PlayBundlingAdapter,
|
|
2161
2162
|
): Promise<PlayBundleArtifact | null> {
|
|
2163
|
+
if (adapter.cacheDir === null) return null;
|
|
2162
2164
|
try {
|
|
2163
2165
|
const serialized = await readFile(
|
|
2164
2166
|
/* turbopackIgnore: true */ artifactCachePath(
|
|
@@ -2178,6 +2180,7 @@ async function writeArtifactCache(
|
|
|
2178
2180
|
artifact: PlayBundleArtifact,
|
|
2179
2181
|
adapter: PlayBundlingAdapter,
|
|
2180
2182
|
): Promise<void> {
|
|
2183
|
+
if (adapter.cacheDir === null) return;
|
|
2181
2184
|
const cacheDir = adapter.cacheDir ?? PLAY_ARTIFACT_CACHE_DIR;
|
|
2182
2185
|
await mkdir(/* turbopackIgnore: true */ cacheDir, { recursive: true });
|
|
2183
2186
|
await writeFile(
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { PlayBundleArtifact } from '../artifact-types';
|
|
2
2
|
import type { PlayCompilerManifest } from '../compiler-manifest';
|
|
3
3
|
import type { PlayDeploymentStatus } from '../deployment-status';
|
|
4
|
+
import { TERMINAL_PLAY_DEPLOYMENT_STATUSES } from '../deployment-status';
|
|
4
5
|
import type {
|
|
5
6
|
SerializedPlayDeployment,
|
|
6
7
|
SerializedPlayProject,
|
|
@@ -63,6 +64,13 @@ export type RegisteredArtifact = {
|
|
|
63
64
|
[key: string]: unknown;
|
|
64
65
|
};
|
|
65
66
|
|
|
67
|
+
/** The queue result never includes source, artifacts, or per-play diagnostics. */
|
|
68
|
+
export type DeploymentBuildResult = {
|
|
69
|
+
deploymentId: string;
|
|
70
|
+
finalStatus: PlayDeploymentStatus;
|
|
71
|
+
plays: number;
|
|
72
|
+
};
|
|
73
|
+
|
|
66
74
|
export type DeploymentPlayState = {
|
|
67
75
|
name: string;
|
|
68
76
|
exists: boolean;
|
|
@@ -97,12 +105,15 @@ export class DeployApiClient {
|
|
|
97
105
|
method: 'GET' | 'POST';
|
|
98
106
|
path: string;
|
|
99
107
|
body?: unknown;
|
|
108
|
+
signal?: AbortSignal;
|
|
100
109
|
}): Promise<T> {
|
|
101
110
|
const doFetch = this.config.fetchImpl ?? fetch;
|
|
102
111
|
const response = await doFetch(
|
|
103
112
|
`${this.config.appBaseUrl.replace(/\/$/, '')}${input.path}`,
|
|
104
113
|
{
|
|
105
114
|
method: input.method,
|
|
115
|
+
signal: input.signal,
|
|
116
|
+
redirect: 'error',
|
|
106
117
|
headers: {
|
|
107
118
|
Authorization: `Bearer ${this.config.deployToken}`,
|
|
108
119
|
...(input.body !== undefined
|
|
@@ -139,6 +150,26 @@ export class DeployApiClient {
|
|
|
139
150
|
return `/api/v2/deployments/${this.config.deploymentId}${suffix}`;
|
|
140
151
|
}
|
|
141
152
|
|
|
153
|
+
async build(signal: AbortSignal): Promise<DeploymentBuildResult> {
|
|
154
|
+
const result = await this.request<DeploymentBuildResult>({
|
|
155
|
+
method: 'POST',
|
|
156
|
+
path: this.deploymentPath('/build'),
|
|
157
|
+
signal,
|
|
158
|
+
});
|
|
159
|
+
if (
|
|
160
|
+
!result ||
|
|
161
|
+
result.deploymentId !== this.config.deploymentId ||
|
|
162
|
+
!TERMINAL_PLAY_DEPLOYMENT_STATUSES.has(result.finalStatus) ||
|
|
163
|
+
!Number.isSafeInteger(result.plays) ||
|
|
164
|
+
result.plays < 0
|
|
165
|
+
) {
|
|
166
|
+
throw new Error(
|
|
167
|
+
'Deployment build returned an invalid completion result.',
|
|
168
|
+
);
|
|
169
|
+
}
|
|
170
|
+
return result;
|
|
171
|
+
}
|
|
172
|
+
|
|
142
173
|
getDeployment(): Promise<{
|
|
143
174
|
deployment: SerializedPlayDeployment;
|
|
144
175
|
project: SerializedPlayProject;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { join } from 'node:path';
|
|
2
|
-
import { rm } from 'node:fs/promises';
|
|
2
|
+
import { mkdir, mkdtemp, rm } from 'node:fs/promises';
|
|
3
3
|
import type { PlayCompilerManifest } from '../compiler-manifest';
|
|
4
4
|
import {
|
|
5
5
|
DeployApiClient,
|
|
@@ -473,7 +473,10 @@ export async function runDeployment(
|
|
|
473
473
|
};
|
|
474
474
|
};
|
|
475
475
|
|
|
476
|
-
|
|
476
|
+
// Fluid compute can serve overlapping attempts in the same process. A retry
|
|
477
|
+
// must never remove another attempt's checkout during tarball extraction.
|
|
478
|
+
await mkdir(hooks.workRoot, { recursive: true });
|
|
479
|
+
const workDir = await mkdtemp(join(hooks.workRoot, 'deploy-'));
|
|
477
480
|
// Check writes are customer-visible; give transient host failures bounded
|
|
478
481
|
// retries before any caller decides to swallow or fail.
|
|
479
482
|
const postCheck = async (
|
package/dist/cli/index.js
CHANGED
|
@@ -3051,7 +3051,7 @@ var SDK_RELEASE = {
|
|
|
3051
3051
|
// getters keep their established compatibility behavior.
|
|
3052
3052
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
3053
3053
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
3054
|
-
version: "0.3.
|
|
3054
|
+
version: "0.3.157",
|
|
3055
3055
|
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.",
|
|
3056
3056
|
packageCapabilities: {
|
|
3057
3057
|
updatePreferences: 1
|
|
@@ -20653,6 +20653,16 @@ var import_node_path16 = require("path");
|
|
|
20653
20653
|
var import_node_path15 = require("path");
|
|
20654
20654
|
var import_promises7 = require("fs/promises");
|
|
20655
20655
|
|
|
20656
|
+
// ../plays/deployment-status.ts
|
|
20657
|
+
var TERMINAL_PLAY_DEPLOYMENT_STATUSES = /* @__PURE__ */ new Set([
|
|
20658
|
+
"succeeded",
|
|
20659
|
+
"succeeded_with_warnings",
|
|
20660
|
+
"failed",
|
|
20661
|
+
"reconcile_failed",
|
|
20662
|
+
"cancelled",
|
|
20663
|
+
"superseded"
|
|
20664
|
+
]);
|
|
20665
|
+
|
|
20656
20666
|
// ../plays/deploy/api-client.ts
|
|
20657
20667
|
var REGISTER_MAX_BATCH_COUNT = 3;
|
|
20658
20668
|
var REGISTER_MAX_BATCH_BYTES = 25e5;
|
|
@@ -20678,6 +20688,8 @@ var DeployApiClient = class {
|
|
|
20678
20688
|
`${this.config.appBaseUrl.replace(/\/$/, "")}${input2.path}`,
|
|
20679
20689
|
{
|
|
20680
20690
|
method: input2.method,
|
|
20691
|
+
signal: input2.signal,
|
|
20692
|
+
redirect: "error",
|
|
20681
20693
|
headers: {
|
|
20682
20694
|
Authorization: `Bearer ${this.config.deployToken}`,
|
|
20683
20695
|
...input2.body !== void 0 ? { "Content-Type": "application/json" } : {}
|
|
@@ -20707,6 +20719,19 @@ var DeployApiClient = class {
|
|
|
20707
20719
|
deploymentPath(suffix = "") {
|
|
20708
20720
|
return `/api/v2/deployments/${this.config.deploymentId}${suffix}`;
|
|
20709
20721
|
}
|
|
20722
|
+
async build(signal) {
|
|
20723
|
+
const result = await this.request({
|
|
20724
|
+
method: "POST",
|
|
20725
|
+
path: this.deploymentPath("/build"),
|
|
20726
|
+
signal
|
|
20727
|
+
});
|
|
20728
|
+
if (!result || result.deploymentId !== this.config.deploymentId || !TERMINAL_PLAY_DEPLOYMENT_STATUSES.has(result.finalStatus) || !Number.isSafeInteger(result.plays) || result.plays < 0) {
|
|
20729
|
+
throw new Error(
|
|
20730
|
+
"Deployment build returned an invalid completion result."
|
|
20731
|
+
);
|
|
20732
|
+
}
|
|
20733
|
+
return result;
|
|
20734
|
+
}
|
|
20710
20735
|
getDeployment() {
|
|
20711
20736
|
return this.request({
|
|
20712
20737
|
method: "GET",
|
|
@@ -21159,7 +21184,8 @@ async function runDeployment(params, hooks) {
|
|
|
21159
21184
|
checkRunId: checkRun?.checkRunId
|
|
21160
21185
|
};
|
|
21161
21186
|
};
|
|
21162
|
-
|
|
21187
|
+
await (0, import_promises7.mkdir)(hooks.workRoot, { recursive: true });
|
|
21188
|
+
const workDir = await (0, import_promises7.mkdtemp)((0, import_node_path15.join)(hooks.workRoot, "deploy-"));
|
|
21163
21189
|
const postCheck = async (postCheckOnce, input2) => {
|
|
21164
21190
|
let lastError;
|
|
21165
21191
|
for (let attempt = 0; ; attempt += 1) {
|
package/dist/cli/index.mjs
CHANGED
|
@@ -1950,7 +1950,7 @@ function configureProxyFromEnv() {
|
|
|
1950
1950
|
configureProxyFromEnv();
|
|
1951
1951
|
|
|
1952
1952
|
// src/cli/index.ts
|
|
1953
|
-
import { mkdtemp as
|
|
1953
|
+
import { mkdtemp as mkdtemp4, rm as rm4, writeFile as writeFile6 } from "fs/promises";
|
|
1954
1954
|
import { join as join27 } from "path";
|
|
1955
1955
|
import { tmpdir as tmpdir7 } from "os";
|
|
1956
1956
|
import { Command as Command5 } from "commander";
|
|
@@ -3046,7 +3046,7 @@ var SDK_RELEASE = {
|
|
|
3046
3046
|
// getters keep their established compatibility behavior.
|
|
3047
3047
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
3048
3048
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
3049
|
-
version: "0.3.
|
|
3049
|
+
version: "0.3.157",
|
|
3050
3050
|
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.",
|
|
3051
3051
|
packageCapabilities: {
|
|
3052
3052
|
updatePreferences: 1
|
|
@@ -15539,8 +15539,8 @@ Examples:
|
|
|
15539
15539
|
import {
|
|
15540
15540
|
copyFile,
|
|
15541
15541
|
lstat as lstat2,
|
|
15542
|
-
mkdir as
|
|
15543
|
-
mkdtemp as
|
|
15542
|
+
mkdir as mkdir5,
|
|
15543
|
+
mkdtemp as mkdtemp3,
|
|
15544
15544
|
readFile as readFile4,
|
|
15545
15545
|
realpath as realpath4,
|
|
15546
15546
|
rename,
|
|
@@ -20717,13 +20717,23 @@ function normalizeFixtureScopeValue(value, maxLength) {
|
|
|
20717
20717
|
|
|
20718
20718
|
// src/cli/commands/plays-deploy.ts
|
|
20719
20719
|
import { randomUUID as randomUUID3 } from "crypto";
|
|
20720
|
-
import { mkdtemp, realpath as realpath3, rm as rm2 } from "fs/promises";
|
|
20720
|
+
import { mkdtemp as mkdtemp2, realpath as realpath3, rm as rm2 } from "fs/promises";
|
|
20721
20721
|
import { tmpdir as tmpdir4 } from "os";
|
|
20722
20722
|
import { join as join12, resolve as resolve11 } from "path";
|
|
20723
20723
|
|
|
20724
20724
|
// ../plays/deploy/run-deployment.ts
|
|
20725
20725
|
import { join as join11 } from "path";
|
|
20726
|
-
import { rm } from "fs/promises";
|
|
20726
|
+
import { mkdir as mkdir4, mkdtemp, rm } from "fs/promises";
|
|
20727
|
+
|
|
20728
|
+
// ../plays/deployment-status.ts
|
|
20729
|
+
var TERMINAL_PLAY_DEPLOYMENT_STATUSES = /* @__PURE__ */ new Set([
|
|
20730
|
+
"succeeded",
|
|
20731
|
+
"succeeded_with_warnings",
|
|
20732
|
+
"failed",
|
|
20733
|
+
"reconcile_failed",
|
|
20734
|
+
"cancelled",
|
|
20735
|
+
"superseded"
|
|
20736
|
+
]);
|
|
20727
20737
|
|
|
20728
20738
|
// ../plays/deploy/api-client.ts
|
|
20729
20739
|
var REGISTER_MAX_BATCH_COUNT = 3;
|
|
@@ -20750,6 +20760,8 @@ var DeployApiClient = class {
|
|
|
20750
20760
|
`${this.config.appBaseUrl.replace(/\/$/, "")}${input2.path}`,
|
|
20751
20761
|
{
|
|
20752
20762
|
method: input2.method,
|
|
20763
|
+
signal: input2.signal,
|
|
20764
|
+
redirect: "error",
|
|
20753
20765
|
headers: {
|
|
20754
20766
|
Authorization: `Bearer ${this.config.deployToken}`,
|
|
20755
20767
|
...input2.body !== void 0 ? { "Content-Type": "application/json" } : {}
|
|
@@ -20779,6 +20791,19 @@ var DeployApiClient = class {
|
|
|
20779
20791
|
deploymentPath(suffix = "") {
|
|
20780
20792
|
return `/api/v2/deployments/${this.config.deploymentId}${suffix}`;
|
|
20781
20793
|
}
|
|
20794
|
+
async build(signal) {
|
|
20795
|
+
const result = await this.request({
|
|
20796
|
+
method: "POST",
|
|
20797
|
+
path: this.deploymentPath("/build"),
|
|
20798
|
+
signal
|
|
20799
|
+
});
|
|
20800
|
+
if (!result || result.deploymentId !== this.config.deploymentId || !TERMINAL_PLAY_DEPLOYMENT_STATUSES.has(result.finalStatus) || !Number.isSafeInteger(result.plays) || result.plays < 0) {
|
|
20801
|
+
throw new Error(
|
|
20802
|
+
"Deployment build returned an invalid completion result."
|
|
20803
|
+
);
|
|
20804
|
+
}
|
|
20805
|
+
return result;
|
|
20806
|
+
}
|
|
20782
20807
|
getDeployment() {
|
|
20783
20808
|
return this.request({
|
|
20784
20809
|
method: "GET",
|
|
@@ -21231,7 +21256,8 @@ async function runDeployment(params, hooks) {
|
|
|
21231
21256
|
checkRunId: checkRun?.checkRunId
|
|
21232
21257
|
};
|
|
21233
21258
|
};
|
|
21234
|
-
|
|
21259
|
+
await mkdir4(hooks.workRoot, { recursive: true });
|
|
21260
|
+
const workDir = await mkdtemp(join11(hooks.workRoot, "deploy-"));
|
|
21235
21261
|
const postCheck = async (postCheckOnce, input2) => {
|
|
21236
21262
|
let lastError;
|
|
21237
21263
|
for (let attempt = 0; ; attempt += 1) {
|
|
@@ -21856,7 +21882,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
21856
21882
|
...options.commit ? { commit: options.commit } : {}
|
|
21857
21883
|
});
|
|
21858
21884
|
const { bundleDeployPlayFile } = await loadPlayBundler();
|
|
21859
|
-
const workRoot = await
|
|
21885
|
+
const workRoot = await mkdtemp2(join12(tmpdir4(), "deepline-deploy-"));
|
|
21860
21886
|
const consoleInfo = console.info;
|
|
21861
21887
|
console.info = console.error;
|
|
21862
21888
|
try {
|
|
@@ -35152,7 +35178,7 @@ async function persistEnrichFailureReport(input2) {
|
|
|
35152
35178
|
}
|
|
35153
35179
|
const stateDir = join14(homedir6(), ".local", "deepline", "runtime", "state");
|
|
35154
35180
|
const reportPrefix = input2.jobs.length > 0 ? "run-block-failures" : "enrich-issues";
|
|
35155
|
-
await
|
|
35181
|
+
await mkdir5(stateDir, { recursive: true });
|
|
35156
35182
|
const reportPath = join14(
|
|
35157
35183
|
stateDir,
|
|
35158
35184
|
`${reportPrefix}-${Math.floor(Date.now() / 1e3)}-${process.pid}.json`
|
|
@@ -36082,7 +36108,7 @@ function registerEnrichCommand(program) {
|
|
|
36082
36108
|
sdkEnrichTelemetryCompleted = true;
|
|
36083
36109
|
await completeSdkEnrichTelemetry(sdkEnrichTelemetry, input2);
|
|
36084
36110
|
};
|
|
36085
|
-
const tempDir = await
|
|
36111
|
+
const tempDir = await mkdtemp3(join14(tmpdir5(), "deepline-enrich-play-"));
|
|
36086
36112
|
await emitSdkEnrichTelemetry(sdkEnrichTelemetry, "enrich_started");
|
|
36087
36113
|
const tempPlay = join14(tempDir, "deepline-enrich.play.ts");
|
|
36088
36114
|
let inPlaceTempDir = null;
|
|
@@ -36111,7 +36137,7 @@ function registerEnrichCommand(program) {
|
|
|
36111
36137
|
if (inPlaceTempDir) {
|
|
36112
36138
|
await rm3(inPlaceTempDir, { recursive: true, force: true });
|
|
36113
36139
|
}
|
|
36114
|
-
inPlaceTempDir = await
|
|
36140
|
+
inPlaceTempDir = await mkdtemp3(
|
|
36115
36141
|
join14(
|
|
36116
36142
|
dirname11(inPlaceCommitOutputPath ?? resolve13(inputCsv)),
|
|
36117
36143
|
".deepline-enrich-in-place-"
|
|
@@ -50398,7 +50424,7 @@ Examples:
|
|
|
50398
50424
|
}
|
|
50399
50425
|
|
|
50400
50426
|
// src/cli/commands/workflow.ts
|
|
50401
|
-
import { mkdir as
|
|
50427
|
+
import { mkdir as mkdir6, readFile as readFile6, writeFile as writeFile5 } from "fs/promises";
|
|
50402
50428
|
import { dirname as dirname21, join as join26, resolve as resolve21 } from "path";
|
|
50403
50429
|
|
|
50404
50430
|
// src/cli/workflow-to-play.ts
|
|
@@ -50651,7 +50677,7 @@ async function transformOne(api, workflowId, outDir, publish) {
|
|
|
50651
50677
|
{ workflowName: workflow.name, version: revision.version }
|
|
50652
50678
|
);
|
|
50653
50679
|
const file = join26(resolve21(outDir), `${compiled.playName}.play.ts`);
|
|
50654
|
-
await
|
|
50680
|
+
await mkdir6(dirname21(file), { recursive: true });
|
|
50655
50681
|
await writeFile5(file, compiled.sourceCode, "utf8");
|
|
50656
50682
|
let published = false;
|
|
50657
50683
|
if (publish) {
|
|
@@ -51191,7 +51217,7 @@ function topLevelCommandKnown(program, commandName) {
|
|
|
51191
51217
|
);
|
|
51192
51218
|
}
|
|
51193
51219
|
async function runPlayRunnerHealthCheck() {
|
|
51194
|
-
const dir = await
|
|
51220
|
+
const dir = await mkdtemp4(join27(tmpdir7(), "deepline-health-play-"));
|
|
51195
51221
|
const file = join27(dir, "health-check.play.ts");
|
|
51196
51222
|
try {
|
|
51197
51223
|
await writeFile6(
|
package/dist/index.js
CHANGED
|
@@ -864,7 +864,7 @@ var SDK_RELEASE = {
|
|
|
864
864
|
// getters keep their established compatibility behavior.
|
|
865
865
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
866
866
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
867
|
-
version: "0.3.
|
|
867
|
+
version: "0.3.157",
|
|
868
868
|
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.",
|
|
869
869
|
packageCapabilities: {
|
|
870
870
|
updatePreferences: 1
|
package/dist/index.mjs
CHANGED
|
@@ -768,7 +768,7 @@ var SDK_RELEASE = {
|
|
|
768
768
|
// getters keep their established compatibility behavior.
|
|
769
769
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
770
770
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
771
|
-
version: "0.3.
|
|
771
|
+
version: "0.3.157",
|
|
772
772
|
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.",
|
|
773
773
|
packageCapabilities: {
|
|
774
774
|
updatePreferences: 1
|
|
@@ -33,7 +33,8 @@ type PlayBundlingAdapter = {
|
|
|
33
33
|
*/
|
|
34
34
|
sourceIdentityRoot?: string;
|
|
35
35
|
nodeModulesDir: string;
|
|
36
|
-
|
|
36
|
+
/** null disables disk caching (for ephemeral serverless build invocations). */
|
|
37
|
+
cacheDir?: string | null;
|
|
37
38
|
sdkSourceRoot: string;
|
|
38
39
|
sdkPackageJson: string;
|
|
39
40
|
sdkEntryFile: string;
|
|
@@ -33,7 +33,8 @@ type PlayBundlingAdapter = {
|
|
|
33
33
|
*/
|
|
34
34
|
sourceIdentityRoot?: string;
|
|
35
35
|
nodeModulesDir: string;
|
|
36
|
-
|
|
36
|
+
/** null disables disk caching (for ephemeral serverless build invocations). */
|
|
37
|
+
cacheDir?: string | null;
|
|
37
38
|
sdkSourceRoot: string;
|
|
38
39
|
sdkPackageJson: string;
|
|
39
40
|
sdkEntryFile: string;
|
|
@@ -4218,6 +4218,7 @@ function artifactCachePath(graphHash, artifactKind, adapter) {
|
|
|
4218
4218
|
);
|
|
4219
4219
|
}
|
|
4220
4220
|
async function readArtifactCache(graphHash, artifactKind, adapter) {
|
|
4221
|
+
if (adapter.cacheDir === null) return null;
|
|
4221
4222
|
try {
|
|
4222
4223
|
const serialized = await readFile(
|
|
4223
4224
|
/* turbopackIgnore: true */
|
|
@@ -4234,6 +4235,7 @@ async function readArtifactCache(graphHash, artifactKind, adapter) {
|
|
|
4234
4235
|
}
|
|
4235
4236
|
}
|
|
4236
4237
|
async function writeArtifactCache(artifact, adapter) {
|
|
4238
|
+
if (adapter.cacheDir === null) return;
|
|
4237
4239
|
const cacheDir = adapter.cacheDir ?? PLAY_ARTIFACT_CACHE_DIR;
|
|
4238
4240
|
await mkdir(
|
|
4239
4241
|
/* turbopackIgnore: true */
|
package/dist/release.d.mts
CHANGED
|
@@ -149,7 +149,7 @@ type SdkRelease = {
|
|
|
149
149
|
supportPolicy: SdkSupportPolicy;
|
|
150
150
|
};
|
|
151
151
|
declare const SDK_RELEASE: {
|
|
152
|
-
readonly version: "0.3.
|
|
152
|
+
readonly version: "0.3.157";
|
|
153
153
|
readonly 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.";
|
|
154
154
|
readonly packageCapabilities: {
|
|
155
155
|
readonly updatePreferences: 1;
|
package/dist/release.d.ts
CHANGED
|
@@ -149,7 +149,7 @@ type SdkRelease = {
|
|
|
149
149
|
supportPolicy: SdkSupportPolicy;
|
|
150
150
|
};
|
|
151
151
|
declare const SDK_RELEASE: {
|
|
152
|
-
readonly version: "0.3.
|
|
152
|
+
readonly version: "0.3.157";
|
|
153
153
|
readonly 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.";
|
|
154
154
|
readonly packageCapabilities: {
|
|
155
155
|
readonly updatePreferences: 1;
|
package/dist/release.js
CHANGED
|
@@ -74,7 +74,7 @@ var SDK_RELEASE = {
|
|
|
74
74
|
// getters keep their established compatibility behavior.
|
|
75
75
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
76
76
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
77
|
-
version: "0.3.
|
|
77
|
+
version: "0.3.157",
|
|
78
78
|
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.",
|
|
79
79
|
packageCapabilities: {
|
|
80
80
|
updatePreferences: 1
|
package/dist/release.mjs
CHANGED
|
@@ -48,7 +48,7 @@ var SDK_RELEASE = {
|
|
|
48
48
|
// getters keep their established compatibility behavior.
|
|
49
49
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
50
50
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
51
|
-
version: "0.3.
|
|
51
|
+
version: "0.3.157",
|
|
52
52
|
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.",
|
|
53
53
|
packageCapabilities: {
|
|
54
54
|
updatePreferences: 1
|