@tagma/sdk 0.7.82 → 0.7.83
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
CHANGED
|
@@ -393,7 +393,7 @@ File and directory trigger watch paths may be relative to `workDir`, absolute, o
|
|
|
393
393
|
| --------- | ---------------- | -------- | ------- | ----------------------------------------------------------------------- |
|
|
394
394
|
| `type` | `"output_check"` | Yes | - | Completion type |
|
|
395
395
|
| `check` | `string` | Yes | - | Shell command to run. Task stdout is piped to its stdin; exits 0 = pass |
|
|
396
|
-
| `timeout` | `string` | No | `"
|
|
396
|
+
| `timeout` | `string` | No | `"2h"` | Max time to wait for the check command |
|
|
397
397
|
|
|
398
398
|
---
|
|
399
399
|
|
|
@@ -526,6 +526,8 @@ Options:
|
|
|
526
526
|
- `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.
|
|
527
527
|
- `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
|
|
528
528
|
- `maxLogRuns` -- number of per-run log directories to keep under `<workDir>/.tagma/logs/` (default: 20)
|
|
529
|
+
- `defaultTaskTimeoutMs` -- host fallback for tasks without an authored `timeout`. Omit it to preserve the low-level unbounded behavior. An explicit task timeout always wins.
|
|
530
|
+
- `defaultPipelineTimeoutMs` -- host fallback for the total pipeline lifecycle when the pipeline has no top-level `timeout`. Omit it to preserve the low-level unbounded behavior. An explicit pipeline timeout always wins. Hosts should keep this above `defaultTaskTimeoutMs` so the outer lifecycle cannot expire first.
|
|
529
531
|
- `loadDeclaredPlugins` -- explicitly import and register packages named in `config.plugins`. Loading plugin packages executes their top-level module code, so the safe default is `false`; hosts should set this only after making a trust decision for the YAML and its declared plugins.
|
|
530
532
|
- `skipPluginLoading` -- legacy compatibility flag for the old implicit plugin-loading path. The safe default now behaves as if plugin loading is skipped unless `loadDeclaredPlugins: true` is set. Passing `skipPluginLoading: false` is still treated as an explicit opt-in for existing hosts.
|
|
531
533
|
- `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.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { commandLabel, commandToSpawnSpec } from '@tagma/core';
|
|
2
2
|
import { parseOptionalPluginTimeout } from '../duration.js';
|
|
3
|
-
const DEFAULT_TIMEOUT_MS =
|
|
3
|
+
const DEFAULT_TIMEOUT_MS = 2 * 60 * 60 * 1_000;
|
|
4
4
|
const MAX_FEEDBACK_STREAM_CHARS = 8_000;
|
|
5
5
|
function tailForFeedback(value) {
|
|
6
6
|
if (value.length <= MAX_FEEDBACK_STREAM_CHARS)
|
|
@@ -20,9 +20,9 @@ export const OutputCheckCompletion = {
|
|
|
20
20
|
},
|
|
21
21
|
timeout: {
|
|
22
22
|
type: 'duration',
|
|
23
|
-
default: '
|
|
23
|
+
default: '2h',
|
|
24
24
|
description: 'Maximum time to wait for the check command.',
|
|
25
|
-
placeholder: '
|
|
25
|
+
placeholder: '2h',
|
|
26
26
|
},
|
|
27
27
|
},
|
|
28
28
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"output-check.js","sourceRoot":"","sources":["../../src/completions/output-check.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAEzD,MAAM,kBAAkB,GAAG,
|
|
1
|
+
{"version":3,"file":"output-check.js","sourceRoot":"","sources":["../../src/completions/output-check.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAEzD,M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AW,CAAC,MAAM,CAAC,IAAI,EAAE;gBACvB,CAAC,CAAC,sBAAsB,eAAe,CAAC,WAAW,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,EAAE;gBACpE,CAAC,CAAC,IAAI;YACR,WAAW,CAAC,MAAM,CAAC,IAAI,EAAE;gBACvB,CAAC,CAAC,sBAAsB,eAAe,CAAC,WAAW,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,EAAE;gBACpE,CAAC,CAAC,IAAI;SACT;aACE,MAAM,CAAC,CAAC,IAAI,EAAkB,EAAE,CAAC,IAAI,KAAK,IAAI,CAAC;aAC/C,IAAI,CAAC,IAAI,CAAC,CAAC;QAEd,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC;IACrC,CAAC;CACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tagma/sdk",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.83",
|
|
4
4
|
"description": "Local AI task orchestration SDK for Tagma pipelines",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -84,9 +84,9 @@
|
|
|
84
84
|
"test": "bun test"
|
|
85
85
|
},
|
|
86
86
|
"dependencies": {
|
|
87
|
-
"@tagma/core": "0.1.
|
|
88
|
-
"@tagma/runtime-bun": "0.1.
|
|
89
|
-
"@tagma/types": "0.4.
|
|
87
|
+
"@tagma/core": "0.1.79",
|
|
88
|
+
"@tagma/runtime-bun": "0.1.69",
|
|
89
|
+
"@tagma/types": "0.4.86",
|
|
90
90
|
"js-yaml": "^4.1.0"
|
|
91
91
|
}
|
|
92
92
|
}
|