@actiondock/sdk 2.0.0 → 2.0.2
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 +14 -14
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -77,15 +77,15 @@ describe("sample.greet Action", () => {
|
|
|
77
77
|
|
|
78
78
|
## Core Capabilities
|
|
79
79
|
|
|
80
|
-
-
|
|
81
|
-
- `ctx.config`: 5-tier configuration resolution (`
|
|
82
|
-
- `ctx.state`:
|
|
83
|
-
- `ctx.actions`:
|
|
84
|
-
- `ctx.log`:
|
|
85
|
-
- `ctx.signal`: Cooperative `AbortSignal`
|
|
86
|
-
-
|
|
87
|
-
-
|
|
88
|
-
-
|
|
80
|
+
- `ActionContext`:
|
|
81
|
+
- `ctx.config`: 5-tier configuration resolution (`override > sqlite > env > default > fallback`)
|
|
82
|
+
- `ctx.state`: Embedded SQLite state store with namespace and TTL support
|
|
83
|
+
- `ctx.actions`: Inter-action invocation with cycle detection
|
|
84
|
+
- `ctx.log`: Isolated logging directed to `stderr`
|
|
85
|
+
- `ctx.signal`: Cooperative cancellation via `AbortSignal`
|
|
86
|
+
- `execCli`: Deadlock-safe, cross-platform synchronous CLI executor with Windows `.cmd` resolution, stdin streaming, timeout, and signal support.
|
|
87
|
+
- `spawnDetached`: Safe asynchronous launcher for daemon-spawning CLI tools (e.g., `agent-browser open`), preventing pipe EOF hangs via fire-and-forget stdio decoupling and polling probe.
|
|
88
|
+
- `createTestRuntime`: Fast, zero-dependency in-memory test harness for unit tests.
|
|
89
89
|
|
|
90
90
|
---
|
|
91
91
|
|
|
@@ -108,14 +108,14 @@ describe("sample.greet Action", () => {
|
|
|
108
108
|
|
|
109
109
|
## 📖 Documentation
|
|
110
110
|
|
|
111
|
-
For detailed guides, design principles, and exhaustive API references, see the [ActionDock Documentation Center](
|
|
111
|
+
For detailed guides, design principles, and exhaustive API references, see the [ActionDock Documentation Center](../../docs/README.md):
|
|
112
112
|
|
|
113
|
-
- [Action SDK API Reference](
|
|
114
|
-
- [ActionContext Concept](
|
|
115
|
-
- [Testing & Verification Guide](
|
|
113
|
+
- [Action SDK API Reference](../../docs/reference/action-api.md)
|
|
114
|
+
- [ActionContext Concept](../../docs/concepts/action-context.md)
|
|
115
|
+
- [Testing & Verification Guide](../../docs/developer/testing.md)
|
|
116
116
|
|
|
117
117
|
---
|
|
118
118
|
|
|
119
119
|
## License
|
|
120
120
|
|
|
121
|
-
[Apache-2.0](LICENSE) © team4u
|
|
121
|
+
[Apache-2.0](../../LICENSE) © team4u
|