@ornexus/neocortex 4.60.81 → 4.61.2

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.
Files changed (53) hide show
  1. package/dist/release-source.json +1 -1
  2. package/install.ps1 +33 -1
  3. package/install.sh +35 -1
  4. package/package.json +2 -2
  5. package/packages/client/dist/adapters/platform-detector.d.ts +1 -1
  6. package/packages/client/dist/adapters/platform-detector.js +6 -0
  7. package/packages/client/dist/cli.js +7 -0
  8. package/packages/client/dist/commands/invoke.d.ts +15 -8
  9. package/packages/client/dist/commands/invoke.js +75 -1
  10. package/packages/client/dist/commands/story-checkpoint.d.ts +2 -1
  11. package/packages/client/dist/commands/story-checkpoint.js +34 -2
  12. package/packages/client/dist/commands/story-worktree.d.ts +46 -0
  13. package/packages/client/dist/commands/story-worktree.js +258 -0
  14. package/packages/client/dist/config.js +1 -0
  15. package/packages/client/dist/git/direct-yolo-checkpoint.d.ts +46 -0
  16. package/packages/client/dist/git/direct-yolo-checkpoint.js +137 -1
  17. package/packages/client/dist/git/git-lifecycle-store.d.ts +84 -0
  18. package/packages/client/dist/git/git-lifecycle-store.js +314 -4
  19. package/packages/client/dist/git/story-worktree-cleanup.d.ts +226 -0
  20. package/packages/client/dist/git/story-worktree-cleanup.js +1058 -0
  21. package/packages/client/dist/git/story-worktree-integration.d.ts +91 -0
  22. package/packages/client/dist/git/story-worktree-integration.js +603 -0
  23. package/packages/client/dist/git/story-worktree-manager.d.ts +205 -0
  24. package/packages/client/dist/git/story-worktree-manager.js +843 -0
  25. package/packages/client/dist/git/story-worktree-paths.d.ts +65 -0
  26. package/packages/client/dist/git/story-worktree-paths.js +150 -0
  27. package/packages/client/dist/policy/subagent-approval-policy.js +3 -1
  28. package/packages/client/dist/runner/headless/continuous-story-workspace.d.ts +49 -1
  29. package/packages/client/dist/runner/headless/continuous-story-workspace.js +175 -27
  30. package/packages/client/dist/runner/headless/run-yoloop.d.ts +39 -0
  31. package/packages/client/dist/runner/headless/run-yoloop.js +71 -0
  32. package/packages/client/dist/runner-cli.js +0 -0
  33. package/packages/client/dist/state/project-state-snapshot.js +3 -0
  34. package/packages/shared/dist/yoloop/epic-terminal-git.js +27 -3
  35. package/targets-stubs/antigravity/gemini.md +1 -1
  36. package/targets-stubs/antigravity/neocortex.md +21 -0
  37. package/targets-stubs/antigravity/skill/SKILL.md +1 -1
  38. package/targets-stubs/claude-code/README.md +17 -0
  39. package/targets-stubs/claude-code/neocortex-root.agent.yaml +1 -1
  40. package/targets-stubs/claude-code/neocortex-root.md +57 -49
  41. package/targets-stubs/claude-code/neocortex.agent.yaml +1 -1
  42. package/targets-stubs/claude-code/neocortex.md +28 -25
  43. package/targets-stubs/codex/AGENTS.md +31 -30
  44. package/targets-stubs/codex/neocortex.toml +10 -0
  45. package/targets-stubs/cursor/agent.md +13 -2
  46. package/targets-stubs/deepseek-harness/SKILL.md +13 -0
  47. package/targets-stubs/gemini-cli/agent.md +23 -2
  48. package/targets-stubs/grok/SKILL.md +21 -0
  49. package/targets-stubs/kimi/neocortex.md +21 -0
  50. package/targets-stubs/openclaw/SKILL.md +21 -0
  51. package/targets-stubs/opencode/neocortex-root.md +19 -15
  52. package/targets-stubs/opencode/neocortex.md +10 -0
  53. package/targets-stubs/vscode/neocortex.agent.md +13 -2
