@synapsor/runner 0.1.0-alpha.14 → 0.1.0-alpha.15
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 +8 -0
- package/README.md +4 -0
- package/dist/runner.mjs +3 -3
- package/docs/app-owned-executors.md +5 -0
- package/docs/handler-helper.md +4 -0
- package/docs/release-notes.md +9 -1
- package/docs/release-policy.md +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -33,6 +33,14 @@
|
|
|
33
33
|
`result_format: 2` or `--result-format v2`.
|
|
34
34
|
- The public command remains `synapsor-runner`.
|
|
35
35
|
|
|
36
|
+
## 0.1.0-alpha.15
|
|
37
|
+
|
|
38
|
+
### Changed
|
|
39
|
+
|
|
40
|
+
- Clarified that users install only `@synapsor/runner`. A handler is the
|
|
41
|
+
user's app endpoint or script for rich approved writes, and Runner includes
|
|
42
|
+
templates/examples to help build one.
|
|
43
|
+
|
|
36
44
|
## 0.1.0-alpha.14
|
|
37
45
|
|
|
38
46
|
### Changed
|
package/README.md
CHANGED
|
@@ -25,6 +25,10 @@ After writeback, Runner keeps receipts and replay so you can inspect what happen
|
|
|
25
25
|
- Executor: your app's writeback handler for anything richer than a guarded
|
|
26
26
|
one-row update.
|
|
27
27
|
|
|
28
|
+
You install only `@synapsor/runner`. There is no separate handler package to
|
|
29
|
+
install. A handler is your app's endpoint or script for rich approved writes;
|
|
30
|
+
Runner includes templates and examples to help you build one.
|
|
31
|
+
|
|
28
32
|
## Who Does What
|
|
29
33
|
|
|
30
34
|
You write the config: sources, trusted context, capabilities, visible fields,
|
package/dist/runner.mjs
CHANGED
|
@@ -2747,7 +2747,7 @@ function assertPersistentStoreAvailable(storePath) {
|
|
|
2747
2747
|
}
|
|
2748
2748
|
function createSynapsorMcpServer(runtime, options = {}) {
|
|
2749
2749
|
const server = new McpServer(
|
|
2750
|
-
{ name: "synapsor-runner", version: "0.1.0-alpha.
|
|
2750
|
+
{ name: "synapsor-runner", version: "0.1.0-alpha.15" },
|
|
2751
2751
|
{ capabilities: { tools: {}, resources: {} } }
|
|
2752
2752
|
);
|
|
2753
2753
|
const toolNameStyle = options.toolNameStyle ?? "canonical";
|
|
@@ -9172,7 +9172,7 @@ async function cloudConnect(args) {
|
|
|
9172
9172
|
return 1;
|
|
9173
9173
|
}
|
|
9174
9174
|
const runnerId = String(parsed.cloud.runner_id || process2.env.SYNAPSOR_RUNNER_ID || "synapsor_runner_local").trim();
|
|
9175
|
-
const runnerVersion = String(parsed.cloud.runner_version || process2.env.npm_package_version || "0.1.0-alpha.
|
|
9175
|
+
const runnerVersion = String(parsed.cloud.runner_version || process2.env.npm_package_version || "0.1.0-alpha.15").trim();
|
|
9176
9176
|
const engines = normalizeEngines(parsed.cloud.engines);
|
|
9177
9177
|
const capabilities = normalizeCapabilities(parsed.cloud.capabilities);
|
|
9178
9178
|
const client = new ControlPlaneClient({
|
|
@@ -13311,7 +13311,7 @@ function starterCloudConfig() {
|
|
|
13311
13311
|
base_url_env: "SYNAPSOR_CLOUD_BASE_URL",
|
|
13312
13312
|
runner_token_env: "SYNAPSOR_RUNNER_TOKEN",
|
|
13313
13313
|
runner_id: "synapsor_runner_local",
|
|
13314
|
-
runner_version: "0.1.0-alpha.
|
|
13314
|
+
runner_version: "0.1.0-alpha.15",
|
|
13315
13315
|
project_id: "token_scope",
|
|
13316
13316
|
adapter_id: "mcp.your_adapter",
|
|
13317
13317
|
source_id: "src_replace_me",
|
|
@@ -17,6 +17,11 @@ The model-facing MCP tool only creates a proposal. Approval happens outside MCP.
|
|
|
17
17
|
After approval, Runner calls your `http_handler` or `command_handler`, records
|
|
18
18
|
the receipt, and includes the result in replay.
|
|
19
19
|
|
|
20
|
+
A handler is your application endpoint or script. It is not a second Synapsor
|
|
21
|
+
package that users need to install. Install `@synapsor/runner`, then generate
|
|
22
|
+
or copy a handler template only when your approved write needs app-owned
|
|
23
|
+
business logic.
|
|
24
|
+
|
|
20
25
|
Do not use generic SQL for rich business transactions. Let the model propose,
|
|
21
26
|
let Synapsor Runner approve/replay, and let your app execute the transaction.
|
|
22
27
|
|
package/docs/handler-helper.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
Use the TypeScript handler helper when an approved Synapsor proposal should be
|
|
4
4
|
executed by your application service, not by Runner's direct SQL writer.
|
|
5
5
|
|
|
6
|
+
This is optional support code for your app-owned handler. Users install
|
|
7
|
+
`@synapsor/runner`; they do not install a separate handler package in the
|
|
8
|
+
current alpha.
|
|
9
|
+
|
|
6
10
|
The helper is the safe-by-default path for rich writes such as:
|
|
7
11
|
|
|
8
12
|
- inserting account-credit, refund-review, ticket, or ledger rows;
|
package/docs/release-notes.md
CHANGED
|
@@ -11,6 +11,14 @@ npx -y -p @synapsor/runner@alpha synapsor-runner demo --quick
|
|
|
11
11
|
The OSS runner command is `synapsor-runner`. The `synapsor` command is reserved
|
|
12
12
|
for the Synapsor Cloud CLI.
|
|
13
13
|
|
|
14
|
+
## 0.1.0-alpha.15
|
|
15
|
+
|
|
16
|
+
### Handler Wording Clarification
|
|
17
|
+
|
|
18
|
+
- README and app-owned executor docs now state that users install only
|
|
19
|
+
`@synapsor/runner`. A handler is the user's own app endpoint or script for
|
|
20
|
+
rich approved writes, not a second Synapsor package to install.
|
|
21
|
+
|
|
14
22
|
## 0.1.0-alpha.14
|
|
15
23
|
|
|
16
24
|
### Handler Helper And Changelog Clarity
|
|
@@ -209,5 +217,5 @@ After publishing an alpha, verify the public package from a clean temporary
|
|
|
209
217
|
directory:
|
|
210
218
|
|
|
211
219
|
```bash
|
|
212
|
-
./scripts/verify-published-alpha.sh 0.1.0-alpha.
|
|
220
|
+
./scripts/verify-published-alpha.sh 0.1.0-alpha.15
|
|
213
221
|
```
|
package/docs/release-policy.md
CHANGED
|
@@ -5,7 +5,7 @@ or an exact version:
|
|
|
5
5
|
|
|
6
6
|
```bash
|
|
7
7
|
npx -y -p @synapsor/runner@alpha synapsor-runner demo --quick
|
|
8
|
-
npm install -g @synapsor/runner@0.1.0-alpha.
|
|
8
|
+
npm install -g @synapsor/runner@0.1.0-alpha.15
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
Do not rely on the untagged `latest` dist-tag until a stable release is
|