Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
chore(migrations): renumber onto master v0.60.722.0
garrytana67c0db1dbbc
diff --git a/changelog.d/garrytan-wakeshift-rest.md b/changelog.d/garrytan-wakeshift-rest.mdindex 2a77adacd3..d4cc5ad3f9 100644--- a/changelog.d/garrytan-wakeshift-rest.md+++ b/changelog.d/garrytan-wakeshift-rest.md@@ -10,4 +10,4 @@ Two new events join job completion. `watch_write_request` wakes the conversation- New `gbrain setup openclaw --wakeshift`. After consent, it installs and enables Wakeshift's OpenClaw plugin, pinned at `@wakeshift/[email protected]`. On a gateway that listens beyond the machine, it prints Wakeshift's question about the hooks endpoint and never answers it. A new doctor check `wakeshift_openclaw` warns when the installed plugin differs from the pin.- `gbrain setup claude-code` and `gbrain setup codex` show a "Report back (Wakeshift)" row in the first-run settings. After a remote `submit_job` or `submit_agent`, a once-per-session notice (`wakeshift_report_back`, muteable) says how to have the conversation woken. With reporting back on, the MCP instructions gain one sentence about it. With it off, the instructions are unchanged.- Fixed: Wakeshift's instructions in a watch result were cut at 2,000 characters, which dropped the step that starts Claude Code's listener. They now pass through whole, up to 16,000.-- Schema migration v311 adds `wake_crons`, `wake_cron_runs`, `wake_terms_acceptances`, `wake_forgets` and `wake_subscriptions.target_ref`. All are empty unless reporting back is on, and repo-less brains get them unchanged.+- Schema migration v313 adds `wake_crons`, `wake_cron_runs`, `wake_terms_acceptances`, `wake_forgets` and `wake_subscriptions.target_ref`. All are empty unless reporting back is on, and repo-less brains get them unchanged.diff --git a/src/core/schema-migrations/latest.generated.ts b/src/core/schema-migrations/latest.generated.tsindex cb04ac84a9..35a66286e7 100644--- a/src/core/schema-migrations/latest.generated.ts+++ b/src/core/schema-migrations/latest.generated.ts@@ -4,4 +4,4 @@// The highest schema migration version (migrate.ts LATEST_VERSION), importable without// loading the migrations themselves.-export const LATEST_SCHEMA_VERSION = 312;+export const LATEST_SCHEMA_VERSION = 313;diff --git a/src/core/schema-migrations/registry.generated.ts b/src/core/schema-migrations/registry.generated.tsindex fe75af686c..d76800130c 100644--- a/src/core/schema-migrations/registry.generated.ts+++ b/src/core/schema-migrations/registry.generated.ts@@ -313,6 +313,7 @@ import { v309 } from './v309-requester-scope.ts';import { v310 } from './v310-mcp-request-log-rollup.ts';import { v311 } from './v311-concept-inputs-private.ts';import { v312 } from './v312-guest-notes.ts';+import { v313 } from './v313-wake-events.ts';// Array order is historical (see HISTORICAL_ARRAY_ORDER in the generator); the// runner sorts by version before applying.@@ -624,4 +625,5 @@ export const MIGRATIONS: Migration[] = [v310,v311,v312,+ v313,];diff --git a/src/core/schema-migrations/v311-wake-events.ts b/src/core/schema-migrations/v313-wake-events.tssimilarity index 98%rename from src/core/schema-migrations/v311-wake-events.tsrename to src/core/schema-migrations/v313-wake-events.tsindex 4e47b2196c..ce325ad1a6 100644--- a/src/core/schema-migrations/v311-wake-events.ts+++ b/src/core/schema-migrations/v313-wake-events.ts@@ -17,8 +17,8 @@ import type { Migration } from './types.ts';// Operational state, never brain content: a repo-less brain gets it// unchanged, and it stays empty unless the owner turned reporting back on.// Nothing is rewritten on upgrade. No schema.sql mirror, like v290.-export const v311: Migration = {- version: 311,+export const v313: Migration = {+ version: 313,name: 'wake_events',idempotent: true,sql: `diff --git a/test/fixtures/goldens/migrations/records.json b/test/fixtures/goldens/migrations/records.jsonindex b94711ca9f..45d4952b2c 100644--- a/test/fixtures/goldens/migrations/records.json+++ b/test/fixtures/goldens/migrations/records.json@@ -1,6 +1,6 @@{"golden": {- "count": 307,+ "count": 308,"gaps": [17,18,@@ -100,7 +100,7 @@"widenIdentityIndex": "86a6176bd7637d964dbc1d3cd3b1bdfa3ca0161e1ee248c37d7380a1471282e6","withSchemaLockTimeout": "95605bd3004955e11e936c7a4aa6889319b401098abf9db18ef3e48da2c3fc59"},- "latest": 312,+ "latest": 313,"records": [{"handler": {@@ -5057,6 +5057,19 @@"transaction": "absent","verify": "absent","version": 312+ },+ {+ "handler": "absent",+ "idempotent": true,+ "name": "wake_events",+ "sql": {+ "length": 1942,+ "sha256": "52ee16786f69608de107d1e9df7d13841b65654ee954fbca8fbc87fa0cbdcb4e"+ },+ "sqlFor": "absent",+ "transaction": "absent",+ "verify": "absent",+ "version": 313}],"versions": [@@ -5366,7 +5379,8 @@309,310,311,- 312+ 312,+ 313]},"normalizer": "migrations-record-v1"diff --git a/test/schema-bootstrap-coverage.test.ts b/test/schema-bootstrap-coverage.test.tsindex 7410e683d2..949f2e5fd6 100644--- a/test/schema-bootstrap-coverage.test.ts+++ b/test/schema-bootstrap-coverage.test.ts@@ -1262,7 +1262,7 @@ const COLUMN_EXEMPTIONS = new Set<string>([// check and bindCredential read it, all after migrations have run.'access_tokens.reads_unscoped','oauth_clients.reads_unscoped',- // Wakeshift PR 2 (migration v311) - the persistence_requests row a write.settled watch points at. Same posture as+ // Wakeshift PR 2 (migration v313) - the persistence_requests row a write.settled watch points at. Same posture as// v301: wake_subscriptions exists only through migrations (v290), so no index or function in either blob references it.'wake_subscriptions.target_ref',// GBRA-218 A2 (migration v283) - folder rules. Same posture as v282: absent from both schema blobs; the migration