@@ -0,0 +1,91 @@
1
+ /**
2
+ * @license FSL-1.1
3
+ * Copyright (c) 2026 OrNexus AI
4
+ *
5
+ * This file is part of Neocortex CLI, licensed under the
6
+ * Functional Source License, Version 1.1 (FSL-1.1).
7
+ *
8
+ * Change Date: February 20, 2029
9
+ * Change License: MIT
10
+ *
11
+ * See the LICENSE file in the project root for full license text.
12
+ */
13
+ import type { IntegrationReceipt } from '../../../shared/dist/yoloop/story-worktree-receipts.js';
14
+ import { StoryWorktreeManager } from './story-worktree-manager.js';
15
+ export declare const STORY_WORKTREE_INTEGRATION_RECEIPT_DIGEST_DOMAIN: "neocortex.p225.story-worktree-receipt.v1";
16
+ export declare const STORY_WORKTREE_INTEGRATION_MAX_CONFLICT_PATHS = 200;
17
+ export type StoryWorktreeIntegrationOutcome = 'integrated' | 'already-integrated' | 'conflict-reopened';
18
+ export interface StoryWorktreeIntegrationValue {
19
+ readonly storyId: string;
20
+ readonly epicId: string;
21
+ readonly outcome: StoryWorktreeIntegrationOutcome;
22
+ readonly receipt: IntegrationReceipt;
23
+ readonly receiptDigest: string;
24
+ readonly checkpointHeadSha?: string;
25
+ readonly conflictPaths?: readonly string[];
26
+ readonly worktreeRealigned?: boolean;
27
+ }
28
+ export type StoryWorktreeIntegrationResult = {
29
+ readonly ok: true;
30
+ readonly value: StoryWorktreeIntegrationValue;
31
+ } | {
32
+ readonly ok: false;
33
+ readonly reasonCode: string;
34
+ };
35
+ export interface IntegrateStoryWorktreeOptions {
36
+ /** Root (main) checkout on `epic/<ID>`. */
37
+ readonly projectRoot: string;
38
+ readonly storyId: string;
39
+ readonly leaseId?: string;
40
+ readonly push?: boolean;
41
+ readonly remote?: string;
42
+ readonly nowIso?: string;
43
+ /** Observer after canonical P205 (forwarded to finalize; cannot replace it). */
44
+ readonly qaRunner?: (input: {
45
+ readonly projectRoot: string;
46
+ readonly storyId: string;
47
+ readonly headSha: string;
48
+ }) => Promise<unknown>;
49
+ /** Test seam after the fast-forward and before finalize (crash-window reproduction). */
50
+ readonly afterFastForward?: () => Promise<void>;
51
+ }
52
+ export declare function digestStoryWorktreeIntegrationReceipt(receipt: IntegrationReceipt): string;
53
+ /** Integrate one story worktree into `epic/<ID>` (P225.07-ADR-1..6). */
54
+ export declare function integrateStoryWorktree(options: IntegrateStoryWorktreeOptions): Promise<StoryWorktreeIntegrationResult>;
55
+ export interface IntegrateStoryWorktreesInOrderOptions extends Omit<IntegrateStoryWorktreeOptions, 'storyId' | 'leaseId'> {
56
+ /** Server-owned topological order (plan v4 `integrationOrder`). */
57
+ readonly integrationOrder: readonly string[];
58
+ /** Stories whose phase 2 finished (C08 on the temporary branch). */
59
+ readonly readyStoryIds: readonly string[];
60
+ /** Injectable single-story integrator (tests, runner). */
61
+ readonly integrate?: (options: IntegrateStoryWorktreeOptions) => Promise<StoryWorktreeIntegrationResult>;
62
+ }
63
+ export interface StoryWorktreeOrderedIntegrationSummary {
64
+ readonly results: readonly {
65
+ readonly storyId: string;
66
+ readonly result: StoryWorktreeIntegrationResult;
67
+ }[];
68
+ readonly integratedStoryIds: readonly string[];
69
+ readonly stoppedAt?: string;
70
+ readonly reasonCode?: string;
71
+ }
72
+ /** Walk `integrationOrder` strictly; stop at the first not-ready, conflicting or failing story (ADR-8). */
73
+ export declare function integrateStoryWorktreesInOrder(options: IntegrateStoryWorktreesInOrderOptions): Promise<StoryWorktreeOrderedIntegrationSummary>;
74
+ export interface StoryWorktreeDependentSyncResult {
75
+ readonly storyId: string;
76
+ readonly ok: boolean;
77
+ readonly outcome?: 'synced' | 'already-synced';
78
+ readonly integratedSha?: string;
79
+ readonly reasonCode?: string;
80
+ readonly conflictPaths?: readonly string[];
81
+ }
82
+ /**
83
+ * Run `story-worktree sync` for every server `DependencyReleaseDirective`
84
+ * (ADR-8). The manager re-validates the closed directive shape and requires
85
+ * the cited SHA to be contained in `epic/<ID>`.
86
+ */
87
+ export declare function syncReleasedDependents(input: {
88
+ readonly projectRoot: string;
89
+ readonly directives: readonly unknown[];
90
+ readonly manager?: Pick<StoryWorktreeManager, 'sync'>;
91
+ }): Promise<readonly StoryWorktreeDependentSyncResult[]>;