prizmkit 1.1.196 → 1.1.197
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/bin/create-prizmkit.js +0 -2
- package/bundled/VERSION.json +3 -3
- package/bundled/adapters/antigravity/assets/prizmkit-hook.cjs +1 -1
- package/bundled/adapters/antigravity/rules-adapter.js +1 -13
- package/bundled/adapters/claude/paths.js +0 -1
- package/bundled/adapters/codex/paths.js +0 -1
- package/bundled/adapters/codex/settings-adapter.js +1 -1
- package/bundled/adapters/cursor/assets/prizmkit-hook.cjs +1 -1
- package/bundled/adapters/cursor/rules-adapter.js +1 -13
- package/bundled/adapters/pi/paths.js +0 -1
- package/bundled/dev-pipeline/.env.example +2 -2
- package/bundled/dev-pipeline/README.md +6 -5
- package/bundled/dev-pipeline/assets/skill-subagent-integration.md +2 -2
- package/bundled/dev-pipeline/prizmkit_runtime/checkpoint_state.py +15 -25
- package/bundled/dev-pipeline/prizmkit_runtime/iterate.py +1 -69
- package/bundled/dev-pipeline/prizmkit_runtime/platform_detection.py +1 -114
- package/bundled/dev-pipeline/prizmkit_runtime/runner_models.py +2 -2
- package/bundled/dev-pipeline/prizmkit_runtime/runners.py +78 -0
- package/bundled/dev-pipeline/prizmkit_runtime/runtime_helper.py +4 -234
- package/bundled/dev-pipeline/prizmkit_runtime/status.py +0 -5
- package/bundled/dev-pipeline/prizmkit_runtime/stream_progress.py +9 -1
- package/bundled/dev-pipeline/scripts/feature_list_contract.py +0 -43
- package/bundled/dev-pipeline/scripts/generate-bootstrap-prompt.py +15 -76
- package/bundled/dev-pipeline/scripts/generate-bugfix-prompt.py +9 -112
- package/bundled/dev-pipeline/scripts/init-bugfix-pipeline.py +0 -13
- package/bundled/dev-pipeline/scripts/init-pipeline.py +0 -1
- package/bundled/dev-pipeline/scripts/prompt_framework.py +0 -79
- package/bundled/dev-pipeline/scripts/status_common.py +150 -4
- package/bundled/dev-pipeline/scripts/update-bug-status.py +20 -2
- package/bundled/dev-pipeline/scripts/update-feature-status.py +20 -2
- package/bundled/dev-pipeline/scripts/utils.py +6 -0
- package/bundled/dev-pipeline/templates/bootstrap-prompt.md +4 -5
- package/bundled/dev-pipeline/templates/bootstrap-tier3.md +5 -101
- package/bundled/dev-pipeline/templates/bug-fix-list-schema.json +0 -35
- package/bundled/dev-pipeline/templates/bugfix-bootstrap-prompt.md +4 -52
- package/bundled/dev-pipeline/templates/feature-list-schema.json +0 -25
- package/bundled/dev-pipeline/templates/iterate/evaluate-prompt.md +5 -16
- package/bundled/dev-pipeline/templates/iterate/evaluation-schema.json +1 -58
- package/bundled/dev-pipeline/templates/iterate/headless-plan-prompt.md +1 -12
- package/bundled/dev-pipeline/templates/sections/artifact-manifest.md +0 -1
- package/bundled/dev-pipeline/templates/sections/bugfix-phase-commit-report.md +0 -1
- package/bundled/dev-pipeline/templates/sections/bugfix-phase-diagnose-plan.md +2 -2
- package/bundled/dev-pipeline/templates/sections/bugfix-phase-review.md +1 -1
- package/bundled/dev-pipeline/templates/sections/bugfix-phase-test.md +1 -1
- package/bundled/dev-pipeline/templates/sections/bugfix-reminders.md +0 -2
- package/bundled/dev-pipeline/templates/sections/bugfix-session-context.md +0 -1
- package/bundled/dev-pipeline/templates/sections/bugfix-task-contract.md +0 -5
- package/bundled/dev-pipeline/templates/sections/checkpoint-system.md +1 -2
- package/bundled/dev-pipeline/templates/sections/feature-completion-summary.md +1 -1
- package/bundled/dev-pipeline/templates/sections/phase-commit-full.md +3 -3
- package/bundled/dev-pipeline/templates/sections/phase-prizmkit-test.md +3 -3
- package/bundled/dev-pipeline/templates/sections/phase-review-full.md +3 -3
- package/bundled/dev-pipeline/templates/sections/phase-specify-plan-full.md +1 -1
- package/bundled/dev-pipeline/templates/sections/retrospective.md +3 -3
- package/bundled/dev-pipeline/templates/sections/runtime-commit-handoff.md +1 -1
- package/bundled/rules/USAGE.md +5 -19
- package/bundled/rules/general/coding-baseline.md +2 -2
- package/bundled/rules/prizm/prizm-progressive-loading.md +2 -1
- package/bundled/skills/_metadata.json +4 -4
- package/bundled/skills/app-planner/SKILL.md +1 -1
- package/bundled/skills/app-planner/references/generated-plan-review.md +1 -1
- package/bundled/skills/app-planner/references/rules-configuration.md +6 -7
- package/bundled/skills/app-planner/scripts/validate-rules-configuration.py +2 -20
- package/bundled/skills/bug-planner/SKILL.md +5 -6
- package/bundled/skills/bug-planner/assets/bug-confirmation-template.md +1 -1
- package/bundled/skills/bug-planner/references/input-formats.md +2 -2
- package/bundled/skills/bug-planner/references/schema-validation.md +0 -1
- package/bundled/skills/bug-planner/scripts/validate-bug-list.py +2 -9
- package/bundled/skills/bugfix-pipeline-launcher/SKILL.md +36 -25
- package/bundled/skills/bugfix-pipeline-launcher/references/configuration.md +32 -26
- package/bundled/skills/feature-pipeline-launcher/SKILL.md +33 -25
- package/bundled/skills/feature-pipeline-launcher/references/configuration.md +32 -26
- package/bundled/skills/feature-planner/SKILL.md +4 -10
- package/bundled/skills/feature-planner/references/completeness-review.md +2 -2
- package/bundled/skills/feature-planner/references/new-project-planning.md +0 -1
- package/bundled/skills/feature-planner/scripts/validate-and-generate.py +1 -25
- package/bundled/skills/iterate-pipeline-launcher/SKILL.md +53 -42
- package/bundled/skills/iterate-pipeline-launcher/references/configuration.md +47 -43
- package/bundled/skills/prizmkit-code-review/SKILL.md +1 -1
- package/bundled/skills/prizmkit-code-review/references/independent-code-review.md +2 -2
- package/bundled/skills/prizmkit-implement/SKILL.md +1 -1
- package/bundled/skills/prizmkit-init/SKILL.md +6 -7
- package/bundled/skills/prizmkit-init/references/config-schema.md +5 -9
- package/bundled/skills/prizmkit-init/references/rules/layer-detection.md +1 -1
- package/bundled/skills/prizmkit-plan/SKILL.md +1 -1
- package/bundled/skills/prizmkit-retrospective/SKILL.md +3 -3
- package/bundled/skills/prizmkit-retrospective/references/rule-evolution-steps.md +11 -17
- package/bundled/skills/prizmkit-workflow/SKILL.md +6 -3
- package/bundled/skills/prizmkit-workflow/references/cold-start-rules.md +8 -7
- package/bundled/templates/project-memory-template.md +2 -1
- package/package.json +1 -1
- package/src/clean.js +29 -7
- package/src/config.js +13 -15
- package/src/index.js +1 -5
- package/src/manifest.js +3 -6
- package/src/platforms.js +0 -14
- package/src/scaffold.js +93 -313
- package/src/upgrade.js +32 -31
- package/bundled/adapters/claude/rules-adapter.js +0 -25
- package/bundled/adapters/codebuddy/rules-adapter.js +0 -30
- package/bundled/adapters/codex/rules-adapter.js +0 -30
- package/bundled/adapters/pi/rules-adapter.js +0 -13
- package/bundled/dev-pipeline/templates/sections/bugfix-phase-manual-verification.md +0 -10
- package/bundled/dev-pipeline/templates/sections/phase-browser-verification.md +0 -111
- package/bundled/skills/bug-planner/references/verification.md +0 -26
- package/bundled/skills/feature-planner/references/browser-interaction.md +0 -39
package/src/clean.js
CHANGED
|
@@ -238,13 +238,23 @@ export async function runClean(directory, options = {}) {
|
|
|
238
238
|
|
|
239
239
|
const results = [];
|
|
240
240
|
|
|
241
|
-
// ── Full removes (100% PrizmKit-owned paths)
|
|
241
|
+
// ── Full removes (100% PrizmKit-owned paths; preserve .prizmkit/rules/<layer>-rules.md) ──
|
|
242
242
|
const fullRemoveTargets = [
|
|
243
|
-
'.prizmkit',
|
|
243
|
+
path.join('.prizmkit', 'dev-pipeline'),
|
|
244
|
+
path.join('.prizmkit', 'prizm-docs'),
|
|
245
|
+
path.join('.prizmkit', 'plans'),
|
|
246
|
+
path.join('.prizmkit', 'specs'),
|
|
247
|
+
path.join('.prizmkit', 'bugfix'),
|
|
248
|
+
path.join('.prizmkit', 'deploy'),
|
|
249
|
+
path.join('.prizmkit', 'state'),
|
|
250
|
+
path.join('.prizmkit', 'scripts'),
|
|
251
|
+
path.join('.prizmkit', 'backups'),
|
|
252
|
+
path.join('.prizmkit', 'test'),
|
|
253
|
+
path.join('.prizmkit', 'config.json'),
|
|
254
|
+
path.join('.prizmkit', 'manifest.json'),
|
|
255
|
+
path.join('.prizmkit', '.env'),
|
|
256
|
+
path.join('.prizmkit', '.env.example'),
|
|
244
257
|
'.dev-team',
|
|
245
|
-
path.join('.prizmkit', 'plans', 'feature-list.json'), // feature-planner output
|
|
246
|
-
path.join('.prizmkit', 'plans', 'bug-fix-list.json'), // bug-planner output
|
|
247
|
-
path.join('.prizmkit', 'plans', 'project-brief.md'), // feature-planner project brief
|
|
248
258
|
path.join('.codebuddy', 'settings.json'),
|
|
249
259
|
path.join('.claude', 'settings.json'),
|
|
250
260
|
path.join('.claude', 'team-info.json'),
|
|
@@ -301,7 +311,11 @@ export async function runClean(directory, options = {}) {
|
|
|
301
311
|
const codexAgentsDir = path.join(projectRoot, '.codex', 'agents');
|
|
302
312
|
results.push(...await removeKnownEntries(codexAgentsDir, codexAgentFiles, dryRun));
|
|
303
313
|
|
|
304
|
-
// .
|
|
314
|
+
// .prizmkit/rules/builtin/ — unified PrizmKit built-in rules (never touch project <layer>-rules.md)
|
|
315
|
+
const builtinRulesDir = path.join(projectRoot, '.prizmkit', 'rules', 'builtin');
|
|
316
|
+
results.push(...await removeKnownEntries(builtinRulesDir, ruleFileNames.map(n => `${n}.md`), dryRun));
|
|
317
|
+
|
|
318
|
+
// .claude/rules/ — legacy PrizmKit rule .md files
|
|
305
319
|
const claudeRulesDir = path.join(projectRoot, '.claude', 'rules');
|
|
306
320
|
results.push(...await removeKnownEntries(claudeRulesDir, ruleFileNames.map(n => `${n}.md`), dryRun));
|
|
307
321
|
|
|
@@ -349,6 +363,14 @@ export async function runClean(directory, options = {}) {
|
|
|
349
363
|
|
|
350
364
|
if (!dryRun) {
|
|
351
365
|
for (const relativeDir of [
|
|
366
|
+
'.prizmkit/rules/builtin',
|
|
367
|
+
'.prizmkit/rules',
|
|
368
|
+
'.prizmkit',
|
|
369
|
+
'.claude/rules',
|
|
370
|
+
'.codebuddy/rules',
|
|
371
|
+
'.agents/rules',
|
|
372
|
+
'.codex/rules',
|
|
373
|
+
'.pi/rules',
|
|
352
374
|
'.cursor/hooks',
|
|
353
375
|
'.cursor/rules',
|
|
354
376
|
'.cursor/skills',
|
|
@@ -410,7 +432,7 @@ export async function runClean(directory, options = {}) {
|
|
|
410
432
|
}
|
|
411
433
|
console.log('');
|
|
412
434
|
console.log(chalk.gray(' 注意:.prizmkit/prizm-docs/ 为 AI 生成的项目上下文文档,已一并清理。'));
|
|
413
|
-
console.log(chalk.gray('
|
|
435
|
+
console.log(chalk.gray(' 项目分层规则(.prizmkit/rules/<layer>-rules.md)与用户自定义的 agent/skill/rule 文件未受影响。'));
|
|
414
436
|
console.log('');
|
|
415
437
|
}
|
|
416
438
|
|
package/src/config.js
CHANGED
|
@@ -24,6 +24,7 @@ import {
|
|
|
24
24
|
import {
|
|
25
25
|
installSkills,
|
|
26
26
|
installSettings,
|
|
27
|
+
installBuiltinRules,
|
|
27
28
|
installProjectMemory,
|
|
28
29
|
installPipeline,
|
|
29
30
|
installGitHook,
|
|
@@ -36,9 +37,9 @@ import {
|
|
|
36
37
|
removeStaleManagedPipelineFiles,
|
|
37
38
|
normalizeMainProjectMemoryContent,
|
|
38
39
|
removeRetiredAgentTeamArtifacts,
|
|
39
|
-
EXTRAS_REGISTRY,
|
|
40
40
|
} from './scaffold.js';
|
|
41
41
|
import {
|
|
42
|
+
removeBuiltinRuleFiles,
|
|
42
43
|
removeSkillFiles,
|
|
43
44
|
removeAgentFiles,
|
|
44
45
|
removeRuleFiles,
|
|
@@ -529,9 +530,6 @@ export async function runConfig(directory, options = {}) {
|
|
|
529
530
|
const suiteManifestNeedsNormalization = rawManifestSuite !== 'core';
|
|
530
531
|
const rawManifestRules = oldManifest.options?.rules || 'recommended';
|
|
531
532
|
const rulesManifestNeedsNormalization = rawManifestRules !== 'recommended';
|
|
532
|
-
const rawManifestExtras = oldManifest.files?.extras || [];
|
|
533
|
-
const normalizedExtras = rawManifestExtras.filter(name => EXTRAS_REGISTRY[name]);
|
|
534
|
-
const extrasManifestNeedsNormalization = normalizedExtras.length !== rawManifestExtras.length;
|
|
535
533
|
|
|
536
534
|
const currentConfig = {
|
|
537
535
|
platform: detectedPlatform,
|
|
@@ -572,7 +570,6 @@ export async function runConfig(directory, options = {}) {
|
|
|
572
570
|
&& !runtimeOptionNeedsNormalization
|
|
573
571
|
&& !suiteManifestNeedsNormalization
|
|
574
572
|
&& !rulesManifestNeedsNormalization
|
|
575
|
-
&& !extrasManifestNeedsNormalization
|
|
576
573
|
&& !options.platform
|
|
577
574
|
&& options.skills === undefined
|
|
578
575
|
&& options.runtime === undefined
|
|
@@ -660,9 +657,6 @@ export async function runConfig(directory, options = {}) {
|
|
|
660
657
|
if (rulesManifestNeedsNormalization) {
|
|
661
658
|
changes.push(`规则: ${currentConfig.rules} → 全部内置规则`);
|
|
662
659
|
}
|
|
663
|
-
if (extrasManifestNeedsNormalization) {
|
|
664
|
-
changes.push('清理已退役的浏览器扩展记录');
|
|
665
|
-
}
|
|
666
660
|
if (newConfig.pipeline !== currentConfig.pipeline) {
|
|
667
661
|
changes.push(`流水线: ${currentConfig.pipeline ? '启用' : '禁用'} → ${newConfig.pipeline ? '启用' : '禁用'}`);
|
|
668
662
|
}
|
|
@@ -740,7 +734,7 @@ export async function runConfig(directory, options = {}) {
|
|
|
740
734
|
version: pkg.version, platform: newConfig.platform, suite: newConfig.suite,
|
|
741
735
|
skills: newSkillList, rules: newRuleFiles,
|
|
742
736
|
pipeline: newPipelineFiles, aiCli: newConfig.aiCli,
|
|
743
|
-
runtime: newConfig.runtime, rulesPreset: newConfig.rules,
|
|
737
|
+
runtime: newConfig.runtime, rulesPreset: newConfig.rules, payloadPlatforms: newPlatforms,
|
|
744
738
|
});
|
|
745
739
|
const diff = diffManifest(oldManifest, newTempManifest);
|
|
746
740
|
|
|
@@ -750,10 +744,10 @@ export async function runConfig(directory, options = {}) {
|
|
|
750
744
|
console.log(chalk.blue(`\n 删除多余 skills (${platformLabel(p)}):`));
|
|
751
745
|
await removeSkillFiles(p, projectRoot, diff.skills.removed, false);
|
|
752
746
|
}
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
747
|
+
}
|
|
748
|
+
if (diff.rules.removed.length) {
|
|
749
|
+
console.log(chalk.blue('\n 删除多余内置 rules:'));
|
|
750
|
+
await removeBuiltinRuleFiles(projectRoot, diff.rules.removed, false);
|
|
757
751
|
}
|
|
758
752
|
}
|
|
759
753
|
|
|
@@ -778,7 +772,7 @@ export async function runConfig(directory, options = {}) {
|
|
|
778
772
|
console.log(chalk.blue(' Skills:'));
|
|
779
773
|
await installSkills(p, newSkillList, projectRoot, false, newConfig.runtime);
|
|
780
774
|
|
|
781
|
-
console.log(chalk.blue('\n Settings &
|
|
775
|
+
console.log(chalk.blue('\n Settings & Hooks:'));
|
|
782
776
|
await installSettings(p, projectRoot, {}, false, newConfig.runtime);
|
|
783
777
|
|
|
784
778
|
console.log(chalk.blue('\n Project Memory:'));
|
|
@@ -786,6 +780,11 @@ export async function runConfig(directory, options = {}) {
|
|
|
786
780
|
}
|
|
787
781
|
}
|
|
788
782
|
|
|
783
|
+
if (allTargetPlatforms.length > 0 && (platformsToAdd.length > 0 || needsReinstall)) {
|
|
784
|
+
console.log(chalk.blue('\n Built-in Rules:'));
|
|
785
|
+
await installBuiltinRules(projectRoot, false, newConfig.runtime);
|
|
786
|
+
}
|
|
787
|
+
|
|
789
788
|
// 5e. Pipeline changes
|
|
790
789
|
if (newConfig.pipeline !== currentConfig.pipeline || (newConfig.pipeline && (newConfig.runtime !== currentConfig.runtime || runtimeManifestNeedsNormalization || runtimeOptionNeedsNormalization))) {
|
|
791
790
|
if (newConfig.pipeline) {
|
|
@@ -846,7 +845,6 @@ export async function runConfig(directory, options = {}) {
|
|
|
846
845
|
aiCli: newConfig.aiCli,
|
|
847
846
|
rulesPreset: newConfig.rules,
|
|
848
847
|
payloadPlatforms: newPlatforms,
|
|
849
|
-
extras: normalizedExtras,
|
|
850
848
|
});
|
|
851
849
|
|
|
852
850
|
// Preserve original installedAt
|
package/src/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* create-prizmkit 交互式主流程
|
|
3
3
|
*
|
|
4
4
|
* 引导用户选择目标平台、底层 AI CLI 并确认安装摘要,
|
|
5
|
-
* 默认安装完整 core
|
|
5
|
+
* 默认安装完整 core 技能套件、全部内置规则和 dev-pipeline,
|
|
6
6
|
* 然后调用 scaffold.js 执行纯净安装。
|
|
7
7
|
*/
|
|
8
8
|
|
|
@@ -69,7 +69,6 @@ export async function runScaffold(directory, options = {}) {
|
|
|
69
69
|
// 兼容旧 --skills 参数:输出弃用警告并始终归一为 core
|
|
70
70
|
const skillSuite = normalizeSkillSuite(options.skills, { warn: true, warnOnCore: true });
|
|
71
71
|
const pipeline = options.pipeline !== false;
|
|
72
|
-
const playwrightCli = options.playwrightCli !== false;
|
|
73
72
|
|
|
74
73
|
// === 非交互式模式 ===
|
|
75
74
|
if (options.nonInteractive) {
|
|
@@ -82,7 +81,6 @@ export async function runScaffold(directory, options = {}) {
|
|
|
82
81
|
runtime: normalizeRuntime(options.runtime),
|
|
83
82
|
skills: skillSuite,
|
|
84
83
|
pipeline,
|
|
85
|
-
playwrightCli,
|
|
86
84
|
aiCli: options.aiCli || '',
|
|
87
85
|
aiCliLaunch: resolveAiCliLaunchSelection(options.aiCli || '', {
|
|
88
86
|
headlessPromptArg: options.headlessPromptArg,
|
|
@@ -117,7 +115,6 @@ export async function runScaffold(directory, options = {}) {
|
|
|
117
115
|
console.log(` 平台: ${chalk.cyan(selectedPlatformLabel)}`);
|
|
118
116
|
console.log(` 技能: ${chalk.cyan(`Core (${coreSkillCount} 个)`)}`);
|
|
119
117
|
console.log(` 流水线: ${pipeline ? chalk.green('启用') : chalk.gray('禁用')}`);
|
|
120
|
-
console.log(` 浏览器工具: ${playwrightCli ? chalk.green('playwright-cli') : chalk.gray('禁用')}`);
|
|
121
118
|
console.log(` 规则: ${chalk.cyan(`全部内置规则 (${ruleCount} 条)`)}`);
|
|
122
119
|
if (aiCli) console.log(` AI CLI: ${chalk.cyan(aiCli)}`);
|
|
123
120
|
console.log(` 目标目录: ${projectRoot}`);
|
|
@@ -135,7 +132,6 @@ export async function runScaffold(directory, options = {}) {
|
|
|
135
132
|
runtime,
|
|
136
133
|
skills: skillSuite,
|
|
137
134
|
pipeline,
|
|
138
|
-
playwrightCli,
|
|
139
135
|
aiCli: aiCli || '',
|
|
140
136
|
aiCliLaunch,
|
|
141
137
|
projectRoot,
|
package/src/manifest.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Manifest management for PrizmKit installations.
|
|
3
3
|
*
|
|
4
|
-
* Tracks what was installed (skills, rules, pipeline
|
|
4
|
+
* Tracks what was installed (skills, rules, pipeline) so that
|
|
5
5
|
* `upgrade` can diff old vs new and `uninstall` can clean orphaned files.
|
|
6
6
|
*
|
|
7
7
|
* Manifest is written to <projectRoot>/.prizmkit/manifest.json
|
|
@@ -20,7 +20,7 @@ const MANIFEST_FIELDS = new Set([
|
|
|
20
20
|
]);
|
|
21
21
|
const MANIFEST_OPTION_FIELDS = new Set(['pipeline', 'rules', 'aiCli']);
|
|
22
22
|
const MANIFEST_FILE_FIELDS = new Set([
|
|
23
|
-
'skills', 'rules', 'pipeline', '
|
|
23
|
+
'skills', 'rules', 'pipeline', 'payloadPlatforms', 'memory',
|
|
24
24
|
]);
|
|
25
25
|
const MANIFEST_MEMORY_FIELDS = new Set(['main', 'private']);
|
|
26
26
|
|
|
@@ -154,7 +154,6 @@ export function buildManifest({
|
|
|
154
154
|
pipeline,
|
|
155
155
|
aiCli,
|
|
156
156
|
rulesPreset,
|
|
157
|
-
extras,
|
|
158
157
|
payloadPlatforms,
|
|
159
158
|
}) {
|
|
160
159
|
const now = new Date().toISOString();
|
|
@@ -177,7 +176,6 @@ export function buildManifest({
|
|
|
177
176
|
skills: [...skills],
|
|
178
177
|
rules: [...rules],
|
|
179
178
|
pipeline: pipeline ? [...pipeline] : [],
|
|
180
|
-
extras: extras ? [...extras] : [],
|
|
181
179
|
payloadPlatforms: installedPayloadPlatforms,
|
|
182
180
|
memory: {
|
|
183
181
|
main: [...new Set(installedPayloadPlatforms.map(projectMemoryFile).filter(Boolean))],
|
|
@@ -191,7 +189,7 @@ export function buildManifest({
|
|
|
191
189
|
* Diff two manifests and return added/removed items.
|
|
192
190
|
* @param {Object} oldManifest - previous manifest
|
|
193
191
|
* @param {Object} newManifest - new manifest to compare against
|
|
194
|
-
* @returns {Object} changed managed skills, rules, pipeline files
|
|
192
|
+
* @returns {Object} changed managed skills, rules, and pipeline files
|
|
195
193
|
*/
|
|
196
194
|
export function diffManifest(oldManifest, newManifest) {
|
|
197
195
|
function diffArrays(oldArr, newArr) {
|
|
@@ -210,6 +208,5 @@ export function diffManifest(oldManifest, newManifest) {
|
|
|
210
208
|
Array.isArray(oldManifest?.files?.pipeline) ? oldManifest.files.pipeline : [],
|
|
211
209
|
Array.isArray(newManifest?.files?.pipeline) ? newManifest.files.pipeline : [],
|
|
212
210
|
),
|
|
213
|
-
extras: diffArrays(oldManifest?.files?.extras, newManifest?.files?.extras),
|
|
214
211
|
};
|
|
215
212
|
}
|
package/src/platforms.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import path from 'path';
|
|
2
1
|
import { isBuiltInAiCli } from './ai-cli-launch.js';
|
|
3
2
|
|
|
4
3
|
export const PLATFORM_IDS = ['codebuddy', 'claude', 'codex', 'pi', 'cursor', 'antigravity'];
|
|
@@ -143,16 +142,3 @@ export function defaultCliForPlatform(platform) {
|
|
|
143
142
|
if (platform === 'antigravity') return 'agy';
|
|
144
143
|
return '';
|
|
145
144
|
}
|
|
146
|
-
|
|
147
|
-
export function nativeSkillRoot(platform, projectRoot) {
|
|
148
|
-
if (platform === 'codebuddy') return path.join(projectRoot, '.codebuddy', 'skills');
|
|
149
|
-
if (platform === 'codex') return path.join(projectRoot, '.agents', 'skills');
|
|
150
|
-
if (platform === 'pi') return path.join(projectRoot, '.pi', 'skills');
|
|
151
|
-
if (platform === 'cursor') return path.join(projectRoot, '.cursor', 'skills');
|
|
152
|
-
if (platform === 'antigravity') return path.join(projectRoot, '.agents', 'plugins', 'prizmkit', 'skills');
|
|
153
|
-
return path.join(projectRoot, '.claude', 'skills');
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
export function payloadSkillRoots(platform, projectRoot, aiCli = '') {
|
|
157
|
-
return resolvePayloadPlatforms(platform, aiCli).map(p => nativeSkillRoot(p, projectRoot));
|
|
158
|
-
}
|