episoda 0.2.95 → 0.2.97

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.
@@ -2786,7 +2786,7 @@ var require_package = __commonJS({
2786
2786
  "package.json"(exports2, module2) {
2787
2787
  module2.exports = {
2788
2788
  name: "episoda",
2789
- version: "0.2.95",
2789
+ version: "0.2.97",
2790
2790
  description: "CLI tool for Episoda local development workflow orchestration",
2791
2791
  main: "dist/index.js",
2792
2792
  types: "dist/index.d.ts",
@@ -8329,9 +8329,10 @@ var AgentManager = class {
8329
8329
  * The process is spawned on the first message.
8330
8330
  *
8331
8331
  * EP1133: Added provider parameter for multi-provider support
8332
+ * EP1173: Added autonomousMode parameter for permission-free execution
8332
8333
  */
8333
8334
  async startSession(options) {
8334
- const { sessionId, moduleId, moduleUid, projectPath, provider = "claude", message, credentials, systemPrompt, onChunk, onComplete, onError } = options;
8335
+ const { sessionId, moduleId, moduleUid, projectPath, provider = "claude", autonomousMode = true, message, credentials, systemPrompt, onChunk, onComplete, onError } = options;
8335
8336
  if (this.sessions.has(sessionId)) {
8336
8337
  return { success: false, error: "Session already exists" };
8337
8338
  }
@@ -8368,6 +8369,8 @@ var AgentManager = class {
8368
8369
  projectPath,
8369
8370
  provider,
8370
8371
  // EP1133: Store provider in session
8372
+ autonomousMode,
8373
+ // EP1173: Store autonomous mode setting
8371
8374
  credentials,
8372
8375
  systemPrompt,
8373
8376
  status: "starting",
@@ -8412,12 +8415,14 @@ var AgentManager = class {
8412
8415
  // JSONL streaming output
8413
8416
  "--skip-git-repo-check",
8414
8417
  // Allow running outside git repos
8415
- "--full-auto",
8416
- // Automatic execution with sandbox
8417
8418
  "--cd",
8418
8419
  session.projectPath
8419
8420
  // Working directory
8420
8421
  ];
8422
+ if (session.autonomousMode) {
8423
+ args.push("--full-auto");
8424
+ console.log(`[AgentManager] EP1173: Codex autonomous mode enabled - using --full-auto`);
8425
+ }
8421
8426
  if (resumeSessionId) {
8422
8427
  args.push("resume", resumeSessionId);
8423
8428
  }
@@ -8445,6 +8450,10 @@ ${message}`;
8445
8450
  args.push("--model", session.credentials.preferredModel);
8446
8451
  console.log(`[AgentManager] EP1152: Using user preferred model: ${session.credentials.preferredModel}`);
8447
8452
  }
8453
+ if (session.autonomousMode) {
8454
+ args.push("--dangerously-skip-permissions");
8455
+ console.log(`[AgentManager] EP1173: Autonomous mode enabled - skipping permission prompts`);
8456
+ }
8448
8457
  if (isFirstMessage && session.systemPrompt) {
8449
8458
  args.push("--system-prompt", session.systemPrompt);
8450
8459
  }
@@ -9546,6 +9555,8 @@ var Daemon = class _Daemon {
9546
9555
  // EP1091: New preferred field name
9547
9556
  deviceId: this.machineUuid,
9548
9557
  // EP726: Kept for backward compatibility
9558
+ machineName: this.deviceName,
9559
+ // EP1186: User-friendly machine name from server
9549
9560
  hostname: os8.hostname(),
9550
9561
  platform: os8.platform(),
9551
9562
  arch: os8.arch(),
@@ -10141,6 +10152,8 @@ var Daemon = class _Daemon {
10141
10152
  projectPath: agentWorkingDir,
10142
10153
  provider: cmd.provider || "claude",
10143
10154
  // EP1133: Multi-provider support
10155
+ autonomousMode: cmd.autonomousMode ?? true,
10156
+ // EP1173: Default to autonomous
10144
10157
  message: cmd.message,
10145
10158
  credentials: cmd.credentials,
10146
10159
  systemPrompt: cmd.systemPrompt,
@@ -10363,6 +10376,10 @@ var Daemon = class _Daemon {
10363
10376
  client.on("machine_uuid_update", async (message) => {
10364
10377
  try {
10365
10378
  const uuidMsg = message;
10379
+ if (uuidMsg.machineName) {
10380
+ this.deviceName = uuidMsg.machineName;
10381
+ console.log(`[Daemon] EP1186: Machine name updated: ${this.deviceName}`);
10382
+ }
10366
10383
  if (uuidMsg.machineUuid) {
10367
10384
  this.machineUuid = uuidMsg.machineUuid;
10368
10385
  console.log(`[Daemon] EP1095: Machine UUID updated: ${this.machineUuid}`);