lalph 0.1.24 → 0.1.25

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.mjs CHANGED
@@ -59229,6 +59229,7 @@ var CliAgent = class extends Class$1 {};
59229
59229
  const opencode = new CliAgent({
59230
59230
  id: "opencode",
59231
59231
  name: "opencode",
59232
+ env: { OPENCODE_PERMISSION: "{\"*\":\"allow\"}" },
59232
59233
  command: ({ prompt, prdFilePath }) => [
59233
59234
  "opencode",
59234
59235
  "run",
@@ -59247,6 +59248,7 @@ ${prompt}`
59247
59248
  const claude = new CliAgent({
59248
59249
  id: "claude",
59249
59250
  name: "Claude Code",
59251
+ env: {},
59250
59252
  command: ({ prompt, prdFilePath }) => [
59251
59253
  "claude",
59252
59254
  "-p",
@@ -140382,6 +140384,7 @@ const run = fnUntraced(function* (options) {
140382
140384
  yield* make$21(chooseCommand[0], chooseCommand.slice(1), {
140383
140385
  cwd: worktree.directory,
140384
140386
  extendEnv: true,
140387
+ env: cliAgent.env,
140385
140388
  stdout: "inherit",
140386
140389
  stderr: "inherit",
140387
140390
  stdin: "inherit"
@@ -140402,6 +140405,7 @@ const run = fnUntraced(function* (options) {
140402
140405
  const handle = yield* make$21(cliCommand[0], cliCommand.slice(1), {
140403
140406
  cwd: worktree.directory,
140404
140407
  extendEnv: true,
140408
+ env: cliAgent.env,
140405
140409
  stdout: "pipe",
140406
140410
  stderr: "pipe",
140407
140411
  stdin: "inherit"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lalph",
3
3
  "type": "module",
4
- "version": "0.1.24",
4
+ "version": "0.1.25",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
package/src/Runner.ts CHANGED
@@ -44,6 +44,7 @@ export const run = Effect.fnUntraced(
44
44
  yield* ChildProcess.make(chooseCommand[0]!, chooseCommand.slice(1), {
45
45
  cwd: worktree.directory,
46
46
  extendEnv: true,
47
+ env: cliAgent.env,
47
48
  stdout: "inherit",
48
49
  stderr: "inherit",
49
50
  stdin: "inherit",
@@ -75,6 +76,7 @@ export const run = Effect.fnUntraced(
75
76
  {
76
77
  cwd: worktree.directory,
77
78
  extendEnv: true,
79
+ env: cliAgent.env,
78
80
  stdout: "pipe",
79
81
  stderr: "pipe",
80
82
  stdin: "inherit",
@@ -11,11 +11,15 @@ export class CliAgent extends Data.Class<{
11
11
  readonly prompt: string
12
12
  readonly prdFilePath: string
13
13
  }) => ReadonlyArray<string>
14
+ env: Record<string, string>
14
15
  }> {}
15
16
 
16
17
  export const opencode = new CliAgent({
17
18
  id: "opencode",
18
19
  name: "opencode",
20
+ env: {
21
+ OPENCODE_PERMISSION: '{"*":"allow"}',
22
+ },
19
23
  command: ({ prompt, prdFilePath }) => [
20
24
  "opencode",
21
25
  "run",
@@ -35,6 +39,7 @@ ${prompt}`,
35
39
  export const claude = new CliAgent({
36
40
  id: "claude",
37
41
  name: "Claude Code",
42
+ env: {},
38
43
  command: ({ prompt, prdFilePath }) => [
39
44
  "claude",
40
45
  "-p",