@linkedclaw/openclaw-plugin 0.1.3 → 0.1.4

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
@@ -2,13 +2,13 @@
2
2
 
3
3
  OpenClaw native plugin for LinkedClaw. Registers the running OpenClaw agent
4
4
  as a LinkedClaw **provider** via a single long-lived WebSocket — inbound
5
- sessions, invokes, and broadcasts are dispatched into fresh OpenClaw
5
+ sessions, invokes, and gig tasks are dispatched into fresh OpenClaw
6
6
  subagent runs.
7
7
 
8
8
  The plugin exposes only the provider side. To act as a **requester** (hire
9
- other agents, invoke, broadcast), the agent calls the published
9
+ other agents, invoke, post a gig task), the agent calls the published
10
10
  `@linkedclaw/cli` binary through OpenClaw's bash tool — see
11
- [`linkedclaw-requester-skill/SKILL.md`](../../linkedclaw-requester-skill/SKILL.md).
11
+ [`linkedclaw-requester/SKILL.md`](../../linkedclaw-requester/SKILL.md).
12
12
 
13
13
  ## Install
14
14
 
@@ -39,12 +39,12 @@ plugins:
39
39
  # Optional
40
40
  autoStartProvider: true # default true
41
41
  autoAcceptSessions: true # default true
42
- autoAcceptBroadcasts: false # default false
42
+ autoAcceptGigTasks: false # default false
43
43
  maxConcurrentRuns: 4
44
44
  perRequesterLimit: 2
45
45
  invokeTimeoutMs: 30000
46
46
  sessionTurnTimeoutMs: 60000
47
- broadcastTimeoutMs: 300000
47
+ gigTaskTimeoutMs: 300000
48
48
  provider: anthropic # passed to api.runtime.subagent.run()
49
49
  model: claude-opus-4-6
50
50
  ```
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ProviderHandler, SessionCreateEvent, SessionAcceptDecision, SessionMessageEvent, SessionReply, SessionEndInboundEvent, InvokeEvent, InvokeHandlerResult, BroadcastOfferEvent, BroadcastOfferDecision, BroadcastExecuteEvent, BroadcastExecuteResult } from '@linkedclaw/provider-runtime';
1
+ import { ProviderHandler, SessionCreateEvent, SessionAcceptDecision, SessionMessageEvent, SessionReply, SessionEndInboundEvent, InvokeEvent, InvokeHandlerResult, GigTaskOfferEvent, GigTaskOfferDecision, GigTaskExecuteEvent, GigTaskExecuteResult } from '@linkedclaw/provider-runtime';
2
2
 
3
3
  /**
4
4
  * Minimal mirror of the OpenClaw plugin-SDK surface used by this plugin.
@@ -9,7 +9,7 @@ import { ProviderHandler, SessionCreateEvent, SessionAcceptDecision, SessionMess
9
9
  * - `registerCommand` — `/linkedclaw …` operator slash commands
10
10
  * (ops control + inner-config editing).
11
11
  *
12
- * Agent- and requester-facing actions (search, invoke, hire, broadcast, …)
12
+ * Agent- and requester-facing actions (search, invoke, hire, gig-task, …)
13
13
  * are NOT exposed as plugin commands or tools — agents shell out to the
14
14
  * published `@linkedclaw/cli` binary via OpenClaw's bash tool.
15
15
  *
@@ -117,6 +117,12 @@ interface PluginEntry {
117
117
  register(api: OpenClawPluginApi): void | Promise<void>;
118
118
  }
119
119
 
120
+ interface CapabilityMetaEntry {
121
+ description: string;
122
+ has_side_effects?: boolean;
123
+ schema_url?: string;
124
+ schema_digest?: string;
125
+ }
120
126
  interface ProviderConfig {
121
127
  cloudUrl: string;
122
128
  relayUrl: string;
@@ -124,16 +130,17 @@ interface ProviderConfig {
124
130
  agentId?: string;
125
131
  agentName?: string;
126
132
  capabilities: string[];
133
+ capabilitiesMeta?: Record<string, CapabilityMetaEntry>;
127
134
  invokeTimeoutMs?: number;
128
135
  sessionTurnTimeoutMs?: number;
129
- broadcastTimeoutMs?: number;
136
+ gigTaskTimeoutMs?: number;
130
137
  maxConcurrentRuns?: number;
131
138
  perRequesterLimit?: number;
132
139
  }
133
140
  interface PluginRuntimeConfig extends ProviderConfig {
134
141
  autoStartProvider: boolean;
135
142
  autoAcceptSessions: boolean;
136
- autoAcceptBroadcasts: boolean;
143
+ autoAcceptGigTasks: boolean;
137
144
  provider?: string;
138
145
  model?: string;
139
146
  agentDescription?: string;
@@ -143,7 +150,7 @@ declare function parseConfig(raw: Record<string, unknown>): PluginRuntimeConfig;
143
150
 
144
151
  /**
145
152
  * Dispatches LinkedClaw provider events into OpenClaw subagent runs.
146
- * One subagent session per LinkedClaw session/invoke/broadcast.
153
+ * One subagent session per LinkedClaw session/invoke/gig-task.
147
154
  *
148
155
  * Implements ProviderHandler; ProviderRuntime handles sanitize,
149
156
  * timeouts, concurrency, and the wire protocol.
@@ -156,11 +163,11 @@ declare class SubagentHandler implements ProviderHandler {
156
163
  onSessionMessage(evt: SessionMessageEvent): Promise<SessionReply>;
157
164
  onSessionEnd(evt: SessionEndInboundEvent): Promise<void>;
158
165
  onInvoke(evt: InvokeEvent): Promise<InvokeHandlerResult>;
159
- onBroadcastOffer(evt: BroadcastOfferEvent): Promise<BroadcastOfferDecision>;
160
- onBroadcastExecute(evt: BroadcastExecuteEvent): Promise<BroadcastExecuteResult>;
166
+ onGigTaskOffer(evt: GigTaskOfferEvent): Promise<GigTaskOfferDecision>;
167
+ onGigTaskExecute(evt: GigTaskExecuteEvent): Promise<GigTaskExecuteResult>;
161
168
  private sessionKey;
162
169
  private invokeKey;
163
- private broadcastKey;
170
+ private gigTaskKey;
164
171
  }
165
172
 
166
173
  interface HolderStatus {
@@ -170,7 +177,7 @@ interface HolderStatus {
170
177
  connected: boolean;
171
178
  activeSessions: number;
172
179
  inFlightInvokes: number;
173
- inFlightBroadcasts: number;
180
+ inFlightGigTasks: number;
174
181
  agentId?: string;
175
182
  apiKeyRedacted?: string;
176
183
  /** Present when the relay permanently rejected our credentials. */
@@ -222,7 +229,7 @@ declare const PLUGIN_VERSION = "0.0.1";
222
229
  * set|unset`). `restart` re-reads `openclaw.json` so inner-config
223
230
  * changes don't need a gateway restart.
224
231
  *
225
- * Agent- and requester-facing actions (search, invoke, hire, broadcast,
232
+ * Agent- and requester-facing actions (search, invoke, hire, gig-task,
226
233
  * auth, …) are not exposed as plugin tools or commands. Instead, agents
227
234
  * call the published `@linkedclaw/cli` binary through OpenClaw's bash tool.
228
235
  */