episoda 0.2.95 → 0.2.96
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.
|
|
2789
|
+
version: "0.2.96",
|
|
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
|
}
|
|
@@ -10141,6 +10150,8 @@ var Daemon = class _Daemon {
|
|
|
10141
10150
|
projectPath: agentWorkingDir,
|
|
10142
10151
|
provider: cmd.provider || "claude",
|
|
10143
10152
|
// EP1133: Multi-provider support
|
|
10153
|
+
autonomousMode: cmd.autonomousMode ?? true,
|
|
10154
|
+
// EP1173: Default to autonomous
|
|
10144
10155
|
message: cmd.message,
|
|
10145
10156
|
credentials: cmd.credentials,
|
|
10146
10157
|
systemPrompt: cmd.systemPrompt,
|