@praudent/dagma 0.0.0-stage → 0.1.0

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.
Files changed (177) hide show
  1. package/dist/admin-ui/assets/index-CHJ8lsZp.js +120 -0
  2. package/dist/admin-ui/assets/index-XyqtD-IA.css +1 -0
  3. package/dist/admin-ui/index.html +12 -0
  4. package/dist/blueprint/agent.d.ts +148 -0
  5. package/dist/blueprint/agent.js +1 -0
  6. package/dist/blueprint/declaration-site.d.ts +7 -0
  7. package/dist/blueprint/declaration-site.js +8 -0
  8. package/dist/blueprint/declared-structure.d.ts +145 -0
  9. package/dist/blueprint/declared-structure.js +213 -0
  10. package/dist/blueprint/define-run-state.d.ts +79 -0
  11. package/dist/blueprint/define-run-state.js +89 -0
  12. package/dist/blueprint/load-blueprint.d.ts +28 -0
  13. package/dist/blueprint/load-blueprint.js +85 -0
  14. package/dist/blueprint/outcomes.d.ts +76 -0
  15. package/dist/blueprint/outcomes.js +10 -0
  16. package/dist/blueprint/phase.d.ts +153 -0
  17. package/dist/blueprint/phase.js +1 -0
  18. package/dist/blueprint/places.d.ts +26 -0
  19. package/dist/blueprint/places.js +37 -0
  20. package/dist/blueprint/prompt-file.d.ts +81 -0
  21. package/dist/blueprint/prompt-file.js +131 -0
  22. package/dist/blueprint/reply-reader.d.ts +36 -0
  23. package/dist/blueprint/reply-reader.js +38 -0
  24. package/dist/blueprint/run-settings.d.ts +38 -0
  25. package/dist/blueprint/run-settings.js +1 -0
  26. package/dist/blueprint/serializer.d.ts +14 -0
  27. package/dist/blueprint/serializer.js +4 -0
  28. package/dist/blueprint/write-scope.d.ts +39 -0
  29. package/dist/blueprint/write-scope.js +106 -0
  30. package/dist/command.d.ts +2 -0
  31. package/dist/command.js +148 -0
  32. package/dist/commands/calls-answering.d.ts +16 -0
  33. package/dist/commands/calls-answering.js +63 -0
  34. package/dist/commands/json-file.d.ts +6 -0
  35. package/dist/commands/json-file.js +19 -0
  36. package/dist/commands/run-command.d.ts +23 -0
  37. package/dist/commands/run-command.js +172 -0
  38. package/dist/commands/typed-answers.d.ts +10 -0
  39. package/dist/commands/typed-answers.js +43 -0
  40. package/dist/config.d.ts +27 -0
  41. package/dist/config.js +20 -0
  42. package/dist/devtool-server/app-pages.d.ts +12 -0
  43. package/dist/devtool-server/app-pages.js +68 -0
  44. package/dist/devtool-server/blueprint-description.d.ts +21 -0
  45. package/dist/devtool-server/blueprint-description.js +27 -0
  46. package/dist/devtool-server/connected-runs.d.ts +36 -0
  47. package/dist/devtool-server/connected-runs.js +201 -0
  48. package/dist/devtool-server/devtool-server.d.ts +17 -0
  49. package/dist/devtool-server/devtool-server.js +294 -0
  50. package/dist/devtool-server/devtool-shapes.d.ts +312 -0
  51. package/dist/devtool-server/devtool-shapes.js +24 -0
  52. package/dist/devtool-server/listed-runs.d.ts +17 -0
  53. package/dist/devtool-server/listed-runs.js +42 -0
  54. package/dist/devtool-server/print-blueprint.d.ts +1 -0
  55. package/dist/devtool-server/print-blueprint.js +36 -0
  56. package/dist/example/added-species.d.ts +21 -0
  57. package/dist/example/added-species.js +19 -0
  58. package/dist/example/cover.d.ts +21 -0
  59. package/dist/example/cover.js +67 -0
  60. package/dist/example/cross-references.d.ts +21 -0
  61. package/dist/example/cross-references.js +77 -0
  62. package/dist/example/entry-drafts.d.ts +21 -0
  63. package/dist/example/entry-drafts.js +63 -0
  64. package/dist/example/entry-merge.d.ts +108 -0
  65. package/dist/example/entry-merge.js +284 -0
  66. package/dist/example/field-guide.d.ts +26 -0
  67. package/dist/example/field-guide.js +40 -0
  68. package/dist/example/guide-page.d.ts +21 -0
  69. package/dist/example/guide-page.js +15 -0
  70. package/dist/example/missing-species.d.ts +21 -0
  71. package/dist/example/missing-species.js +59 -0
  72. package/dist/example/run-state.d.ts +803 -0
  73. package/dist/example/run-state.js +58 -0
  74. package/dist/example/serializers.d.ts +32 -0
  75. package/dist/example/serializers.js +42 -0
  76. package/dist/example/species-list.d.ts +47 -0
  77. package/dist/example/species-list.js +93 -0
  78. package/dist/index.d.ts +35 -0
  79. package/dist/index.js +25 -0
  80. package/dist/inference/anthropic-api.d.ts +37 -0
  81. package/dist/inference/anthropic-api.js +197 -0
  82. package/dist/inference/anthropic-prices.d.ts +18 -0
  83. package/dist/inference/anthropic-prices.js +39 -0
  84. package/dist/inference/anthropic-request.d.ts +51 -0
  85. package/dist/inference/anthropic-request.js +208 -0
  86. package/dist/inference/bedrock-api.d.ts +45 -0
  87. package/dist/inference/bedrock-api.js +242 -0
  88. package/dist/inference/bedrock-prices.d.ts +22 -0
  89. package/dist/inference/bedrock-prices.js +79 -0
  90. package/dist/inference/bedrock-request.d.ts +27 -0
  91. package/dist/inference/bedrock-request.js +193 -0
  92. package/dist/inference/call-queue-shapes.d.ts +273 -0
  93. package/dist/inference/call-queue-shapes.js +82 -0
  94. package/dist/inference/call-queue.d.ts +109 -0
  95. package/dist/inference/call-queue.js +408 -0
  96. package/dist/inference/gemini-api.d.ts +44 -0
  97. package/dist/inference/gemini-api.js +191 -0
  98. package/dist/inference/gemini-prices.d.ts +19 -0
  99. package/dist/inference/gemini-prices.js +33 -0
  100. package/dist/inference/gemini-request.d.ts +25 -0
  101. package/dist/inference/gemini-request.js +126 -0
  102. package/dist/inference/inference.d.ts +84 -0
  103. package/dist/inference/inference.js +9 -0
  104. package/dist/inference/openai-api.d.ts +29 -0
  105. package/dist/inference/openai-api.js +138 -0
  106. package/dist/inference/openai-prices.d.ts +12 -0
  107. package/dist/inference/openai-prices.js +25 -0
  108. package/dist/inference/openai-request.d.ts +50 -0
  109. package/dist/inference/openai-request.js +100 -0
  110. package/dist/inference/own-worker.d.ts +6 -0
  111. package/dist/inference/own-worker.js +16 -0
  112. package/dist/inference/scripted.d.ts +146 -0
  113. package/dist/inference/scripted.js +67 -0
  114. package/dist/run/assignments/agent-call.d.ts +32 -0
  115. package/dist/run/assignments/agent-call.js +218 -0
  116. package/dist/run/assignments/agent-phase.d.ts +14 -0
  117. package/dist/run/assignments/agent-phase.js +243 -0
  118. package/dist/run/assignments/assignment-memory.d.ts +42 -0
  119. package/dist/run/assignments/assignment-memory.js +52 -0
  120. package/dist/run/assignments/assignment.d.ts +17 -0
  121. package/dist/run/assignments/assignment.js +252 -0
  122. package/dist/run/assignments/model-settings.d.ts +39 -0
  123. package/dist/run/assignments/model-settings.js +57 -0
  124. package/dist/run/assignments/prepared-call.d.ts +28 -0
  125. package/dist/run/assignments/prepared-call.js +115 -0
  126. package/dist/run/assignments/tool-call.d.ts +26 -0
  127. package/dist/run/assignments/tool-call.js +108 -0
  128. package/dist/run/blueprint-mistake.d.ts +8 -0
  129. package/dist/run/blueprint-mistake.js +14 -0
  130. package/dist/run/code-phase.d.ts +11 -0
  131. package/dist/run/code-phase.js +59 -0
  132. package/dist/run/create-run.d.ts +36 -0
  133. package/dist/run/create-run.js +119 -0
  134. package/dist/run/execute-run.d.ts +7 -0
  135. package/dist/run/execute-run.js +158 -0
  136. package/dist/run/record/apply-event.d.ts +13 -0
  137. package/dist/run/record/apply-event.js +256 -0
  138. package/dist/run/record/events.d.ts +187 -0
  139. package/dist/run/record/events.js +1 -0
  140. package/dist/run/record/postgres-run-store.d.ts +13 -0
  141. package/dist/run/record/postgres-run-store.js +189 -0
  142. package/dist/run/record/progress-projection.d.ts +83 -0
  143. package/dist/run/record/progress-projection.js +167 -0
  144. package/dist/run/record/progress.d.ts +207 -0
  145. package/dist/run/record/progress.js +63 -0
  146. package/dist/run/record/run-store.d.ts +74 -0
  147. package/dist/run/record/run-store.js +1 -0
  148. package/dist/run/record/run-summary.d.ts +8 -0
  149. package/dist/run/record/run-summary.js +19 -0
  150. package/dist/run/record/run-types.d.ts +95 -0
  151. package/dist/run/record/run-types.js +1 -0
  152. package/dist/run/record/state-changes.d.ts +42 -0
  153. package/dist/run/record/state-changes.js +157 -0
  154. package/dist/run/resume-run.d.ts +25 -0
  155. package/dist/run/resume-run.js +99 -0
  156. package/dist/run/run-endings.d.ts +20 -0
  157. package/dist/run/run-endings.js +20 -0
  158. package/dist/run/run-option-shapes.d.ts +176 -0
  159. package/dist/run/run-option-shapes.js +47 -0
  160. package/dist/run/run-session.d.ts +144 -0
  161. package/dist/run/run-session.js +278 -0
  162. package/dist/worker/answer-queued-call.d.ts +19 -0
  163. package/dist/worker/answer-queued-call.js +100 -0
  164. package/dist/worker/launchers/claude-code.d.ts +7 -0
  165. package/dist/worker/launchers/claude-code.js +156 -0
  166. package/dist/worker/launchers/codex.d.ts +6 -0
  167. package/dist/worker/launchers/codex.js +141 -0
  168. package/dist/worker/launchers/launch.d.ts +31 -0
  169. package/dist/worker/launchers/launch.js +6 -0
  170. package/dist/worker/launchers/program-run.d.ts +30 -0
  171. package/dist/worker/launchers/program-run.js +92 -0
  172. package/dist/worker/launchers/tool-server.d.ts +26 -0
  173. package/dist/worker/launchers/tool-server.js +90 -0
  174. package/dist/worker/worker.d.ts +13 -0
  175. package/dist/worker/worker.js +170 -0
  176. package/package.json +43 -4
  177. package/README.md +0 -3
