skillscript-runtime 0.18.9 → 0.19.1

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.
Files changed (50) hide show
  1. package/README.md +1 -1
  2. package/dist/bootstrap.d.ts.map +1 -1
  3. package/dist/bootstrap.js +43 -34
  4. package/dist/bootstrap.js.map +1 -1
  5. package/dist/cli.js +13 -0
  6. package/dist/cli.js.map +1 -1
  7. package/dist/connectors/agent.d.ts +6 -2
  8. package/dist/connectors/agent.d.ts.map +1 -1
  9. package/dist/connectors/types.d.ts +2 -8
  10. package/dist/connectors/types.d.ts.map +1 -1
  11. package/dist/connectors/types.js.map +1 -1
  12. package/dist/dashboard/server.d.ts +49 -0
  13. package/dist/dashboard/server.d.ts.map +1 -1
  14. package/dist/dashboard/server.js +129 -3
  15. package/dist/dashboard/server.js.map +1 -1
  16. package/dist/errors.d.ts +25 -0
  17. package/dist/errors.d.ts.map +1 -1
  18. package/dist/errors.js +42 -0
  19. package/dist/errors.js.map +1 -1
  20. package/dist/mcp-server.d.ts +14 -0
  21. package/dist/mcp-server.d.ts.map +1 -1
  22. package/dist/mcp-server.js +83 -6
  23. package/dist/mcp-server.js.map +1 -1
  24. package/dist/parser.d.ts +1 -1
  25. package/dist/parser.d.ts.map +1 -1
  26. package/dist/parser.js +4 -4
  27. package/dist/parser.js.map +1 -1
  28. package/dist/runtime-env-resolver.d.ts +76 -0
  29. package/dist/runtime-env-resolver.d.ts.map +1 -0
  30. package/dist/runtime-env-resolver.js +145 -0
  31. package/dist/runtime-env-resolver.js.map +1 -0
  32. package/dist/runtime.d.ts +10 -0
  33. package/dist/runtime.d.ts.map +1 -1
  34. package/dist/runtime.js +1 -1
  35. package/dist/runtime.js.map +1 -1
  36. package/dist/scheduler.d.ts +84 -11
  37. package/dist/scheduler.d.ts.map +1 -1
  38. package/dist/scheduler.js +155 -33
  39. package/dist/scheduler.js.map +1 -1
  40. package/dist/skill-catalog.js +7 -11
  41. package/dist/skill-catalog.js.map +1 -1
  42. package/dist/trace.d.ts +9 -1
  43. package/dist/trace.d.ts.map +1 -1
  44. package/dist/trace.js +10 -2
  45. package/dist/trace.js.map +1 -1
  46. package/docs/adopter-playbook.md +135 -0
  47. package/docs/configuration.md +2 -0
  48. package/examples/skillscripts/hello-world.skill.provenance.json +1 -1
  49. package/package.json +1 -1
  50. package/scaffold/.env.example +22 -1
@@ -57,6 +57,8 @@ The CLI auto-loads `$SKILLSCRIPT_HOME/.env` at startup and populates `process.en
57
57
  | `SKILLSCRIPT_POLL_INTERVAL_SECONDS=30` | Scheduler tick / poll interval (seconds) | env > config > default `30` |
58
58
  | `SKILLSCRIPT_ABSOLUTE_TIMEOUT_MS=300000` | Runtime fallback timeout (ms) when no per-op / skill / connector default applies | env > config > default `300000` (5 min) |
59
59
  | `SKILLSCRIPT_MAX_RECURSION_DEPTH=10` | Composition recursion depth ceiling for `$ execute_skill` chains | env > config > default `10` |
60
+ | `SKILLSCRIPT_EVENT_INGRESS_ENABLED=true` | Mount `POST /event` for v0.19.0 event-triggered skills. Default `false` — route returns 404 when not enabled. Shares `SKILLSCRIPT_PORT` with dashboard/RPC (one HTTP server). | env > default `false` |
61
+ | `SKILLSCRIPT_EVENT_INGRESS_AUTH_TOKEN=<token>` | Bearer-token auth for `POST /event`. When set, every event POST requires `Authorization: Bearer <token>`; 401 otherwise. Default unset = open-internally (still gated by bind address). | env > default unset |
60
62
  | `OLLAMA_BASE_URL=http://...` | Ollama endpoint for LocalModel (default `http://localhost:11434`) | env > built-in default |
61
63
 
62
64
  `SKILLSCRIPT_HOME` is the chicken-and-egg case — the path to `.env` requires it, so `.env` can't set it. Use shell, Docker `-e`, or systemd `Environment=` instead.
@@ -2,7 +2,7 @@
2
2
  "provenance_version": "1.0",
3
3
  "language_version": "1.0",
4
4
  "compiler_version": "0.1.0-dev",
5
- "compiled_at": "2026-06-07T11:45:30.911Z",
5
+ "compiled_at": "2026-06-07T23:02:51.300Z",
6
6
  "source_skill": {
7
7
  "name": "hello-world"
8
8
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skillscript-runtime",
3
- "version": "0.18.9",
3
+ "version": "0.19.1",
4
4
  "description": "Runtime, compiler, lint, CLI, and dashboard for Skillscript — a small declarative language for authoring agent workflows.",
5
5
  "license": "MIT",
6
6
  "author": "Scott Shwarts <scotts@pobox.com>",
@@ -64,10 +64,31 @@
64
64
  # reach the listener.
65
65
  # SKILLSCRIPT_HOST=0.0.0.0
66
66
 
67
- # Dashboard / serve HTTP port. Default 7878.
67
+ # Dashboard / serve HTTP port. Default 7878. Used for the SPA, JSON-RPC
68
+ # at /rpc, AND the v0.19.0 event-trigger ingress at /event (they share
69
+ # one HTTP server — no separate event port).
68
70
  # SKILLSCRIPT_PORT=8080
69
71
 
70
72
 
73
+ # ─── Event-trigger HTTP ingress (v0.19.0) ──────────────────────────────
74
+
75
+ # Enable POST /event for external HTTP-triggered skills. Default false —
76
+ # the route returns 404 when not enabled. Once enabled, external services
77
+ # POST {event_name, params} and the runtime fires the registered skill
78
+ # asynchronously, returning 200 + {run_id, durability: "in-process"}.
79
+ # The route mounts on SKILLSCRIPT_PORT (above); no separate port.
80
+ # Localhost-only by default — set SKILLSCRIPT_HOST=0.0.0.0 to expose
81
+ # beyond loopback. "Enforce the DMZ assumption by the bind, not by hope."
82
+ # SKILLSCRIPT_EVENT_INGRESS_ENABLED=true
83
+
84
+ # Optional bearer-token auth for POST /event. When set, every event
85
+ # POST must carry `Authorization: Bearer <token>` matching this value;
86
+ # 401 otherwise. Default unset = open-internally (still gated by the
87
+ # bind address). Cheap to wire early — turning it on later is just an
88
+ # env edit + restart, no refactor.
89
+ # SKILLSCRIPT_EVENT_INGRESS_AUTH_TOKEN=your-secret-token-here
90
+
91
+
71
92
  # ─── Runtime tuning ────────────────────────────────────────────────────
72
93
 
73
94
  # Scheduler tick / poll interval in seconds. Default 30. Lower (e.g. 5)