opencode-matrixx 2.6.10 → 2.6.11
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 +6 -5
- package/dist/agents/architect/default.d.ts +1 -1
- package/dist/agents/architect/gpt.d.ts +1 -1
- package/dist/agents/dynamic-agent-prompt-builder.d.ts +6 -5
- package/dist/cli.js +30 -77
- package/dist/config/schema/agent-overrides.d.ts +126 -126
- package/dist/config/schema/commands.d.ts +0 -5
- package/dist/config/schema/dcp.d.ts +3 -3
- package/dist/config/schema/hooks.d.ts +3 -0
- package/dist/config/schema/internal/permission.d.ts +8 -8
- package/dist/config/schema/knowledge.d.ts +34 -0
- package/dist/config/schema/matrixx-config.d.ts +145 -125
- package/dist/config/schema/tool-gating.d.ts +9 -0
- package/dist/config/schema.d.ts +2 -0
- package/dist/create-hooks.d.ts +3 -0
- package/dist/features/background-agent/manager.d.ts +19 -0
- package/dist/features/bdd/schema.d.ts +5 -5
- package/dist/features/builtin-commands/types.d.ts +1 -1
- package/dist/features/knowledge-hub/index.d.ts +3 -0
- package/dist/features/knowledge-hub/loader.d.ts +11 -0
- package/dist/features/knowledge-hub/loader.test.d.ts +1 -0
- package/dist/features/knowledge-hub/resolver.d.ts +2 -0
- package/dist/features/knowledge-hub/resolver.test.d.ts +1 -0
- package/dist/features/mission-state/constants.d.ts +20 -0
- package/dist/features/mission-state/index.d.ts +1 -0
- package/dist/features/mission-state/plan-storage.d.ts +32 -6
- package/dist/features/mission-state/reconcile.d.ts +75 -0
- package/dist/features/mission-state/reconcile.test.d.ts +1 -0
- package/dist/features/mission-state/storage.d.ts +26 -0
- package/dist/features/mission-state/types.d.ts +6 -0
- package/dist/hooks/auto-slash-command/executor.d.ts +11 -3
- package/dist/hooks/auto-slash-command/hook.d.ts +0 -2
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/knowledge-hub-guard/approvals.d.ts +5 -0
- package/dist/hooks/knowledge-hub-guard/hook.d.ts +15 -0
- package/dist/hooks/knowledge-hub-guard/hook.test.d.ts +1 -0
- package/dist/hooks/knowledge-hub-guard/index.d.ts +3 -0
- package/dist/hooks/knowledge-hub-injector/hook.d.ts +26 -0
- package/dist/hooks/knowledge-hub-injector/hook.test.d.ts +1 -0
- package/dist/hooks/knowledge-hub-injector/index.d.ts +2 -0
- package/dist/hooks/knowledge-hub-search-nudge/hook.d.ts +16 -0
- package/dist/hooks/knowledge-hub-search-nudge/hook.test.d.ts +1 -0
- package/dist/hooks/knowledge-hub-search-nudge/index.d.ts +2 -0
- package/dist/hooks/plan-persister/index.d.ts +4 -0
- package/dist/hooks/plan-persister/task-link.d.ts +31 -0
- package/dist/hooks/plan-persister/task-sync.d.ts +39 -0
- package/dist/hooks/plan-persister/task-sync.test.d.ts +1 -0
- package/dist/hooks/start-work/index.d.ts +1 -0
- package/dist/hooks/start-work/plan-filter.d.ts +48 -0
- package/dist/index.js +2970 -2122
- package/dist/matrixx.schema.json +89 -119
- package/dist/plugin/hooks/create-core-hooks.d.ts +3 -0
- package/dist/plugin/hooks/create-tool-guard-hooks.d.ts +3 -1
- package/dist/plugin/hooks/create-transform-hooks.d.ts +2 -1
- package/dist/plugin/tool-gating.d.ts +33 -0
- package/dist/shared/dcp-guidance.d.ts +16 -0
- package/dist/{tools/dcp-switch-profile/tools.d.ts → shared/dcp-switch-profile.d.ts} +1 -3
- package/dist/shared/index.d.ts +1 -0
- package/dist/tools/background-task/constants.d.ts +1 -0
- package/dist/tools/background-task/create-background-wait-all.d.ts +3 -0
- package/dist/tools/background-task/index.d.ts +1 -1
- package/dist/tools/background-task/tools.d.ts +1 -0
- package/dist/tools/background-task/types.d.ts +3 -0
- package/dist/tools/delegate-task/constants.d.ts +6 -0
- package/dist/tools/delegate-task/prompt-builder.d.ts +1 -0
- package/dist/tools/delegate-task/prompt-builder.tdd.test.d.ts +1 -0
- package/dist/tools/delegate-task/tdd-enforcement.test.d.ts +1 -0
- package/dist/tools/delegate-task/tools.d.ts +6 -0
- package/dist/tools/delegate-task/types.d.ts +1 -0
- package/dist/tools/index.d.ts +1 -1
- package/dist/tools/knowledge-hub-confirm/index.d.ts +1 -0
- package/dist/tools/knowledge-hub-confirm/tools.d.ts +12 -0
- package/dist/tools/knowledge-hub-confirm/tools.test.d.ts +1 -0
- package/package.json +1 -1
- package/dist/features/builtin-commands/templates/bdd-backend.d.ts +0 -1
- package/dist/features/builtin-commands/templates/bdd-contract.d.ts +0 -1
- package/dist/features/builtin-commands/templates/bdd-frontend.d.ts +0 -1
- package/dist/features/builtin-commands/templates/bdd-tests.d.ts +0 -1
- package/dist/features/builtin-commands/templates/dcp-profile.d.ts +0 -1
- package/dist/tools/dcp-switch-profile/index.d.ts +0 -1
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Staleness-aware plan classification for start-work.
|
|
3
|
+
*
|
|
4
|
+
* Replaces the bare `!getPlanProgress(p).isComplete` predicate: archived
|
|
5
|
+
* plans are excluded, `total==0 needsTriage` plans leave the actionable set,
|
|
6
|
+
* and mtime-stale plans with no linked active tasks are demoted to stale
|
|
7
|
+
* candidates instead of hijacking auto-select.
|
|
8
|
+
*/
|
|
9
|
+
import type { MatrixxConfig } from "../../config/schema";
|
|
10
|
+
/** Plans under this segment are archived candidates (see Task 6); never listed. */
|
|
11
|
+
export declare const ARCHIVED_PLAN_SEGMENT = "_archive";
|
|
12
|
+
export declare function isArchivedPlan(planPath: string): boolean;
|
|
13
|
+
/** Age of a plan file in ms since last write (mtime). Null when unstatable. */
|
|
14
|
+
export declare function getPlanAgeMs(planPath: string): number | null;
|
|
15
|
+
/**
|
|
16
|
+
* Stale threshold in ms from plugin config.
|
|
17
|
+
* `tasks.stale_after_hours` (default 24h, legacy `morpheus.tasks.*`).
|
|
18
|
+
*/
|
|
19
|
+
export declare function getPlansStaleAfterMs(config?: Partial<MatrixxConfig>): number;
|
|
20
|
+
/** A plan whose file cannot be stat'ed is treated as fresh (not stale). */
|
|
21
|
+
export declare function isPlanStale(planPath: string, staleAfterMs: number): boolean;
|
|
22
|
+
/** Human-readable age, e.g. "3h", "2d". Clamped at zero for clock skew. */
|
|
23
|
+
export declare function formatPlanAge(ageMs: number): string;
|
|
24
|
+
export interface ClassifyPlansOptions {
|
|
25
|
+
staleAfterMs?: number;
|
|
26
|
+
/**
|
|
27
|
+
* True when the plan still has linked active tasks. Defaults to false
|
|
28
|
+
* (stale by mtime alone); the Task 6 reconciler wires the real linkage.
|
|
29
|
+
*/
|
|
30
|
+
hasLinkedActiveTasks?: (planPath: string) => boolean;
|
|
31
|
+
}
|
|
32
|
+
export interface ClassifiedPlans {
|
|
33
|
+
/** Fresh incomplete plans — the only auto-select candidates. */
|
|
34
|
+
actionable: string[];
|
|
35
|
+
/** Mtime-stale incomplete plans — shown under a stale-candidate section. */
|
|
36
|
+
staleCandidates: string[];
|
|
37
|
+
/** total==0 plans — shown with a needsTriage tag, never actionable. */
|
|
38
|
+
triage: string[];
|
|
39
|
+
completed: string[];
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Split plans into actionable / stale-candidate / triage / completed.
|
|
43
|
+
* Input order (findOraclePlans mtime newest-first) is preserved per bucket.
|
|
44
|
+
*/
|
|
45
|
+
export declare function classifyPlans(plans: string[], opts?: ClassifyPlansOptions): ClassifiedPlans;
|
|
46
|
+
export type PlanListTag = "stale" | "needsTriage";
|
|
47
|
+
/** One numbered plan line: progress + mtime age + optional tag. */
|
|
48
|
+
export declare function formatPlanListLine(planPath: string, index: number, tag?: PlanListTag): string;
|