AGENTS.md@packages/goal-plugin/src/server · git:20260703.e20cd5a · 2026-07-03 · sha256 8a8f4331fa1f7b57

AGENTS.md@packages/goal-plugin/src/server git:20260703.e20cd5aA

Immutable. This exact content is served forever at /api/v1/blob/8a8f4331fa1f7b57.

# DOX — packages/goal-plugin/src/server

Files in this directory. One row per source file.

| File | Purpose |
|------|---------|
| `index.ts` | Server entry. `registerPiHandler("goal_status")` caches snapshot per session, `broadcastToSubscribers` a `plugin_event`. `registerBrowserHandler("plugin_action")` maps set/pause/resume/done/clear/subgoal → `/goal …` via `goalCommandFor`, dispatches with `sendToSession`. `cleared` status deletes cache. See change: add-goal-continuation-plugin. `detectGoalCommandSurface()` baselines `{acceptsSubgoal:true}`. `probeGoalCommandSurface` picks tier, logs it. `goalCommandFor(action,payload,tier)` gains `config` action → `goalConfigCommand`. See change: sophisticate-goal-authoring-and-control. |
| `probe.ts` | `probeGoalCommandSurface(surface?)` → tier `full`\|`criteria-dashboard-budget`\|`intent-only`. `goalConfigCommand(tier,{budget,judge})` emits `/goal config …` only in full tier (upgrade seam), else null. `tierEnforcesBudgetDashboardSide(tier)`. Extension not vendored; baseline tier `criteria-dashboard-budget`. See change: sophisticate-goal-authoring-and-control. |