@tagma/sdk 0.7.5 → 0.7.7
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 +52 -24
- package/dist/approval.d.ts +1 -1
- package/dist/approval.d.ts.map +1 -1
- package/dist/completions/exit-code.d.ts +1 -1
- package/dist/completions/exit-code.d.ts.map +1 -1
- package/dist/completions/file-exists.d.ts +1 -1
- package/dist/completions/file-exists.d.ts.map +1 -1
- package/dist/completions/output-check.d.ts +1 -1
- package/dist/completions/output-check.d.ts.map +1 -1
- package/dist/completions/output-check.js +13 -61
- package/dist/completions/output-check.js.map +1 -1
- package/dist/config-ops.d.ts +1 -1
- package/dist/config-ops.d.ts.map +1 -1
- package/dist/config.d.ts +2 -2
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +1 -1
- package/dist/config.js.map +1 -1
- package/dist/drivers/opencode.d.ts +1 -1
- package/dist/drivers/opencode.d.ts.map +1 -1
- package/dist/drivers/opencode.js +13 -13
- package/dist/drivers/opencode.js.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/middlewares/static-context.d.ts +1 -1
- package/dist/middlewares/static-context.d.ts.map +1 -1
- package/dist/pipeline-runner.d.ts +2 -2
- package/dist/pipeline-runner.d.ts.map +1 -1
- package/dist/pipeline-runner.js +2 -2
- package/dist/pipeline-runner.js.map +1 -1
- package/dist/plugins.d.ts +2 -2
- package/dist/plugins.d.ts.map +1 -1
- package/dist/schema.d.ts +6 -1
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +17 -0
- package/dist/schema.js.map +1 -1
- package/dist/tagma.d.ts +1 -1
- package/dist/tagma.d.ts.map +1 -1
- package/dist/triggers/file.d.ts +1 -1
- package/dist/triggers/file.d.ts.map +1 -1
- package/dist/triggers/file.js +29 -7
- package/dist/triggers/file.js.map +1 -1
- package/dist/triggers/manual.d.ts +1 -1
- package/dist/triggers/manual.d.ts.map +1 -1
- package/dist/triggers/manual.js +38 -39
- package/dist/triggers/manual.js.map +1 -1
- package/dist/validate-raw.d.ts +5 -5
- package/dist/validate-raw.d.ts.map +1 -1
- package/dist/validate-raw.js +47 -41
- package/dist/validate-raw.js.map +1 -1
- package/dist/yaml.d.ts +1 -1
- package/dist/yaml.d.ts.map +1 -1
- package/dist/yaml.js +1 -1
- package/dist/yaml.js.map +1 -1
- package/package.json +5 -20
- package/dist/engine.d.ts +0 -13
- package/dist/engine.d.ts.map +0 -1
- package/dist/engine.js +0 -10
- package/dist/engine.js.map +0 -1
- package/dist/logger.d.ts +0 -3
- package/dist/logger.d.ts.map +0 -1
- package/dist/logger.js +0 -2
- package/dist/logger.js.map +0 -1
- package/dist/runner.d.ts +0 -2
- package/dist/runner.d.ts.map +0 -1
- package/dist/runner.js +0 -2
- package/dist/runner.js.map +0 -1
- package/dist/runtime/adapters/stdin-approval.d.ts +0 -2
- package/dist/runtime/adapters/stdin-approval.d.ts.map +0 -1
- package/dist/runtime/adapters/stdin-approval.js +0 -2
- package/dist/runtime/adapters/stdin-approval.js.map +0 -1
- package/dist/runtime/adapters/websocket-approval.d.ts +0 -2
- package/dist/runtime/adapters/websocket-approval.d.ts.map +0 -1
- package/dist/runtime/adapters/websocket-approval.js +0 -2
- package/dist/runtime/adapters/websocket-approval.js.map +0 -1
- package/dist/runtime/bun-process-runner.d.ts +0 -2
- package/dist/runtime/bun-process-runner.d.ts.map +0 -1
- package/dist/runtime/bun-process-runner.js +0 -2
- package/dist/runtime/bun-process-runner.js.map +0 -1
- package/dist/runtime.d.ts +0 -3
- package/dist/runtime.d.ts.map +0 -1
- package/dist/runtime.js +0 -2
- package/dist/runtime.js.map +0 -1
- package/dist/types.d.ts +0 -3
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -3
- package/dist/types.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
# @tagma/sdk
|
|
2
2
|
|
|
3
|
-
> ##
|
|
3
|
+
> ## Bun-only runtime
|
|
4
4
|
>
|
|
5
5
|
> ```bash
|
|
6
6
|
> bun add @tagma/sdk
|
|
7
7
|
> ```
|
|
8
8
|
>
|
|
9
9
|
> This package is published as pre-built JavaScript (`dist/`), but the runtime
|
|
10
|
-
> uses Bun-only APIs (`Bun.spawn`, `Bun.file`, `Bun.serve`).
|
|
11
|
-
>
|
|
12
|
-
>
|
|
10
|
+
> uses Bun-only APIs (`Bun.spawn`, `Bun.file`, `Bun.serve`). Installing with
|
|
11
|
+
> `npm`, `yarn`, or `pnpm` is blocked by the package preinstall guard. Get Bun
|
|
12
|
+
> at <https://bun.sh>.
|
|
13
13
|
>
|
|
14
14
|
> _(The `npm i @tagma/sdk` line in the npmjs.com sidebar is auto-generated by
|
|
15
|
-
> the npm registry website and cannot be removed
|
|
16
|
-
>
|
|
15
|
+
> the npm registry website and cannot be removed; ignore it and use the command
|
|
16
|
+
> above.)_
|
|
17
17
|
|
|
18
18
|
A local AI task orchestration SDK for [Bun](https://bun.sh). Define multi-track pipelines in YAML, run AI coding agents (OpenCode, Codex, Claude Code) and shell commands in parallel with dependency resolution, approval gates, and lifecycle hooks.
|
|
19
19
|
|
|
20
20
|
## Install
|
|
21
21
|
|
|
22
|
-
**Requires Bun
|
|
22
|
+
**Requires Bun >= 1.3.** Node/npm are not supported.
|
|
23
23
|
|
|
24
24
|
```bash
|
|
25
25
|
bun add @tagma/sdk
|
|
@@ -86,6 +86,7 @@ directly only when you need lower-level package boundaries.
|
|
|
86
86
|
```yaml
|
|
87
87
|
pipeline:
|
|
88
88
|
name: my-pipeline
|
|
89
|
+
mode: trusted
|
|
89
90
|
driver: opencode
|
|
90
91
|
timeout: 30m
|
|
91
92
|
plugins:
|
|
@@ -150,6 +151,7 @@ pipeline:
|
|
|
150
151
|
| Field | Type | Required | Description |
|
|
151
152
|
| ------------- | --------------- | -------- | ------------------------------------------------------------------------------------------ |
|
|
152
153
|
| `name` | `string` | Yes | Pipeline name, used in logs and run IDs |
|
|
154
|
+
| `mode` | `trusted \| safe` | No | Execution boundary. Defaults to `trusted`; `safe` blocks shell tasks, hooks, automatic plugins, and non-allowlisted capabilities |
|
|
153
155
|
| `driver` | `string` | No | Default driver for all tracks/tasks (inherited). Built-in: `opencode` |
|
|
154
156
|
| `model` | `string` | No | Default model for all tracks/tasks (inherited). Exact model name, e.g. `claude-sonnet-4-6` |
|
|
155
157
|
| `permissions` | `Permissions` | No | Default permissions inherited by all tracks/tasks (see Permissions) |
|
|
@@ -171,6 +173,8 @@ Each hook value can be a single command string or an array of commands.
|
|
|
171
173
|
| `pipeline_complete` | `string \| string[]` | Runs when the pipeline finishes successfully |
|
|
172
174
|
| `pipeline_error` | `string \| string[]` | Runs when the pipeline finishes with errors |
|
|
173
175
|
|
|
176
|
+
`pipeline_start` and `task_start` are gates: any non-zero exit code blocks the run/task. Hook stdout and stderr are written into the unified run log.
|
|
177
|
+
|
|
174
178
|
### Track Fields
|
|
175
179
|
|
|
176
180
|
| Field | Type | Required | Default | Description |
|
|
@@ -191,7 +195,7 @@ Each hook value can be a single command string or an array of commands.
|
|
|
191
195
|
|
|
192
196
|
| Field | Type | Required | Default | Description |
|
|
193
197
|
| --------------- | -------------------- | -------- | -------------------- | ------------------------------------------------------------------------------------------------------ |
|
|
194
|
-
| `id` | `string` | Yes | — | Unique task identifier
|
|
198
|
+
| `id` | `string` | Yes | — | Unique task identifier within its track. Cross-track refs use `trackId.taskId` |
|
|
195
199
|
| `name` | `string` | No | — | Display name |
|
|
196
200
|
| `prompt` | `string` | No\* | — | AI prompt to send to the driver. \*Mutually exclusive with `command` |
|
|
197
201
|
| `command` | `string` | No\* | — | Shell command to execute directly. \*Mutually exclusive with `prompt` |
|
|
@@ -211,11 +215,15 @@ Each hook value can be a single command string or an array of commands.
|
|
|
211
215
|
|
|
212
216
|
### Permissions
|
|
213
217
|
|
|
214
|
-
| Field | Type | Default | Description
|
|
215
|
-
| --------- | --------- | ------- |
|
|
216
|
-
| `read` | `boolean` | — | Allow the agent to read files
|
|
217
|
-
| `write` | `boolean` | — | Allow the agent to write files
|
|
218
|
-
| `execute` | `boolean` | — | Allow the agent to execute commands |
|
|
218
|
+
| Field | Type | Default | Description |
|
|
219
|
+
| --------- | --------- | ------- | ------------------------------------------------ |
|
|
220
|
+
| `read` | `boolean` | — | Allow the AI driver/agent to read files |
|
|
221
|
+
| `write` | `boolean` | — | Allow the AI driver/agent to write files |
|
|
222
|
+
| `execute` | `boolean` | — | Allow the AI driver/agent to execute tool commands |
|
|
223
|
+
|
|
224
|
+
`permissions` are passed to AI drivers that support them. They do not sandbox
|
|
225
|
+
YAML `command` tasks; command tasks are host shell execution and are controlled
|
|
226
|
+
by `mode: safe` / `mode: trusted`.
|
|
219
227
|
|
|
220
228
|
### Inheritance
|
|
221
229
|
|
|
@@ -401,6 +409,7 @@ Tasks can declare named, typed `inputs` / `outputs`. Inputs flow in from upstrea
|
|
|
401
409
|
|
|
402
410
|
- immutable config editing helpers
|
|
403
411
|
- raw validation helpers
|
|
412
|
+
- resolved and raw DAG helpers
|
|
404
413
|
- task reference helpers
|
|
405
414
|
|
|
406
415
|
### Dataflow helpers: `@tagma/sdk/dataflow`
|
|
@@ -408,10 +417,14 @@ Tasks can declare named, typed `inputs` / `outputs`. Inputs flow in from upstrea
|
|
|
408
417
|
- placeholder substitution, binding resolution, output extraction, and internal prompt-contract inference
|
|
409
418
|
- stable public subpath for pure dataflow helpers; no runtime/process imports
|
|
410
419
|
|
|
420
|
+
### Pipeline runner: `@tagma/sdk/pipeline-runner`
|
|
421
|
+
|
|
422
|
+
- `PipelineRunner` lifecycle wrapper for hosts that manage multiple concurrent runs
|
|
423
|
+
|
|
411
424
|
### Runtime approval adapters
|
|
412
425
|
|
|
413
|
-
- `@tagma/
|
|
414
|
-
- `@tagma/
|
|
426
|
+
- `@tagma/runtime-bun/adapters/stdin-approval`
|
|
427
|
+
- `@tagma/runtime-bun/adapters/websocket-approval`
|
|
415
428
|
|
|
416
429
|
### Split packages
|
|
417
430
|
|
|
@@ -453,9 +466,13 @@ Options:
|
|
|
453
466
|
- `run_end` — pipeline finished; includes `success: boolean` and `abortReason: 'timeout' | 'stop_all' | 'external' | null`. `null` means the run completed on its own steam (success may still be `false` if tasks failed).
|
|
454
467
|
- `run_error` — reserved for fatal engine errors surfaced over the wire.
|
|
455
468
|
- `approval_request` / `approval_resolved` — bridged from the approval gateway so hosts see approvals on the same channel as task updates, without separately subscribing to the gateway.
|
|
456
|
-
- `runId` -- caller-supplied run ID. When provided the engine uses this instead of generating its own, keeping the caller and the SDK log directories aligned on the same ID
|
|
469
|
+
- `runId` -- caller-supplied run ID. Must match `run_[A-Za-z0-9_-]{1,128}`. When provided the engine uses this instead of generating its own, keeping the caller and the SDK log directories aligned on the same ID
|
|
457
470
|
- `maxLogRuns` -- number of per-run log directories to keep under `<workDir>/.tagma/logs/` (default: 20)
|
|
458
471
|
- `skipPluginLoading` -- skip the engine's built-in `loadPlugins(config.plugins)` call. Set this when the host has already pre-loaded plugins from a custom resolution path (e.g. the editor loading from the user's workspace `node_modules`) so the engine doesn't re-resolve them via Node's default cwd-based import.
|
|
472
|
+
- `mode` -- override `config.mode` for this run. `trusted` is the default. `safe` blocks `command` tasks, lifecycle hooks, automatic `pipeline.plugins` loading, and non-allowlisted driver/trigger/completion/middleware types.
|
|
473
|
+
- `safeModeAllowlist` -- extends the built-in safe-mode allowlist for trusted host integrations.
|
|
474
|
+
- `envPolicy` -- controls child process environment inheritance. Defaults to a minimal environment (`PATH`, home/user/temp/system keys). Use `{ mode: 'allowlist', keys: [...] }` or `{ mode: 'inherit' }` only when the host deliberately wants to expose more env vars.
|
|
475
|
+
- `logPrompt` -- when `true`, writes the final middleware-expanded prompt to the run log. Defaults to `false`.
|
|
459
476
|
|
|
460
477
|
> **stdout / stderr persistence.** With the default Bun runtime, the engine streams every task's stdout and stderr to disk under `<workDir>/.tagma/logs/<runId>/<taskId>.stdout` and `.stderr`. Custom runtimes can relocate those artifacts by implementing `runtime.logStore.taskOutputPath()`. The `TaskResult.stdout` / `stderr` strings are bounded tails (8 MB / 4 MB by default) — long outputs are truncated from the head with a marker, and consumers that need the full bytes should read `TaskResult.stdoutPath` / `stderrPath`. Use `TaskResult.stdoutBytes` / `stderrBytes` to display "32 MB (truncated)" without re-stat'ing the file.
|
|
461
478
|
|
|
@@ -464,6 +481,8 @@ Options:
|
|
|
464
481
|
Higher-level wrapper for managing multiple concurrent pipeline runs — designed for sidecar / Tauri IPC scenarios where the frontend controls pipeline lifecycle by ID.
|
|
465
482
|
|
|
466
483
|
```ts
|
|
484
|
+
import { PipelineRunner } from '@tagma/sdk/pipeline-runner';
|
|
485
|
+
|
|
467
486
|
const runner = new PipelineRunner(config, workDir, options?); // options: Omit<RunPipelineOptions, 'signal' | 'onEvent'>
|
|
468
487
|
|
|
469
488
|
// Subscribe before start — handler is called for every RunEventPayload
|
|
@@ -521,13 +540,13 @@ export default {
|
|
|
521
540
|
|
|
522
541
|
Pass `resolveFrom` when plugins are installed in a workspace-local `node_modules`.
|
|
523
542
|
|
|
524
|
-
### `PluginRegistry.registerTagmaPlugin(plugin): RegisteredCapability[]`
|
|
543
|
+
### `PluginRegistry.registerTagmaPlugin(plugin, options?): RegisteredCapability[]`
|
|
525
544
|
|
|
526
|
-
Registers every supported capability from a `TagmaPlugin` default export.
|
|
545
|
+
Registers every supported capability from a `TagmaPlugin` default export. Duplicate capabilities fail by default; pass `{ replace: true }` only for an intentional reload.
|
|
527
546
|
|
|
528
|
-
### `PluginRegistry.registerPlugin(category, type, handler):
|
|
547
|
+
### `PluginRegistry.registerPlugin(category, type, handler, options?): RegisterResult`
|
|
529
548
|
|
|
530
|
-
Registers one capability handler manually. Prefer `registerTagmaPlugin()` for package-level plugins.
|
|
549
|
+
Registers one capability handler manually. Duplicate `category/type` registrations fail by default; pass `{ replace: true }` only for an intentional hot replacement. Prefer `registerTagmaPlugin()` for package-level plugins.
|
|
531
550
|
|
|
532
551
|
Plugin handlers (`TriggerPlugin`, `CompletionPlugin`, `MiddlewarePlugin`) may optionally expose a declarative `schema: PluginSchema` field so visual editors can render a typed form for the plugin's config instead of a raw key/value editor:
|
|
533
552
|
|
|
@@ -544,15 +563,24 @@ export const HttpTrigger: TriggerPlugin = {
|
|
|
544
563
|
timeout: { type: 'duration', description: 'Give up after this long.' },
|
|
545
564
|
},
|
|
546
565
|
},
|
|
547
|
-
|
|
566
|
+
watch(config, ctx) {
|
|
548
567
|
// Trigger plugins should use ctx.runtime for file IO, watching, and
|
|
549
568
|
// timing so they can run under non-Bun test/runtime implementations.
|
|
550
|
-
|
|
569
|
+
const controller = new AbortController();
|
|
570
|
+
const fired = waitForHttp(config, ctx, controller.signal);
|
|
571
|
+
return {
|
|
572
|
+
fired,
|
|
573
|
+
dispose(reason = 'trigger disposed') {
|
|
574
|
+
controller.abort(reason);
|
|
575
|
+
},
|
|
576
|
+
};
|
|
551
577
|
},
|
|
552
578
|
};
|
|
553
579
|
```
|
|
554
580
|
|
|
555
|
-
|
|
581
|
+
Trigger `watch()` methods must return `{ fired, dispose }`: the engine awaits
|
|
582
|
+
`fired` and calls `dispose()` on success, failure, task timeout, and pipeline
|
|
583
|
+
abort. The schema is purely descriptive — plugins still perform their own runtime validation. Supported field types: `string`, `number`, `boolean`, `enum`, `path`, `duration`, `number-or-list`. Each field can declare `required`, `default`, `description`, `enum`, `min`/`max`, `placeholder`. Built-in plugins (`file`/`manual` triggers; `exit_code`/`file_exists`/`output_check` completions; `static_context` middleware) all ship with schemas so editors can generate forms out of the box.
|
|
556
584
|
|
|
557
585
|
### `PluginRegistry.getHandler(category, type): PluginType`
|
|
558
586
|
|
|
@@ -764,7 +792,7 @@ structured `LogRecord`; the engine uses this to emit `task_log` events:
|
|
|
764
792
|
|
|
765
793
|
```ts
|
|
766
794
|
import { bunRuntime } from '@tagma/sdk';
|
|
767
|
-
import { Logger, type LogRecord } from '@tagma/
|
|
795
|
+
import { Logger, type LogRecord } from '@tagma/core';
|
|
768
796
|
|
|
769
797
|
const logger = new Logger(workDir, runId, bunRuntime().logStore, (record: LogRecord) => {
|
|
770
798
|
// record = { level, taskId, timestamp, text }
|
package/dist/approval.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { InMemoryApprovalGateway } from '@tagma/core';
|
|
2
|
-
export type { ApprovalDecision, ApprovalEvent, ApprovalGateway, ApprovalListener, ApprovalOutcome, ApprovalRequest, } from '@tagma/core';
|
|
2
|
+
export type { ApprovalDecision, ApprovalEvent, ApprovalGateway, ApprovalListener, ApprovalOutcome, ApprovalRequest, ApprovalRequestHandle, } from '@tagma/core';
|
|
3
3
|
//# sourceMappingURL=approval.d.ts.map
|
package/dist/approval.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"approval.d.ts","sourceRoot":"","sources":["../src/approval.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AACtD,YAAY,EACV,gBAAgB,EAChB,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,eAAe,
|
|
1
|
+
{"version":3,"file":"approval.d.ts","sourceRoot":"","sources":["../src/approval.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AACtD,YAAY,EACV,gBAAgB,EAChB,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,qBAAqB,GACtB,MAAM,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exit-code.d.ts","sourceRoot":"","sources":["../../src/completions/exit-code.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAiC,MAAM,
|
|
1
|
+
{"version":3,"file":"exit-code.d.ts","sourceRoot":"","sources":["../../src/completions/exit-code.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAiC,MAAM,cAAc,CAAC;AAEpF,eAAO,MAAM,kBAAkB,EAAE,gBA+BhC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-exists.d.ts","sourceRoot":"","sources":["../../src/completions/file-exists.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAiC,MAAM,
|
|
1
|
+
{"version":3,"file":"file-exists.d.ts","sourceRoot":"","sources":["../../src/completions/file-exists.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAiC,MAAM,cAAc,CAAC;AAKpF,eAAO,MAAM,oBAAoB,EAAE,gBA2DlC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"output-check.d.ts","sourceRoot":"","sources":["../../src/completions/output-check.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAiC,MAAM,
|
|
1
|
+
{"version":3,"file":"output-check.d.ts","sourceRoot":"","sources":["../../src/completions/output-check.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAiC,MAAM,cAAc,CAAC;AAKpF,eAAO,MAAM,qBAAqB,EAAE,gBAwDnC,CAAC"}
|
|
@@ -1,14 +1,5 @@
|
|
|
1
1
|
import { parseDuration, shellArgs } from '@tagma/core';
|
|
2
2
|
const DEFAULT_TIMEOUT_MS = 30_000;
|
|
3
|
-
async function drain(stream) {
|
|
4
|
-
if (!stream)
|
|
5
|
-
return;
|
|
6
|
-
await stream.pipeTo(new WritableStream({
|
|
7
|
-
write() {
|
|
8
|
-
// Discard check stdout; only exit status matters.
|
|
9
|
-
},
|
|
10
|
-
}));
|
|
11
|
-
}
|
|
12
3
|
export const OutputCheckCompletion = {
|
|
13
4
|
name: 'output_check',
|
|
14
5
|
schema: {
|
|
@@ -33,61 +24,22 @@ export const OutputCheckCompletion = {
|
|
|
33
24
|
if (!checkCmd)
|
|
34
25
|
throw new Error('output_check completion: "check" is required');
|
|
35
26
|
const timeoutMs = config.timeout != null ? parseDuration(String(config.timeout)) : DEFAULT_TIMEOUT_MS;
|
|
36
|
-
const
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
// terminates the child instead of leaving it running undetected.
|
|
40
|
-
const onAbort = () => controller.abort();
|
|
41
|
-
if (ctx.signal) {
|
|
42
|
-
if (ctx.signal.aborted) {
|
|
43
|
-
controller.abort();
|
|
44
|
-
}
|
|
45
|
-
else {
|
|
46
|
-
ctx.signal.addEventListener('abort', onAbort, { once: true });
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
const proc = Bun.spawn(shellArgs(checkCmd), {
|
|
27
|
+
const payload = result.normalizedOutput ?? result.stdout;
|
|
28
|
+
const checkResult = await ctx.runtime.runSpawn({
|
|
29
|
+
args: shellArgs(checkCmd),
|
|
50
30
|
cwd: ctx.workDir,
|
|
51
|
-
stdin:
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
signal:
|
|
31
|
+
stdin: payload,
|
|
32
|
+
}, null, {
|
|
33
|
+
timeoutMs,
|
|
34
|
+
signal: ctx.signal,
|
|
35
|
+
maxStdoutTailBytes: 256 * 1024,
|
|
36
|
+
maxStderrTailBytes: 256 * 1024,
|
|
37
|
+
envPolicy: ctx.envPolicy,
|
|
55
38
|
});
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
try {
|
|
59
|
-
// Prefer driver-normalized text (e.g. concatenated message text for
|
|
60
|
-
// AI drivers that emit NDJSON). Falling back to raw stdout keeps
|
|
61
|
-
// command tasks and drivers without parseResult working.
|
|
62
|
-
const payload = result.normalizedOutput ?? result.stdout;
|
|
63
|
-
proc.stdin.write(payload);
|
|
64
|
-
proc.stdin.end(); // no await — consistent with runner.ts; proc.exited handles sync
|
|
65
|
-
}
|
|
66
|
-
catch (err) {
|
|
67
|
-
// EPIPE is expected when the check process exits before reading all of stdin
|
|
68
|
-
// (e.g. `grep -q` exits on first match). Anything else is a real failure.
|
|
69
|
-
const code = err?.code;
|
|
70
|
-
if (code !== 'EPIPE')
|
|
71
|
-
throw err;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
// Drain stdout and stderr concurrently so verbose check commands cannot
|
|
75
|
-
// block on pipe buffers while the parent waits for process exit.
|
|
76
|
-
const [exitCode, , stderr] = await Promise.all([
|
|
77
|
-
proc.exited,
|
|
78
|
-
drain(proc.stdout),
|
|
79
|
-
new Response(proc.stderr).text(),
|
|
80
|
-
]);
|
|
81
|
-
if (exitCode !== 0 && stderr.trim()) {
|
|
82
|
-
console.warn(`[output_check] "${checkCmd}" exit=${exitCode}: ${stderr.trim()}`);
|
|
83
|
-
}
|
|
84
|
-
return exitCode === 0;
|
|
85
|
-
}
|
|
86
|
-
finally {
|
|
87
|
-
clearTimeout(timer);
|
|
88
|
-
if (ctx.signal)
|
|
89
|
-
ctx.signal.removeEventListener('abort', onAbort);
|
|
39
|
+
if (checkResult.exitCode !== 0 && checkResult.stderr.trim()) {
|
|
40
|
+
console.warn(`[output_check] "${checkCmd}" exit=${checkResult.exitCode}: ${checkResult.stderr.trim()}`);
|
|
90
41
|
}
|
|
42
|
+
return checkResult.exitCode === 0 && checkResult.failureKind === null;
|
|
91
43
|
},
|
|
92
44
|
};
|
|
93
45
|
//# sourceMappingURL=output-check.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"output-check.js","sourceRoot":"","sources":["../../src/completions/output-check.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAEvD,MAAM,kBAAkB,GAAG,MAAM,CAAC;AAElC,
|
|
1
|
+
{"version":3,"file":"output-check.js","sourceRoot":"","sources":["../../src/completions/output-check.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAEvD,MAAM,kBAAkB,GAAG,MAAM,CAAC;AAElC,MAAM,CAAC,MAAM,qBAAqB,GAAqB;IACrD,IAAI,EAAE,cAAc;IAC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AAI,CAAC,mBAAmB,QAAQ,UAAU,WAAW,CAAC,QAAQ,KAAK,WAAW,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QAC1G,CAAC;QAED,OAAO,WAAW,CAAC,QAAQ,KAAK,CAAC,IAAI,WAAW,CAAC,WAAW,KAAK,IAAI,CAAC;IACxE,CAAC;CACF,CAAC"}
|
package/dist/config-ops.d.ts
CHANGED
package/dist/config-ops.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-ops.d.ts","sourceRoot":"","sources":["../src/config-ops.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"config-ops.d.ts","sourceRoot":"","sources":["../src/config-ops.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAIrF;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,iBAAiB,CAEnE;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,iBAAiB,EACzB,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,QAAQ,CAAC,CAAC,GACjD,iBAAiB,CAEnB;AAID;;GAEG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,iBAAiB,EAAE,KAAK,EAAE,cAAc,GAAG,iBAAiB,CAQ/F;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,GAAG,iBAAiB,CAGzF;AAED;;;GAGG;AACH,wBAAgB,SAAS,CACvB,MAAM,EAAE,iBAAiB,EACzB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,GACd,iBAAiB,CAQnB;AAED;;;GAGG;AACH,wBAAgB,WAAW,CACzB,MAAM,EAAE,iBAAiB,EACzB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,IAAI,GAAG,OAAO,CAAC,CAAC,GACpD,iBAAiB,CAMnB;AAID;;;GAGG;AACH,wBAAgB,UAAU,CACxB,MAAM,EAAE,iBAAiB,EACzB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,aAAa,GAClB,iBAAiB,CAanB;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CACxB,MAAM,EAAE,iBAAiB,EACzB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,EACd,SAAS,UAAQ,GAChB,iBAAiB,CAsDnB;AAkBD;;;;GAIG;AACH,wBAAgB,QAAQ,CACtB,MAAM,EAAE,iBAAiB,EACzB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,GACd,iBAAiB,CAgBnB;AAED;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAC1B,MAAM,EAAE,iBAAiB,EACzB,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,WAAW,UAAO,GACjB,iBAAiB,CAwEnB"}
|
package/dist/config.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { createEmptyPipeline, setPipelineField, upsertTrack, removeTrack, moveTrack, updateTrack, upsertTask, removeTask, moveTask, transferTask, } from './config-ops';
|
|
2
2
|
export { validateRaw } from './validate-raw';
|
|
3
3
|
export type { ValidationError, KnownPluginTypes } from './validate-raw';
|
|
4
|
-
export { buildRawDag } from '@tagma/core';
|
|
5
|
-
export type { RawDag, RawDagNode } from '@tagma/core';
|
|
4
|
+
export { buildDag, buildRawDag } from '@tagma/core';
|
|
5
|
+
export type { Dag, DagNode, RawDag, RawDagNode } from '@tagma/core';
|
|
6
6
|
export { TASK_ID_RE, isValidTaskId, qualifyTaskId, isQualifiedRef, buildTaskIndex, resolveTaskRef, AMBIGUOUS, } from '@tagma/core';
|
|
7
7
|
export type { TaskIndex, RefResolution } from '@tagma/core';
|
|
8
8
|
//# sourceMappingURL=config.d.ts.map
|
package/dist/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,SAAS,EACT,WAAW,EACX,UAAU,EACV,UAAU,EACV,QAAQ,EACR,YAAY,GACb,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,SAAS,EACT,WAAW,EACX,UAAU,EACV,UAAU,EACV,QAAQ,EACR,YAAY,GACb,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACpD,YAAY,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACpE,OAAO,EACL,UAAU,EACV,aAAa,EACb,aAAa,EACb,cAAc,EACd,cAAc,EACd,cAAc,EACd,SAAS,GACV,MAAM,aAAa,CAAC;AACrB,YAAY,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC"}
|
package/dist/config.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { createEmptyPipeline, setPipelineField, upsertTrack, removeTrack, moveTrack, updateTrack, upsertTask, removeTask, moveTask, transferTask, } from './config-ops';
|
|
2
2
|
export { validateRaw } from './validate-raw';
|
|
3
|
-
export { buildRawDag } from '@tagma/core';
|
|
3
|
+
export { buildDag, buildRawDag } from '@tagma/core';
|
|
4
4
|
export { TASK_ID_RE, isValidTaskId, qualifyTaskId, isQualifiedRef, buildTaskIndex, resolveTaskRef, AMBIGUOUS, } from '@tagma/core';
|
|
5
5
|
//# sourceMappingURL=config.js.map
|
package/dist/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,SAAS,EACT,WAAW,EACX,UAAU,EACV,UAAU,EACV,QAAQ,EACR,YAAY,GACb,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,SAAS,EACT,WAAW,EACX,UAAU,EACV,UAAU,EACV,QAAQ,EACR,YAAY,GACb,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAEpD,OAAO,EACL,UAAU,EACV,aAAa,EACb,aAAa,EACb,cAAc,EACd,cAAc,EACd,cAAc,EACd,SAAS,GACV,MAAM,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"opencode.d.ts","sourceRoot":"","sources":["../../src/drivers/opencode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EAOb,MAAM,
|
|
1
|
+
{"version":3,"file":"opencode.d.ts","sourceRoot":"","sources":["../../src/drivers/opencode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EAOb,MAAM,cAAc,CAAC;AA4JtB,eAAO,MAAM,cAAc,EAAE,YAiL5B,CAAC"}
|
package/dist/drivers/opencode.js
CHANGED
|
@@ -8,9 +8,9 @@ const DEFAULT_MODEL = 'opencode/big-pickle';
|
|
|
8
8
|
// tagma uses a provider-neutral reasoning_effort vocabulary (low|medium|high)
|
|
9
9
|
// but opencode's `--variant` is provider-specific (e.g. high|max|minimal).
|
|
10
10
|
// Map the tagma values to the closest opencode variant:
|
|
11
|
-
// low
|
|
12
|
-
// medium
|
|
13
|
-
// high
|
|
11
|
+
// low -> minimal (least thinking)
|
|
12
|
+
// medium -> <no flag, provider default>
|
|
13
|
+
// high -> high (most thinking)
|
|
14
14
|
// Unknown values pass through unchanged so users who target a specific
|
|
15
15
|
// opencode variant (e.g. "max") still work.
|
|
16
16
|
const EFFORT_TO_VARIANT = {
|
|
@@ -47,7 +47,7 @@ async function ensureOpencodeInstalled() {
|
|
|
47
47
|
if (opencodeReady === false && opencodeReadyError) {
|
|
48
48
|
throw new Error(opencodeReadyError);
|
|
49
49
|
}
|
|
50
|
-
// Probe existing install first
|
|
50
|
+
// Probe existing install first; this is the hot path for desktop users
|
|
51
51
|
// (bundled binary in PATH) and for anyone who already has opencode.
|
|
52
52
|
const probe = await runCapture(['opencode', '--version']);
|
|
53
53
|
if (probe.code === 0) {
|
|
@@ -102,7 +102,7 @@ function pickFreeModel(models) {
|
|
|
102
102
|
return false;
|
|
103
103
|
return true;
|
|
104
104
|
});
|
|
105
|
-
// Prefer models explicitly labelled "-free" by the provider
|
|
105
|
+
// Prefer models explicitly labelled "-free" by the provider; those are
|
|
106
106
|
// a stronger stability signal than "cost happens to be 0 right now".
|
|
107
107
|
const preferred = eligible.filter((m) => m.id?.endsWith('-free'));
|
|
108
108
|
const pool = preferred.length > 0 ? preferred : eligible;
|
|
@@ -152,8 +152,8 @@ export const OpenCodeDriver = {
|
|
|
152
152
|
// Otherwise resolveDefaultModel both ensures the CLI and picks a free
|
|
153
153
|
// model from `opencode models --verbose` (cached per-process).
|
|
154
154
|
const model = explicitModel ?? (await resolveDefaultModel());
|
|
155
|
-
// Resolve reasoning_effort
|
|
156
|
-
// resolved task
|
|
155
|
+
// Resolve reasoning_effort to opencode --variant. SDK schema layer already
|
|
156
|
+
// resolved task -> track -> pipeline inheritance, so we only need to read
|
|
157
157
|
// task.reasoning_effort here.
|
|
158
158
|
const rawEffort = task.reasoning_effort ?? track.reasoning_effort;
|
|
159
159
|
const variant = rawEffort
|
|
@@ -172,7 +172,7 @@ export const OpenCodeDriver = {
|
|
|
172
172
|
if (task.continue_from) {
|
|
173
173
|
sessionId = ctx.sessionMap.get(task.continue_from) ?? null;
|
|
174
174
|
if (!sessionId) {
|
|
175
|
-
// no session
|
|
175
|
+
// no session; degrade to text context passthrough
|
|
176
176
|
let prev = null;
|
|
177
177
|
if (ctx.normalizedMap.has(task.continue_from)) {
|
|
178
178
|
prev = ctx.normalizedMap.get(task.continue_from);
|
|
@@ -188,7 +188,7 @@ export const OpenCodeDriver = {
|
|
|
188
188
|
// misread by opencode's argument parser (flag-injection mitigation).
|
|
189
189
|
// Shell-level injection is already prevented by Bun.spawn's direct argv array.
|
|
190
190
|
// Windows cmd.exe argv truncation on the `.cmd` wrapper is handled by the
|
|
191
|
-
// SDK runner's shim unwrapping
|
|
191
|
+
// SDK runner's shim unwrapping; see note at the top of this file.
|
|
192
192
|
const args = [
|
|
193
193
|
'opencode',
|
|
194
194
|
'run',
|
|
@@ -211,8 +211,8 @@ export const OpenCodeDriver = {
|
|
|
211
211
|
return { args, cwd: task.cwd ?? ctx.workDir };
|
|
212
212
|
},
|
|
213
213
|
parseResult(stdout) {
|
|
214
|
-
// opencode --format json emits NDJSON
|
|
215
|
-
// (step_start / text / step_finish /
|
|
214
|
+
// opencode --format json emits NDJSON: one JSON object per line
|
|
215
|
+
// (step_start / text / step_finish / ...). The previous single
|
|
216
216
|
// `JSON.parse(stdout)` always threw on this shape and fell through to
|
|
217
217
|
// the catch, returning sessionId:null and losing session resume.
|
|
218
218
|
// Walk line-by-line, pick up the first sessionID we see, concatenate
|
|
@@ -251,11 +251,11 @@ export const OpenCodeDriver = {
|
|
|
251
251
|
// D21: stop at the first error. Continuing meant subsequent text
|
|
252
252
|
// lines got accumulated into `textParts` only to be discarded by
|
|
253
253
|
// the error-return below, and a later `{type:"error"}` would
|
|
254
|
-
// silently overwrite the original cause
|
|
254
|
+
// silently overwrite the original cause; operators then debugged
|
|
255
255
|
// a downstream symptom while the root-cause line scrolled past.
|
|
256
256
|
break;
|
|
257
257
|
}
|
|
258
|
-
// Session id
|
|
258
|
+
// Session id: opencode uses `sessionID` (camelCase with capital D).
|
|
259
259
|
// Keep `session_id` / `sessionId` as fallbacks for forward/backward
|
|
260
260
|
// compatibility with other shapes.
|
|
261
261
|
if (!sessionId) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"opencode.js","sourceRoot":"","sources":["../../src/drivers/opencode.ts"],"names":[],"mappings":"AAUA,MAAM,aAAa,GAAG,qBAAqB,CAAC;AAE5C,6EAA6E;AAC7E,2EAA2E;AAC3E,yEAAyE;AACzE,2EAA2E;AAC3E,yEAAyE;AACzE,yDAAyD;AAEzD,8EAA8E;AAC9E,2EAA2E;AAC3E,wDAAwD;AACxD,
|
|
1
|
+
{"version":3,"file":"opencode.js","sourceRoot":"","sources":["../../src/drivers/opencode.ts"],"names":[],"mappings":"AAUA,MAAM,aAAa,GAAG,qBAAqB,CAAC;AAE5C,6EAA6E;AAC7E,2EAA2E;AAC3E,yEAAyE;AACzE,2EAA2E;AAC3E,yEAAyE;AACzE,yDAAyD;AAEzD,8EAA8E;AAC9E,2EA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K,MAAM,EAAE,CAAC;gBACzB,MAAM,IAAI,GAAG,IAAI,CAAC,IAAsC,CAAC;gBACzD,IAAI,IAAI,IAAI,OAAO,IAAI,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;oBAC1C,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBAC5B,CAAC;YACH,CAAC;iBAAM,IAAI,OAAO,IAAI,CAAC,MAAM,KAAK,QAAQ,EAAE,CAAC;gBAC3C,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAC9B,CAAC;iBAAM,IAAI,OAAO,IAAI,CAAC,OAAO,KAAK,QAAQ,EAAE,CAAC;gBAC5C,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAC/B,CAAC;QACH,CAAC;QAED,IAAI,WAAW,EAAE,CAAC;YAChB,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,kBAAkB,EAAE,WAAW,EAAE,CAAC;QACjE,CAAC;QAED,yDAAyD;QACzD,MAAM,gBAAgB,GAAG,CAAC,UAAU;YAClC,CAAC,CAAC,MAAM;YACR,CAAC,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC;gBACpB,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC;gBACtB,CAAC,CAAC,MAAM,CAAC;QAEb,OAAO;YACL,SAAS;YACT,gBAAgB;SACjB,CAAC;IACJ,CAAC;CACF,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export { createTagma } from './tagma';
|
|
2
2
|
export type { CreateTagmaOptions, Tagma, TagmaRunOptions } from './tagma';
|
|
3
3
|
export { bunRuntime } from '@tagma/runtime-bun';
|
|
4
|
-
export type { TagmaRuntime, RunOptions as RuntimeRunOptions } from '@tagma/core';
|
|
4
|
+
export type { EnvPolicy, TagmaRuntime, RunOptions as RuntimeRunOptions } from '@tagma/core';
|
|
5
5
|
export { definePipeline, PluginRegistry, TriggerBlockedError, TriggerTimeoutError } from '@tagma/core';
|
|
6
|
-
export type { EngineResult, RunEventPayload } from '@tagma/core';
|
|
7
|
-
export { RUN_PROTOCOL_VERSION, TASK_LOG_CAP } from '
|
|
8
|
-
export type { PipelineConfig, RawPipelineConfig, RawTrackConfig, RawTaskConfig, TrackConfig, TaskConfig, RunSnapshotPayload, WireRunEvent, RunTaskState, TaskLogLine, ApprovalRequestInfo, TaskStatus, ApprovalRequest, PluginCategory, PluginCapabilities,
|
|
6
|
+
export type { EngineResult, RegisterPluginOptions, RunEventPayload } from '@tagma/core';
|
|
7
|
+
export { RUN_PROTOCOL_VERSION, TASK_LOG_CAP } from '@tagma/types';
|
|
8
|
+
export type { PipelineConfig, PipelineExecutionMode, RawPipelineConfig, RawTrackConfig, RawTaskConfig, TrackConfig, TaskConfig, RunSnapshotPayload, WireRunEvent, RunTaskState, TaskLogLine, ApprovalRequestInfo, ApprovalRequestHandle, TaskStatus, ApprovalRequest, ApprovalGateway, PluginCategory, PluginCapabilities, TagmaPlugin, DriverPlugin, TriggerPlugin, TriggerWatchHandle, CompletionPlugin, MiddlewarePlugin, RunEventPayload as PipelineRunEventPayload, } from '@tagma/types';
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,YAAY,EAAE,kBAAkB,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,YAAY,EAAE,YAAY,EAAE,UAAU,IAAI,iBAAiB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,YAAY,EAAE,kBAAkB,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,YAAY,EAAE,SAAS,EAAE,YAAY,EAAE,UAAU,IAAI,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAC5F,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AACvG,YAAY,EAAE,YAAY,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACxF,OAAO,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAClE,YAAY,EACV,cAAc,EACd,qBAAqB,EACrB,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,WAAW,EACX,UAAU,EACV,kBAAkB,EAClB,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,mBAAmB,EACnB,qBAAqB,EACrB,UAAU,EACV,eAAe,EACf,eAAe,EACf,cAAc,EACd,kBAAkB,EAClB,WAAW,EACX,YAAY,EACZ,aAAa,EACb,kBAAkB,EAClB,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,IAAI,uBAAuB,GAC3C,MAAM,cAAc,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { createTagma } from './tagma';
|
|
2
2
|
export { bunRuntime } from '@tagma/runtime-bun';
|
|
3
3
|
export { definePipeline, PluginRegistry, TriggerBlockedError, TriggerTimeoutError } from '@tagma/core';
|
|
4
|
-
export { RUN_PROTOCOL_VERSION, TASK_LOG_CAP } from '
|
|
4
|
+
export { RUN_PROTOCOL_VERSION, TASK_LOG_CAP } from '@tagma/types';
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAEvG,OAAO,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAEvG,OAAO,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"static-context.d.ts","sourceRoot":"","sources":["../../src/middlewares/static-context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAqC,MAAM,
|
|
1
|
+
{"version":3,"file":"static-context.d.ts","sourceRoot":"","sources":["../../src/middlewares/static-context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAqC,MAAM,cAAc,CAAC;AAGxF,eAAO,MAAM,uBAAuB,EAAE,gBA2CrC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { type PipelineConfig, type RunEventPayload, type RunTaskState } from '
|
|
1
|
+
import { type EngineResult, type RunPipelineOptions } from '@tagma/core';
|
|
2
|
+
import { type PipelineConfig, type RunEventPayload, type RunTaskState } from '@tagma/types';
|
|
3
3
|
export type { EngineResult };
|
|
4
4
|
export type PipelineRunnerStatus = 'idle' | 'running' | 'done' | 'aborted';
|
|
5
5
|
export type PipelineRunnerOptions = Omit<RunPipelineOptions, 'signal' | 'onEvent'>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipeline-runner.d.ts","sourceRoot":"","sources":["../src/pipeline-runner.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pipeline-runner.d.ts","sourceRoot":"","sources":["../src/pipeline-runner.ts"],"names":[],"mappings":"AAuBA,OAAO,EAAe,KAAK,YAAY,EAAE,KAAK,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACtF,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,YAAY,EAClB,MAAM,cAAc,CAAC;AAGtB,YAAY,EAAE,YAAY,EAAE,CAAC;AAE7B,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;AAC3E,MAAM,MAAM,qBAAqB,GAAG,IAAI,CAAC,kBAAkB,EAAE,QAAQ,GAAG,SAAS,CAAC,CAAC;AAEnF,qBAAa,cAAc;IAyBvB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,IAAI;IA1BvB;;;OAGG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAE5B;;;OAGG;IACH,OAAO,CAAC,MAAM,CAAuB;IACrC,OAAO,CAAC,OAAO,CAAgC;IAC/C,OAAO,CAAC,OAAO,CAAsC;IACrD,OAAO,CAAC,gBAAgB,CAAyB;IACjD,OAAO,CAAC,SAAS,CAA+C;IAChE;;;;;OAKG;IACH,OAAO,CAAC,MAAM,CAAmC;gBAG9B,MAAM,EAAE,cAAc,EACtB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,qBAAqB;IAK9C,IAAI,KAAK,IAAI,MAAM,GAAG,IAAI,CAEzB;IACD,IAAI,MAAM,IAAI,oBAAoB,CAE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