omo-ai 5.1.66 → 5.1.68

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.
Files changed (45) hide show
  1. package/bin/darwin/omo-keychain +0 -0
  2. package/bin/lib/doctor-memory-runtime.js +14 -5
  3. package/bin/lib/provider-map.json +1 -1
  4. package/bin/lib/reflection-lock.generated.js +14 -12
  5. package/bin/lib/service-auth.generated.js +22 -20
  6. package/bin/lib/setup-commandcode.js +1 -0
  7. package/package.json +2 -2
  8. package/plugin/CHANGELOG.md +36 -0
  9. package/plugin/extensions/gateway-store-worker.mjs +1 -1
  10. package/plugin/extensions/memory-run-supervisor.mjs +3 -3
  11. package/plugin/extensions/omo-claim-receipt.js +1 -1
  12. package/plugin/extensions/omo-computer-use.js +1 -1
  13. package/plugin/extensions/omo-desktop-toolkit.js +1 -1
  14. package/plugin/extensions/omo-device-account.js +4 -4
  15. package/plugin/extensions/omo-device-service.js +2 -2
  16. package/plugin/extensions/omo-feedback.js +2 -2
  17. package/plugin/extensions/omo-init-deep-advisor.js +2 -2
  18. package/plugin/extensions/omo-member.js +1 -1
  19. package/plugin/extensions/omo-memory-commands.js +3 -3
  20. package/plugin/extensions/omo-memory-doctor.js +3 -3
  21. package/plugin/extensions/omo-memory-memfs.js +3 -3
  22. package/plugin/extensions/omo-memory-palace.js +3 -3
  23. package/plugin/extensions/omo-memory-sync.js +2 -2
  24. package/plugin/extensions/omo-onboarding-scan.js +3 -3
  25. package/plugin/extensions/omo-recall-store.js +1 -1
  26. package/plugin/extensions/omo-session-history.js +1 -1
  27. package/plugin/extensions/omo-side-panel.js +3 -3
  28. package/plugin/extensions/omo-task.js +2 -2
  29. package/plugin/extensions/omo-telemetry-otlp.js +2 -2
  30. package/plugin/extensions/omo-telemetry-posthog.js +1 -1
  31. package/plugin/extensions/omo-telemetry-recovery.js +2 -2
  32. package/plugin/extensions/omo-thread-client.js +2 -2
  33. package/plugin/extensions/omo.js +3 -3
  34. package/plugin/package.json +1 -1
  35. package/plugin/runtime/agent-toolkit-sdk/sdk.js +2 -2
  36. package/plugin/runtime/ast-grep-mcp/manifest.json +1 -1
  37. package/plugin/runtime/bunshin-ts/sdk.js +2 -2
  38. package/plugin/runtime/category-coverage/index.js +5 -5
  39. package/plugin/runtime/rollback-migrate.js +1 -1
  40. package/plugin/runtime/thread-sdk/sdk.js +5 -5
  41. package/plugin/skills/browser/ATTRIBUTION.md +11 -7
  42. package/plugin/skills/browser/runtime/omowright/LICENSE +21 -0
  43. package/plugin/skills/browser/runtime/omowright/manifest.json +4 -3
  44. package/plugin/telemetry-schema.json +24 -24
  45. package/plugin/telemetry-schema.omo-cloud.json +24 -24
Binary file
@@ -15,6 +15,7 @@ import {
15
15
  measureRuntimeCapEvictableBytes,
16
16
  measureRuntimeSizeWithinBudget,
17
17
  measureUnreflectedJournalBytes,
18
+ readLastRetentionLogEntry,
18
19
  runtimeSizeStanding,
19
20
  } from "./reflection-lock.generated.js"
20
21
 
@@ -73,14 +74,18 @@ function capText(maxBytes) {
73
74
  return maxBytes > 0 ? `${formatRuntimeBytes(maxBytes)} cap` : "no cap"
74
75
  }
75
76
 
