pantheon-opencode 1.6.0-beta.9 → 1.6.0
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/AGENTS.global.md +118 -0
- package/AGENTS.md +18 -168
- package/CHANGELOG.md +126 -376
- package/README.md +83 -610
- package/README.pt-BR.md +120 -345
- package/bin/pantheon-init.mjs +366 -132
- package/commands/pantheon-deepwork.md +14 -3
- package/commands/pantheon-vision.md +61 -12
- package/package.json +19 -11
- package/plugin.json +1 -1
- package/pyproject.toml +6 -2
- package/scripts/_pantheon_paths.py +24 -0
- package/scripts/build-agents-md.mjs +368 -69
- package/scripts/changelog-merge.mjs +161 -0
- package/scripts/check-plugin-v2-coverage.mjs +11 -8
- package/scripts/docs-check-changelog.mjs +204 -0
- package/scripts/docs-link-check.mjs +314 -0
- package/scripts/docs-media.mjs +157 -0
- package/scripts/doctor.mjs +828 -40
- package/scripts/install/agents-md.mjs +2 -2
- package/scripts/install/backup.mjs +648 -0
- package/scripts/install/cli-ui.mjs +303 -72
- package/scripts/install/component-selection.mjs +61 -0
- package/scripts/install/config-migration.mjs +583 -27
- package/scripts/install/exit-codes.mjs +26 -0
- package/scripts/install/file-inventory.mjs +555 -0
- package/scripts/install/health-check.mjs +31 -25
- package/scripts/install/interactive.mjs +78 -383
- package/scripts/install/migrate.mjs +49 -25
- package/scripts/install/model-picker.mjs +218 -250
- package/scripts/install/opencode-version.mjs +83 -21
- package/scripts/install/opencode.mjs +1413 -154
- package/scripts/install/plan-artifact.mjs +517 -0
- package/scripts/install/plan.mjs +475 -0
- package/scripts/install/plugin.mjs +214 -27
- package/scripts/install/prompt-result.mjs +2 -0
- package/scripts/install/shared.mjs +256 -99
- package/scripts/install/state.mjs +63 -8
- package/scripts/install/strings.mjs +60 -4
- package/scripts/install/venv.mjs +90 -47
- package/scripts/install/verify.mjs +128 -0
- package/scripts/install/vision-prompt.mjs +173 -0
- package/scripts/install-mcp.mjs +2 -2
- package/scripts/manifest-inventory.mjs +49 -3
- package/scripts/mcp_persistence.py +1535 -1050
- package/scripts/memory_mcp.py +12 -843
- package/scripts/node-engine-policy.mjs +85 -0
- package/scripts/package-evidence.mjs +10 -2
- package/scripts/postinstall.mjs +26 -26
- package/scripts/probe-pantheon-cost.mjs +118 -19
- package/scripts/prune.mjs +9 -3
- package/scripts/reconcile.mjs +325 -0
- package/scripts/release-gates.mjs +682 -0
- package/scripts/restore.mjs +222 -0
- package/scripts/run-node-tests.mjs +24 -8
- package/scripts/sync-artifacts.mjs +19 -7
- package/scripts/sync-tui.mjs +5 -1
- package/scripts/test-opencode-v2-sandbox.sh +36 -123
- package/scripts/uninstall.mjs +369 -34
- package/scripts/update.mjs +164 -0
- package/scripts/validate-node-engine-policy.mjs +13 -0
- package/scripts/version-check.mjs +34 -1
- package/scripts/versioning.mjs +23 -3
- package/scripts/vision-status.mjs +682 -0
- package/skills-lock.json +8 -8
- package/src/agents/aphrodite.md +13 -10
- package/src/agents/apollo.md +4 -5
- package/src/agents/athena.md +74 -46
- package/src/agents/demeter.md +10 -7
- package/src/agents/gaia.md +0 -1
- package/src/agents/hephaestus.md +4 -3
- package/src/agents/hermes.md +10 -9
- package/src/agents/iris.md +6 -1
- package/src/agents/mnemosyne.md +10 -4
- package/src/agents/nyx.md +4 -4
- package/src/agents/prometheus.md +12 -11
- package/src/agents/talos.md +6 -0
- package/src/agents/zeus.md +84 -56
- package/src/instructions/agent-return-format.instructions.md +12 -41
- package/src/instructions/memory-protocol.instructions.md +5 -11
- package/src/instructions/test-economy.instructions.md +12 -0
- package/src/instructions/yagni.instructions.md +6 -15
- package/src/instructions/zeus-anti-stall.instructions.md +6 -6
- package/src/instructions/zeus-communication-rules.instructions.md +6 -6
- package/src/instructions/zeus-council-synthesis.instructions.md +11 -12
- package/src/instructions/zeus-memory-operations.instructions.md +13 -7
- package/src/instructions/zeus-timeout-retry.instructions.md +36 -10
- package/src/mcp/_pantheon_paths.py +24 -0
- package/src/mcp/mcp_codemap_module.py +86 -18
- package/src/mcp/mcp_persistence.py +1535 -1050
- package/src/mcp/memory_mcp.py +444 -94
- package/src/mcp/pantheon_vision.py +285 -41
- package/src/mcp/requirements-mcp.txt +5 -0
- package/src/pantheon/context-pruner.ts +541 -0
- package/src/pantheon/cost-command.ts +814 -60
- package/src/pantheon/goal-loop.ts +11 -8
- package/src/pantheon/memory-context.ts +1017 -0
- package/src/pantheon/model-agents.ts +19 -0
- package/src/pantheon/model-command.ts +218 -56
- package/src/pantheon/model-pricing.ts +536 -0
- package/src/pantheon/presets.mjs +2 -0
- package/src/pantheon/task-result-guard.ts +50 -14
- package/src/pantheon/v2-bounded-read.ts +640 -0
- package/src/pantheon/v2-delegation-enforce.ts +133 -6
- package/src/pantheon/v2-execute-after.ts +135 -24
- package/src/pantheon/v2-model-overrides.ts +275 -0
- package/src/pantheon/v2-tools.ts +89 -35
- package/src/pantheon/v2-unsupported.mjs +2 -3
- package/src/pantheon/v2-vision.ts +622 -0
- package/src/pantheon/vision-local.ts +531 -0
- package/src/pantheon/vision.ts +1160 -115
- package/src/plugin-v2.ts +654 -162
- package/src/plugin.ts +15 -11
- package/src/plugins/tui/dist/tui-v2.d.ts +1029 -2
- package/src/plugins/tui/dist/tui-v2.d.ts.map +1 -1
- package/src/plugins/tui/dist/tui-v2.js +3742 -85
- package/src/plugins/tui/dist/tui.js +1 -1
- package/src/plugins/tui/package-lock.json +6 -6
- package/src/plugins/tui/package.json +5 -4
- package/src/plugins/tui/src/index-v2.tsx +4314 -50
- package/src/plugins/tui/tsconfig.typecheck.json +5 -0
- package/src/routing.yml +50 -5
- package/src/skills/agent-coordination/SKILL.md +7 -2
- package/src/skills/artifact-management/SKILL.md +5 -1
- package/src/skills/auto-continue/SKILL.md +14 -6
- package/src/skills/codemap/SKILL.md +1 -1
- package/src/skills/memory-bank/SKILL.md +21 -13
- package/src/skills/session-goal/SKILL.md +12 -22
- package/src/skills/spec-driven-development/SKILL.md +3 -1
- package/src/skills/worktrees/SKILL.md +30 -11
- package/scripts/probe-context-rehydrate.mjs +0 -263
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Goal Loop (Wave 3, PR #46) — when enabled, one active goal per session is
|
|
3
3
|
* continued automatically while idle. `pantheon_goal_create` starts a goal;
|
|
4
4
|
* `pantheon_goal_update` moves it pending → in_progress → done; while
|
|
5
5
|
* active, `GoalLoop.onIdle` re-injects the continuation prompt (objective
|
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
* completion-audit prompt — the state machine is the source of truth.
|
|
8
8
|
*
|
|
9
9
|
* Persistence: FILE-based GoalStore (`.pantheon/goals/<sessionID>.json`,
|
|
10
|
-
* atomic tmp+rename).
|
|
10
|
+
* atomic tmp+rename). The plugin uses hard-coded defaults; no runtime config
|
|
11
|
+
* enables the loop in this build. Guards:
|
|
11
12
|
* board-running skip, in-flight Set, cooldown, max_continuations cap (25).
|
|
12
13
|
* Injectable now() clock. Pure TypeScript — zero runtime deps.
|
|
13
14
|
*
|
|
@@ -35,7 +36,7 @@ export { GoalStore }
|
|
|
35
36
|
/** Continuation text injected into idle sessions. `{objective}` is substituted. */
|
|
36
37
|
export const GOAL_CONTINUATION_PROMPT = 'Continue goal: {objective}'
|
|
37
38
|
|
|
38
|
-
/**
|
|
39
|
+
/** Hard-coded runtime defaults; routing.yml is documentation-only. */
|
|
39
40
|
export const GOAL_LOOP_DEFAULTS = {
|
|
40
41
|
enabled: false,
|
|
41
42
|
cooldownMs: 5000,
|
|
@@ -93,7 +94,7 @@ function toolFailure(prefix: string, err: unknown): string {
|
|
|
93
94
|
// ─── Args schemas ──────────────────────────────────────────────────────
|
|
94
95
|
|
|
95
96
|
const goalCreateArgs = {
|
|
96
|
-
objective: z.string().min(1).describe('The
|
|
97
|
+
objective: z.string().min(1).describe('The objective recorded in this legacy session goal.'),
|
|
97
98
|
} satisfies z.ZodRawShape
|
|
98
99
|
|
|
99
100
|
const goalUpdateArgs = {
|
|
@@ -149,8 +150,9 @@ export class GoalLoop {
|
|
|
149
150
|
this.warn = deps.logger?.warn ?? ((message: string) => log.warn(message))
|
|
150
151
|
}
|
|
151
152
|
|
|
152
|
-
/** True when the
|
|
153
|
+
/** True when the enabled loop can own idle for this session. */
|
|
153
154
|
async hasActiveGoal(sessionID: string): Promise<boolean> {
|
|
155
|
+
if (!this.options.enabled) return false
|
|
154
156
|
return this.store.hasActive(sessionID)
|
|
155
157
|
}
|
|
156
158
|
|
|
@@ -243,7 +245,7 @@ export class GoalLoop {
|
|
|
243
245
|
return {
|
|
244
246
|
pantheon_goal_create: {
|
|
245
247
|
description:
|
|
246
|
-
'Create the single active goal for this session.
|
|
248
|
+
'Deprecated legacy V1 tool. Create and store the single active goal for this session. Goals are stored but are not automatically continued in the current build. For durable manual goals, use the Persistence MCP `goal_*` tools available in this branch.',
|
|
247
249
|
args: goalCreateArgs,
|
|
248
250
|
execute: async (args, ctx) => {
|
|
249
251
|
try {
|
|
@@ -270,7 +272,7 @@ export class GoalLoop {
|
|
|
270
272
|
},
|
|
271
273
|
pantheon_goal_update: {
|
|
272
274
|
description:
|
|
273
|
-
'Update the active goal: set status (pending/in_progress/done) and/or rewrite the objective.
|
|
275
|
+
'Deprecated legacy V1 tool. Update the stored active goal: set status (pending/in_progress/done) and/or rewrite the objective. Goal records are not automatically continued in the current build. For durable manual goals, use the Persistence MCP `goal_*` tools available in this branch.',
|
|
274
276
|
args: goalUpdateArgs,
|
|
275
277
|
execute: async (args, ctx) => {
|
|
276
278
|
try {
|
|
@@ -292,7 +294,8 @@ export class GoalLoop {
|
|
|
292
294
|
},
|
|
293
295
|
},
|
|
294
296
|
pantheon_goal_get: {
|
|
295
|
-
description:
|
|
297
|
+
description:
|
|
298
|
+
'Deprecated legacy V1 tool. Return the stored active V1 goal (status, objective, continuation count). Goals are not automatically continued in the current build. For durable manual goals, use the Persistence MCP `goal_*` tools available in this branch.',
|
|
296
299
|
args: goalGetArgs,
|
|
297
300
|
execute: async (_args, ctx) => {
|
|
298
301
|
try {
|