@opencow-ai/opencow-agent-sdk 0.4.19 → 0.4.21
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/tools/AgentTool/AgentTool.d.ts +49 -4
- package/dist/capabilities/tools/AgentTool/agentInvocationDedupe.d.ts +7 -0
- package/dist/capabilities/tools/AgentTool/inputSchema.d.ts +36 -0
- package/dist/capabilities/tools/AgentTool/worktreeIsolation.d.ts +4 -0
- package/dist/capabilities/worktree.d.ts +10 -0
- package/dist/capabilities/worktreeAvailability.d.ts +20 -0
- package/dist/cli.mjs +51301 -51001
- package/dist/client.js +18880 -18603
- package/dist/constants/prompts.d.ts +1 -1
- package/dist/constants/system.d.ts +2 -3
- package/dist/entrypoints/sdk/runtimeTypes.d.ts +10 -0
- package/dist/lib/envDynamic.d.ts +1 -1
- package/dist/lib/errors.d.ts +8 -0
- package/dist/sdk.js +18880 -18603
- package/dist/session/branding.d.ts +9 -0
- package/dist/session/brandingConfig.d.ts +12 -0
- package/dist/session/state/types.d.ts +2 -0
- package/package.json +1 -1
|
@@ -18,7 +18,7 @@ export declare function computeEnvInfo(modelId: string, additionalWorkingDirecto
|
|
|
18
18
|
export declare function computeSimpleEnvInfo(modelId: string, additionalWorkingDirectories?: string[], enabledToolNames?: ReadonlySet<string>): Promise<string>;
|
|
19
19
|
export declare function getShellInfoLine(enabledToolNames?: ReadonlySet<string>): string | null;
|
|
20
20
|
export declare function getUnameSR(): string;
|
|
21
|
-
export declare const DEFAULT_AGENT_PROMPT = "You are an
|
|
21
|
+
export declare const DEFAULT_AGENT_PROMPT = "You are an agentic coding assistant. Given the user's message, use the tools available to complete the task. Complete the task fully\u2014don't gold-plate, but don't leave it half-done. When you complete the task, respond with a concise report covering what was done and any key findings \u2014 the caller will relay this to the user, so it only needs the essentials.";
|
|
22
22
|
export declare function enhanceSystemPromptWithEnvDetails(existingSystemPrompt: string[], model: string, additionalWorkingDirectories?: string[], enabledToolNames?: ReadonlySet<string>): Promise<string[]>;
|
|
23
23
|
/**
|
|
24
24
|
* Returns instructions for using the scratchpad directory if enabled.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
export type CLISyspromptPrefix = (typeof CLI_SYSPROMPT_PREFIX_VALUES)[number];
|
|
1
|
+
export type CLISyspromptPrefix = string;
|
|
3
2
|
/**
|
|
4
3
|
* All possible CLI sysprompt prefix values, used by splitSysPromptPrefix
|
|
5
4
|
* to identify prefix blocks by content rather than position.
|
|
6
5
|
*/
|
|
7
6
|
export declare const CLI_SYSPROMPT_PREFIXES: ReadonlySet<string>;
|
|
7
|
+
export declare function isCLISyspromptPrefix(value: string): boolean;
|
|
8
8
|
export declare function getCLISyspromptPrefix(options?: {
|
|
9
9
|
isNonInteractive: boolean;
|
|
10
10
|
hasAppendSystemPrompt: boolean;
|
|
@@ -24,4 +24,3 @@ export declare function getCLISyspromptPrefix(options?: {
|
|
|
24
24
|
* replacement avoids Content-Length changes and buffer reallocation.
|
|
25
25
|
*/
|
|
26
26
|
export declare function getAttributionHeader(fingerprint: string): string;
|
|
27
|
-
export {};
|
|
@@ -127,8 +127,18 @@ import type { LayoutProfile } from '../../session/layout/LayoutProfile.js';
|
|
|
127
127
|
import type { SdkRule } from '../../session/rules/SdkRule.js';
|
|
128
128
|
import type { ProviderTransport, DeprecatedProviderTransportName, ReasoningEffort } from '../../providers/shared/config.js';
|
|
129
129
|
import type { FileHistoryChangeListener, FileHistoryState } from '../../session/fileHistory.js';
|
|
130
|
+
import type { BrandingOptions } from '../../session/brandingConfig.js';
|
|
131
|
+
export type { BrandingOptions } from '../../session/brandingConfig.js';
|
|
130
132
|
export type Options = {
|
|
131
133
|
cwd?: string;
|
|
134
|
+
/**
|
|
135
|
+
* Host-controlled product and assistant names.
|
|
136
|
+
*
|
|
137
|
+
* Set only `productName` to apply one name everywhere. Set
|
|
138
|
+
* `assistantName` as well when the model-facing identity should differ from
|
|
139
|
+
* the product name. Both default to `Agentic`.
|
|
140
|
+
*/
|
|
141
|
+
branding?: BrandingOptions;
|
|
132
142
|
model?: string;
|
|
133
143
|
fallbackModel?: string;
|
|
134
144
|
systemPrompt?: string;
|
package/dist/lib/envDynamic.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export declare const envDynamic: {
|
|
|
23
23
|
initJetBrainsDetection: typeof initJetBrainsDetection;
|
|
24
24
|
hasInternetAccess: any;
|
|
25
25
|
isCI: boolean;
|
|
26
|
-
platform: "
|
|
26
|
+
platform: "win32" | "darwin" | "linux";
|
|
27
27
|
arch: NodeJS.Architecture;
|
|
28
28
|
nodeVersion: string;
|
|
29
29
|
isSSH: () => boolean;
|
package/dist/lib/errors.d.ts
CHANGED
|
@@ -6,6 +6,14 @@ export declare class MalformedCommandError extends Error {
|
|
|
6
6
|
export declare class AbortError extends Error {
|
|
7
7
|
constructor(message?: string);
|
|
8
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* A deterministic tool failure that the model cannot repair by retrying the
|
|
11
|
+
* same call. The dispatch loop returns the tool error to the client, then
|
|
12
|
+
* stops the current model continuation so it cannot enter a retry storm.
|
|
13
|
+
*/
|
|
14
|
+
export declare class ToolContinuationStopError extends Error {
|
|
15
|
+
constructor(message: string, options?: ErrorOptions);
|
|
16
|
+
}
|
|
9
17
|
/**
|
|
10
18
|
* True iff `e` is any of the abort-shaped errors the codebase encounters:
|
|
11
19
|
* our AbortError class, a DOMException from AbortController.abort()
|