77
+ function lastCleanupText(entry) {
78
+ return entry.lastCleanup === undefined ? "; no cleanup recorded" : `; last cleanup ${entry.lastCleanup.at} removed ${entry.lastCleanup.total}`
79
+ }
80
+
76
81
  function formatMemoryRuntimeLines(identities, totalBytes) {
77
82
  if (identities.length === 0) return []
78
83
  const bySize = [...identities].sort((left, right) => right.bytes - left.bytes || left.identity.localeCompare(right.identity))
79
84
  const lines = bySize.slice(0, LISTED_IDENTITIES).map((entry) => {
80
- if (entry.sizeUnknown !== undefined) return `INFO memory runtime: ${entry.identity} size unknown (${capText(entry.maxBytes)})`
85
+ if (entry.sizeUnknown !== undefined) return `INFO memory runtime: ${entry.identity} size unknown (${capText(entry.maxBytes)})${lastCleanupText(entry)}`
81
86
  const standing = runtimeSizeStanding(entry.bytes, entry.maxBytes)
82
87
  const share = standing.percent === undefined ? "" : `, ${standing.percent}%`
83
- return `INFO memory runtime: ${entry.identity} ${formatRuntimeBytes(entry.bytes)} (${capText(entry.maxBytes)}${share})`
88
+ return `INFO memory runtime: ${entry.identity} ${formatRuntimeBytes(entry.bytes)} (${capText(entry.maxBytes)}${share})${lastCleanupText(entry)}`
84
89
  })
85
90
  const rest = bySize.slice(LISTED_IDENTITIES)
86
91
  if (rest.length > 0) {
@@ -118,7 +123,7 @@ function formatMemoryRuntimeLines(identities, totalBytes) {
118
123
  * @param options.discardFor the resolved `memory.runtime.discard_unreflected_journals` for one identity (default: the shipped false)
119
124
  * @param options.measureBudgetMs each identity's measurement deadline, the one `/doctor` uses (default: the shipped pass_budget_ms)
120
125
  * @param options.measureSignal a caller deadline that replaces the per-identity timer
121
- * @returns {Promise<{ identities: { identity: string, bytes: number, maxBytes: number, unreflectedBytes?: number, discardUnreflectedJournals: boolean, evictableBytes?: number, sizeUnknown?: { budgetMs: number, at: string } }[], totalBytes: number, lines: string[] }>}
126
+ * @returns {Promise<{ identities: { identity: string, bytes: number, maxBytes: number, unreflectedBytes?: number, discardUnreflectedJournals: boolean, evictableBytes?: number, sizeUnknown?: { budgetMs: number, at: string }, lastCleanup?: { at: string, total: number } }[], totalBytes: number, lines: string[] }>}
122
127
  */
123
128
  export async function memoryRuntimeReport(options = {}) {
124
129
  const root = memoryRoot(options.env ?? process.env)
@@ -131,12 +136,15 @@ export async function memoryRuntimeReport(options = {}) {
131
136
  const paths = buildIdentityPaths(root, identity)
132
137
  const maxBytes = maxBytesFor(identity)
133
138
  const discardUnreflectedJournals = discardFor(identity)
139
+ // The removal log a retention pass appends (#12932); an unreadable log reads as none recorded.
140
+ const lastCleanup = await readLastRetentionLogEntry(paths.runtime).catch(() => undefined)
141
+ const cleaned = lastCleanup === undefined ? {} : { lastCleanup }
134
142
  // One deadline per identity bounds the size walk and the journal scans that read whole transcripts.
135
143
  const signal = options.measureSignal ?? AbortSignal.timeout(budgetMs)
136
144
  const startedAt = Date.now()
137
145
  const measured = await measureRuntimeSizeWithinBudget(paths.runtime, { budgetMs, now: startedAt, signal })
138
146
  if ("sizeUnknown" in measured) {
139
- identities.push({ identity, bytes: 0, maxBytes, discardUnreflectedJournals, sizeUnknown: measured.sizeUnknown })
147
+ identities.push({ identity, bytes: 0, maxBytes, discardUnreflectedJournals, sizeUnknown: measured.sizeUnknown, ...cleaned })
140
148
  continue
141
149
  }
142
150
  const bytes = measured.size.bytes
@@ -150,7 +158,7 @@ export async function memoryRuntimeReport(options = {}) {
150
158
  evictableBytes = overCap ? await measureRuntimeCapEvictableBytes({ paths, policy, now: Date.now, signal }) : undefined
151
159
  } catch (error) {
152
160
  if (!signal.aborted) throw error
153
- identities.push({ identity, bytes: 0, maxBytes, discardUnreflectedJournals, sizeUnknown: { budgetMs, at: new Date(startedAt).toISOString() } })
161
+ identities.push({ identity, bytes: 0, maxBytes, discardUnreflectedJournals, sizeUnknown: { budgetMs, at: new Date(startedAt).toISOString() }, ...cleaned })
154
162
  continue
155
163
  }
156
164
  identities.push({
@@ -160,6 +168,7 @@ export async function memoryRuntimeReport(options = {}) {
160
168
  discardUnreflectedJournals,
161
169
  ...(unreflectedBytes === undefined ? {} : { unreflectedBytes }),
162
170
  ...(evictableBytes === undefined ? {} : { evictableBytes }),
171
+ ...cleaned,
163
172
  })
164
173
  }
165
174
  const totalBytes = identities.reduce((sum, entry) => sum + entry.bytes, 0)
@@ -1,5 +1,5 @@
1
1
  {
2
- "_comment": "Derived from @code-yeongyu/senpi 2026.11.9-2 builtinProviders(). builtinProviderIds and oauthProviderIds are the engine registry verbatim; providers maps a source harness id onto the omo provider that serves the same endpoint; oauthLogins maps a source OAuth id onto the omo provider to run /login for. Re-derive all four whenever the senpi pin changes.",
2
+ "_comment": "Derived from @code-yeongyu/senpi 2026.11.10 builtinProviders(). builtinProviderIds and oauthProviderIds are the engine registry verbatim; providers maps a source harness id onto the omo provider that serves the same endpoint; oauthLogins maps a source OAuth id onto the omo provider to run /login for. Re-derive all four whenever the senpi pin changes.",
3
3
  "builtinProviderIds": [
4
4
  "alibaba-token-plan",
5
5
  "amazon-bedrock",