@clawos-dev/clawd 0.2.269 → 0.2.270
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.
|
@@ -22886,10 +22886,16 @@ var AppBuilderPublishFailedEventSchema = external_exports.object({
|
|
|
22886
22886
|
|
|
22887
22887
|
// ../protocol/src/methods.ts
|
|
22888
22888
|
var NO_ARGS = external_exports.object({});
|
|
22889
|
+
var MetaMethodsArgs = external_exports.object({
|
|
22890
|
+
method: external_exports.string().min(1).optional()
|
|
22891
|
+
});
|
|
22889
22892
|
var METHOD_DOCS = {
|
|
22890
22893
|
"session:create": {
|
|
22891
|
-
summary: "\u65B0\u5EFA\u4F1A\u8BDD\u5E76\u62C9\u8D77 tool \u8FDB\u7A0B\uFF08claude / codex\uFF09\u3002**cwd \u4E0E ownerPersonaId \u81F3\u5C11\u4F20\u4E00\u4E2A**\uFF08\u5E26 ownerPersonaId \u65F6 cwd \u7531 daemon \u6D3E\u751F\uFF09
|
|
22892
|
-
args: SessionCreateArgs
|
|
22894
|
+
summary: "\u65B0\u5EFA\u4F1A\u8BDD\u5E76\u62C9\u8D77 tool \u8FDB\u7A0B\uFF08claude / codex\uFF09\u3002**cwd \u4E0E ownerPersonaId \u81F3\u5C11\u4F20\u4E00\u4E2A**\uFF08\u5E26 ownerPersonaId \u65F6 cwd \u7531 daemon \u6D3E\u751F\uFF09",
|
|
22895
|
+
args: SessionCreateArgs,
|
|
22896
|
+
argsConstraints: {
|
|
22897
|
+
anyOf: [{ required: ["cwd"] }, { required: ["ownerPersonaId"] }]
|
|
22898
|
+
}
|
|
22893
22899
|
},
|
|
22894
22900
|
"session:list": {
|
|
22895
22901
|
summary: "\u5217\u51FA\u5F53\u524D\u8EAB\u4EFD\u53EF\u89C1\u7684\u4F1A\u8BDD\uFF08owner \u5168\u91CF\uFF1Bguest \u9650\u88AB\u6388\u6743 persona\uFF09",
|
|
@@ -23097,7 +23103,11 @@ var METHOD_DOCS = {
|
|
|
23097
23103
|
},
|
|
23098
23104
|
"personaDispatch:run": {
|
|
23099
23105
|
summary: "\u628A\u4EFB\u52A1\u59D4\u6D3E\u7ED9\u53E6\u4E00\u4E2A persona\uFF08\u53EF\u8DE8\u8BBE\u5907\uFF09\uFF0C\u5F02\u6B65\u79D2\u56DE { dispatchId }\u3002targetPersona \u4E0E dispatchId **\u81F3\u5C11\u7ED9\u4E00\u4E2A**\uFF08\u524D\u8005\u65B0\u5F00\u3001\u540E\u8005\u7EED\u6D3E\uFF09\uFF1BdispatchId \u4E0E targetDeviceId **\u4E92\u65A5**",
|
|
23100
|
-
args: DispatchRunArgsSchema
|
|
23106
|
+
args: DispatchRunArgsSchema,
|
|
23107
|
+
argsConstraints: {
|
|
23108
|
+
anyOf: [{ required: ["targetPersona"] }, { required: ["dispatchId"] }],
|
|
23109
|
+
not: { required: ["dispatchId", "targetDeviceId"] }
|
|
23110
|
+
}
|
|
23101
23111
|
},
|
|
23102
23112
|
"personaDispatch:complete": {
|
|
23103
23113
|
summary: '\u88AB\u59D4\u6D3E\u65B9\u56DE\u62A5\u7ED3\u679C\uFF1A\u5199\u53F0\u8D26\u5E76\u628A\u7ED3\u679C\u6295\u9012\u56DE\u53D1\u8D77\u65B9\u4F1A\u8BDD\u3002outcome \u662F { kind:"success", text, filePaths? } \u6216 { kind:"failure", reason } \u4E8C\u9009\u4E00',
|
|
@@ -23193,8 +23203,8 @@ var METHOD_DOCS = {
|
|
|
23193
23203
|
args: NO_ARGS
|
|
23194
23204
|
},
|
|
23195
23205
|
"meta:methods": {
|
|
23196
|
-
summary: "RPC \u81EA\u7701\uFF1A\u8FD4\u56DE METHOD_NAMES \u5168\u96C6 + **\u5BF9\u672C\u8FDE\u63A5**\u7684\u53EF\u8C03\u7528\u6027\u4E09\u6001\uFF08allowed / conditional / denied\uFF09+ \u6BCF\u6761\u7684\u8BF4\u660E\u3002agent \u4FA7 clawd-rpc \u7684 list tool \u662F\u552F\u4E00\u6D88\u8D39\u65B9",
|
|
23197
|
-
args:
|
|
23206
|
+
summary: "RPC \u81EA\u7701\uFF1A\u8FD4\u56DE METHOD_NAMES \u5168\u96C6 + **\u5BF9\u672C\u8FDE\u63A5**\u7684\u53EF\u8C03\u7528\u6027\u4E09\u6001\uFF08allowed / conditional / denied\uFF09+ \u6BCF\u6761\u7684\u8BF4\u660E\u3002\u4F20 method \u5219\u53EA\u8FD4\u90A3\u4E00\u6761\uFF0C\u5E76\u989D\u5916\u5E26\u5B8C\u6574 args JSON Schema\u3002agent \u4FA7 clawd-rpc \u7684 list tool \u662F\u552F\u4E00\u6D88\u8D39\u65B9",
|
|
23207
|
+
args: MetaMethodsArgs
|
|
23198
23208
|
},
|
|
23199
23209
|
"extension.list": {
|
|
23200
23210
|
summary: "\u5217\u51FA\u5DF2\u5B89\u88C5\u7684 extension",
|
|
@@ -23319,6 +23329,11 @@ var RpcMethodInfoSchema = external_exports.object({
|
|
|
23319
23329
|
* `null` = 该 method 还没有中央 zod schema(欠账,见 RpcMethodDoc),调用方需自行试探。
|
|
23320
23330
|
*/
|
|
23321
23331
|
args: external_exports.array(external_exports.object({ name: external_exports.string(), required: external_exports.boolean() })).nullable(),
|
|
23332
|
+
/**
|
|
23333
|
+
* 完整 args JSON Schema(draft-07),来自 {@link methodArgsSchema}。
|
|
23334
|
+
* **只在按 method 单查时下发**——全量目录带上 105 份 schema 会吃掉消费方一大块 context。
|
|
23335
|
+
*/
|
|
23336
|
+
argsSchema: external_exports.record(external_exports.unknown()).optional(),
|
|
23322
23337
|
/**
|
|
23323
23338
|
* `denied` 必带:daemon error code(`UNAUTHORIZED` / `FEISHU_LOGIN_REQUIRED` /
|
|
23324
23339
|
* `METHOD_NOT_IMPLEMENTED`)。`conditional` 必带:谁来做二次校验。
|