pumuki 6.3.13 → 6.3.14
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/README.md +95 -7
- package/VERSION +1 -1
- package/bin/pumuki-mcp-enterprise.js +5 -0
- package/bin/pumuki-pre-write.js +11 -0
- package/docs/API_REFERENCE.md +2 -1
- package/docs/INSTALLATION.md +101 -54
- package/docs/MCP_SERVERS.md +167 -74
- package/docs/PUMUKI_FULL_VALIDATION_CHECKLIST.md +46 -45
- package/docs/PUMUKI_OPENSPEC_SDD_ROADMAP.md +55 -0
- package/docs/README.md +5 -0
- package/docs/REFRACTOR_PROGRESS.md +102 -3
- package/docs/USAGE.md +115 -8
- package/docs/validation/README.md +2 -0
- package/docs/validation/phase12-go-no-go-report.md +73 -0
- package/docs/validation/post-phase12-next-lot-decision.md +75 -0
- package/integrations/config/skillsRuleSet.ts +53 -6
- package/integrations/evidence/buildEvidence.ts +42 -3
- package/integrations/evidence/generateEvidence.test.ts +59 -0
- package/integrations/evidence/readEvidence.test.ts +61 -0
- package/integrations/evidence/schema.test.ts +81 -0
- package/integrations/evidence/schema.ts +11 -0
- package/integrations/evidence/writeEvidence.test.ts +18 -0
- package/integrations/evidence/writeEvidence.ts +11 -0
- package/integrations/git/resolveGitRefs.ts +2 -2
- package/integrations/git/runPlatformGate.ts +64 -0
- package/integrations/git/runPlatformGateEvidence.ts +13 -0
- package/integrations/git/stageRunners.ts +10 -1
- package/integrations/lifecycle/artifacts.ts +57 -4
- package/integrations/lifecycle/cli.ts +248 -12
- package/integrations/lifecycle/constants.ts +1 -0
- package/integrations/lifecycle/gitService.ts +1 -0
- package/integrations/lifecycle/install.ts +24 -1
- package/integrations/lifecycle/openSpecBootstrap.ts +190 -0
- package/integrations/lifecycle/state.ts +57 -0
- package/integrations/lifecycle/uninstall.ts +3 -1
- package/integrations/lifecycle/update.ts +11 -0
- package/integrations/mcp/enterpriseServer.cli.ts +12 -0
- package/integrations/mcp/enterpriseServer.ts +762 -0
- package/integrations/mcp/index.ts +1 -0
- package/integrations/sdd/index.ts +11 -0
- package/integrations/sdd/openSpecCli.ts +180 -0
- package/integrations/sdd/policy.ts +190 -0
- package/integrations/sdd/sessionStore.ts +152 -0
- package/integrations/sdd/types.ts +69 -0
- package/package.json +10 -4
- package/scripts/framework-menu-runner-path-lib.ts +10 -3
- package/scripts/framework-menu.ts +86 -5
- package/scripts/package-install-smoke-gate-lib.ts +6 -1
- package/scripts/package-install-smoke-lifecycle-lib.ts +3 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { purgeUntrackedPumukiArtifacts } from './artifacts';
|
|
2
2
|
import { LifecycleGitService, type ILifecycleGitService } from './gitService';
|
|
3
3
|
import { uninstallPumukiHooks } from './hookManager';
|
|
4
|
-
import { clearLifecycleState } from './state';
|
|
4
|
+
import { clearLifecycleState, readOpenSpecManagedArtifacts } from './state';
|
|
5
5
|
|
|
6
6
|
export type LifecycleUninstallResult = {
|
|
7
7
|
repoRoot: string;
|
|
@@ -17,6 +17,7 @@ export const runLifecycleUninstall = (params?: {
|
|
|
17
17
|
const git = params?.git ?? new LifecycleGitService();
|
|
18
18
|
const cwd = params?.cwd ?? process.cwd();
|
|
19
19
|
const repoRoot = git.resolveRepoRoot(cwd);
|
|
20
|
+
const managedOpenSpecArtifacts = readOpenSpecManagedArtifacts(git, repoRoot);
|
|
20
21
|
|
|
21
22
|
const hookResult = uninstallPumukiHooks(repoRoot);
|
|
22
23
|
clearLifecycleState(git, repoRoot);
|
|
@@ -25,6 +26,7 @@ export const runLifecycleUninstall = (params?: {
|
|
|
25
26
|
? purgeUntrackedPumukiArtifacts({
|
|
26
27
|
git,
|
|
27
28
|
repoRoot,
|
|
29
|
+
managedOpenSpecArtifacts,
|
|
28
30
|
})
|
|
29
31
|
: [];
|
|
30
32
|
|
|
@@ -3,12 +3,17 @@ import { doctorHasBlockingIssues, runLifecycleDoctor } from './doctor';
|
|
|
3
3
|
import { LifecycleGitService, type ILifecycleGitService } from './gitService';
|
|
4
4
|
import { runLifecycleInstall } from './install';
|
|
5
5
|
import { LifecycleNpmService, type ILifecycleNpmService } from './npmService';
|
|
6
|
+
import {
|
|
7
|
+
runOpenSpecCompatibilityMigration,
|
|
8
|
+
type OpenSpecCompatibilityMigrationResult,
|
|
9
|
+
} from './openSpecBootstrap';
|
|
6
10
|
import { getCurrentPumukiPackageName } from './packageInfo';
|
|
7
11
|
|
|
8
12
|
export type LifecycleUpdateResult = {
|
|
9
13
|
repoRoot: string;
|
|
10
14
|
targetSpec: string;
|
|
11
15
|
reinstallHooksChanged: ReadonlyArray<string>;
|
|
16
|
+
openSpecCompatibility: OpenSpecCompatibilityMigrationResult;
|
|
12
17
|
};
|
|
13
18
|
|
|
14
19
|
const resolveTargetSpec = (explicitSpec?: string): string => {
|
|
@@ -48,14 +53,20 @@ export const runLifecycleUpdate = (params?: {
|
|
|
48
53
|
npm.runNpm(installArgs, doctorReport.repoRoot);
|
|
49
54
|
|
|
50
55
|
try {
|
|
56
|
+
const openSpecCompatibility = runOpenSpecCompatibilityMigration({
|
|
57
|
+
repoRoot: doctorReport.repoRoot,
|
|
58
|
+
npm,
|
|
59
|
+
});
|
|
51
60
|
const installResult = runLifecycleInstall({
|
|
52
61
|
cwd: doctorReport.repoRoot,
|
|
53
62
|
git,
|
|
63
|
+
bootstrapOpenSpec: false,
|
|
54
64
|
});
|
|
55
65
|
return {
|
|
56
66
|
repoRoot: installResult.repoRoot,
|
|
57
67
|
targetSpec,
|
|
58
68
|
reinstallHooksChanged: installResult.changedHooks,
|
|
69
|
+
openSpecCompatibility,
|
|
59
70
|
};
|
|
60
71
|
} catch (error) {
|
|
61
72
|
if (currentDependency.spec) {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { startEnterpriseMcpServer } from './enterpriseServer';
|
|
2
|
+
|
|
3
|
+
const parsedPort = Number.parseInt(process.env.PUMUKI_ENTERPRISE_MCP_PORT ?? '', 10);
|
|
4
|
+
const port = Number.isFinite(parsedPort) ? parsedPort : 7391;
|
|
5
|
+
const host = process.env.PUMUKI_ENTERPRISE_MCP_HOST ?? '127.0.0.1';
|
|
6
|
+
|
|
7
|
+
const started = startEnterpriseMcpServer({
|
|
8
|
+
host,
|
|
9
|
+
port,
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
process.stdout.write(`Pumuki MCP enterprise running at http://${started.host}:${started.port}\n`);
|