qlogicagent 2.20.6 → 2.20.8
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 +27 -54
- package/dist/agent-contract.js +1 -1
- package/dist/agent.js +42 -41
- package/dist/cli.js +1 -1
- package/dist/host-contract.js +1 -1
- package/dist/index.js +539 -565
- package/dist/orchestration.js +14 -14
- package/dist/project-memory-host.js +30 -33
- package/dist/protocol.js +1 -1
- package/dist/types/agent/memory-recall-context.d.ts +7 -0
- package/dist/types/agent/tool-loop/artifact-final-contract.d.ts +2 -0
- package/dist/types/agent/tool-loop/direct-response-contract.d.ts +12 -0
- package/dist/types/agent/tool-loop/final-status-stream-suppressor.d.ts +22 -0
- package/dist/types/agent/tool-loop/loop-helpers.d.ts +2 -2
- package/dist/types/agent/tool-loop.d.ts +5 -1
- package/dist/types/agent/types.d.ts +27 -15
- package/dist/types/cli/acp-commands.d.ts +1 -1
- package/dist/types/cli/acp-extended-handlers.d.ts +13 -3
- package/dist/types/cli/agent-runtime-session-state.d.ts +1 -0
- package/dist/types/cli/base-tool-bootstrap.d.ts +0 -7
- package/dist/types/cli/community-skill-installer.d.ts +2 -0
- package/dist/types/cli/core-tool-coordinator.d.ts +0 -3
- package/dist/types/cli/core-tools/registry.d.ts +1 -4
- package/dist/types/cli/handlers/config-handler.d.ts +0 -1
- package/dist/types/cli/handlers/goal-handler.d.ts +24 -0
- package/dist/types/cli/handlers/memory-handler.d.ts +1 -2
- package/dist/types/cli/handlers/skill-curator-handler.d.ts +8 -0
- package/dist/types/cli/handlers/turn-handler.d.ts +9 -12
- package/dist/types/cli/memory-candidate-service.d.ts +1 -8
- package/dist/types/cli/memory-coordinator.d.ts +1 -13
- package/dist/types/cli/product-acp-params.d.ts +1 -0
- package/dist/types/cli/provider-core-facade.d.ts +2 -30
- package/dist/types/cli/rpc-registry.d.ts +2 -4
- package/dist/types/cli/runtime-hook-bootstrap.d.ts +1 -2
- package/dist/types/cli/stdio-acp-request-host.d.ts +1 -2
- package/dist/types/cli/stdio-rpc-handler-hosts.d.ts +0 -2
- package/dist/types/cli/stdio-runtime-bootstrap.d.ts +0 -7
- package/dist/types/cli/stdio-runtime-services.d.ts +1 -8
- package/dist/types/cli/stdio-server.d.ts +0 -4
- package/dist/types/cli/tool-bootstrap-core-registration.d.ts +0 -4
- package/dist/types/cli/tool-bootstrap.d.ts +0 -17
- package/dist/types/contracts/memory-recall-packet.d.ts +31 -0
- package/dist/types/contracts/memory-response-contract.d.ts +2 -0
- package/dist/types/contracts/tool-execution-evidence.d.ts +8 -0
- package/dist/types/contracts/tool-name.d.ts +10 -0
- package/dist/types/contracts/turn-event.d.ts +36 -3
- package/dist/types/host-contract/acp-content.d.ts +45 -0
- package/dist/types/host-contract/index.d.ts +65 -48
- package/dist/types/orchestration/agent-instance.d.ts +21 -1
- package/dist/types/orchestration/agent-roster.d.ts +14 -15
- package/dist/types/orchestration/dag-scheduler.d.ts +4 -0
- package/dist/types/orchestration/goal-context-envelope.d.ts +7 -0
- package/dist/types/orchestration/goal-loop-coordinator.d.ts +55 -12
- package/dist/types/orchestration/goal-mode-adapters.d.ts +13 -1
- package/dist/types/orchestration/goal-run-persistence.d.ts +9 -2
- package/dist/types/orchestration/goal-run-types.d.ts +127 -13
- package/dist/types/orchestration/index.d.ts +1 -1
- package/dist/types/orchestration/product-persistence.d.ts +10 -1
- package/dist/types/orchestration/product-planner.d.ts +3 -3
- package/dist/types/orchestration/testing/delegate-test-bridge.d.ts +1 -0
- package/dist/types/orchestration/workflow/data-item.d.ts +1 -1
- package/dist/types/orchestration/workflow/expression.d.ts +1 -2
- package/dist/types/orchestration/workflow/workflow-patch.d.ts +1 -2
- package/dist/types/orchestration/workflow/workflow-render.d.ts +1 -2
- package/dist/types/project-memory-host.d.ts +1 -0
- package/dist/types/protocol/agent-contract.d.ts +10 -8
- package/dist/types/protocol/methods.d.ts +2 -19
- package/dist/types/protocol/notifications.d.ts +1 -1
- package/dist/types/protocol/wire/acp-agent-management.d.ts +48 -6
- package/dist/types/protocol/wire/acp-protocol.d.ts +11 -24
- package/dist/types/protocol/wire/agent-methods.d.ts +5 -142
- package/dist/types/protocol/wire/chat-types.d.ts +50 -0
- package/dist/types/protocol/wire/index.d.ts +2 -2
- package/dist/types/protocol/wire/notification-payloads.d.ts +73 -122
- package/dist/types/protocol/wire/thread-protocol.d.ts +4 -40
- package/dist/types/runtime/community/community-consent-client.d.ts +0 -13
- package/dist/types/runtime/context/context-compression-strategies.d.ts +29 -0
- package/dist/types/runtime/context/context-envelope.d.ts +3 -0
- package/dist/types/runtime/execution/dream-agent.d.ts +4 -5
- package/dist/types/runtime/execution/mcp-capability-selection.d.ts +54 -0
- package/dist/types/runtime/execution/memory-decay.d.ts +1 -1
- package/dist/types/runtime/execution/search-result-quality.d.ts +22 -0
- package/dist/types/runtime/execution/streaming-tool-executor.d.ts +2 -0
- package/dist/types/runtime/execution/tool-result-storage.d.ts +44 -0
- package/dist/types/runtime/hooks/memory-hooks.d.ts +3 -2
- package/dist/types/runtime/infra/agent-paths.d.ts +0 -8
- package/dist/types/runtime/infra/default-path-service.d.ts +0 -2
- package/dist/types/runtime/infra/llmrouter-managed-inference.d.ts +54 -1
- package/dist/types/runtime/infra/media-persistence.d.ts +6 -36
- package/dist/types/runtime/memory/implicit-extraction.d.ts +7 -15
- package/dist/types/runtime/memory/memory-recall-attribution.d.ts +24 -0
- package/dist/types/runtime/ports/agent-runtime-ports.d.ts +14 -0
- package/dist/types/runtime/ports/index.d.ts +1 -3
- package/dist/types/runtime/ports/memory-provider.d.ts +2 -19
- package/dist/types/runtime/ports/memory-writer.d.ts +1 -1
- package/dist/types/runtime/ports/path-service.d.ts +0 -2
- package/dist/types/runtime/prompt/capability-routing-policy.d.ts +13 -0
- package/dist/types/runtime/prompt/environment-context.d.ts +3 -6
- package/dist/types/runtime/prompt/fresh-workspace-evidence.d.ts +8 -13
- package/dist/types/runtime/prompt/tool-necessity-policy.d.ts +12 -0
- package/dist/types/skills/mcp/mcp-manager.d.ts +29 -4
- package/dist/types/skills/memory/host-memory-provider.d.ts +3 -9
- package/dist/types/skills/memory/memdir.d.ts +1 -1
- package/dist/types/skills/memory/memory-content-safety.d.ts +1 -0
- package/dist/types/skills/permissions/hook-runner.d.ts +3 -3
- package/dist/types/skills/portable-tool.d.ts +5 -0
- package/dist/types/skills/skill-system/skill-lifecycle.d.ts +1 -0
- package/dist/types/skills/tools/exec-tool.d.ts +1 -5
- package/dist/types/skills/tools/shell/command-compatibility.d.ts +3 -0
- package/dist/types/skills/tools/shell/index.d.ts +4 -3
- package/dist/types/skills/tools/shell/shell-exec.d.ts +15 -8
- package/dist/types/skills/tools/shell/shell-provider.d.ts +26 -0
- package/dist/types/transport/acp-server.d.ts +4 -1
- package/dist/types/transport/host-community-client.d.ts +0 -1
- package/dist/types/transport/host-request-client.d.ts +1 -0
- package/dist/types/transport/host-run-state-client.d.ts +1 -1
- package/dist/workflow-host.js +6 -6
- package/package.json +4 -3
- package/dist/skills/mcp/astraclaw-native-mcp-server.js +0 -12
- package/dist/types/cli/core-tools/checkpoint-tool-bootstrap.d.ts +0 -9
- package/dist/types/cli/core-tools/checkpoint-tool-service.d.ts +0 -7
- package/dist/types/cli/core-tools/config-tool-bootstrap.d.ts +0 -7
- package/dist/types/cli/core-tools/config-tool-service.d.ts +0 -13
- package/dist/types/cli/core-tools/monitor-tool-bootstrap.d.ts +0 -7
- package/dist/types/cli/core-tools/monitor-tool-service.d.ts +0 -6
- package/dist/types/cli/dev-tool-bootstrap.d.ts +0 -9
- package/dist/types/cli/dev-tools/dev-tool-bootstrap-service.d.ts +0 -7
- package/dist/types/cli/dev-tools/dev-tool-registry.d.ts +0 -8
- package/dist/types/cli/dev-tools/incremental-repo-map.d.ts +0 -81
- package/dist/types/cli/dev-tools/lsp-supervisor.d.ts +0 -59
- package/dist/types/cli/dev-tools/lsp-tool-service.d.ts +0 -7
- package/dist/types/cli/handlers/media-handler.d.ts +0 -19
- package/dist/types/cli/handlers/skills-handler.d.ts +0 -37
- package/dist/types/cli/industrial-runtime-store.d.ts +0 -16
- package/dist/types/cli/media-capability-schema.d.ts +0 -49
- package/dist/types/cli/media-file-api-service.d.ts +0 -73
- package/dist/types/cli/media-file-tool-service.d.ts +0 -13
- package/dist/types/cli/media-inline.d.ts +0 -31
- package/dist/types/cli/media-runtime-facade.d.ts +0 -51
- package/dist/types/cli/media-understanding.d.ts +0 -102
- package/dist/types/cli/skill-invocation-service.d.ts +0 -10
- package/dist/types/cli/skill-tools-bootstrap.d.ts +0 -35
- package/dist/types/cli/skills-query-service.d.ts +0 -41
- package/dist/types/cli/tool-bootstrap-media-registration.d.ts +0 -20
- package/dist/types/cli/turn-media-setup.d.ts +0 -34
- package/dist/types/cli/turn-preview-browser-setup.d.ts +0 -15
- package/dist/types/runtime/infra/astraclaw-capabilities.d.ts +0 -33
- package/dist/types/runtime/infra/builtin-skills-seed.d.ts +0 -31
- package/dist/types/runtime/infra/checkpoint-backend.d.ts +0 -9
- package/dist/types/runtime/infra/industrial-runtime-session-server.d.ts +0 -20
- package/dist/types/runtime/infra/migrate-project-skills.d.ts +0 -24
- package/dist/types/runtime/infra/project-skill-manifest.d.ts +0 -21
- package/dist/types/runtime/infra/skill-resolver.d.ts +0 -74
- package/dist/types/runtime/infra/worktree-backend.d.ts +0 -86
- package/dist/types/runtime/ports/checkpoint-contracts.d.ts +0 -19
- package/dist/types/runtime/ports/worktree-contracts.d.ts +0 -22
- package/dist/types/skills/mcp/astraclaw-native-mcp-server.d.ts +0 -1
- package/dist/types/skills/memory/memory-tool.d.ts +0 -87
- package/dist/types/skills/tools/checkpoint-tool.d.ts +0 -66
- package/dist/types/skills/tools/config-tool.d.ts +0 -61
- package/dist/types/skills/tools/file-management-tool.d.ts +0 -90
- package/dist/types/skills/tools/image-generate-tool.d.ts +0 -98
- package/dist/types/skills/tools/instructions-tool.d.ts +0 -65
- package/dist/types/skills/tools/lsp-tool.d.ts +0 -153
- package/dist/types/skills/tools/media-cancel-tool.d.ts +0 -30
- package/dist/types/skills/tools/media-understand-tool.d.ts +0 -28
- package/dist/types/skills/tools/monitor-tool.d.ts +0 -113
- package/dist/types/skills/tools/music-generate-tool.d.ts +0 -80
- package/dist/types/skills/tools/notebook-edit-tool.d.ts +0 -15
- package/dist/types/skills/tools/preview-browser-tool.d.ts +0 -136
- package/dist/types/skills/tools/repo-map-tool.d.ts +0 -52
- package/dist/types/skills/tools/skill-tool.d.ts +0 -142
- package/dist/types/skills/tools/sleep-tool.d.ts +0 -49
- package/dist/types/skills/tools/stt-tool.d.ts +0 -33
- package/dist/types/skills/tools/subagent-decision-tool.d.ts +0 -15
- package/dist/types/skills/tools/three-d-generate-tool.d.ts +0 -46
- package/dist/types/skills/tools/tts-tool.d.ts +0 -50
- package/dist/types/skills/tools/video-edit-tool.d.ts +0 -72
- package/dist/types/skills/tools/video-generate-tool.d.ts +0 -162
- package/dist/types/skills/tools/video-merge-tool.d.ts +0 -105
- package/dist/types/skills/tools/video-upscale-tool.d.ts +0 -45
- package/dist/types/skills/tools/voice-clone-tool.d.ts +0 -40
- package/dist/types/skills/tools/worktree-tool.d.ts +0 -69
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import type { PortableTool } from "../portable-tool.js";
|
|
2
|
-
export declare const THREE_D_GENERATE_TOOL_NAME: "three_d_generate";
|
|
3
|
-
export interface ThreeDGenerateToolParams {
|
|
4
|
-
prompt: string;
|
|
5
|
-
image_url?: string;
|
|
6
|
-
output_format?: string;
|
|
7
|
-
seed?: number;
|
|
8
|
-
}
|
|
9
|
-
export declare const THREE_D_GENERATE_TOOL_SCHEMA: {
|
|
10
|
-
readonly type: "object";
|
|
11
|
-
readonly properties: {
|
|
12
|
-
readonly prompt: {
|
|
13
|
-
readonly type: "string";
|
|
14
|
-
readonly description: string;
|
|
15
|
-
};
|
|
16
|
-
readonly image_url: {
|
|
17
|
-
readonly type: "string";
|
|
18
|
-
readonly description: string;
|
|
19
|
-
};
|
|
20
|
-
readonly output_format: {
|
|
21
|
-
readonly type: "string";
|
|
22
|
-
readonly description: "3D model output format: 'glb' (default), 'obj', 'usd', 'usdz'.";
|
|
23
|
-
};
|
|
24
|
-
readonly seed: {
|
|
25
|
-
readonly type: "number";
|
|
26
|
-
readonly description: "Random seed for reproducible generation.";
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
readonly required: readonly ["prompt"];
|
|
30
|
-
};
|
|
31
|
-
export interface ThreeDGenerateResult {
|
|
32
|
-
mediaUrls: string[];
|
|
33
|
-
model?: string;
|
|
34
|
-
durationMs?: number;
|
|
35
|
-
metadata?: Record<string, unknown>;
|
|
36
|
-
}
|
|
37
|
-
/** Deps injected by the host runtime for 3D generation. */
|
|
38
|
-
export interface ThreeDGenerateToolDeps {
|
|
39
|
-
generate3D(params: {
|
|
40
|
-
prompt: string;
|
|
41
|
-
imageUrl?: string;
|
|
42
|
-
outputFormat?: string;
|
|
43
|
-
seed?: number;
|
|
44
|
-
}): Promise<ThreeDGenerateResult>;
|
|
45
|
-
}
|
|
46
|
-
export declare function createThreeDGenerateTool(deps: ThreeDGenerateToolDeps): PortableTool<ThreeDGenerateToolParams>;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import type { PortableTool } from "../portable-tool.js";
|
|
2
|
-
export declare const TTS_TOOL_NAME: "tts";
|
|
3
|
-
export interface TtsToolParams {
|
|
4
|
-
text: string;
|
|
5
|
-
channel?: string;
|
|
6
|
-
voice?: string;
|
|
7
|
-
speed?: number;
|
|
8
|
-
}
|
|
9
|
-
export declare const TTS_TOOL_SCHEMA: {
|
|
10
|
-
readonly type: "object";
|
|
11
|
-
readonly properties: {
|
|
12
|
-
readonly text: {
|
|
13
|
-
readonly type: "string";
|
|
14
|
-
readonly description: "Text to convert to speech.";
|
|
15
|
-
};
|
|
16
|
-
readonly channel: {
|
|
17
|
-
readonly type: "string";
|
|
18
|
-
readonly description: "Optional channel id to pick output format (e.g. telegram).";
|
|
19
|
-
};
|
|
20
|
-
readonly voice: {
|
|
21
|
-
readonly type: "string";
|
|
22
|
-
readonly description: string;
|
|
23
|
-
};
|
|
24
|
-
readonly speed: {
|
|
25
|
-
readonly type: "number";
|
|
26
|
-
readonly description: "Speech speed multiplier (0.25-4.0). Default is 1.0.";
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
readonly required: readonly ["text"];
|
|
30
|
-
};
|
|
31
|
-
export interface TtsResult {
|
|
32
|
-
audioPath: string;
|
|
33
|
-
provider?: string;
|
|
34
|
-
voiceCompatible?: boolean;
|
|
35
|
-
mediaUrls: string[];
|
|
36
|
-
}
|
|
37
|
-
/** Deps injected by the host runtime for TTS. */
|
|
38
|
-
export interface TtsToolDeps {
|
|
39
|
-
/**
|
|
40
|
-
* Convert text to speech via the configured backend.
|
|
41
|
-
* The host handles voice selection, format conversion, and storage.
|
|
42
|
-
*/
|
|
43
|
-
textToSpeech(params: {
|
|
44
|
-
text: string;
|
|
45
|
-
channel?: string;
|
|
46
|
-
voice?: string;
|
|
47
|
-
speed?: number;
|
|
48
|
-
}): Promise<TtsResult>;
|
|
49
|
-
}
|
|
50
|
-
export declare function createTtsTool(deps: TtsToolDeps): PortableTool<TtsToolParams>;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import type { PortableTool } from "../portable-tool.js";
|
|
2
|
-
export declare const VIDEO_EDIT_TOOL_NAME: "video_edit";
|
|
3
|
-
export interface VideoEditToolParams {
|
|
4
|
-
prompt: string;
|
|
5
|
-
source_videos: string[];
|
|
6
|
-
reference_images?: string[];
|
|
7
|
-
duration?: number;
|
|
8
|
-
aspect_ratio?: string;
|
|
9
|
-
resolution?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare const VIDEO_EDIT_TOOL_SCHEMA: {
|
|
12
|
-
readonly type: "object";
|
|
13
|
-
readonly properties: {
|
|
14
|
-
readonly prompt: {
|
|
15
|
-
readonly type: "string";
|
|
16
|
-
readonly description: string;
|
|
17
|
-
};
|
|
18
|
-
readonly source_videos: {
|
|
19
|
-
readonly type: "array";
|
|
20
|
-
readonly items: {
|
|
21
|
-
readonly type: "string";
|
|
22
|
-
};
|
|
23
|
-
readonly minItems: 1;
|
|
24
|
-
readonly maxItems: 3;
|
|
25
|
-
readonly description: string;
|
|
26
|
-
};
|
|
27
|
-
readonly reference_images: {
|
|
28
|
-
readonly type: "array";
|
|
29
|
-
readonly items: {
|
|
30
|
-
readonly type: "string";
|
|
31
|
-
};
|
|
32
|
-
readonly maxItems: 9;
|
|
33
|
-
readonly description: string;
|
|
34
|
-
};
|
|
35
|
-
readonly duration: {
|
|
36
|
-
readonly type: "number";
|
|
37
|
-
readonly minimum: 4;
|
|
38
|
-
readonly maximum: 15;
|
|
39
|
-
readonly description: "Output duration in seconds (4-15s). Default: same as source.";
|
|
40
|
-
};
|
|
41
|
-
readonly aspect_ratio: {
|
|
42
|
-
readonly type: "string";
|
|
43
|
-
readonly description: "Output aspect ratio: 16:9, 9:16, 1:1, 4:3, 3:4, 21:9. Default: same as source.";
|
|
44
|
-
};
|
|
45
|
-
readonly resolution: {
|
|
46
|
-
readonly type: "string";
|
|
47
|
-
readonly description: "Output resolution: '480p' or '720p'. Default: '720p'.";
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
readonly required: readonly ["prompt", "source_videos"];
|
|
51
|
-
};
|
|
52
|
-
export interface VideoEditResult {
|
|
53
|
-
mediaUrls: string[];
|
|
54
|
-
model?: string;
|
|
55
|
-
durationMs?: number;
|
|
56
|
-
}
|
|
57
|
-
/** Deps injected by the host runtime for video editing. */
|
|
58
|
-
export interface VideoEditToolDeps {
|
|
59
|
-
/**
|
|
60
|
-
* Edit a video via the configured backend (Seedance 2.0, etc.).
|
|
61
|
-
* The host handles URL resolution, model routing, and storage.
|
|
62
|
-
*/
|
|
63
|
-
editVideo(params: {
|
|
64
|
-
prompt: string;
|
|
65
|
-
sourceVideos: string[];
|
|
66
|
-
referenceImages?: string[];
|
|
67
|
-
duration?: number;
|
|
68
|
-
aspectRatio?: string;
|
|
69
|
-
resolution?: string;
|
|
70
|
-
}): Promise<VideoEditResult>;
|
|
71
|
-
}
|
|
72
|
-
export declare function createVideoEditTool(deps: VideoEditToolDeps): PortableTool<VideoEditToolParams>;
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
import type { PortableTool } from "../portable-tool.js";
|
|
2
|
-
export declare const VIDEO_GENERATE_TOOL_NAME: "video_generate";
|
|
3
|
-
export interface VideoGenerateToolParams {
|
|
4
|
-
prompt: string;
|
|
5
|
-
purpose?: string;
|
|
6
|
-
style?: string;
|
|
7
|
-
image_url?: string;
|
|
8
|
-
reference_videos?: string[];
|
|
9
|
-
reference_audios?: string[];
|
|
10
|
-
generate_audio?: boolean;
|
|
11
|
-
aspect_ratio?: string;
|
|
12
|
-
duration?: number;
|
|
13
|
-
resolution?: string;
|
|
14
|
-
fps?: number;
|
|
15
|
-
seed?: number;
|
|
16
|
-
camera_fixed?: boolean;
|
|
17
|
-
return_last_frame?: boolean;
|
|
18
|
-
draft?: boolean;
|
|
19
|
-
service_tier?: "default" | "flex";
|
|
20
|
-
callback_url?: string;
|
|
21
|
-
safety_identifier?: string;
|
|
22
|
-
execution_expires_after?: number;
|
|
23
|
-
video_tools?: string[];
|
|
24
|
-
}
|
|
25
|
-
export declare const VIDEO_GENERATE_TOOL_SCHEMA: {
|
|
26
|
-
readonly type: "object";
|
|
27
|
-
readonly properties: {
|
|
28
|
-
readonly prompt: {
|
|
29
|
-
readonly type: "string";
|
|
30
|
-
readonly description: "Video generation prompt. MUST be in English. Include scene, movement, camera motion, lighting, style.";
|
|
31
|
-
};
|
|
32
|
-
readonly purpose: {
|
|
33
|
-
readonly type: "string";
|
|
34
|
-
readonly description: "Intended use: 'social-media', 'short-video', 'presentation', etc.";
|
|
35
|
-
};
|
|
36
|
-
readonly style: {
|
|
37
|
-
readonly type: "string";
|
|
38
|
-
readonly description: "Visual style: 'cinematic', 'anime', 'watercolor', etc.";
|
|
39
|
-
};
|
|
40
|
-
readonly image_url: {
|
|
41
|
-
readonly type: "string";
|
|
42
|
-
readonly description: string;
|
|
43
|
-
};
|
|
44
|
-
readonly reference_videos: {
|
|
45
|
-
readonly type: "array";
|
|
46
|
-
readonly items: {
|
|
47
|
-
readonly type: "string";
|
|
48
|
-
};
|
|
49
|
-
readonly maxItems: 3;
|
|
50
|
-
readonly description: string;
|
|
51
|
-
};
|
|
52
|
-
readonly reference_audios: {
|
|
53
|
-
readonly type: "array";
|
|
54
|
-
readonly items: {
|
|
55
|
-
readonly type: "string";
|
|
56
|
-
};
|
|
57
|
-
readonly maxItems: 3;
|
|
58
|
-
readonly description: string;
|
|
59
|
-
};
|
|
60
|
-
readonly generate_audio: {
|
|
61
|
-
readonly type: "boolean";
|
|
62
|
-
readonly description: string;
|
|
63
|
-
};
|
|
64
|
-
readonly aspect_ratio: {
|
|
65
|
-
readonly type: "string";
|
|
66
|
-
readonly description: "Video aspect ratio: '9:16' (vertical), '16:9' (horizontal), '1:1' (square). Default: '16:9'.";
|
|
67
|
-
};
|
|
68
|
-
readonly duration: {
|
|
69
|
-
readonly type: "number";
|
|
70
|
-
readonly minimum: 3;
|
|
71
|
-
readonly maximum: 15;
|
|
72
|
-
readonly description: string;
|
|
73
|
-
};
|
|
74
|
-
readonly resolution: {
|
|
75
|
-
readonly type: "string";
|
|
76
|
-
readonly description: "Output resolution: '480p', '720p', '1080p'. Default: '720p'.";
|
|
77
|
-
};
|
|
78
|
-
readonly fps: {
|
|
79
|
-
readonly type: "number";
|
|
80
|
-
readonly description: "Frame rate: 24 or 30 fps. Default: provider-specific.";
|
|
81
|
-
};
|
|
82
|
-
readonly seed: {
|
|
83
|
-
readonly type: "number";
|
|
84
|
-
readonly description: "Random seed for reproducible generation.";
|
|
85
|
-
};
|
|
86
|
-
readonly camera_fixed: {
|
|
87
|
-
readonly type: "boolean";
|
|
88
|
-
readonly description: "Lock camera position (Seedance 1.0/1.5 only, not supported for img2video).";
|
|
89
|
-
};
|
|
90
|
-
readonly return_last_frame: {
|
|
91
|
-
readonly type: "boolean";
|
|
92
|
-
readonly description: "Return last frame URL for chaining continuous video segments.";
|
|
93
|
-
};
|
|
94
|
-
readonly draft: {
|
|
95
|
-
readonly type: "boolean";
|
|
96
|
-
readonly description: "Draft mode: low-cost preview (Seedance 1.5 pro only).";
|
|
97
|
-
};
|
|
98
|
-
readonly service_tier: {
|
|
99
|
-
readonly type: "string";
|
|
100
|
-
readonly enum: readonly ["default", "flex"];
|
|
101
|
-
readonly description: "'default' (online, fast) or 'flex' (offline, ~50% cost). Not all models support flex.";
|
|
102
|
-
};
|
|
103
|
-
readonly callback_url: {
|
|
104
|
-
readonly type: "string";
|
|
105
|
-
readonly description: "Webhook URL for async task completion notification.";
|
|
106
|
-
};
|
|
107
|
-
readonly safety_identifier: {
|
|
108
|
-
readonly type: "string";
|
|
109
|
-
readonly description: "End-user safety identifier for content moderation tracking.";
|
|
110
|
-
};
|
|
111
|
-
readonly execution_expires_after: {
|
|
112
|
-
readonly type: "number";
|
|
113
|
-
readonly description: "Task expiration in seconds (for offline/flex scheduling).";
|
|
114
|
-
};
|
|
115
|
-
readonly video_tools: {
|
|
116
|
-
readonly type: "array";
|
|
117
|
-
readonly items: {
|
|
118
|
-
readonly type: "string";
|
|
119
|
-
};
|
|
120
|
-
readonly description: "Video-level builtin tools, e.g. ['web_search'] (Seedance 2.0 online search).";
|
|
121
|
-
};
|
|
122
|
-
};
|
|
123
|
-
readonly required: readonly ["prompt"];
|
|
124
|
-
};
|
|
125
|
-
export interface VideoGenerateResult {
|
|
126
|
-
mediaUrls: string[];
|
|
127
|
-
model?: string;
|
|
128
|
-
durationMs?: number;
|
|
129
|
-
lastFrameUrl?: string;
|
|
130
|
-
taskId?: string;
|
|
131
|
-
}
|
|
132
|
-
/** Deps injected by the host runtime for video generation. */
|
|
133
|
-
export interface VideoGenerateToolDeps {
|
|
134
|
-
/**
|
|
135
|
-
* Generate a video clip via the configured backend.
|
|
136
|
-
* The host handles model selection, duration snapping, failover,
|
|
137
|
-
* watermark, and local storage.
|
|
138
|
-
*/
|
|
139
|
-
generateVideo(params: {
|
|
140
|
-
prompt: string;
|
|
141
|
-
purpose?: string;
|
|
142
|
-
style?: string;
|
|
143
|
-
imageUrl?: string;
|
|
144
|
-
referenceVideos?: string[];
|
|
145
|
-
referenceAudios?: string[];
|
|
146
|
-
generateAudio?: boolean;
|
|
147
|
-
aspectRatio?: string;
|
|
148
|
-
duration?: number;
|
|
149
|
-
resolution?: string;
|
|
150
|
-
fps?: number;
|
|
151
|
-
seed?: number;
|
|
152
|
-
cameraFixed?: boolean;
|
|
153
|
-
returnLastFrame?: boolean;
|
|
154
|
-
draft?: boolean;
|
|
155
|
-
serviceTier?: "default" | "flex";
|
|
156
|
-
callbackUrl?: string;
|
|
157
|
-
safetyIdentifier?: string;
|
|
158
|
-
executionExpiresAfterSeconds?: number;
|
|
159
|
-
videoTools?: string[];
|
|
160
|
-
}): Promise<VideoGenerateResult>;
|
|
161
|
-
}
|
|
162
|
-
export declare function createVideoGenerateTool(deps: VideoGenerateToolDeps): PortableTool<VideoGenerateToolParams>;
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import type { PortableTool } from "../portable-tool.js";
|
|
2
|
-
export declare const VIDEO_MERGE_TOOL_NAME: "video_merge";
|
|
3
|
-
export interface VideoMergeClip {
|
|
4
|
-
video: string;
|
|
5
|
-
audio?: string;
|
|
6
|
-
trimStart?: number;
|
|
7
|
-
trimEnd?: number;
|
|
8
|
-
}
|
|
9
|
-
export interface VideoMergeToolParams {
|
|
10
|
-
clips: VideoMergeClip[];
|
|
11
|
-
transition?: string;
|
|
12
|
-
transitionDuration?: number;
|
|
13
|
-
subtitles?: string;
|
|
14
|
-
bgm?: string;
|
|
15
|
-
bgmVolume?: number;
|
|
16
|
-
outputResolution?: string;
|
|
17
|
-
outputFps?: number;
|
|
18
|
-
}
|
|
19
|
-
export declare const VIDEO_MERGE_TOOL_SCHEMA: {
|
|
20
|
-
readonly type: "object";
|
|
21
|
-
readonly properties: {
|
|
22
|
-
readonly clips: {
|
|
23
|
-
readonly type: "array";
|
|
24
|
-
readonly items: {
|
|
25
|
-
readonly type: "object";
|
|
26
|
-
readonly properties: {
|
|
27
|
-
readonly video: {
|
|
28
|
-
readonly type: "string";
|
|
29
|
-
readonly description: "Video URL or file path. MUST be publicly accessible HTTP/HTTPS URL. Use file_upload tool first if local file.";
|
|
30
|
-
};
|
|
31
|
-
readonly audio: {
|
|
32
|
-
readonly type: "string";
|
|
33
|
-
readonly description: "Narration audio file path (from TTS).";
|
|
34
|
-
};
|
|
35
|
-
readonly trimStart: {
|
|
36
|
-
readonly type: "number";
|
|
37
|
-
readonly description: "Trim start in seconds (default 0).";
|
|
38
|
-
};
|
|
39
|
-
readonly trimEnd: {
|
|
40
|
-
readonly type: "number";
|
|
41
|
-
readonly description: "Trim end in seconds (default: full).";
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
readonly required: readonly ["video"];
|
|
45
|
-
};
|
|
46
|
-
readonly minItems: 2;
|
|
47
|
-
readonly description: "Array of video clips to merge, in order.";
|
|
48
|
-
};
|
|
49
|
-
readonly transition: {
|
|
50
|
-
readonly type: "string";
|
|
51
|
-
readonly description: "Transition effect: 'crossfade' (default), 'fade', 'wipeleft', 'cut', 'dissolve', etc.";
|
|
52
|
-
};
|
|
53
|
-
readonly transitionDuration: {
|
|
54
|
-
readonly type: "number";
|
|
55
|
-
readonly description: "Transition duration in seconds (0.1-2.0, default 0.5).";
|
|
56
|
-
};
|
|
57
|
-
readonly subtitles: {
|
|
58
|
-
readonly type: "string";
|
|
59
|
-
readonly description: "Path to SRT subtitle file to burn-in.";
|
|
60
|
-
};
|
|
61
|
-
readonly bgm: {
|
|
62
|
-
readonly type: "string";
|
|
63
|
-
readonly description: "Background music file path.";
|
|
64
|
-
};
|
|
65
|
-
readonly bgmVolume: {
|
|
66
|
-
readonly type: "number";
|
|
67
|
-
readonly description: "BGM volume (0.0-1.0, default 0.15).";
|
|
68
|
-
};
|
|
69
|
-
readonly outputResolution: {
|
|
70
|
-
readonly type: "string";
|
|
71
|
-
readonly description: "Output resolution: '1920x1080', '1080x1920', etc. Default: auto.";
|
|
72
|
-
};
|
|
73
|
-
readonly outputFps: {
|
|
74
|
-
readonly type: "number";
|
|
75
|
-
readonly description: "Output FPS (default 30).";
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
readonly required: readonly ["clips"];
|
|
79
|
-
};
|
|
80
|
-
export interface VideoMergeResult {
|
|
81
|
-
localPath: string;
|
|
82
|
-
servePath: string;
|
|
83
|
-
durationSec: number;
|
|
84
|
-
clipCount: number;
|
|
85
|
-
mediaUrls: string[];
|
|
86
|
-
}
|
|
87
|
-
/** Deps injected by the host runtime for video merging. */
|
|
88
|
-
export interface VideoMergeToolDeps {
|
|
89
|
-
/**
|
|
90
|
-
* Merge video clips via the configured backend (ffmpeg, relay, etc.).
|
|
91
|
-
* The host handles resolution normalization, transition rendering,
|
|
92
|
-
* subtitle burn-in, BGM mixing, and local storage.
|
|
93
|
-
*/
|
|
94
|
-
mergeVideos(params: {
|
|
95
|
-
clips: VideoMergeClip[];
|
|
96
|
-
transition?: string;
|
|
97
|
-
transitionDuration?: number;
|
|
98
|
-
subtitles?: string;
|
|
99
|
-
bgm?: string;
|
|
100
|
-
bgmVolume?: number;
|
|
101
|
-
outputResolution?: string;
|
|
102
|
-
outputFps?: number;
|
|
103
|
-
}): Promise<VideoMergeResult>;
|
|
104
|
-
}
|
|
105
|
-
export declare function createVideoMergeTool(deps: VideoMergeToolDeps): PortableTool<VideoMergeToolParams>;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import type { PortableTool } from "../portable-tool.js";
|
|
2
|
-
export declare const VIDEO_UPSCALE_TOOL_NAME: "video_upscale";
|
|
3
|
-
export interface VideoUpscaleToolParams {
|
|
4
|
-
video: string;
|
|
5
|
-
targetResolution?: string;
|
|
6
|
-
sharpness?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare const VIDEO_UPSCALE_TOOL_SCHEMA: {
|
|
9
|
-
readonly type: "object";
|
|
10
|
-
readonly properties: {
|
|
11
|
-
readonly video: {
|
|
12
|
-
readonly type: "string";
|
|
13
|
-
readonly description: string;
|
|
14
|
-
};
|
|
15
|
-
readonly targetResolution: {
|
|
16
|
-
readonly type: "string";
|
|
17
|
-
readonly description: "Target resolution: '1080p' (default, 1920x1080/1080x1920), '2k' (2560x1440/1440x2560).";
|
|
18
|
-
};
|
|
19
|
-
readonly sharpness: {
|
|
20
|
-
readonly type: "string";
|
|
21
|
-
readonly description: "Sharpening intensity: 'light' (default), 'medium', 'strong'.";
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
readonly required: readonly ["video"];
|
|
25
|
-
};
|
|
26
|
-
export interface VideoUpscaleResult {
|
|
27
|
-
localPath: string;
|
|
28
|
-
servePath: string;
|
|
29
|
-
resolution: string;
|
|
30
|
-
durationSec: number;
|
|
31
|
-
mediaUrls: string[];
|
|
32
|
-
}
|
|
33
|
-
/** Deps injected by the host runtime for video upscaling. */
|
|
34
|
-
export interface VideoUpscaleToolDeps {
|
|
35
|
-
/**
|
|
36
|
-
* Upscale a video via the configured backend (ffmpeg Lanczos + unsharp mask, etc.).
|
|
37
|
-
* The host handles orientation detection, filter chain, and storage.
|
|
38
|
-
*/
|
|
39
|
-
upscaleVideo(params: {
|
|
40
|
-
video: string;
|
|
41
|
-
targetResolution?: string;
|
|
42
|
-
sharpness?: string;
|
|
43
|
-
}): Promise<VideoUpscaleResult>;
|
|
44
|
-
}
|
|
45
|
-
export declare function createVideoUpscaleTool(deps: VideoUpscaleToolDeps): PortableTool<VideoUpscaleToolParams>;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import type { PortableTool } from "../portable-tool.js";
|
|
2
|
-
export declare const VOICE_CLONE_TOOL_NAME: "voice_clone";
|
|
3
|
-
export interface VoiceCloneToolParams {
|
|
4
|
-
text: string;
|
|
5
|
-
sample_audio_url: string;
|
|
6
|
-
speed?: number;
|
|
7
|
-
}
|
|
8
|
-
export declare const VOICE_CLONE_TOOL_SCHEMA: {
|
|
9
|
-
readonly type: "object";
|
|
10
|
-
readonly properties: {
|
|
11
|
-
readonly text: {
|
|
12
|
-
readonly type: "string";
|
|
13
|
-
readonly description: "Text to synthesize in the cloned voice.";
|
|
14
|
-
};
|
|
15
|
-
readonly sample_audio_url: {
|
|
16
|
-
readonly type: "string";
|
|
17
|
-
readonly description: string;
|
|
18
|
-
};
|
|
19
|
-
readonly speed: {
|
|
20
|
-
readonly type: "number";
|
|
21
|
-
readonly description: "Speech speed multiplier (0.5-2.0). Default is 1.0.";
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
readonly required: readonly ["text", "sample_audio_url"];
|
|
25
|
-
};
|
|
26
|
-
export interface VoiceCloneResult {
|
|
27
|
-
mediaUrls: string[];
|
|
28
|
-
model?: string;
|
|
29
|
-
voiceId?: string;
|
|
30
|
-
durationMs?: number;
|
|
31
|
-
}
|
|
32
|
-
/** Deps injected by the host runtime for voice cloning. */
|
|
33
|
-
export interface VoiceCloneToolDeps {
|
|
34
|
-
cloneVoice(params: {
|
|
35
|
-
text: string;
|
|
36
|
-
sampleAudioUrl: string;
|
|
37
|
-
speed?: number;
|
|
38
|
-
}): Promise<VoiceCloneResult>;
|
|
39
|
-
}
|
|
40
|
-
export declare function createVoiceCloneTool(deps: VoiceCloneToolDeps): PortableTool<VoiceCloneToolParams>;
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import type { PortableTool } from "../portable-tool.js";
|
|
2
|
-
export declare const WORKTREE_TOOL_NAME: "worktree";
|
|
3
|
-
export type WorktreeAction = "enter" | "exit" | "list";
|
|
4
|
-
export interface WorktreeToolParams {
|
|
5
|
-
/** Action: enter (create worktree), exit (leave worktree), list (show all) */
|
|
6
|
-
action: WorktreeAction;
|
|
7
|
-
/** Branch/worktree name (for enter). kebab-case, max 64 chars. */
|
|
8
|
-
name?: string;
|
|
9
|
-
/** For exit: 'keep' retains the worktree, 'remove' deletes it */
|
|
10
|
-
exitAction?: "keep" | "remove";
|
|
11
|
-
/** Required true to discard uncommitted changes on exit with remove */
|
|
12
|
-
discardChanges?: boolean;
|
|
13
|
-
}
|
|
14
|
-
export declare const WORKTREE_TOOL_SCHEMA: {
|
|
15
|
-
readonly type: "object";
|
|
16
|
-
readonly properties: {
|
|
17
|
-
readonly action: {
|
|
18
|
-
readonly type: "string";
|
|
19
|
-
readonly enum: readonly ["enter", "exit", "list"];
|
|
20
|
-
readonly description: string;
|
|
21
|
-
};
|
|
22
|
-
readonly name: {
|
|
23
|
-
readonly type: "string";
|
|
24
|
-
readonly description: string;
|
|
25
|
-
};
|
|
26
|
-
readonly exitAction: {
|
|
27
|
-
readonly type: "string";
|
|
28
|
-
readonly enum: readonly ["keep", "remove"];
|
|
29
|
-
readonly description: "For exit: 'keep' retains the worktree for later use; 'remove' deletes it.";
|
|
30
|
-
};
|
|
31
|
-
readonly discardChanges: {
|
|
32
|
-
readonly type: "boolean";
|
|
33
|
-
readonly description: string;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
readonly required: readonly ["action"];
|
|
37
|
-
};
|
|
38
|
-
export interface WorktreeInfo {
|
|
39
|
-
name: string;
|
|
40
|
-
path: string;
|
|
41
|
-
branch: string;
|
|
42
|
-
isCurrent: boolean;
|
|
43
|
-
hasChanges: boolean;
|
|
44
|
-
unpushedCommits: number;
|
|
45
|
-
}
|
|
46
|
-
export interface WorktreeResult {
|
|
47
|
-
success: boolean;
|
|
48
|
-
worktree?: WorktreeInfo;
|
|
49
|
-
worktrees?: WorktreeInfo[];
|
|
50
|
-
previousCwd?: string;
|
|
51
|
-
error?: string;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Host-provided git worktree backend.
|
|
55
|
-
* Manages worktree creation, switching, and cleanup.
|
|
56
|
-
*/
|
|
57
|
-
export interface WorktreeToolDeps {
|
|
58
|
-
/** Create a new worktree and switch session cwd */
|
|
59
|
-
enterWorktree(name?: string): Promise<WorktreeResult>;
|
|
60
|
-
/** Exit worktree (keep or remove) */
|
|
61
|
-
exitWorktree(action: "keep" | "remove", discardChanges?: boolean): Promise<WorktreeResult>;
|
|
62
|
-
/** List all worktrees */
|
|
63
|
-
listWorktrees(): Promise<WorktreeResult>;
|
|
64
|
-
/** Check if currently in a worktree */
|
|
65
|
-
isInWorktree(): boolean;
|
|
66
|
-
/** Get current worktree info */
|
|
67
|
-
currentWorktree?(): WorktreeInfo | null;
|
|
68
|
-
}
|
|
69
|
-
export declare function createWorktreeTool(deps: WorktreeToolDeps): PortableTool<WorktreeToolParams>;
|