@aimo-supa-agent/node 0.0.0-stage → 0.1.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 (84) hide show
  1. package/README.md +7 -2
  2. package/dist/agent.d.ts +91 -0
  3. package/dist/agent.js +1421 -0
  4. package/dist/agent.js.map +1 -0
  5. package/dist/api.d.ts +31 -0
  6. package/dist/api.js +86 -0
  7. package/dist/api.js.map +1 -0
  8. package/dist/budget-guard.d.ts +23 -0
  9. package/dist/budget-guard.js +67 -0
  10. package/dist/budget-guard.js.map +1 -0
  11. package/dist/cli.d.ts +2 -0
  12. package/dist/cli.js +99 -0
  13. package/dist/cli.js.map +1 -0
  14. package/dist/config.d.ts +40 -0
  15. package/dist/config.js +69 -0
  16. package/dist/config.js.map +1 -0
  17. package/dist/coordinator.d.ts +25 -0
  18. package/dist/coordinator.js +262 -0
  19. package/dist/coordinator.js.map +1 -0
  20. package/dist/fake-runtime.d.ts +8 -0
  21. package/dist/fake-runtime.js +21 -0
  22. package/dist/fake-runtime.js.map +1 -0
  23. package/dist/memory-cache.d.ts +28 -0
  24. package/dist/memory-cache.js +61 -0
  25. package/dist/memory-cache.js.map +1 -0
  26. package/dist/network.d.ts +21 -0
  27. package/dist/network.js +101 -0
  28. package/dist/network.js.map +1 -0
  29. package/dist/startup.d.ts +24 -0
  30. package/dist/startup.js +52 -0
  31. package/dist/startup.js.map +1 -0
  32. package/dist/store.d.ts +51 -0
  33. package/dist/store.js +160 -0
  34. package/dist/store.js.map +1 -0
  35. package/node_modules/@super-agent/protocol/dist/index.d.ts +495 -0
  36. package/node_modules/@super-agent/protocol/dist/index.js +81 -0
  37. package/node_modules/@super-agent/protocol/dist/index.js.map +1 -0
  38. package/node_modules/@super-agent/protocol/dist/interaction.d.ts +185 -0
  39. package/node_modules/@super-agent/protocol/dist/interaction.js +206 -0
  40. package/node_modules/@super-agent/protocol/dist/interaction.js.map +1 -0
  41. package/node_modules/@super-agent/protocol/dist/invariants.d.ts +23 -0
  42. package/node_modules/@super-agent/protocol/dist/invariants.js +58 -0
  43. package/node_modules/@super-agent/protocol/dist/invariants.js.map +1 -0
  44. package/node_modules/@super-agent/protocol/package.json +16 -0
  45. package/node_modules/@super-agent/runtime-codex/dist/index.d.ts +49 -0
  46. package/node_modules/@super-agent/runtime-codex/dist/index.js +237 -0
  47. package/node_modules/@super-agent/runtime-codex/dist/index.js.map +1 -0
  48. package/node_modules/@super-agent/runtime-codex/dist/managed.d.ts +9 -0
  49. package/node_modules/@super-agent/runtime-codex/dist/managed.js +82 -0
  50. package/node_modules/@super-agent/runtime-codex/dist/managed.js.map +1 -0
  51. package/node_modules/@super-agent/runtime-codex/package.json +16 -0
  52. package/node_modules/@super-agent/runtime-grok/dist/acp.d.ts +30 -0
  53. package/node_modules/@super-agent/runtime-grok/dist/acp.js +100 -0
  54. package/node_modules/@super-agent/runtime-grok/dist/acp.js.map +1 -0
  55. package/node_modules/@super-agent/runtime-grok/dist/cli.d.ts +33 -0
  56. package/node_modules/@super-agent/runtime-grok/dist/cli.js +163 -0
  57. package/node_modules/@super-agent/runtime-grok/dist/cli.js.map +1 -0
  58. package/node_modules/@super-agent/runtime-grok/dist/index.d.ts +22 -0
  59. package/node_modules/@super-agent/runtime-grok/dist/index.js +127 -0
  60. package/node_modules/@super-agent/runtime-grok/dist/index.js.map +1 -0
  61. package/node_modules/@super-agent/runtime-grok/dist/managed.d.ts +48 -0
  62. package/node_modules/@super-agent/runtime-grok/dist/managed.js +47 -0
  63. package/node_modules/@super-agent/runtime-grok/dist/managed.js.map +1 -0
  64. package/node_modules/@super-agent/runtime-grok/package.json +16 -0
  65. package/node_modules/@super-agent/tool-broker/dist/artifacts.d.ts +20 -0
  66. package/node_modules/@super-agent/tool-broker/dist/artifacts.js +187 -0
  67. package/node_modules/@super-agent/tool-broker/dist/artifacts.js.map +1 -0
  68. package/node_modules/@super-agent/tool-broker/dist/browser.d.ts +45 -0
  69. package/node_modules/@super-agent/tool-broker/dist/browser.js +245 -0
  70. package/node_modules/@super-agent/tool-broker/dist/browser.js.map +1 -0
  71. package/node_modules/@super-agent/tool-broker/dist/evidence.d.ts +60 -0
  72. package/node_modules/@super-agent/tool-broker/dist/evidence.js +172 -0
  73. package/node_modules/@super-agent/tool-broker/dist/evidence.js.map +1 -0
  74. package/node_modules/@super-agent/tool-broker/dist/index.d.ts +62 -0
  75. package/node_modules/@super-agent/tool-broker/dist/index.js +402 -0
  76. package/node_modules/@super-agent/tool-broker/dist/index.js.map +1 -0
  77. package/node_modules/@super-agent/tool-broker/dist/mcp.d.ts +2 -0
  78. package/node_modules/@super-agent/tool-broker/dist/mcp.js +48 -0
  79. package/node_modules/@super-agent/tool-broker/dist/mcp.js.map +1 -0
  80. package/node_modules/@super-agent/tool-broker/dist/runtime.d.ts +75 -0
  81. package/node_modules/@super-agent/tool-broker/dist/runtime.js +16 -0
  82. package/node_modules/@super-agent/tool-broker/dist/runtime.js.map +1 -0
  83. package/node_modules/@super-agent/tool-broker/package.json +18 -0
  84. package/package.json +30 -4
