service-bridge 2.0.0-alpha → 2.0.0-alpha.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.
package/README.md CHANGED
@@ -87,6 +87,16 @@ const sb = new ServiceBridge(
87
87
 
88
88
  The third constructor argument is an [options](#configuration) object. The SDK reads **no environment variables** — every knob is a constructor option, so you stay in control of where config comes from.
89
89
 
90
+ ### Using an AI coding agent?
91
+
92
+ Drop in the official **`servicebridge-node`** skill and your agent (Claude Code, etc.) writes correct ServiceBridge code on the first try — RPC, events, workflows, jobs and HTTP integration, grounded in this exact SDK:
93
+
94
+ ```sh
95
+ npx degit service-bridge/sdk/skills/servicebridge-node .claude/skills/servicebridge-node
96
+ ```
97
+
98
+ Source and details: [`skills/servicebridge-node/`](https://github.com/service-bridge/sdk/tree/main/skills/servicebridge-node).
99
+
90
100
  ---
91
101
 
92
102
  ## Why ServiceBridge
@@ -1,5 +1,5 @@
1
1
  import { Express } from 'express';
2
- import { p as ServiceBridge } from '../../service-bridge-CPmirNES.js';
2
+ import { p as ServiceBridge } from '../../service-bridge-B1sZmWdS.js';
3
3
  import '@grpc/grpc-js';
4
4
  import '@bufbuild/protobuf/wire';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { FastifyPluginAsync } from 'fastify';
2
- import { v as OpHandle, p as ServiceBridge } from '../../service-bridge-CPmirNES.js';
2
+ import { v as OpHandle, p as ServiceBridge } from '../../service-bridge-B1sZmWdS.js';
3
3
  import '@grpc/grpc-js';
4
4
  import '@bufbuild/protobuf/wire';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { Hono } from 'hono';
2
- import { p as ServiceBridge } from '../../service-bridge-CPmirNES.js';
2
+ import { p as ServiceBridge } from '../../service-bridge-B1sZmWdS.js';
3
3
  import '@grpc/grpc-js';
4
4
  import '@bufbuild/protobuf/wire';
5
5
 
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { A as AdvertiseConfig, C as CallOpts, a as CatchupPolicy, b as ConnectedEvent, c as CronTrigger, D as DeclaredDep, d as DelayedTrigger, e as DisconnectedEvent, E as EventDomain, I as Identity, f as IntervalTrigger, J as JobDomain, g as JobHandler, h as JobHandlerCtx, i as JobOpts, M as MethodDescriptor, j as MethodType, O as OverlapPolicy, P as PolicyViolationEvent, k as PublishOpts, R as ReconnectingEvent, l as RetryOpts, m as RetryPolicy, n as RpcDomain, o as RpcHandlerOpts, S as SchemaSpec, p as ServiceBridge, q as ServiceBridgeError, r as ServiceBridgeOptions, s as ServiceDeps, T as Trigger, t as TypedClient, W as WorkflowDomain, u as WorkflowHandlerOpts } from './service-bridge-CPmirNES.js';
1
+ export { A as AdvertiseConfig, C as CallOpts, a as CatchupPolicy, b as ConnectedEvent, c as CronTrigger, D as DeclaredDep, d as DelayedTrigger, e as DisconnectedEvent, E as EventDomain, I as Identity, f as IntervalTrigger, J as JobDomain, g as JobHandler, h as JobHandlerCtx, i as JobOpts, M as MethodDescriptor, j as MethodType, O as OverlapPolicy, P as PolicyViolationEvent, k as PublishOpts, R as ReconnectingEvent, l as RetryOpts, m as RetryPolicy, n as RpcDomain, o as RpcHandlerOpts, S as SchemaSpec, p as ServiceBridge, q as ServiceBridgeError, r as ServiceBridgeOptions, s as ServiceDeps, T as Trigger, t as TypedClient, W as WorkflowDomain, u as WorkflowHandlerOpts } from './service-bridge-B1sZmWdS.js';
2
2
  import '@grpc/grpc-js';
3
3
  import '@bufbuild/protobuf/wire';
4
4
 
@@ -23,5 +23,14 @@ declare class WorkflowAccessDeniedError extends Error {
23
23
  readonly reason: string;
24
24
  constructor(workflowName: string, reason: string);
25
25
  }
26
+ declare class WorkflowNotFoundError extends Error {
27
+ readonly workflowName: string;
28
+ constructor(workflowName: string);
29
+ }
30
+ declare class WorkflowTerminalError extends Error {
31
+ readonly runId: string;
32
+ readonly status: string;
33
+ constructor(runId: string, status: string);
34
+ }
26
35
 
27
- export { InvalidEventNameError, OutboxFullError, RpcAccessDeniedError, WorkflowAccessDeniedError };
36
+ export { InvalidEventNameError, OutboxFullError, RpcAccessDeniedError, WorkflowAccessDeniedError, WorkflowNotFoundError, WorkflowTerminalError };