@j-o-r/hello-dave 0.1.1 → 0.1.4
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/CHANGELOG.md +42 -25
- package/README.md +81 -221
- package/TODO.md +173 -35
- package/agents/agent_creator.js +105 -0
- package/agents/agent_creator.prompt.md +371 -0
- package/agents/ask_agent.js +64 -127
- package/agents/claude_agent.js +68 -0
- package/agents/code_agent.js +55 -135
- package/agents/code_agent.prompt.md +50 -0
- package/agents/echo_agent.js +76 -0
- package/agents/financial_expert.js +75 -0
- package/agents/gpt_agent.js +52 -103
- package/agents/gpt_code.js +81 -0
- package/agents/grok_agent.js +58 -114
- package/agents/minimax_agent.js +92 -0
- package/agents/mureka_agent.js +77 -0
- package/agents/planner_agent.js +172 -0
- package/agents/stability_agent.js +87 -0
- package/agents/test_agent.js +75 -157
- package/agents/weather_agent.js +73 -0
- package/agents/workflow_agent.js +189 -0
- package/bin/dave.js +436 -184
- package/docs/bin-dave.md +85 -35
- package/docs/cdn-ssh.md +100 -0
- package/docs/creating-agents.md +301 -0
- package/docs/creating-toolsets.md +336 -0
- package/docs/docs-organization.md +48 -0
- package/docs/project-overview.md +86 -51
- package/lib/API/elevenlabs.io/music.compose.md +441 -0
- package/lib/API/elevenlabs.io/music.create-composition-plan.md +370 -0
- package/lib/API/elevenlabs.io/music.stream.md +425 -0
- package/lib/API/lalal.ai/lalal.js +445 -0
- package/lib/API/lalal.ai/openapi.json +2614 -0
- package/lib/API/minimax/ImageToolset.js +82 -37
- package/lib/API/minimax/MusicToolset.js +125 -79
- package/lib/API/minimax/VideoToolset.js +170 -167
- package/lib/API/minimax/image.js +5 -1
- package/lib/API/minimax/music.js +210 -23
- package/lib/API/minimax/video.js +242 -53
- package/lib/API/mureka/MusicToolset.js +646 -0
- package/lib/API/mureka/README.md +41 -0
- package/lib/API/mureka/index.js +7 -0
- package/lib/API/mureka/music.js +658 -0
- package/lib/API/openai.com/index.js +7 -0
- package/lib/API/openai.com/{reponses/text.js → responses.js} +64 -18
- package/lib/API/openai.com/video.create.character.md +40 -0
- package/lib/API/openai.com/video.create.md +219 -0
- package/lib/API/openai.com/video.delete.md +44 -0
- package/lib/API/openai.com/video.download.md +31 -0
- package/lib/API/openai.com/video.edit.md +155 -0
- package/lib/API/openai.com/video.extend.md +166 -0
- package/lib/API/openai.com/video.fetch.character.md +43 -0
- package/lib/API/openai.com/video.js +784 -0
- package/lib/API/openai.com/video.list.md +201 -0
- package/lib/API/openai.com/video.remix.md +175 -0
- package/lib/API/openai.com/video.retrieve.md +139 -0
- package/lib/API/openai.com/videoToolset.js +616 -0
- package/lib/API/stability.ai/ImageToolset.js +131 -40
- package/lib/API/stability.ai/MusicToolset.js +79 -47
- package/lib/API/stability.ai/audio.js +63 -131
- package/lib/API/x.ai/chat.responses.md +1040 -0
- package/lib/API/x.ai/image.js +229 -59
- package/lib/API/x.ai/imageToolset.js +376 -0
- package/lib/API/x.ai/index.js +1 -1
- package/lib/API/x.ai/responses.js +9 -18
- package/lib/Agent.js +271 -0
- package/lib/Agent.js.old +284 -0
- package/lib/AgentLauncher.js +562 -0
- package/lib/Cli.js +87 -13
- package/lib/Prompt.js +23 -1
- package/lib/Session.js +5 -4
- package/lib/ToolSet.js +102 -6
- package/lib/agentLoader.js +369 -0
- package/lib/cdn.js +67 -231
- package/lib/{CdnToolset.js → cdnToolset.js} +47 -64
- package/lib/defaultToolsets.js +43 -0
- package/lib/fafs.js +1 -1
- package/lib/genericToolset.js +442 -119
- package/lib/handOffToolset.js +179 -0
- package/lib/index.js +34 -27
- package/lib/toolsetLoader.js +248 -0
- package/package.json +11 -5
- package/types/API/lalal.ai/lalal.d.ts +116 -0
- package/types/API/minimax/image.d.ts +2 -1
- package/types/API/minimax/music.d.ts +189 -26
- package/types/API/minimax/video.d.ts +100 -31
- package/types/API/mureka/index.d.ts +7 -0
- package/types/API/mureka/music.d.ts +472 -0
- package/types/API/openai.com/index.d.ts +7 -0
- package/types/API/openai.com/{reponses/text.d.ts → responses.d.ts} +11 -11
- package/types/API/openai.com/video.d.ts +409 -0
- package/types/API/openai.com/videoToolset.d.ts +24 -0
- package/types/API/stability.ai/audio.d.ts +14 -103
- package/types/API/stability.ai/image.d.ts +2 -2
- package/types/API/x.ai/image.d.ts +138 -26
- package/types/API/x.ai/imageToolset.d.ts +3 -0
- package/types/API/x.ai/index.d.ts +1 -1
- package/types/API/x.ai/responses.d.ts +4 -4
- package/types/Agent.d.ts +123 -0
- package/types/AgentLauncher.d.ts +222 -0
- package/types/Cli.d.ts +28 -8
- package/types/Prompt.d.ts +23 -5
- package/types/Session.d.ts +1 -1
- package/types/ToolSet.d.ts +10 -0
- package/types/agentLoader.d.ts +78 -0
- package/types/cdn.d.ts +15 -90
- package/types/defaultToolsets.d.ts +9 -0
- package/types/fafs.d.ts +1 -1
- package/types/genericToolset.d.ts +1 -1
- package/types/handOffToolset.d.ts +28 -0
- package/types/index.d.ts +19 -17
- package/types/toolsetLoader.d.ts +114 -0
- package/utils/format_log.js +101 -23
- package/utils/launch_agent.js +18 -0
- package/utils/list_sessions.sh +13 -5
- package/utils/search_sessions.sh +65 -29
- package/utils/toolsets.js +33 -0
- package/README.md.bak.1779452127 +0 -240
- package/agents/codeserver.sh +0 -47
- package/agents/daisy_agent.js +0 -173
- package/agents/docs_agent.js +0 -148
- package/agents/memory_agent.js +0 -263
- package/agents/minimax.js +0 -173
- package/agents/npm_agent.js +0 -202
- package/agents/prompt_agent.js +0 -133
- package/agents/readme_agent.js +0 -148
- package/agents/spawn_agent.js +0 -160
- package/agents/stability.js +0 -173
- package/agents/todo_agent.js +0 -175
- package/bin/codeDave +0 -58
- package/docs/agent-dave-websocket-protocol.md +0 -180
- package/docs/agent-manager.md +0 -244
- package/docs/codeserver-pattern.md +0 -191
- package/docs/generic-toolset.md +0 -326
- package/docs/howtos/agent-networking.md +0 -253
- package/docs/howtos/spawn-agents.md.bak +0 -200
- package/docs/howtos/spawn-agents.md.bak_new +0 -200
- package/docs/multi-agent-clusters.md +0 -265
- package/docs/music-toolsets.md +0 -137
- package/docs/path-resolution-best-practices.md +0 -104
- package/docs/plans/minimax-music-generation.md +0 -80
- package/docs/plans/unified-agent-architecture.md +0 -146
- package/docs/plans/websocket-streaming-plan.md.bak +0 -317
- package/docs/prompt/spawn_agent.md +0 -175
- package/docs/prompt/spawn_agent.md.bak +0 -201
- package/docs/prompt/task_clarification_and_documentation.md +0 -35
- package/docs/prompt-class.md +0 -141
- package/docs/todo-archive-infra-2026-04-21.md +0 -15
- package/docs/todo-archive-v0.0.8.md +0 -1
- package/docs/todo-archive-v0.1.0.md +0 -32
- package/docs/todo-archive.md +0 -44
- package/docs/tools-syntax-validation.md +0 -121
- package/docs/toolset.md +0 -164
- package/docs/xai-responses.md +0 -111
- package/docs/xai_collections.md +0 -106
- package/lib/API/x.ai/ImageToolset.js +0 -165
- package/lib/API/x.ai/text.js +0 -415
- package/lib/AgentClient.js +0 -248
- package/lib/AgentManager.js +0 -245
- package/lib/AgentServer.js +0 -404
- package/lib/wsCli.js +0 -287
- package/lib/wsIO.js +0 -90
- package/types/API/x.ai/text.d.ts +0 -286
- package/types/AgentClient.d.ts +0 -109
- package/types/AgentManager.d.ts +0 -100
- package/types/AgentServer.d.ts +0 -89
- package/types/wsCli.d.ts +0 -17
- package/types/wsIO.d.ts +0 -30
- package/utils/test.sh +0 -46
- /package/docs/{suggestions.md → _notes/token-counts.md} +0 -0
- /package/lib/API/openai.com/{reponses/MESSAGES.md → MESSAGES.md} +0 -0
- /package/types/API/{x.ai/ImageToolset.d.ts → mureka/MusicToolset.d.ts} +0 -0
- /package/types/{CdnToolset.d.ts → cdnToolset.d.ts} +0 -0
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
## Create an extension of a completed video.
|
|
2
|
+
[source](https://developers.openai.com/api/reference/resources/videos/methods/extend)
|
|
3
|
+
**post** `/videos/extensions`
|
|
4
|
+
|
|
5
|
+
Create an extension of a completed video.
|
|
6
|
+
|
|
7
|
+
### Body Parameters
|
|
8
|
+
|
|
9
|
+
- `prompt: string`
|
|
10
|
+
|
|
11
|
+
Updated text prompt that directs the extension generation.
|
|
12
|
+
|
|
13
|
+
- `seconds: VideoSeconds`
|
|
14
|
+
|
|
15
|
+
Length of the newly generated extension segment in seconds (allowed values: 4, 8, 12, 16, 20).
|
|
16
|
+
|
|
17
|
+
- `"4"`
|
|
18
|
+
|
|
19
|
+
- `"8"`
|
|
20
|
+
|
|
21
|
+
- `"12"`
|
|
22
|
+
|
|
23
|
+
- `video: object { id }`
|
|
24
|
+
|
|
25
|
+
Reference to the completed video to extend.
|
|
26
|
+
|
|
27
|
+
- `id: string`
|
|
28
|
+
|
|
29
|
+
The identifier of the completed video.
|
|
30
|
+
|
|
31
|
+
### Returns
|
|
32
|
+
|
|
33
|
+
- `Video object { id, completed_at, created_at, 10 more }`
|
|
34
|
+
|
|
35
|
+
Structured information describing a generated video job.
|
|
36
|
+
|
|
37
|
+
- `id: string`
|
|
38
|
+
|
|
39
|
+
Unique identifier for the video job.
|
|
40
|
+
|
|
41
|
+
- `completed_at: number`
|
|
42
|
+
|
|
43
|
+
Unix timestamp (seconds) for when the job completed, if finished.
|
|
44
|
+
|
|
45
|
+
- `created_at: number`
|
|
46
|
+
|
|
47
|
+
Unix timestamp (seconds) for when the job was created.
|
|
48
|
+
|
|
49
|
+
- `error: VideoCreateError`
|
|
50
|
+
|
|
51
|
+
Error payload that explains why generation failed, if applicable.
|
|
52
|
+
|
|
53
|
+
- `code: string`
|
|
54
|
+
|
|
55
|
+
A machine-readable error code that was returned.
|
|
56
|
+
|
|
57
|
+
- `message: string`
|
|
58
|
+
|
|
59
|
+
A human-readable description of the error that was returned.
|
|
60
|
+
|
|
61
|
+
- `expires_at: number`
|
|
62
|
+
|
|
63
|
+
Unix timestamp (seconds) for when the downloadable assets expire, if set.
|
|
64
|
+
|
|
65
|
+
- `model: VideoModel`
|
|
66
|
+
|
|
67
|
+
The video generation model that produced the job.
|
|
68
|
+
|
|
69
|
+
- `string`
|
|
70
|
+
|
|
71
|
+
- `"sora-2" or "sora-2-pro" or "sora-2-2025-10-06" or 2 more`
|
|
72
|
+
|
|
73
|
+
- `"sora-2"`
|
|
74
|
+
|
|
75
|
+
- `"sora-2-pro"`
|
|
76
|
+
|
|
77
|
+
- `"sora-2-2025-10-06"`
|
|
78
|
+
|
|
79
|
+
- `"sora-2-pro-2025-10-06"`
|
|
80
|
+
|
|
81
|
+
- `"sora-2-2025-12-08"`
|
|
82
|
+
|
|
83
|
+
- `object: "video"`
|
|
84
|
+
|
|
85
|
+
The object type, which is always `video`.
|
|
86
|
+
|
|
87
|
+
- `"video"`
|
|
88
|
+
|
|
89
|
+
- `progress: number`
|
|
90
|
+
|
|
91
|
+
Approximate completion percentage for the generation task.
|
|
92
|
+
|
|
93
|
+
- `prompt: string`
|
|
94
|
+
|
|
95
|
+
The prompt that was used to generate the video.
|
|
96
|
+
|
|
97
|
+
- `remixed_from_video_id: string`
|
|
98
|
+
|
|
99
|
+
Identifier of the source video if this video is a remix.
|
|
100
|
+
|
|
101
|
+
- `seconds: string`
|
|
102
|
+
|
|
103
|
+
Duration of the generated clip in seconds. For extensions, this is the stitched total duration.
|
|
104
|
+
|
|
105
|
+
- `size: VideoSize`
|
|
106
|
+
|
|
107
|
+
The resolution of the generated video.
|
|
108
|
+
|
|
109
|
+
- `"720x1280"`
|
|
110
|
+
|
|
111
|
+
- `"1280x720"`
|
|
112
|
+
|
|
113
|
+
- `"1024x1792"`
|
|
114
|
+
|
|
115
|
+
- `"1792x1024"`
|
|
116
|
+
|
|
117
|
+
- `status: "queued" or "in_progress" or "completed" or "failed"`
|
|
118
|
+
|
|
119
|
+
Current lifecycle status of the video job.
|
|
120
|
+
|
|
121
|
+
- `"queued"`
|
|
122
|
+
|
|
123
|
+
- `"in_progress"`
|
|
124
|
+
|
|
125
|
+
- `"completed"`
|
|
126
|
+
|
|
127
|
+
- `"failed"`
|
|
128
|
+
|
|
129
|
+
### Example
|
|
130
|
+
|
|
131
|
+
```http
|
|
132
|
+
curl https://api.openai.com/v1/videos/extensions \
|
|
133
|
+
-H 'Content-Type: application/json' \
|
|
134
|
+
-H "Authorization: Bearer $OPENAI_API_KEY" \
|
|
135
|
+
-d '{
|
|
136
|
+
"prompt": "x",
|
|
137
|
+
"seconds": "4",
|
|
138
|
+
"video": {
|
|
139
|
+
"id": "video_123"
|
|
140
|
+
}
|
|
141
|
+
}'
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
#### Response
|
|
145
|
+
|
|
146
|
+
```json
|
|
147
|
+
{
|
|
148
|
+
"id": "id",
|
|
149
|
+
"completed_at": 0,
|
|
150
|
+
"created_at": 0,
|
|
151
|
+
"error": {
|
|
152
|
+
"code": "code",
|
|
153
|
+
"message": "message"
|
|
154
|
+
},
|
|
155
|
+
"expires_at": 0,
|
|
156
|
+
"model": "sora-2",
|
|
157
|
+
"object": "video",
|
|
158
|
+
"progress": 0,
|
|
159
|
+
"prompt": "prompt",
|
|
160
|
+
"remixed_from_video_id": "remixed_from_video_id",
|
|
161
|
+
"seconds": "seconds",
|
|
162
|
+
"size": "720x1280",
|
|
163
|
+
"status": "queued"
|
|
164
|
+
}
|
|
165
|
+
```
|
|
166
|
+
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
## Fetch a character.
|
|
2
|
+
[source](https://developers.openai.com/api/reference/resources/videos/methods/get_character)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
**get** `/videos/characters/{character_id}`
|
|
6
|
+
|
|
7
|
+
Fetch a character.
|
|
8
|
+
|
|
9
|
+
### Path Parameters
|
|
10
|
+
|
|
11
|
+
- `character_id: string`
|
|
12
|
+
|
|
13
|
+
### Returns
|
|
14
|
+
|
|
15
|
+
- `id: string`
|
|
16
|
+
|
|
17
|
+
Identifier for the character creation cameo.
|
|
18
|
+
|
|
19
|
+
- `created_at: number`
|
|
20
|
+
|
|
21
|
+
Unix timestamp (in seconds) when the character was created.
|
|
22
|
+
|
|
23
|
+
- `name: string`
|
|
24
|
+
|
|
25
|
+
Display name for the character.
|
|
26
|
+
|
|
27
|
+
### Example
|
|
28
|
+
|
|
29
|
+
```http
|
|
30
|
+
curl https://api.openai.com/v1/videos/characters/$CHARACTER_ID \
|
|
31
|
+
-H "Authorization: Bearer $OPENAI_API_KEY"
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
#### Response
|
|
35
|
+
|
|
36
|
+
```json
|
|
37
|
+
{
|
|
38
|
+
"id": "id",
|
|
39
|
+
"created_at": 0,
|
|
40
|
+
"name": "name"
|
|
41
|
+
}
|
|
42
|
+
```
|
|
43
|
+
|