package/README.md CHANGED
@@ -1,3 +1,8 @@
1
- # Temporary Holding Version
1
+ # @aimo-supa-agent/node
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ ```sh
4
+ npm install -g @aimo-supa-agent/node
5
+ super-agent-node --help
6
+ ```
7
+
8
+ Requires Node.js 24.14 or newer. The command connects to a cloud control server and keeps model credentials on this computer.
@@ -0,0 +1,91 @@
1
+ import type { Capabilities } from '@super-agent/protocol';
2
+ import { BrowserActor, type RuntimeAdapter } from '@super-agent/tool-broker';
3
+ import { NodeApi } from './api.js';
4
+ import { type NodeConfig } from './config.js';
5
+ import { LocalStore } from './store.js';
6
+ import { type NetworkSetup } from './network.js';
7
+ export declare const CONTROL_LINK_MISSES = 3;
8
+ export declare function controlLinkShouldRestart(missedHeartbeats: number, activeRuns?: number): boolean;
9
+ export interface AgentOptions {
10
+ api?: NodeApi;
11
+ browser?: BrowserActor;
12
+ runtimeFactory?: (engine: string, config: NodeConfig) => Promise<RuntimeAdapter>;
13
+ log?: (message: string) => void;
14
+ artifactFetcher?: typeof fetch;
15
+ /** Tests supply this so start() does not read or change the machine proxy. */
16
+ network?: NetworkSetup;
17
+ }
18
+ export declare function ticksToUsd(ticks: string): string;
19
+ export declare class NodeAgent {
20
+ readonly config: NodeConfig;
21
+ private readonly options;
22
+ readonly api: NodeApi;
23
+ readonly store: LocalStore;
24
+ readonly browser: BrowserActor;
25
+ private readonly active;
26
+ private readonly executions;
27
+ private readonly views;
28
+ private readonly controller;
29
+ private assistantEpoch?;
30
+ private assistantDeadline;
31
+ private assistantBusy;
32
+ private assistantWork?;
33
+ private readonly coordinatorWork;
34
+ private readonly coordinatorControllers;
35
+ private coordinatorDrain?;
36
+ private browserReady;
37
+ private network?;
38
+ private generation;
39
+ private lastHeartbeat;
40
+ private missedHeartbeats;
41
+ private readonly loopTimers;
42
+ private capabilitiesCache;
43
+ private readonly memoryCache;
44
+ private readonly log;
45
+ constructor(config: NodeConfig, options?: AgentOptions);
46
+ capabilities(): Promise<Capabilities>;
47
+ start(): Promise<void>;
48
+ private scheduleLoop;
49
+ private logTiming;
50
+ recover(): Promise<void>;
51
+ tick(): Promise<void>;
52
+ private leasePass;
53
+ private reportsPass;
54
+ private memoryPass;
55
+ private controlPass;
56
+ private renewPass;
57
+ private framePass;
58
+ private kickAssistant;
59
+ private assistantPass;
60
+ private handleCommand;
61
+ private runtime;
62
+ private execute;
63
+ private runtimeEvent;
64
+ private reportState;
65
+ private recordUsage;
66
+ private noteAction;
67
+ private control;
68
+ private requestStop;
69
+ private handleObservation;
70
+ private recoverObservations;
71
+ private rememberObservationUsage;
72
+ private postObservationUsage;
73
+ private settleObservation;
74
+ private handleViewCommand;
75
+ flush(): Promise<void>;
76
+ private assistant;
77
+ private reserveBudget;
78
+ private releaseBudget;
79
+ private heartbeatBudget;
80
+ private syncMemoryInvalidations;
81
+ private processCoordinatorEvent;
82
+ private drainCoordinator;
83
+ private flushCoordinator;
84
+ private answerFastIntent;
85
+ private interactionCapabilities;
86
+ private planMessage;
87
+ private drainAssistant;
88
+ private safeError;
89
+ stop(): Promise<void>;
90
+ close(): void;
91
+ }