clawchef 0.1.6 → 0.1.7
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/README.md +20 -12
- package/dist/api.d.ts +3 -1
- package/dist/api.js +10 -1
- package/dist/cli.js +34 -3
- package/dist/openclaw/command-provider.d.ts +1 -1
- package/dist/openclaw/command-provider.js +31 -23
- package/dist/openclaw/mock-provider.d.ts +1 -1
- package/dist/openclaw/mock-provider.js +1 -1
- package/dist/openclaw/provider.d.ts +1 -1
- package/dist/openclaw/remote-provider.d.ts +1 -1
- package/dist/openclaw/remote-provider.js +1 -1
- package/dist/orchestrator.js +74 -50
- package/dist/recipe.js +57 -24
- package/dist/schema.d.ts +72 -107
- package/dist/schema.js +15 -21
- package/dist/types.d.ts +6 -11
- package/package.json +1 -1
- package/recipes/content-from-sample.yaml +13 -9
- package/recipes/openclaw-from-zero.yaml +2 -2
- package/recipes/openclaw-local.yaml +8 -10
- package/recipes/openclaw-remote-http.yaml +6 -8
- package/recipes/sample.yaml +6 -8
- package/recipes/snippets/readme-template.md +3 -1
- package/src/api.ts +13 -2
- package/src/cli.ts +36 -4
- package/src/openclaw/command-provider.ts +34 -24
- package/src/openclaw/mock-provider.ts +1 -1
- package/src/openclaw/provider.ts +1 -1
- package/src/openclaw/remote-provider.ts +1 -1
- package/src/orchestrator.ts +74 -49
- package/src/recipe.ts +63 -24
- package/src/schema.ts +17 -22
- package/src/types.ts +6 -11
package/src/types.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export type InstallPolicy = "auto" | "always" | "never";
|
|
2
2
|
export type OpenClawProvider = "command" | "mock" | "remote";
|
|
3
|
+
export type RunScope = "full" | "files" | "workspace";
|
|
3
4
|
|
|
4
5
|
export interface OpenClawRemoteConfig {
|
|
5
6
|
base_url: string;
|
|
@@ -46,13 +47,7 @@ export interface OpenClawBootstrap {
|
|
|
46
47
|
skip_ui?: boolean;
|
|
47
48
|
skip_daemon?: boolean;
|
|
48
49
|
install_daemon?: boolean;
|
|
49
|
-
|
|
50
|
-
anthropic_api_key?: string;
|
|
51
|
-
openrouter_api_key?: string;
|
|
52
|
-
xai_api_key?: string;
|
|
53
|
-
gemini_api_key?: string;
|
|
54
|
-
ai_gateway_api_key?: string;
|
|
55
|
-
cloudflare_ai_gateway_api_key?: string;
|
|
50
|
+
llm_api_key?: string;
|
|
56
51
|
cloudflare_ai_gateway_account_id?: string;
|
|
57
52
|
cloudflare_ai_gateway_gateway_id?: string;
|
|
58
53
|
token?: string;
|
|
@@ -73,6 +68,7 @@ export interface WorkspaceDef {
|
|
|
73
68
|
name: string;
|
|
74
69
|
path?: string;
|
|
75
70
|
assets?: string;
|
|
71
|
+
files?: WorkspaceFileDef[];
|
|
76
72
|
}
|
|
77
73
|
|
|
78
74
|
export interface ChannelDef {
|
|
@@ -102,8 +98,7 @@ export interface AgentDef {
|
|
|
102
98
|
skills?: string[];
|
|
103
99
|
}
|
|
104
100
|
|
|
105
|
-
export interface
|
|
106
|
-
workspace: string;
|
|
101
|
+
export interface WorkspaceFileDef {
|
|
107
102
|
path: string;
|
|
108
103
|
content?: string;
|
|
109
104
|
content_from?: string;
|
|
@@ -138,18 +133,18 @@ export interface Recipe {
|
|
|
138
133
|
workspaces?: WorkspaceDef[];
|
|
139
134
|
channels?: ChannelDef[];
|
|
140
135
|
agents?: AgentDef[];
|
|
141
|
-
files?: FileDef[];
|
|
142
136
|
conversations?: ConversationDef[];
|
|
143
137
|
}
|
|
144
138
|
|
|
145
139
|
export interface RunOptions {
|
|
146
140
|
vars: Record<string, string>;
|
|
147
141
|
plugins: string[];
|
|
142
|
+
scope: RunScope;
|
|
143
|
+
workspaceName?: string;
|
|
148
144
|
dryRun: boolean;
|
|
149
145
|
allowMissing: boolean;
|
|
150
146
|
verbose: boolean;
|
|
151
147
|
silent: boolean;
|
|
152
|
-
keepOpenClawState: boolean;
|
|
153
148
|
provider: OpenClawProvider;
|
|
154
149
|
remote: Partial<OpenClawRemoteConfig>;
|
|
155
150
|
}
|