@pourkit/cli 0.0.0-next-20260617232425 → 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) && !existsSync18(tgtManagedDocAgents)) {
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
- if (relPath === "triage-labels.md") {
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: path5.join(tgtManagedDocAgents, relPath),
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: path5.join(tgtManagedDocAgents, relPath),
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: path5.join(tgtStubDocAgents, relPath),
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) && !existsSync18(tgtManagedPrompts)) {
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: path5.join(tgtManagedPrompts, relPath),
13335
+ path: promptDest,
13331
13336
  ownership: "managed",
13332
13337
  reason: `Copy prompt: ${relPath}`,
13333
13338
  requiresConfirmation: false,
@@ -17434,11 +17439,11 @@ function createCliProgram(version) {
17434
17439
  return program;
17435
17440
  }
17436
17441
  async function resolveCliVersion() {
17437
- if (isPackageVersion("0.0.0-next-20260617232425")) {
17438
- return "0.0.0-next-20260617232425";
17442
+ if (isPackageVersion("0.0.0-next-20260618005759")) {
17443
+ return "0.0.0-next-20260618005759";
17439
17444
  }
17440
- if (isReleaseVersion("0.0.0-next-20260617232425")) {
17441
- return "0.0.0-next-20260617232425";
17445
+ if (isReleaseVersion("0.0.0-next-20260618005759")) {
17446
+ return "0.0.0-next-20260618005759";
17442
17447
  }
17443
17448
  try {
17444
17449
  const root = repoRoot();