@pourkit/cli 0.0.0-next-20260617223106 → 0.0.0-next-20260618005759
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/cli.js
CHANGED
|
@@ -13218,14 +13218,15 @@ async function planInit(options) {
|
|
|
13218
13218
|
"docs",
|
|
13219
13219
|
"agents"
|
|
13220
13220
|
);
|
|
13221
|
-
if (existsSync18(srcDocAgents)
|
|
13221
|
+
if (existsSync18(srcDocAgents)) {
|
|
13222
13222
|
const docFiles = await walkDir(srcDocAgents);
|
|
13223
13223
|
for (const file of docFiles) {
|
|
13224
13224
|
const relPath = path5.relative(srcDocAgents, file);
|
|
13225
|
-
|
|
13225
|
+
const managedDocDest = path5.join(tgtManagedDocAgents, relPath);
|
|
13226
|
+
if (!existsSync18(managedDocDest) && relPath === "triage-labels.md") {
|
|
13226
13227
|
operations.push({
|
|
13227
13228
|
kind: "create",
|
|
13228
|
-
path:
|
|
13229
|
+
path: managedDocDest,
|
|
13229
13230
|
ownership: "managed",
|
|
13230
13231
|
reason: "Init triage labels doc",
|
|
13231
13232
|
requiresConfirmation: false,
|
|
@@ -13234,12 +13235,12 @@ async function planInit(options) {
|
|
|
13234
13235
|
options.labels ?? DEFAULT_RUNNER_LABELS
|
|
13235
13236
|
)
|
|
13236
13237
|
});
|
|
13237
|
-
} else {
|
|
13238
|
+
} else if (!existsSync18(managedDocDest)) {
|
|
13238
13239
|
const checksum = await computeFileChecksum(file);
|
|
13239
13240
|
operations.push({
|
|
13240
13241
|
kind: "copy",
|
|
13241
13242
|
sourcePath: file,
|
|
13242
|
-
path:
|
|
13243
|
+
path: managedDocDest,
|
|
13243
13244
|
ownership: "managed",
|
|
13244
13245
|
reason: `Copy agent doc: ${relPath}`,
|
|
13245
13246
|
requiresConfirmation: false,
|
|
@@ -13255,9 +13256,11 @@ async function planInit(options) {
|
|
|
13255
13256
|
"agents",
|
|
13256
13257
|
relPath
|
|
13257
13258
|
);
|
|
13259
|
+
const stubDocDest = path5.join(tgtStubDocAgents, relPath);
|
|
13260
|
+
if (existsSync18(stubDocDest)) continue;
|
|
13258
13261
|
operations.push({
|
|
13259
13262
|
kind: "create",
|
|
13260
|
-
path:
|
|
13263
|
+
path: stubDocDest,
|
|
13261
13264
|
ownership: "managed",
|
|
13262
13265
|
reason: `Create moved stub for: ${relPath}`,
|
|
13263
13266
|
requiresConfirmation: false,
|
|
@@ -13319,15 +13322,17 @@ Do not edit this file.
|
|
|
13319
13322
|
"managed",
|
|
13320
13323
|
"prompts"
|
|
13321
13324
|
);
|
|
13322
|
-
if (existsSync18(srcPrompts)
|
|
13325
|
+
if (existsSync18(srcPrompts)) {
|
|
13323
13326
|
const promptFiles = await walkDir(srcPrompts);
|
|
13324
13327
|
for (const file of promptFiles) {
|
|
13325
13328
|
const relPath = path5.relative(srcPrompts, file);
|
|
13329
|
+
const promptDest = path5.join(tgtManagedPrompts, relPath);
|
|
13330
|
+
if (existsSync18(promptDest)) continue;
|
|
13326
13331
|
const checksum = await computeFileChecksum(file);
|
|
13327
13332
|
operations.push({
|
|
13328
13333
|
kind: "copy",
|
|
13329
13334
|
sourcePath: file,
|
|
13330
|
-
path:
|
|
13335
|
+
path: promptDest,
|
|
13331
13336
|
ownership: "managed",
|
|
13332
13337
|
reason: `Copy prompt: ${relPath}`,
|
|
13333
13338
|
requiresConfirmation: false,
|
|
@@ -14186,6 +14191,7 @@ async function applyInitFromSource(options) {
|
|
|
14186
14191
|
packageManager,
|
|
14187
14192
|
noGitCheck,
|
|
14188
14193
|
skipInstall,
|
|
14194
|
+
releaseWorkflow,
|
|
14189
14195
|
labelConflictPolicy
|
|
14190
14196
|
} = options;
|
|
14191
14197
|
const ghClientResult = await tryCreateGitHubClient({ cwd: targetRoot });
|
|
@@ -14199,6 +14205,7 @@ async function applyInitFromSource(options) {
|
|
|
14199
14205
|
noGitCheck,
|
|
14200
14206
|
skipInstall,
|
|
14201
14207
|
labels: options.labels,
|
|
14208
|
+
releaseWorkflow,
|
|
14202
14209
|
labelConflictPolicy,
|
|
14203
14210
|
githubClient
|
|
14204
14211
|
});
|
|
@@ -14377,6 +14384,7 @@ ${plan.warnings.length} warning(s) \u2014 review above before applying.`
|
|
|
14377
14384
|
noGitCheck: options.noGitCheck,
|
|
14378
14385
|
skipInstall: options.skipInstall,
|
|
14379
14386
|
labels: planLabels,
|
|
14387
|
+
releaseWorkflow: options.releaseWorkflow,
|
|
14380
14388
|
labelConflictPolicy: planLabelConflictPolicy
|
|
14381
14389
|
});
|
|
14382
14390
|
if (result.errors.length > 0) {
|
|
@@ -17431,11 +17439,11 @@ function createCliProgram(version) {
|
|
|
17431
17439
|
return program;
|
|
17432
17440
|
}
|
|
17433
17441
|
async function resolveCliVersion() {
|
|
17434
|
-
if (isPackageVersion("0.0.0-next-
|
|
17435
|
-
return "0.0.0-next-
|
|
17442
|
+
if (isPackageVersion("0.0.0-next-20260618005759")) {
|
|
17443
|
+
return "0.0.0-next-20260618005759";
|
|
17436
17444
|
}
|
|
17437
|
-
if (isReleaseVersion("0.0.0-next-
|
|
17438
|
-
return "0.0.0-next-
|
|
17445
|
+
if (isReleaseVersion("0.0.0-next-20260618005759")) {
|
|
17446
|
+
return "0.0.0-next-20260618005759";
|
|
17439
17447
|
}
|
|
17440
17448
|
try {
|
|
17441
17449
|
const root = repoRoot();
|