@@ -0,0 +1,90 @@
1
+ import { randomBytes, timingSafeEqual } from 'node:crypto';
2
+ import { createServer } from 'node:http';
3
+ /** The name a model program knows the call's tools by. */
4
+ export const TOOL_SERVER_NAME = 'dagma';
5
+ /** The environment variable a model program reads the tool server's secret from. */
6
+ export const TOOL_SERVER_TOKEN_VARIABLE = 'DAGMA_TOOL_TOKEN';
7
+ /**
8
+ * A call's tools, offered to the model program on this computer only: one local listener that speaks the MCP
9
+ * requests a program makes (initialize, ping, tools/list, tools/call) and hands each tool call to `callTool`.
10
+ * A request without the secret, from another address or naming another host is refused.
11
+ */
12
+ export async function startToolServer({ tools, callTool, }) {
13
+ const token = randomBytes(32).toString('base64url');
14
+ const listener = createServer(async (request, response) => {
15
+ const address = listener.address();
16
+ const port = address && typeof address !== 'string' ? address.port : 0;
17
+ const credential = Buffer.from(request.headers.authorization ?? '');
18
+ const expected = Buffer.from(`Bearer ${token}`);
19
+ const isAllowed = request.socket.remoteAddress === '127.0.0.1' &&
20
+ request.headers.host === `127.0.0.1:${port}` &&
21
+ !request.headers.origin &&
22
+ credential.length === expected.length &&
23
+ timingSafeEqual(credential, expected);
24
+ if (!isAllowed) {
25
+ response.writeHead(403).end();
26
+ return;
27
+ }
28
+ if (request.url !== '/mcp' || request.method !== 'POST') {
29
+ response.writeHead(405).end();
30
+ return;
31
+ }
32
+ // Node closes an idle connection after 5 s while Codex keeps it pooled longer, so no connection is reused.
33
+ response.setHeader('connection', 'close');
34
+ try {
35
+ const chunks = [];
36
+ for await (const chunk of request)
37
+ chunks.push(Buffer.from(chunk));
38
+ const answer = await answerRpc({ request: JSON.parse(Buffer.concat(chunks).toString('utf8')), tools, callTool });
39
+ if (answer === undefined) {
40
+ response.writeHead(202).end();
41
+ return;
42
+ }
43
+ response.writeHead(200, { 'content-type': 'application/json', 'cache-control': 'no-store' });
44
+ response.end(JSON.stringify(answer));
45
+ }
46
+ catch {
47
+ if (!response.headersSent)
48
+ response.writeHead(502);
49
+ response.end(JSON.stringify({ error: 'The tools of this call are unavailable.' }));
50
+ }
51
+ });
52
+ await new Promise((resolve, reject) => {
53
+ listener.once('error', reject);
54
+ listener.listen(0, '127.0.0.1', resolve);
55
+ });
56
+ const address = listener.address();
57
+ if (!address || typeof address === 'string')
58
+ throw new Error('The tool server could not start.');
59
+ return {
60
+ endpoint: `http://127.0.0.1:${address.port}/mcp`,
61
+ token,
62
+ async close() {
63
+ listener.closeAllConnections();
64
+ await new Promise((resolve) => listener.close(() => resolve()));
65
+ },
66
+ };
67
+ }
68
+ /** The answer to one request, or nothing for a notification (a request with no id). */
69
+ async function answerRpc({ request, tools, callTool }) {
70
+ if (request.id === undefined)
71
+ return undefined;
72
+ const reply = (result) => ({ jsonrpc: '2.0', id: request.id, result });
73
+ if (request.method === 'initialize') {
74
+ return reply({ protocolVersion: '2024-11-05', capabilities: { tools: {} }, serverInfo: { name: TOOL_SERVER_NAME, version: '1' } });
75
+ }
76
+ if (request.method === 'ping')
77
+ return reply({});
78
+ if (request.method === 'tools/list')
79
+ return reply({ tools });
80
+ if (request.method === 'tools/call' && typeof request.params?.name === 'string') {
81
+ try {
82
+ const value = await callTool({ name: request.params.name, args: request.params.arguments ?? {} });
83
+ return reply({ content: [{ type: 'text', text: typeof value === 'string' ? value : JSON.stringify(value) }] });
84
+ }
85
+ catch (error) {
86
+ return reply({ isError: true, content: [{ type: 'text', text: error instanceof Error ? error.message : String(error) }] });
87
+ }
88
+ }
89
+ return { jsonrpc: '2.0', id: request.id, error: { code: -32601, message: 'Method unavailable' } };
90
+ }
@@ -0,0 +1,13 @@
1
+ import type { answerQueuedCall } from './answer-queued-call.js';
2
+ /** Answers a run's model calls with Codex or Claude Code on this computer: connects to the run's
3
+ * call queue, takes every call it announces, answers each, and returns the reply or the failure.
4
+ * It ends when the queue is gone or `stopSignal` fires, once the calls it was answering have
5
+ * ended. Nothing of a call is kept on disk afterwards. */
6
+ export declare function runWorker({ address, secret, answerCall, stopSignal, }: {
7
+ address: string;
8
+ secret: string;
9
+ /** Answers one call; by default with Codex or Claude Code. The tests pass a stand-in. */
10
+ answerCall?: typeof answerQueuedCall;
11
+ /** Ends the worker. Without it the worker ends when the queue is gone. */
12
+ stopSignal?: AbortSignal;
13
+ }): Promise<void>;
@@ -0,0 +1,170 @@
1
+ import { randomUUID } from 'node:crypto';
2
+ import { request as httpRequest } from 'node:http';
3
+ import { QueuedCallSchema, QueueEventSchema, ToolCallAnswerSchema, } from '../inference/call-queue-shapes.js';
4
+ const RECONNECT_WAIT_MS = 2_000;
5
+ /** After this many failed connections in a row the run is taken to have ended. */
6
+ const RECONNECTS_BEFORE_LEAVING = 15;
7
+ /** The queue answered, and refused this worker: its secret or its address is wrong. */
8
+ class RefusedByQueue extends Error {
9
+ }
10
+ const failureOf = (error) => ({
11
+ failure: {
12
+ kind: 'other',
13
+ message: (error instanceof Error ? error.message : String(error)).slice(0, 4000),
14
+ },
15
+ });
16
+ /** Answers a run's model calls with Codex or Claude Code on this computer: connects to the run's
17
+ * call queue, takes every call it announces, answers each, and returns the reply or the failure.
18
+ * It ends when the queue is gone or `stopSignal` fires, once the calls it was answering have
19
+ * ended. Nothing of a call is kept on disk afterwards. */
20
+ export async function runWorker({ address, secret, answerCall, stopSignal, }) {
21
+ const workerId = randomUUID();
22
+ // Loaded only when no stand-in is given: it brings in the Codex and Claude Code launchers.
23
+ const answer = answerCall ?? (await import('./answer-queued-call.js')).answerQueuedCall;
24
+ const headers = { authorization: `Bearer ${secret}`, 'content-type': 'application/json' };
25
+ /** The calls this worker has taken or is taking, each with what stops its answering. */
26
+ const working = Object.create(null);
27
+ const answering = [];
28
+ const request = ({ path, body }) => fetch(`${address}${path}?worker=${workerId}`, {
29
+ method: body === undefined ? 'GET' : 'POST',
30
+ headers,
31
+ ...(body === undefined ? {} : { body: JSON.stringify(body) }),
32
+ ...(stopSignal ? { signal: stopSignal } : {}),
33
+ });
34
+ /** Forwards one tool call to the run and returns what goes back to the model. It is not sent
35
+ * with `fetch`, which gives up after five minutes without an answer, while a tool's handler
36
+ * may take longer and waits behind the call's earlier tool calls. */
37
+ const forwardToolCall = ({ callId, toolCall, signal, }) => new Promise((resolve, reject) => {
38
+ const sending = httpRequest(`${address}/calls/${callId}/tool?worker=${workerId}`,
39
+ // A connection of its own: the queue closes an idle kept one after a few seconds.
40
+ { method: 'POST', headers, agent: false, signal }, (response) => {
41
+ const chunks = [];
42
+ response.on('data', (chunk) => chunks.push(chunk));
43
+ response.on('error', reject);
44
+ response.on('end', () => {
45
+ if (response.statusCode !== 200)
46
+ return reject(new Error(`The run did not answer the tool call (${response.statusCode}).`));
47
+ try {
48
+ const answer = JSON.parse(Buffer.concat(chunks).toString('utf8'));
49
+ resolve(ToolCallAnswerSchema.parse(answer).result);
50
+ }
51
+ catch (error) {
52
+ reject(error instanceof Error ? error : new Error(String(error)));
53
+ }
54
+ });
55
+ });
56
+ sending.on('error', reject);
57
+ sending.end(JSON.stringify(toolCall));
58
+ });
59
+ /** Takes one announced call and answers it. A call another worker took is left alone. Whatever
60
+ * goes wrong after the take is reported to the run, so its call never waits on a worker that
61
+ * has given up. */
62
+ const takeAndAnswer = async ({ callId }) => {
63
+ if (Object.hasOwn(working, callId))
64
+ return;
65
+ // Set before the take, so a cancel that arrives while the take is on its way is seen.
66
+ const stop = new AbortController();
67
+ working[callId] = stop;
68
+ try {
69
+ const taken = await request({ path: `/calls/${callId}/take`, body: {} });
70
+ if (!taken.ok || stop.signal.aborted)
71
+ return;
72
+ const started = Date.now();
73
+ let program = 'The model program';
74
+ let answered;
75
+ try {
76
+ const call = QueuedCallSchema.parse(await taken.json());
77
+ program = call.program ?? 'worker';
78
+ answered = await answer({
79
+ call,
80
+ signal: stop.signal,
81
+ callTool: (toolCall) => forwardToolCall({ callId, toolCall, signal: stop.signal }),
82
+ });
83
+ }
84
+ catch (error) {
85
+ answered = failureOf(error);
86
+ }
87
+ // A call the run cancelled has nobody waiting for its answer.
88
+ if (stop.signal.aborted)
89
+ return;
90
+ if ('reply' in answered) {
91
+ const returned = await request({ path: `/calls/${callId}/reply`, body: answered.reply });
92
+ if (returned.ok)
93
+ return console.error(`${program} answered a call in ${((Date.now() - started) / 1000).toFixed(1)} s`);
94
+ answered = failureOf(new Error(`The run refused the reply: ${await returned.text()}`));
95
+ }
96
+ await request({ path: `/calls/${callId}/failure`, body: answered.failure });
97
+ console.error(`${program} could not answer a call: ${answered.failure.message}`);
98
+ }
99
+ finally {
100
+ delete working[callId];
101
+ }
102
+ };
103
+ const stopAll = () => {
104
+ for (const stop of Object.values(working))
105
+ stop.abort();
106
+ };
107
+ let failedConnections = 0;
108
+ let everConnected = false;
109
+ while (failedConnections < RECONNECTS_BEFORE_LEAVING && !stopSignal?.aborted) {
110
+ try {
111
+ const stream = await request({ path: '/calls' });
112
+ if (stream.status === 403 || stream.status === 404)
113
+ throw new RefusedByQueue(`The call queue at ${address} refused this worker (${stream.status}). Use the address and secret exactly as dagma run printed them.`);
114
+ if (!stream.ok || !stream.body)
115
+ throw new Error(`The queue answered ${stream.status}.`);
116
+ failedConnections = 0;
117
+ everConnected = true;
118
+ const decoder = new TextDecoder();
119
+ let buffered = '';
120
+ for await (const chunk of stream.body) {
121
+ buffered += decoder.decode(chunk, { stream: true });
122
+ for (;;) {
123
+ const end = buffered.indexOf('\n\n');
124
+ if (end < 0)
125
+ break;
126
+ const line = buffered.slice(0, end);
127
+ buffered = buffered.slice(end + 2);
128
+ if (!line.startsWith('data: '))
129
+ continue;
130
+ const event = QueueEventSchema.parse(JSON.parse(line.slice('data: '.length)));
131
+ const announced = event.type === 'call'
132
+ ? [event.id]
133
+ : event.type === 'waiting'
134
+ ? event.calls.filter((call) => !call.taken).map((call) => call.id)
135
+ : [];
136
+ if (event.type === 'cancelled')
137
+ working[event.id]?.abort();
138
+ // A call the queue no longer lists was cancelled while the stream was down.
139
+ if (event.type === 'waiting')
140
+ for (const [callId, stop] of Object.entries(working))
141
+ if (!event.calls.some((call) => call.id === callId))
142
+ stop.abort();
143
+ for (const callId of announced) {
144
+ const ended = takeAndAnswer({ callId })
145
+ .catch((error) => console.error(error instanceof Error ? error.message : error))
146
+ .finally(() => void answering.splice(answering.indexOf(ended), 1));
147
+ answering.push(ended);
148
+ }
149
+ }
150
+ }
151
+ }
152
+ catch (error) {
153
+ if (error instanceof RefusedByQueue) {
154
+ stopAll();
155
+ throw error;
156
+ }
157
+ failedConnections += 1;
158
+ }
159
+ if (!stopSignal?.aborted)
160
+ await new Promise((resolve) => setTimeout(resolve, RECONNECT_WAIT_MS));
161
+ }
162
+ // Each call's model program is ended and its folder removed before the worker leaves.
163
+ stopAll();
164
+ await Promise.allSettled(answering);
165
+ if (stopSignal?.aborted)
166
+ return;
167
+ if (!everConnected)
168
+ throw new Error(`No call queue answered at ${address}.`);
169
+ console.error(`The call queue at ${address} is gone.`);
170
+ }
package/package.json CHANGED
@@ -1,6 +1,45 @@
1
1
  {
2
2
  "name": "@praudent/dagma",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0",
4
+ "type": "module",
5
+ "description": "Declare a pipeline of AI agents as a blueprint, run it in Postgres, and inspect every run",
6
+ "bin": {
7
+ "dagma": "./dist/command.js"
8
+ },
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js"
13
+ }
14
+ },
15
+ "files": [
16
+ "dist"
17
+ ],
18
+ "scripts": {
19
+ "build": "tsc -p tsconfig.build.json && chmod +x dist/command.js && vite build --config vite.admin.config.ts",
20
+ "typecheck": "tsc --noEmit",
21
+ "dagma": "tsx src/command.ts",
22
+ "test": "tsx --test --test-force-exit integration/*.test.ts"
23
+ },
24
+ "dependencies": {
25
+ "@aws-sdk/client-bedrock-runtime": "^3.1184.0",
26
+ "@google/genai": "^3.7.0",
27
+ "pg": "^8.23.1",
28
+ "zod": "^3.23.0",
29
+ "zod-to-json-schema": "3.25.1"
30
+ },
31
+ "devDependencies": {
32
+ "@tanstack/react-query": "^5.65.0",
33
+ "@tanstack/react-router": "^1.95.0",
34
+ "@types/node": "^22.0.0",
35
+ "@types/pg": "^8.23.1",
36
+ "@types/react": "^19.0.0",
37
+ "@types/react-dom": "^19.0.0",
38
+ "@vitejs/plugin-react": "^4.3.0",
39
+ "react": "^19.0.0",
40
+ "react-dom": "^19.0.0",
41
+ "tsx": "^4.19.0",
42
+ "typescript": "^5.9.3",
43
+ "vite": "^6.0.0"
44
+ }
45
+ }
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.