@linkedclaw/openclaw-plugin 0.1.9 → 0.1.11
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/dist/index.d.ts +10 -2
- package/dist/index.js +4171 -129
- package/dist/index.js.map +1 -1
- package/openclaw.plugin.json +61 -17
- package/package.json +5 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProviderHandler, SessionCreateEvent, SessionAcceptDecision, SessionMessageEvent, SessionReply, SessionEndInboundEvent, InvokeEvent, InvokeHandlerResult, GigTaskOfferEvent, GigTaskOfferDecision, GigTaskExecuteEvent, GigTaskExecuteResult } from '@linkedclaw/provider-runtime';
|
|
1
|
+
import { ProviderHandler, SessionCreateEvent, SessionAcceptDecision, SessionMessageEvent, SessionReply, SessionEndInboundEvent, InvokeEvent, InvokeHandlerResult, GigTaskOfferEvent, GigTaskOfferDecision, GigTaskExecuteEvent, GigTaskExecuteResult, ProviderRuntime } from '@linkedclaw/provider-runtime';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Minimal mirror of the OpenClaw plugin-SDK surface used by this plugin.
|
|
@@ -136,6 +136,14 @@ interface PluginRuntimeConfig extends ProviderConfig {
|
|
|
136
136
|
autoAcceptInvokes: boolean;
|
|
137
137
|
autoAcceptSessions: boolean;
|
|
138
138
|
autoAcceptGigTasks: boolean;
|
|
139
|
+
/**
|
|
140
|
+
* Which OpenClaw agent serves marketplace jobs — the `<agent>` segment of the
|
|
141
|
+
* subagent session key (`agent:<id>:subagent:...`). Default `"main"`. Point
|
|
142
|
+
* this at a dedicated Docker-sandboxed agent (sandbox mode=all, scope=agent,
|
|
143
|
+
* restricted tools) so untrusted requester prompts run inside a real boundary,
|
|
144
|
+
* not the operator's main agent. See the provider skill's security step.
|
|
145
|
+
*/
|
|
146
|
+
servingAgentId: string;
|
|
139
147
|
}
|
|
140
148
|
declare function parseConfig(raw: Record<string, unknown>): PluginRuntimeConfig;
|
|
141
149
|
|
|
@@ -199,7 +207,7 @@ declare class ProviderHolder {
|
|
|
199
207
|
restart(): Promise<void>;
|
|
200
208
|
status(): HolderStatus;
|
|
201
209
|
private parseAndStore;
|
|
202
|
-
|
|
210
|
+
protected buildRuntime(cfg: PluginRuntimeConfig): ProviderRuntime;
|
|
203
211
|
}
|
|
204
212
|
declare function redactApiKey(key: string): string;
|
|
205
213
|
|