@codelia/runtime 0.1.81 → 0.1.82

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.
package/dist/sdk.d.cts CHANGED
@@ -1,3 +1,4 @@
1
+ import * as _codelia_config from '@codelia/config';
1
2
  import { PermissionsConfig, SubagentConfig, PermissionRule } from '@codelia/config';
2
3
  import { SessionStateStore, RunEventStoreFactory, ToolOutputCacheStore, Tool } from '@codelia/core';
3
4
  import { RpcNotification } from '@codelia/protocol';
@@ -5,6 +6,7 @@ import { SubagentLineage, ApprovalMode, AgentMessage, ModelReasoningLevel } from
5
6
  import { TaskResult, TaskState, TaskRecord, TaskKind, TaskWorkspaceMode, TaskRegistryStore } from '@codelia/storage';
6
7
 
7
8
  type ResolvedModelConfig = {
9
+ providers?: _codelia_config.CodeliaConfig["providers"];
8
10
  provider?: string;
9
11
  name?: string;
10
12
  reasoning?: string;
@@ -83,8 +85,7 @@ type ProviderAuth = {
83
85
  oauth: OAuthTokens;
84
86
  };
85
87
 
86
- declare const SUPPORTED_PROVIDERS: readonly ["openai", "anthropic", "openrouter", "moonshot", "zai", "xai"];
87
- type SupportedProvider = (typeof SUPPORTED_PROVIDERS)[number];
88
+ type SupportedProvider = string;
88
89
 
89
90
  type TerminalTaskState = Extract<TaskState, "completed" | "failed" | "cancelled">;
90
91
  type TaskSpawnInput = {
@@ -317,6 +318,8 @@ type CredentialProvider = {
317
318
  accountId?: string;
318
319
  }>;
319
320
  clearAuth?: () => Promise<void>;
321
+ /** Scoped logout must never fall back to clearing all credentials. */
322
+ clearProviderAuth?: (provider: string) => Promise<void>;
320
323
  };
321
324
  type SystemPromptProvider = {
322
325
  loadSystemPrompt: (workingDir?: string) => Promise<string> | string;
package/dist/sdk.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import * as _codelia_config from '@codelia/config';
1
2
  import { PermissionsConfig, SubagentConfig, PermissionRule } from '@codelia/config';
2
3
  import { SessionStateStore, RunEventStoreFactory, ToolOutputCacheStore, Tool } from '@codelia/core';
3
4
  import { RpcNotification } from '@codelia/protocol';
@@ -5,6 +6,7 @@ import { SubagentLineage, ApprovalMode, AgentMessage, ModelReasoningLevel } from
5
6
  import { TaskResult, TaskState, TaskRecord, TaskKind, TaskWorkspaceMode, TaskRegistryStore } from '@codelia/storage';
6
7
 
7
8
  type ResolvedModelConfig = {
9
+ providers?: _codelia_config.CodeliaConfig["providers"];
8
10
  provider?: string;
9
11
  name?: string;
10
12
  reasoning?: string;
@@ -83,8 +85,7 @@ type ProviderAuth = {
83
85
  oauth: OAuthTokens;
84
86
  };
85
87
 
86
- declare const SUPPORTED_PROVIDERS: readonly ["openai", "anthropic", "openrouter", "moonshot", "zai", "xai"];
87
- type SupportedProvider = (typeof SUPPORTED_PROVIDERS)[number];
88
+ type SupportedProvider = string;
88
89
 
89
90
  type TerminalTaskState = Extract<TaskState, "completed" | "failed" | "cancelled">;
90
91
  type TaskSpawnInput = {
@@ -317,6 +318,8 @@ type CredentialProvider = {
317
318
  accountId?: string;
318
319
  }>;
319
320
  clearAuth?: () => Promise<void>;
321
+ /** Scoped logout must never fall back to clearing all credentials. */
322
+ clearProviderAuth?: (provider: string) => Promise<void>;
320
323
  };
321
324
  type SystemPromptProvider = {
322
325
  loadSystemPrompt: (workingDir?: string) => Promise<string> | string;
package/dist/sdk.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  startRuntime
3
- } from "./chunk-KI7RKJNA.js";
4
- import "./chunk-227ALRI4.js";
3
+ } from "./chunk-WA2KLV6H.js";
4
+ import "./chunk-CGWVQ7AE.js";
5
5
  export {
6
6
  startRuntime
7
7
  };