@clawos-dev/clawd 0.2.645 → 0.2.647

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.
@@ -31074,6 +31074,12 @@ var SubscriptionChannelDeleteArgsSchema = external_exports.object({
31074
31074
  var SubscriptionChannelActivateArgsSchema = external_exports.object({
31075
31075
  id: external_exports.string().min(1).nullable()
31076
31076
  }).strict();
31077
+ var SubscriptionChannelModelsArgsSchema = external_exports.object({}).strict();
31078
+ var SubscriptionChannelModelsResultSchema = external_exports.object({
31079
+ /** 没有激活通道 = null(models 为空) */
31080
+ channelId: external_exports.string().nullable(),
31081
+ models: external_exports.array(external_exports.object({ id: external_exports.string().min(1), ownedBy: external_exports.string().optional() }).strict())
31082
+ }).strict();
31077
31083
 
31078
31084
  // ../protocol/src/attachment-schemas.ts
31079
31085
  var TOKEN_ROLES = ["owner"];
@@ -32635,6 +32641,7 @@ var DashboardOpenUrlResultSchema = external_exports.object({
32635
32641
  var CLOUD_TOOL_SUFFIX = "-cloud";
32636
32642
  var CODEX_CLOUD_TOOL_ID = `codex${CLOUD_TOOL_SUFFIX}`;
32637
32643
  var CODEX_SERVICE_TIERS = { standard: "default", fast: "priority" };
32644
+ var CLAUDE_CLOUD_TOOL_ID = `claude${CLOUD_TOOL_SUFFIX}`;
32638
32645
  var PI_TOOL_ID = "pi";
32639
32646
  var PI_CLOUD_TOOL_ID = `${PI_TOOL_ID}${CLOUD_TOOL_SUFFIX}`;
32640
32647
 
@@ -32644,6 +32651,10 @@ var PERSONA_SIZES = ["tiny", "small", "medium", "large", "xlarge"];
32644
32651
  var PersonaSizeSchema = external_exports.enum(PERSONA_SIZES);
32645
32652
  var PERSONA_CPUS = [0.5, 1, 2];
32646
32653
  var PersonaCpuSchema = external_exports.number().refine((cpu) => PERSONA_CPUS.includes(cpu), "Unsupported CPU");
32654
+ var PersonaCloudEngineSchema = external_exports.object({
32655
+ model: external_exports.string().optional(),
32656
+ effort: external_exports.string().optional()
32657
+ }).strict();
32647
32658
  var PersonaFileSchema = external_exports.object({
32648
32659
  personaId: external_exports.string(),
32649
32660
  label: external_exports.string(),
@@ -32664,6 +32675,7 @@ var PersonaFileSchema = external_exports.object({
32664
32675
  cpu: external_exports.number().finite().optional(),
32665
32676
  /** Cloud task-Pod concurrency, validated at release. Local execution ignores it; changes apply on the next publication. */
32666
32677
  taskConcurrency: external_exports.number().int().positive().optional(),
32678
+ cloudEngine: PersonaCloudEngineSchema.optional(),
32667
32679
  createdAt: external_exports.number(),
32668
32680
  updatedAt: external_exports.number(),
32669
32681
  /** Registry-only cloud entry, with no local persona directory. Local key adds -cloud; gateway paths use cloud.personaId and the registered engine determines the cloud tool id. */
@@ -32763,6 +32775,8 @@ var PersonaUpdateArgsSchema = external_exports.object({
32763
32775
  size: PersonaSizeSchema.optional(),
32764
32776
  cpu: PersonaCpuSchema.optional(),
32765
32777
  taskConcurrency: PersonaFileSchema.shape.taskConcurrency,
32778
+ // 整体替换(上云页每次交完整的 { model, effort });切 tool 不清它
32779
+ cloudEngine: PersonaCloudEngineSchema.optional(),
32766
32780
  personality: external_exports.string().optional(),
32767
32781
  // 人格补充层正文(见 PersonaInfoResponseSchema.personalityLocal)。与 personality 各写
32768
32782
  // 各层、互不影响;'' = 清空补充层。预装 persona 的编辑入口写的就是这个字段。
@@ -34080,6 +34094,10 @@ var METHOD_DOCS = {
34080
34094
  summary: "\u5207\u6362\u5F53\u524D\u6FC0\u6D3B\u7684\u6A21\u578B\u8BA2\u9605\u901A\u9053\uFF08\u5199 config.toml \u5E76\u5237\u65B0\u6A21\u578B\u8868\uFF09\u3002owner-only",
34081
34095
  args: SubscriptionChannelActivateArgsSchema
34082
34096
  },
34097
+ "subscriptionChannel:models": {
34098
+ summary: "\u5217\u51FA\u5F53\u524D\u6FC0\u6D3B\u8BA2\u9605\u901A\u9053\uFF08\u53F7\u6C60\uFF09GET {baseUrl}/models \u7684\u6A21\u578B id\u3002\u4E0A\u4E91\u9875 Claude \u5F15\u64CE\u7684\u6A21\u578B\u5019\u9009\u3002\u6CA1\u6709\u6FC0\u6D3B\u901A\u9053\u56DE\u7A7A\u8868\uFF1B\u53F7\u6C60\u8BF7\u6C42\u5931\u8D25 reject\u3002owner-only",
34099
+ args: SubscriptionChannelModelsArgsSchema
34100
+ },
34083
34101
  "engine:connectPool": {
34084
34102
  summary: "\u63A5\u5165\u53F7\u6C60\uFF1A\u62FF\u81EA\u52A9\u53F0\u53D1\u7684\u4E2A\u4EBA key\uFF0C\u62C9\u53F7\u6C60 setup.sh \u8DD1\u4E00\u904D\uFF08\u5199 ~/.codex/config.toml \u6307\u5411 CLIProxyAPI \u4EE3\u7406\uFF09\uFF0C\u518D\u5237 codex \u6A21\u578B\u8868\u9A8C\u8BC1\u3002\u6210\u529F\u56DE { ok:true }\uFF1B\u62FF\u4E0D\u5230\u811A\u672C / \u811A\u672C\u62A5\u9519 / \u8D85\u65F6 / 401 \u4E00\u5F8B reject \u5E26\u4EBA\u8BDD\u3002\u53EA\u7BA1 codex\uFF1B\u672C\u673A\u6CA1\u88C5 codex \u62A5 INVALID_PARAM\u3002owner-only",
34085
34103
  args: EngineConnectPoolArgs