ocuclaw 1.2.4 → 1.3.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.
Files changed (59) hide show
  1. package/README.md +18 -5
  2. package/dist/config/runtime-config.js +81 -3
  3. package/dist/domain/activity-status-adapter.js +138 -605
  4. package/dist/domain/activity-status-arbiter.js +109 -0
  5. package/dist/domain/activity-status-labels.js +906 -0
  6. package/dist/domain/code-span-regions.js +103 -0
  7. package/dist/domain/conversation-state.js +14 -1
  8. package/dist/domain/debug-store.js +38 -182
  9. package/dist/domain/glasses-ui-content-summary.js +62 -0
  10. package/dist/domain/glasses-ui-system-prompt.js +28 -0
  11. package/dist/domain/message-emoji-allowlist.js +16 -0
  12. package/dist/domain/message-emoji-filter.js +33 -55
  13. package/dist/domain/neural-emoji-reactor-system-prompt.js +43 -0
  14. package/dist/domain/neural-emoji-reactor-tag-config.js +56 -0
  15. package/dist/domain/neural-pace-modulator-system-prompt.js +32 -0
  16. package/dist/domain/neural-pace-modulator-tag-config.js +51 -0
  17. package/dist/domain/tagged-span-parser.js +121 -0
  18. package/dist/domain/tagged-span-strip.js +38 -0
  19. package/dist/even-ai/even-ai-endpoint.js +91 -0
  20. package/dist/even-ai/even-ai-run-waiter.js +14 -0
  21. package/dist/even-ai/even-ai-settings-store.js +14 -0
  22. package/dist/gateway/gateway-bridge.js +14 -2
  23. package/dist/gateway/gateway-timing-ledger.js +457 -0
  24. package/dist/gateway/openclaw-client.js +462 -38
  25. package/dist/index.js +28 -1
  26. package/dist/runtime/downstream-handler.js +754 -83
  27. package/dist/runtime/downstream-server.js +700 -534
  28. package/dist/runtime/ocuclaw-settings-store.js +74 -31
  29. package/dist/runtime/plugin-update-service.js +216 -0
  30. package/dist/runtime/protocol-adapter.js +9 -0
  31. package/dist/runtime/provider-usage-select.js +168 -0
  32. package/dist/runtime/relay-client-nudge-controller.js +553 -0
  33. package/dist/runtime/relay-core.js +1209 -204
  34. package/dist/runtime/relay-health-monitor.js +172 -0
  35. package/dist/runtime/relay-operation-registry.js +263 -0
  36. package/dist/runtime/relay-service.js +201 -1
  37. package/dist/runtime/relay-worker-approval-replay-cache.js +68 -0
  38. package/dist/runtime/relay-worker-entry.js +32 -0
  39. package/dist/runtime/relay-worker-health.js +272 -0
  40. package/dist/runtime/relay-worker-protocol.js +285 -0
  41. package/dist/runtime/relay-worker-queue.js +202 -0
  42. package/dist/runtime/relay-worker-supervisor.js +1081 -0
  43. package/dist/runtime/relay-worker-transport.js +1051 -0
  44. package/dist/runtime/session-context-service.js +189 -0
  45. package/dist/runtime/session-service.js +615 -24
  46. package/dist/runtime/upstream-runtime.js +1167 -60
  47. package/dist/tools/device-info-tool.js +242 -0
  48. package/dist/tools/glasses-ui-cron.js +427 -0
  49. package/dist/tools/glasses-ui-descriptors.js +261 -0
  50. package/dist/tools/glasses-ui-limits.js +21 -0
  51. package/dist/tools/glasses-ui-paint-floor.js +99 -0
  52. package/dist/tools/glasses-ui-recipes.js +746 -0
  53. package/dist/tools/glasses-ui-surfaces.js +278 -0
  54. package/dist/tools/glasses-ui-template.js +182 -0
  55. package/dist/tools/glasses-ui-tool.js +1147 -0
  56. package/dist/tools/session-title-tool.js +209 -0
  57. package/dist/version.js +2 -0
  58. package/openclaw.plugin.json +163 -15
  59. package/package.json +12 -4
package/dist/index.js CHANGED
@@ -1,5 +1,8 @@
1
1
  import { createOcuClawRelayService } from "./runtime/relay-service.js";
2
2
  import { createEvenAiModelHook } from "./even-ai/even-ai-model-hook.js";
3
+ import { registerGlassesUiTool } from "./tools/glasses-ui-tool.js";
4
+ import { registerSessionTitleTool } from "./tools/session-title-tool.js";
5
+ import { registerDeviceInfoTool } from "./tools/device-info-tool.js";
3
6
 
4
7
  export default function register(api) {
5
8
  if (!api || typeof api.registerService !== "function") {
@@ -26,6 +29,14 @@ export default function register(api) {
26
29
  );
27
30
  }
28
31
 
32
+ let glassesUiDispose = null;
33
+ let deviceInfoDispose = null;
34
+ if (typeof api.registerTool === "function") {
35
+ glassesUiDispose = registerGlassesUiTool(api, service);
36
+ registerSessionTitleTool(api, service);
37
+ deviceInfoDispose = registerDeviceInfoTool(api, service);
38
+ }
39
+
29
40
  api.registerService({
30
41
  id: "ocuclaw-relay",
31
42
  start: (ctx) =>
@@ -33,6 +44,22 @@ export default function register(api) {
33
44
  logger: ctx && ctx.logger,
34
45
  stateDir: ctx && ctx.stateDir,
35
46
  }),
36
- stop: (ctx) => service.stop({ logger: ctx && ctx.logger }),
47
+ stop: (ctx) => {
48
+ if (typeof glassesUiDispose === "function") {
49
+ try {
50
+ glassesUiDispose();
51
+ } catch (_) {
52
+ /* ignore: dispose is a best-effort cleanup */
53
+ }
54
+ }
55
+ if (typeof deviceInfoDispose === "function") {
56
+ try {
57
+ deviceInfoDispose();
58
+ } catch (_) {
59
+ /* ignore: dispose is a best-effort cleanup */
60
+ }
61
+ }
62
+ return service.stop({ logger: ctx && ctx.logger });
63
+ },
37
64
  });
38
65
  }