prizmkit 1.1.182 → 1.1.183

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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "frameworkVersion": "1.1.182",
3
- "bundledAt": "2026-09-17T02:06:17.607Z",
4
- "bundledFrom": "b336a5e"
2
+ "frameworkVersion": "1.1.183",
3
+ "bundledAt": "2026-09-17T12:36:02.984Z",
4
+ "bundledFrom": "9a9990c"
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.1.182",
2
+ "version": "1.1.183",
3
3
  "skills": {
4
4
  "prizmkit": {
5
5
  "description": "Framework introduction and navigation for the formal single-requirement lifecycle, project initialization, Prizm docs, and independent deployment.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prizmkit",
3
- "version": "1.1.182",
3
+ "version": "1.1.183",
4
4
  "description": "Create a new PrizmKit-powered project with clean initialization — no framework dev files, just what you need.",
5
5
  "type": "module",
6
6
  "bin": {
package/src/config.js CHANGED
@@ -28,7 +28,6 @@ import {
28
28
  installSettings,
29
29
  installProjectMemory,
30
30
  installPipeline,
31
- installGitignore,
32
31
  installGitHook,
33
32
  installPrizmkitScripts,
34
33
  resolveSkillList,
@@ -53,7 +52,7 @@ import {
53
52
  selectRulesPreset,
54
53
  confirmPipeline,
55
54
  } from './prompts.js';
56
- import { isKnownPlatform, platformLabel, privateProjectMemoryFile, privateProjectMemoryFiles, projectMemoryFile, resolvePayloadPlatforms } from './platforms.js';
55
+ import { isKnownPlatform, platformLabel, privateProjectMemoryFile, projectMemoryFile, resolvePayloadPlatforms } from './platforms.js';
57
56
  import { normalizeRuntime, runtimeLabel } from './runtimes.js';
58
57
  import { applyAiCliLaunchToConfig, resolveAiCliLaunchSelection, storedAiCliLaunch } from './ai-cli-launch.js';
59
58
 
@@ -737,14 +736,7 @@ export async function runConfig(directory, options = {}) {
737
736
  }
738
737
  }
739
738
 
740
- // 5f. Update .gitignore
741
- console.log(chalk.blue('\n Gitignore:'));
742
- await installGitignore(projectRoot, {
743
- pipeline: newConfig.pipeline,
744
- privateMemoryFiles: privateProjectMemoryFiles(newPlatforms),
745
- }, false);
746
-
747
- // 5g. Runtime-aware git hook and PrizmKit helper scripts
739
+ // 5f. Runtime-aware git hook and PrizmKit helper scripts
748
740
  if (newConfig.runtime !== currentConfig.runtime || runtimeManifestNeedsNormalization || runtimeOptionNeedsNormalization) {
749
741
  console.log(chalk.blue('\n Git Hook:'));
750
742
  await installGitHook(projectRoot, false, newConfig.runtime);
@@ -2,35 +2,10 @@
2
2
  * Generate only explicit private host-memory ignores.
3
3
  *
4
4
  * `.prizmkit/**` tracking policy is project-controlled: this module never adds
5
- * framework-directory ignore entries. Install/upgrade may remove only the exact
6
- * retired installer-written `.prizmkit/*` and `.prizmkit/**` lines plus the exact
7
- * old `# PrizmKit` header; they do not interpret other `.prizmkit/` ignores.
5
+ * framework-directory ignore entries. Only install appends private host-memory
6
+ * ignores; upgrade and config must not write `.gitignore`.
8
7
  */
9
8
 
10
- export const RETIRED_FRAMEWORK_GITIGNORE_LINES = new Set([
11
- '.prizmkit/*',
12
- '.prizmkit/**',
13
- '# PrizmKit',
14
- ]);
15
-
16
- /**
17
- * Remove exact retired installer-written framework-directory ignore lines.
18
- * @param {string} content
19
- * @returns {string}
20
- */
21
- export function stripRetiredFrameworkGitignore(content) {
22
- const next = String(content).split(/\r?\n/).filter(line => (
23
- !RETIRED_FRAMEWORK_GITIGNORE_LINES.has(line.trim())
24
- ));
25
- return next.join('\n').replace(/\n{3,}/g, '\n\n').replace(/^\n+/, '');
26
- }
27
-
28
- export function hasRetiredFrameworkGitignore(content) {
29
- return String(content).split(/\r?\n/).some(line => (
30
- RETIRED_FRAMEWORK_GITIGNORE_LINES.has(line.trim())
31
- ));
32
- }
33
-
34
9
  /**
35
10
  * @param {Object} options - { privateMemoryFiles?: string[] }
36
11
  * @returns {string}
package/src/scaffold.js CHANGED
@@ -24,7 +24,7 @@ import {
24
24
  loadRulesMetadata,
25
25
  getSkillCandidatePaths,
26
26
  } from './metadata.js';
27
- import { generateGitignore, hasRetiredFrameworkGitignore, stripRetiredFrameworkGitignore } from './gitignore-template.js';
27
+ import { generateGitignore } from './gitignore-template.js';
28
28
  import { buildManifest, readManifestForLifecycle, writeManifest } from './manifest.js';
29
29
  import { defaultCliForPlatform, expandPlatforms, isKnownPlatform, nativeSkillRoot, payloadSkillRoots, platformLabel, privateProjectMemoryFile, privateProjectMemoryFiles, projectMemoryFile, resolvePayloadPlatforms } from './platforms.js';
30
30
  import { normalizeRuntime, runtimeLabel } from './runtimes.js';
@@ -1379,33 +1379,23 @@ export async function installGitignore(projectRoot, options = {}, dryRun) {
1379
1379
  privateMemoryFiles: options.privateMemoryFiles || [],
1380
1380
  });
1381
1381
  const existed = await fs.pathExists(targetPath);
1382
- const existing = existed ? await fs.readFile(targetPath, 'utf-8') : '';
1383
- const retiredRemoved = existed && hasRetiredFrameworkGitignore(existing);
1384
- const stripped = retiredRemoved ? stripRetiredFrameworkGitignore(existing) : existing;
1385
1382
 
1386
1383
  if (dryRun) {
1387
- if (retiredRemoved) console.log(chalk.gray(' [dry-run] .gitignore (remove retired .prizmkit/* ignore)'));
1388
1384
  if (!templateContent) {
1389
- if (!retiredRemoved) console.log(chalk.gray(' [dry-run] .gitignore (no managed private-memory entries)'));
1385
+ if (!existed) console.log(chalk.gray(' [dry-run] .gitignore (no managed private-memory entries)'));
1390
1386
  return;
1391
1387
  }
1392
1388
  console.log(chalk.gray(' [dry-run] .gitignore (private host memory only)'));
1393
1389
  return;
1394
1390
  }
1395
1391
 
1396
- let current = existed ? stripped : '';
1397
- if (retiredRemoved) {
1398
- await fs.writeFile(targetPath, current ? `${current.replace(/\s+$/, '')}\n` : '');
1399
- current = await fs.readFile(targetPath, 'utf-8');
1400
- console.log(chalk.green(' ✓ .gitignore (removed retired .prizmkit/* ignore)'));
1401
- }
1402
-
1403
1392
  if (!templateContent) {
1404
1393
  if (!existed) console.log(chalk.gray(' • .gitignore (no managed private-memory entries)'));
1405
1394
  return;
1406
1395
  }
1407
1396
 
1408
- if (await fs.pathExists(targetPath)) {
1397
+ if (existed) {
1398
+ const current = await fs.readFile(targetPath, 'utf-8');
1409
1399
  const existingLines = new Set(current.split('\n').map(l => l.trim()));
1410
1400
  const templateLines = templateContent.split('\n').map(l => l.trim()).filter(Boolean);
1411
1401
  const missing = templateLines.filter(line => !existingLines.has(line) && !line.startsWith('#'));
@@ -1416,13 +1406,14 @@ export async function installGitignore(projectRoot, options = {}, dryRun) {
1416
1406
  const header = existingLines.has(managedHeader) ? '' : `${managedHeader}\n`;
1417
1407
  await fs.appendFile(targetPath, separator + '\n' + header + missing.join('\n') + '\n');
1418
1408
  console.log(chalk.green(` ✓ .gitignore (added ${missing.length} entries)`));
1419
- } else if (!retiredRemoved) {
1409
+ } else {
1420
1410
  console.log(chalk.green(' ✓ .gitignore (up-to-date)'));
1421
1411
  }
1422
- } else {
1423
- await fs.writeFile(targetPath, `${templateContent}\n`);
1424
- console.log(chalk.green(' ✓ .gitignore'));
1412
+ return;
1425
1413
  }
1414
+
1415
+ await fs.writeFile(targetPath, `${templateContent}\n`);
1416
+ console.log(chalk.green(' ✓ .gitignore'));
1426
1417
  }
1427
1418
 
1428
1419
  // ============================================================
package/src/upgrade.js CHANGED
@@ -23,7 +23,6 @@ import {
23
23
  installPipeline,
24
24
  installPrizmkitScripts,
25
25
  installGitHook,
26
- installGitignore,
27
26
  installProjectMemory,
28
27
  resolvePipelineFileList,
29
28
  findStaleManagedPipelineFiles,
@@ -33,7 +32,7 @@ import {
33
32
  removeRetiredAgentTeamArtifacts,
34
33
  EXTRAS_REGISTRY,
35
34
  } from './scaffold.js';
36
- import { expandPlatforms, PLATFORM_IDS, platformLabel, privateProjectMemoryFiles, resolvePayloadPlatforms, uniquePlatforms } from './platforms.js';
35
+ import { expandPlatforms, PLATFORM_IDS, platformLabel, resolvePayloadPlatforms, uniquePlatforms } from './platforms.js';
37
36
  import { normalizeRuntime, runtimeLabel } from './runtimes.js';
38
37
 
39
38
  const __dirname = dirname(fileURLToPath(import.meta.url));
@@ -513,13 +512,6 @@ export async function runUpgrade(directory, options = {}) {
513
512
  console.log(chalk.blue(' Git Hook:'));
514
513
  await installGitHook(projectRoot, dryRun, runtime);
515
514
 
516
- // .gitignore
517
- console.log(chalk.blue(' Gitignore:'));
518
- await installGitignore(projectRoot, {
519
- pipeline,
520
- privateMemoryFiles: privateProjectMemoryFiles(payloadPlatforms),
521
- }, dryRun);
522
-
523
515
  // PrizmKit scripts
524
516
  console.log(chalk.blue(' PrizmKit Scripts:'));
525
517
  await installPrizmkitScripts(projectRoot, dryRun, runtime);