@codelia/runtime 0.1.81 → 0.1.83
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/{chunk-227ALRI4.js → chunk-A6CO4J5P.js} +293 -46
- package/dist/{chunk-KI7RKJNA.js → chunk-JRAJDBQ3.js} +2237 -588
- package/dist/index.cjs +10893 -9042
- package/dist/index.js +2 -2
- package/dist/sdk.cjs +10893 -9042
- package/dist/sdk.d.cts +8 -5
- package/dist/sdk.d.ts +8 -5
- package/dist/sdk.js +2 -2
- package/dist/subagents/child-entry.cjs +289 -75
- package/dist/subagents/child-entry.js +13 -7
- package/package.json +10 -9
package/dist/sdk.d.cts
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
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';
|
|
4
|
-
import { SubagentLineage, ApprovalMode, AgentMessage, ModelReasoningLevel } from '@codelia/shared-types';
|
|
5
|
+
import { ModelFastMode, SubagentLineage, ApprovalMode, AgentMessage, ModelReasoningLevel } from '@codelia/shared-types';
|
|
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;
|
|
11
13
|
verbosity?: string;
|
|
12
|
-
fast?:
|
|
14
|
+
fast?: ModelFastMode;
|
|
13
15
|
experimental?: {
|
|
14
16
|
openai?: {
|
|
15
17
|
websocket_mode?: "off" | "auto" | "on";
|
|
@@ -83,8 +85,7 @@ type ProviderAuth = {
|
|
|
83
85
|
oauth: OAuthTokens;
|
|
84
86
|
};
|
|
85
87
|
|
|
86
|
-
|
|
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 = {
|
|
@@ -303,7 +304,7 @@ type RuntimeConfigProvider = {
|
|
|
303
304
|
provider: string;
|
|
304
305
|
name: string;
|
|
305
306
|
reasoning?: ModelReasoningLevel;
|
|
306
|
-
fast?:
|
|
307
|
+
fast?: ModelFastMode;
|
|
307
308
|
}) => Promise<WriteTarget>;
|
|
308
309
|
updateTuiTheme?: (workingDir: string | undefined, theme: string) => Promise<WriteTarget>;
|
|
309
310
|
appendPermissionAllowRules?: (workingDir: string | undefined, rules: PermissionRule[]) => Promise<void>;
|
|
@@ -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,15 +1,17 @@
|
|
|
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';
|
|
4
|
-
import { SubagentLineage, ApprovalMode, AgentMessage, ModelReasoningLevel } from '@codelia/shared-types';
|
|
5
|
+
import { ModelFastMode, SubagentLineage, ApprovalMode, AgentMessage, ModelReasoningLevel } from '@codelia/shared-types';
|
|
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;
|
|
11
13
|
verbosity?: string;
|
|
12
|
-
fast?:
|
|
14
|
+
fast?: ModelFastMode;
|
|
13
15
|
experimental?: {
|
|
14
16
|
openai?: {
|
|
15
17
|
websocket_mode?: "off" | "auto" | "on";
|
|
@@ -83,8 +85,7 @@ type ProviderAuth = {
|
|
|
83
85
|
oauth: OAuthTokens;
|
|
84
86
|
};
|
|
85
87
|
|
|
86
|
-
|
|
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 = {
|
|
@@ -303,7 +304,7 @@ type RuntimeConfigProvider = {
|
|
|
303
304
|
provider: string;
|
|
304
305
|
name: string;
|
|
305
306
|
reasoning?: ModelReasoningLevel;
|
|
306
|
-
fast?:
|
|
307
|
+
fast?: ModelFastMode;
|
|
307
308
|
}) => Promise<WriteTarget>;
|
|
308
309
|
updateTuiTheme?: (workingDir: string | undefined, theme: string) => Promise<WriteTarget>;
|
|
309
310
|
appendPermissionAllowRules?: (workingDir: string | undefined, rules: PermissionRule[]) => Promise<void>;
|
|
@@ -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;
|