@synapsor/runner 0.1.10 → 0.1.12
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 +35 -0
- package/README.md +49 -25
- package/dist/cli.d.ts.map +1 -1
- package/dist/runner.mjs +275 -20
- package/docs/README.md +6 -0
- package/docs/cloud-mode.md +18 -0
- package/docs/cloud-push.md +54 -0
- package/docs/current-scope.md +1 -1
- package/docs/mcp-clients.md +123 -0
- package/docs/release-notes.md +41 -0
- package/docs/runner-bundles.md +59 -0
- package/examples/support-plan-credit/.env.example +10 -0
- package/examples/support-plan-credit/README.md +107 -10
- package/examples/support-plan-credit/expected-output/cloud-push-response.json +9 -0
- package/examples/support-plan-credit/expected-output/proposal-created.json +23 -0
- package/examples/support-plan-credit/expected-output/receipt.json +13 -0
- package/examples/support-plan-credit/expected-output/replay-summary.json +13 -0
- package/examples/support-plan-credit/expected-output/tools-preview.txt +15 -0
- package/examples/support-plan-credit/mcp-client-examples/claude-desktop.json +20 -0
- package/examples/support-plan-credit/mcp-client-examples/cursor-global.mcp.json +20 -0
- package/examples/support-plan-credit/mcp-client-examples/cursor-project.mcp.json +20 -0
- package/examples/support-plan-credit/mcp-client-examples/generic-stdio.json +17 -0
- package/examples/support-plan-credit/mcp-client-examples/generic-streamable-http.json +5 -0
- package/examples/support-plan-credit/mcp-client-examples/openai-agents-stdio.ts +19 -0
- package/examples/support-plan-credit/mcp-client-examples/openai-agents-streamable-http.ts +20 -0
- package/package.json +1 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Agent, MCPServerStreamableHttp, run } from "@openai/agents";
|
|
2
|
+
|
|
3
|
+
// Start Runner with --alias-mode openai so model-visible tool names are valid OpenAI function names.
|
|
4
|
+
const synapsor = new MCPServerStreamableHttp({
|
|
5
|
+
name: "Synapsor Runner",
|
|
6
|
+
url: "http://127.0.0.1:8766/mcp",
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
await synapsor.connect();
|
|
10
|
+
try {
|
|
11
|
+
const agent = new Agent({
|
|
12
|
+
name: "Support operations agent",
|
|
13
|
+
instructions: "Use only Synapsor business tools. Inspect evidence before proposing a plan credit.",
|
|
14
|
+
mcpServers: [synapsor],
|
|
15
|
+
});
|
|
16
|
+
const result = await run(agent, "Inspect customer CUS-3001 and propose a $25 plan credit for SLA outage ticket SUP-481.");
|
|
17
|
+
console.log(result.finalOutput);
|
|
18
|
+
} finally {
|
|
19
|
+
await synapsor.close();
|
|
20
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synapsor/runner",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"description": "Stop giving AI agents execute_sql; expose reviewed Postgres/MySQL MCP actions with proposals, approval, writeback, and replay.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|