@elizaos/autonomous 2.0.0-alpha.63 → 2.0.0-alpha.64

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.
@@ -1 +1,3 @@
1
1
  $ test -f ../prompts/dist/typescript/index.ts || (cd ../prompts && bun run build:typescript) && tsc --noEmit -p tsconfig.json
2
+ src/api/subscription-routes.ts(97,42): error TS2559: Type '{ env?: Record<string, string>; }' has no properties in common with type '{ agents?: { defaults?: { subscriptionProvider?: string; model?: { primary?: string; }; }; }; }'.
3
+ src/api/subscription-routes.ts(224,42): error TS2559: Type '{ env?: Record<string, string>; }' has no properties in common with type '{ agents?: { defaults?: { subscriptionProvider?: string; model?: { primary?: string; }; }; }; }'.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elizaos/autonomous",
3
- "version": "2.0.0-alpha.63",
3
+ "version": "2.0.0-alpha.64",
4
4
  "description": "Standalone autonomous agent runtime and backend server package for elizaOS.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -259,8 +259,8 @@
259
259
  "@elizaos/plugin-todo": "alpha",
260
260
  "@elizaos/plugin-trajectory-logger": "alpha",
261
261
  "@elizaos/plugin-trust": "alpha",
262
- "@elizaos/prompts": "2.0.0-alpha.63",
263
- "@elizaos/skills": "2.0.0-alpha.63",
262
+ "@elizaos/prompts": "2.0.0-alpha.62",
263
+ "@elizaos/skills": "2.0.0-alpha.62",
264
264
  "@hapi/boom": "^10.0.1",
265
265
  "@mariozechner/pi-ai": "0.52.12",
266
266
  "@noble/curves": "^2.0.1",
@@ -285,5 +285,5 @@
285
285
  "@types/ws": "^8.18.1",
286
286
  "typescript": "^5.9.3"
287
287
  },
288
- "gitHead": "6ce48ede3dde71a141d122afa579d873634068d7"
288
+ "gitHead": "cb192f7b21c441e9463d1af2f890c145814baad2"
289
289
  }
package/src/api/server.ts CHANGED
@@ -214,7 +214,6 @@ import { handleSandboxRoute } from "./sandbox-routes";
214
214
  import { applySignalQrOverride, handleSignalRoute } from "./signal-routes";
215
215
  import { resolveStreamingUpdate } from "./streaming-text";
216
216
  import {
217
- type SubscriptionAuthApi,
218
217
  type SubscriptionRouteContext,
219
218
  handleSubscriptionRoutes,
220
219
  } from "./subscription-routes";
@@ -7719,8 +7718,7 @@ async function handleRequest(
7719
7718
  json,
7720
7719
  error,
7721
7720
  saveConfig: saveElizaConfig,
7722
- loadSubscriptionAuth: async () =>
7723
- (await import("../auth/index")) as unknown as SubscriptionAuthApi,
7721
+ loadSubscriptionAuth: async () => await import("../auth/index"),
7724
7722
  } as SubscriptionRouteContext)
7725
7723
  ) {
7726
7724
  return;
@@ -1,52 +1,31 @@
1
1
  import { logger } from "@elizaos/core";
2
2
  import type { RouteRequestContext } from "./route-helpers";
3
+ import type { AnthropicFlow } from "../auth/anthropic";
4
+ import type { CodexFlow } from "../auth/openai-codex";
5
+ import type { OAuthCredentials, SubscriptionProvider } from "../auth/types";
3
6
 
4
- interface AutonomousConfigLike {
5
- env?: Record<string, string>;
6
- }
7
-
8
- interface OAuthCredentialsLike {
9
- expires: number | null;
10
- }
11
-
12
- interface AnthropicFlowLike {
13
- authUrl: string;
14
- submitCode: (code: string) => void;
15
- credentials: Promise<OAuthCredentialsLike>;
16
- }
17
-
18
- interface CodexFlowLike {
19
- authUrl: string;
20
- state: string;
21
- submitCode: (code: string) => void;
22
- close: () => void;
23
- credentials: Promise<OAuthCredentialsLike>;
24
- }
7
+ type AuthModule = typeof import("../auth/index");
25
8
 
26
- export interface SubscriptionAuthApi {
27
- getSubscriptionStatus: () => unknown;
28
- startAnthropicLogin: () => Promise<AnthropicFlowLike>;
29
- startCodexLogin: () => Promise<CodexFlowLike>;
30
- saveCredentials: (
31
- provider: "anthropic-subscription" | "openai-codex",
32
- credentials: OAuthCredentialsLike,
33
- ) => void;
34
- applySubscriptionCredentials: (config: AutonomousConfigLike) => Promise<void>;
35
- deleteCredentials: (
36
- provider: "anthropic-subscription" | "openai-codex",
37
- ) => void;
38
- }
9
+ export type SubscriptionAuthApi = Pick<
10
+ AuthModule,
11
+ | "getSubscriptionStatus"
12
+ | "startAnthropicLogin"
13
+ | "startCodexLogin"
14
+ | "saveCredentials"
15
+ | "applySubscriptionCredentials"
16
+ | "deleteCredentials"
17
+ >;
39
18
 
40
19
  export interface SubscriptionRouteState {
41
- config: AutonomousConfigLike;
42
- _anthropicFlow?: AnthropicFlowLike;
43
- _codexFlow?: CodexFlowLike;
20
+ config: { env?: Record<string, string> };
21
+ _anthropicFlow?: AnthropicFlow;
22
+ _codexFlow?: CodexFlow;
44
23
  _codexFlowTimer?: ReturnType<typeof setTimeout>;
45
24
  }
46
25
 
47
26
  export interface SubscriptionRouteContext extends RouteRequestContext {
48
27
  state: SubscriptionRouteState;
49
- saveConfig: (config: AutonomousConfigLike) => void;
28
+ saveConfig: (config: SubscriptionRouteState["config"]) => void;
50
29
  loadSubscriptionAuth: () => Promise<SubscriptionAuthApi>;
51
30
  }
52
31
 
@@ -221,7 +200,7 @@ export async function handleSubscriptionRoutes(
221
200
  return true;
222
201
  }
223
202
 
224
- let credentials: OAuthCredentialsLike;
203
+ let credentials: OAuthCredentials;
225
204
  try {
226
205
  credentials = await flow.credentials;
227
206
  } catch (err) {
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Shaw Walters and elizaOS Contributors
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.