@clawos-dev/clawd 0.2.415 → 0.2.416

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/cli.cjs CHANGED
@@ -60395,8 +60395,16 @@ function buildSessionHandlers(deps) {
60395
60395
  );
60396
60396
  }
60397
60397
  };
60398
+ const assertNotMasterPersona = (personaId2) => {
60399
+ if (personaId2 !== MASTER_PERSONA_ID) return;
60400
+ throw new ClawdError(
60401
+ ERROR_CODES.FORBIDDEN,
60402
+ `${MASTER_PERSONA_ID} \u7684\u4F1A\u8BDD\u7531\u8BDD\u9898\u521B\u5EFA\uFF0C\u4E0D\u80FD\u76F4\u63A5\u5EFA\uFF1A\u8BF7\u5728\u9891\u9053\u91CC\u65B0\u5EFA\u8BDD\u9898`
60403
+ );
60404
+ };
60398
60405
  const create = async (frame, _client, ctx) => {
60399
60406
  const args = SessionCreateArgs.parse(frame);
60407
+ assertNotMasterPersona(args.ownerPersonaId);
60400
60408
  let tool = args.tool;
60401
60409
  let model = args.model;
60402
60410
  let effort = args.effort;
@@ -60436,6 +60444,7 @@ function buildSessionHandlers(deps) {
60436
60444
  );
60437
60445
  }
60438
60446
  const args = SessionImportExternalArgs.parse(frame);
60447
+ assertNotMasterPersona(args.ownerPersonaId);
60439
60448
  if (args.ownerPersonaId) {
60440
60449
  const persona = deps.personaRegistry.get(args.ownerPersonaId);
60441
60450
  if (!persona) {
@@ -62278,7 +62287,7 @@ function computeMethodAccess(args) {
62278
62287
  }
62279
62288
 
62280
62289
  // src/version.ts
62281
- var version = "0.2.415".length > 0 ? "0.2.415" : "dev";
62290
+ var version = "0.2.416".length > 0 ? "0.2.416" : "dev";
62282
62291
 
62283
62292
  // src/cli-probe/probe.ts
62284
62293
  var fs65 = __toESM(require("fs"), 1);