@opencow-ai/opencow-agent-sdk 0.4.24 → 0.4.26
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/codexConfigFields.d.ts +20 -0
- package/dist/capabilities/mcp/envExpansion.d.ts +4 -1
- package/dist/capabilities/plugins/lspPluginIntegration.d.ts +1 -0
- package/dist/capabilities/plugins/mcpPluginIntegration.d.ts +1 -0
- package/dist/cli.mjs +63944 -76705
- package/dist/client.js +31389 -92985
- package/dist/constants/envVars.d.ts +5 -0
- package/dist/controller/loop.d.ts +5 -0
- package/dist/entrypoints/sdk/runtimeTypes.d.ts +16 -0
- package/dist/providers/shared/retry.d.ts +33 -1
- package/dist/sdk.js +31389 -92985
- package/dist/session/attachments.d.ts +9 -0
- package/dist/session/tokens.d.ts +2 -1
- package/dist/types/plugin.d.ts +5 -0
- package/dist/types/replayState.d.ts +13 -0
- package/package.json +1 -1
|
@@ -581,6 +581,15 @@ export declare function suppressNextSkillListing(): void;
|
|
|
581
581
|
* Falls back to bundled-only if bundled+mcp exceeds FILTERED_LISTING_MAX.
|
|
582
582
|
*/
|
|
583
583
|
export declare function filterToBundledAndMcp(commands: Command[]): Command[];
|
|
584
|
+
/**
|
|
585
|
+
* skill_listing 附件总开关。Exported for testing。
|
|
586
|
+
*
|
|
587
|
+
* 读取经 optionsWithProviderRoutingEnv 写入 per-query env 的
|
|
588
|
+
* Options.skillListing(per-query 优先于进程环境);未设置时默认开启,
|
|
589
|
+
* 保持加开关前的行为不变。仅识别显式 falsy('0'/'false'/'no'/'off'),
|
|
590
|
+
* 与 shouldInjectAgentListInMessages 的语义一致。
|
|
591
|
+
*/
|
|
592
|
+
export declare function isSkillListingEnabled(): boolean;
|
|
584
593
|
export declare function extractAtMentionedFiles(content: string): string[];
|
|
585
594
|
export declare function extractMcpResourceMentions(content: string): string[];
|
|
586
595
|
export declare function extractAgentMentions(content: string): string[];
|
package/dist/session/tokens.d.ts
CHANGED
|
@@ -50,7 +50,8 @@ export declare function doesMostRecentAssistantMessageExceed200k(messages: Messa
|
|
|
50
50
|
* - thinking (thinking_delta)
|
|
51
51
|
* - redacted_thinking data
|
|
52
52
|
* - tool_use input (input_json_delta)
|
|
53
|
-
* Note: signature_delta
|
|
53
|
+
* Note: signature_delta and replay_state_delta are excluded from streaming
|
|
54
|
+
* counts (not model output).
|
|
54
55
|
*/
|
|
55
56
|
export declare function getAssistantMessageContentLength(message: AssistantMessage): number;
|
|
56
57
|
/**
|
package/dist/types/plugin.d.ts
CHANGED
|
@@ -44,6 +44,11 @@ export type LoadedPlugin = {
|
|
|
44
44
|
repository: string;
|
|
45
45
|
/** Session-owned data directory for explicitly managed plugins. */
|
|
46
46
|
dataPath?: string;
|
|
47
|
+
/**
|
|
48
|
+
* 宿主为该插件提供的运行期环境变量值(如用户在插件详情页填写的第三方 Token)。
|
|
49
|
+
* 解析 `${VAR}` 时优先于进程环境,且只作用于该插件的组件。
|
|
50
|
+
*/
|
|
51
|
+
env?: Record<string, string>;
|
|
47
52
|
enabled?: boolean;
|
|
48
53
|
isBuiltin?: boolean;
|
|
49
54
|
sha?: string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { CanonicalThinkingBlock } from '../session/canonical/index.js';
|
|
2
|
+
/**
|
|
3
|
+
* Opaque reasoning-replay token issued by the gateway for non-Anthropic
|
|
4
|
+
* providers. The SDK only stores it on the thinking block and sends it back
|
|
5
|
+
* with the history; only the gateway can decode it.
|
|
6
|
+
*/
|
|
7
|
+
export type ReplayStateThinkingBlock = CanonicalThinkingBlock & {
|
|
8
|
+
replay_state?: string;
|
|
9
|
+
};
|
|
10
|
+
export type ReplayStateDelta = {
|
|
11
|
+
type: 'replay_state_delta';
|
|
12
|
+
replay_state: string;
|
|
13
|
+
};
|
package/package.json
CHANGED