Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .opencode/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,10 @@ antigravity-accounts.json
antigravity-accounts.json.*.tmp
antigravity-signature-cache.json
antigravity-logs/

# OpenCode per-channel service configs (service.json, service-<channel>.json):
# generated server passwords/endpoints, per-machine, rewritten by the CLI
# service layer on start. Root .gitignore already covers service-prod.json;
# the "local" channel's file (written by a source-run dev server whose
# project was this clone) blocked pm-git-sync the same way (#5389).
service*.json
2 changes: 1 addition & 1 deletion pm-stack/aggregator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ of silently showing canned data. `bun run dev` sets the switch for you.
| `PM_AGG_COMMENTS_FILE` | `./comments.json` | Dashboard comment store (#906) — aggregator-local; created on first comment |
| `PM_AGG_ACTIONS_FILE` | `./actions.json` | Dashboard action store (#1152/#1154/#1156) — aggregator-local; created on first action |
| `PM_AGG_REGISTRY_FILE` | `./registry.json` | Durable session identity registry (#906) — merged records persist across restarts |
| `PM_AGG_ACTIVITY_FILE` | `./activity-ingestion.json` | Activity-ingestion store (#3321) — per-source checkpoints + dedupe seen sets + gap records for the watchdog/Kaneo stream writers |
| `PM_AGG_ACTIVITY_FILE` | `~/.local/state/pm-aggregator/activity-ingestion.json` | Activity-ingestion store (#3321) — per-source checkpoints + dedupe seen sets + gap records for the watchdog/Kaneo stream writers |

Secrets are read from the environment only and are never committed or
printed. Names here reference Bitwarden entries (`kaneo.*`, `grist.*`).
Expand Down
11 changes: 10 additions & 1 deletion pm-stack/aggregator/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
// would let a non-development deployment look healthy while showing
// canned data, so fixture mode here requires the explicit dev switch.
if (env.PM_AGG_DEV === "1") return "fixtures";
throw new Error(

Check failure on line 123 in pm-stack/aggregator/src/config.ts

View workflow job for this annotation

GitHub Actions / aggregator tests and typecheck

error: Refusing to serve fixture data outside explicit dev mode: PM_AGG_SOURCE=null; set PM_AGG_SOURCE=live, or PM_AGG_SOURCE=fixtures with PM_AGG_DEV=1

at parseAggregatorSource (/home/runner/work/code/code/pm-stack/aggregator/src/config.ts:123:13) at loadConfig (/home/runner/work/code/code/pm-stack/aggregator/src/config.ts:131:13) at <anonymous> (/home/runner/work/code/code/pm-stack/aggregator/test/conflicts-1282.test.ts:199:32)

Check failure on line 123 in pm-stack/aggregator/src/config.ts

View workflow job for this annotation

GitHub Actions / aggregator tests and typecheck

error: Refusing to serve fixture data outside explicit dev mode: PM_AGG_SOURCE=null; set PM_AGG_SOURCE=live, or PM_AGG_SOURCE=fixtures with PM_AGG_DEV=1

at parseAggregatorSource (/home/runner/work/code/code/pm-stack/aggregator/src/config.ts:123:13) at loadConfig (/home/runner/work/code/code/pm-stack/aggregator/src/config.ts:131:13) at <anonymous> (/home/runner/work/code/code/pm-stack/aggregator/test/conflicts-1282.test.ts:186:32)

Check failure on line 123 in pm-stack/aggregator/src/config.ts

View workflow job for this annotation

GitHub Actions / aggregator tests and typecheck

error: Refusing to serve fixture data outside explicit dev mode: PM_AGG_SOURCE=null; set PM_AGG_SOURCE=live, or PM_AGG_SOURCE=fixtures with PM_AGG_DEV=1

at parseAggregatorSource (/home/runner/work/code/code/pm-stack/aggregator/src/config.ts:123:13) at loadConfig (/home/runner/work/code/code/pm-stack/aggregator/src/config.ts:131:13) at /home/runner/work/code/code/pm-stack/aggregator/src/server.ts:136:13
`Refusing to serve fixture data outside explicit dev mode: PM_AGG_SOURCE=${JSON.stringify(raw ?? null)}; ` +
`set PM_AGG_SOURCE=live, or PM_AGG_SOURCE=fixtures with PM_AGG_DEV=1`,
);
Expand All @@ -137,7 +137,16 @@
actionsFile: s(env.PM_AGG_ACTIONS_FILE, join(process.cwd(), "actions.json")),
viewsFile: s(env.PM_AGG_VIEWS_FILE, join(process.cwd(), "views.json")),
eventsFile: s(env.PM_AGG_EVENTS_FILE, join(process.cwd(), "events.json")),
activityFile: s(env.PM_AGG_ACTIVITY_FILE, join(process.cwd(), "activity-ingestion.json")),
// Default is the state dir, NOT cwd (#5389): aggregator runtime state
// lives in ~/.local/state/pm-aggregator (2026-10-27 precedent), and the
// cwd default let an env-less run write this store into whatever
// checkout it started from -- in the primary clone that dirtied the
// tree and blocked pm-git-sync. install.sh renders PM_AGG_ACTIVITY_FILE
// to this same path for the unit.
activityFile: s(
env.PM_AGG_ACTIVITY_FILE,
join(homedir(), ".local", "state", "pm-aggregator", "activity-ingestion.json"),
),
registryFile: s(env.PM_AGG_REGISTRY_FILE, join(process.cwd(), "registry.json")),
snapshotsDir: s(env.PM_AGG_SNAPSHOTS_DIR, join(process.cwd(), "snapshots")),
digestsDir: s(env.PM_AGG_DIGESTS_DIR, join(process.cwd(), "digests")),
Expand Down
Loading