@opencow-ai/opencow-agent-sdk 0.4.26 → 0.4.27
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/capabilities/mcp/types.d.ts +3 -0
- package/dist/capabilities/plugins/pluginOptionsStorage.d.ts +6 -0
- package/dist/capabilities/plugins/schemas.d.ts +6 -0
- package/dist/capabilities/plugins/sdkPluginRuntime.d.ts +2 -0
- package/dist/cli.mjs +138 -232
- package/dist/client.js +163 -247
- package/dist/constants/oauth.d.ts +0 -8
- package/dist/controller/dispatch/toolHooks.d.ts +4 -3
- package/dist/entrypoints/sdk/controlSchemas.d.ts +20 -0
- package/dist/entrypoints/sdk/coreSchemas.d.ts +6 -0
- package/dist/entrypoints/sdk/runtimeTypes.d.ts +8 -0
- package/dist/sdk.js +163 -247
- package/dist/session/branding.d.ts +4 -0
- package/dist/session/brandingConfig.d.ts +16 -0
- package/dist/session/state/index.d.ts +1 -1
- package/dist/session/state/registries.d.ts +8 -1
- package/dist/session/state/types.d.ts +2 -0
- package/package.json +1 -1
- package/dist/capabilities/tools/AgentTool/built-in/claudeCodeGuideAgent.d.ts +0 -3
|
@@ -25,6 +25,7 @@ export declare const McpStdioServerConfigSchema: () => z.ZodObject<{
|
|
|
25
25
|
command: z.ZodString;
|
|
26
26
|
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
27
27
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
28
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
28
29
|
}, z.core.$strip>;
|
|
29
30
|
export declare const McpSSEServerConfigSchema: () => z.ZodObject<{
|
|
30
31
|
type: z.ZodLiteral<"sse">;
|
|
@@ -83,6 +84,7 @@ export declare const McpServerConfigSchema: () => z.ZodUnion<readonly [z.ZodObje
|
|
|
83
84
|
command: z.ZodString;
|
|
84
85
|
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
85
86
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
87
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
86
88
|
}, z.core.$strip>, z.ZodObject<{
|
|
87
89
|
type: z.ZodLiteral<"sse">;
|
|
88
90
|
url: z.ZodString;
|
|
@@ -148,6 +150,7 @@ export declare const McpJsonConfigSchema: () => z.ZodObject<{
|
|
|
148
150
|
command: z.ZodString;
|
|
149
151
|
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
150
152
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
153
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
151
154
|
}, z.core.$strip>, z.ZodObject<{
|
|
152
155
|
type: z.ZodLiteral<"sse">;
|
|
153
156
|
url: z.ZodString;
|
|
@@ -86,6 +86,12 @@ export declare function substitutePluginVariables(value: string, plugin: {
|
|
|
86
86
|
source?: string;
|
|
87
87
|
dataPath?: string;
|
|
88
88
|
}): string;
|
|
89
|
+
/**
|
|
90
|
+
* Substitute host-defined `${NAME}` content variables from the session's
|
|
91
|
+
* managed plugin snapshot. Single pass, so substituted values are never
|
|
92
|
+
* re-expanded; names the host did not define stay literal.
|
|
93
|
+
*/
|
|
94
|
+
export declare function substitutePluginContentVariables(value: string, variables?: Readonly<Record<string, string>>): string;
|
|
89
95
|
/**
|
|
90
96
|
* Substitute ${user_config.KEY} with saved option values.
|
|
91
97
|
*
|
|
@@ -262,6 +262,7 @@ export declare const PluginManifestSchema: () => z.ZodObject<{
|
|
|
262
262
|
command: z.ZodString;
|
|
263
263
|
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
264
264
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
265
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
265
266
|
}, z.core.$strip>, z.ZodObject<{
|
|
266
267
|
type: z.ZodLiteral<"sse">;
|
|
267
268
|
url: z.ZodString;
|
|
@@ -312,6 +313,7 @@ export declare const PluginManifestSchema: () => z.ZodObject<{
|
|
|
312
313
|
command: z.ZodString;
|
|
313
314
|
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
314
315
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
316
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
315
317
|
}, z.core.$strip>, z.ZodObject<{
|
|
316
318
|
type: z.ZodLiteral<"sse">;
|
|
317
319
|
url: z.ZodString;
|
|
@@ -759,6 +761,7 @@ export declare const PluginMarketplaceEntrySchema: () => z.ZodObject<{
|
|
|
759
761
|
command: z.ZodString;
|
|
760
762
|
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
761
763
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
764
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
762
765
|
}, z.core.$strip>, z.ZodObject<{
|
|
763
766
|
type: z.ZodLiteral<"sse">;
|
|
764
767
|
url: z.ZodString;
|
|
@@ -809,6 +812,7 @@ export declare const PluginMarketplaceEntrySchema: () => z.ZodObject<{
|
|
|
809
812
|
command: z.ZodString;
|
|
810
813
|
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
811
814
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
815
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
812
816
|
}, z.core.$strip>, z.ZodObject<{
|
|
813
817
|
type: z.ZodLiteral<"sse">;
|
|
814
818
|
url: z.ZodString;
|
|
@@ -1147,6 +1151,7 @@ export declare const PluginMarketplaceSchema: () => z.ZodObject<{
|
|
|
1147
1151
|
command: z.ZodString;
|
|
1148
1152
|
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1149
1153
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1154
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
1150
1155
|
}, z.core.$strip>, z.ZodObject<{
|
|
1151
1156
|
type: z.ZodLiteral<"sse">;
|
|
1152
1157
|
url: z.ZodString;
|
|
@@ -1197,6 +1202,7 @@ export declare const PluginMarketplaceSchema: () => z.ZodObject<{
|
|
|
1197
1202
|
command: z.ZodString;
|
|
1198
1203
|
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1199
1204
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1205
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
1200
1206
|
}, z.core.$strip>, z.ZodObject<{
|
|
1201
1207
|
type: z.ZodLiteral<"sse">;
|
|
1202
1208
|
url: z.ZodString;
|
|
@@ -15,6 +15,8 @@ export type ExplicitPluginRuntimeBundle = {
|
|
|
15
15
|
lspManager: LSPServerManager | null;
|
|
16
16
|
outputStyles: readonly OutputStyleConfig[];
|
|
17
17
|
dataPaths: ReadonlyMap<string, string>;
|
|
18
|
+
/** Host-defined content variables from the managed snapshot. */
|
|
19
|
+
contentVariables?: Readonly<Record<string, string>>;
|
|
18
20
|
state: SdkPluginState;
|
|
19
21
|
dispose(): Promise<void>;
|
|
20
22
|
};
|