@nairon-ai/aegis 0.4.10 → 0.5.0

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.
Files changed (35) hide show
  1. package/.flue/app.ts +35 -3
  2. package/README.md +15 -11
  3. package/dist-node/cli/commands/deploy.js +2 -0
  4. package/dist-node/cli/commands/deploy.js.map +1 -1
  5. package/dist-node/cli/commands/disconnect.d.ts.map +1 -1
  6. package/dist-node/cli/commands/disconnect.js +18 -4
  7. package/dist-node/cli/commands/disconnect.js.map +1 -1
  8. package/dist-node/cli/commands/init.d.ts.map +1 -1
  9. package/dist-node/cli/commands/init.js +5 -2
  10. package/dist-node/cli/commands/init.js.map +1 -1
  11. package/dist-node/cli/commands/setup.d.ts.map +1 -1
  12. package/dist-node/cli/commands/setup.js +89 -15
  13. package/dist-node/cli/commands/setup.js.map +1 -1
  14. package/dist-node/cli/state.d.ts.map +1 -1
  15. package/dist-node/cli/state.js +8 -0
  16. package/dist-node/cli/state.js.map +1 -1
  17. package/dist-node/shared/config.d.ts.map +1 -1
  18. package/dist-node/shared/config.js +4 -1
  19. package/dist-node/shared/config.js.map +1 -1
  20. package/dist-node/shared/constants.d.ts +36 -2
  21. package/dist-node/shared/constants.d.ts.map +1 -1
  22. package/dist-node/shared/constants.js +47 -2
  23. package/dist-node/shared/constants.js.map +1 -1
  24. package/dist-node/shared/types.d.ts +6 -0
  25. package/dist-node/shared/types.d.ts.map +1 -1
  26. package/docs/SETUP.md +19 -11
  27. package/package.json +2 -1
  28. package/src/cli/commands/deploy.ts +2 -0
  29. package/src/cli/commands/disconnect.ts +17 -4
  30. package/src/cli/commands/init.ts +5 -2
  31. package/src/cli/commands/setup.ts +116 -16
  32. package/src/cli/state.ts +8 -0
  33. package/src/shared/config.ts +4 -0
  34. package/src/shared/constants.ts +47 -2
  35. package/src/shared/types.ts +7 -0
@@ -1,4 +1,5 @@
1
1
  import {
2
+ DEFAULT_AGENT_AUTH_METHOD,
2
3
  DEFAULT_AGENT_MODEL,
3
4
  DEFAULT_APPROVAL_REQUIRED_LABELS,
4
5
  DEFAULT_APPROVAL_REQUIRED_PATHS,
@@ -64,6 +65,7 @@ export function configFromBindings(env: Bindings): AegisConfig {
64
65
  DEFAULT_LOG_LOOKBACK_MINUTES,
65
66
  ),
66
67
  },
68
+ agentAuthMethod: env.AGENT_AUTH_METHOD,
67
69
  model: env.AGENT_MODEL,
68
70
  });
69
71
  }
@@ -107,6 +109,7 @@ export function configFromCli(cli: AegisCliConfig): AegisConfig {
107
109
  vercelTeamId: cli.vercelTeamId,
108
110
  logLookbackMinutes: DEFAULT_LOG_LOOKBACK_MINUTES,
109
111
  },
112
+ agentAuthMethod: cli.agentAuthMethod,
110
113
  model: cli.agentModel,
111
114
  });
112
115
  }
@@ -135,6 +138,7 @@ function normalizeConfig(input: Partial<AegisConfig> & { monitoredRepo: string }
135
138
  linear: input.linear,
136
139
  telegram: input.telegram,
137
140
  production: input.production ?? { logLookbackMinutes: DEFAULT_LOG_LOOKBACK_MINUTES },
141
+ agentAuthMethod: input.agentAuthMethod ?? DEFAULT_AGENT_AUTH_METHOD,
138
142
  model: input.model ?? DEFAULT_AGENT_MODEL,
139
143
  };
140
144
  }
@@ -5,8 +5,53 @@ export const DEFAULT_NEEDS_INFO_LABEL = "aegis:needs-info";
5
5
  export const DEFAULT_BLOCKED_LABEL = "aegis:blocked";
6
6
  export const DEFAULT_PR_OPENED_LABEL = "aegis:pr-opened";
7
7
  export const DEFAULT_BASE_BRANCH = "main";
8
- export const DEFAULT_AGENT_MODEL = "openai/gpt-5.5";
9
- export const AGENT_MODEL_OPTIONS = [
8
+ export const DEFAULT_AGENT_AUTH_METHOD = "codex-account";
9
+ export const DEFAULT_CODEX_AGENT_MODEL = "openai-codex/gpt-5.5";
10
+ export const DEFAULT_OPENAI_API_AGENT_MODEL = "openai/gpt-5.5";
11
+ export const DEFAULT_AGENT_MODEL = DEFAULT_CODEX_AGENT_MODEL;
12
+ export const CODEX_AGENT_MODEL_OPTIONS = [
13
+ {
14
+ label: "Codex GPT-5.5 (recommended)",
15
+ value: "openai-codex/gpt-5.5",
16
+ },
17
+ {
18
+ label: "Codex GPT-5.4",
19
+ value: "openai-codex/gpt-5.4",
20
+ },
21
+ {
22
+ label: "Codex GPT-5.4 Mini",
23
+ value: "openai-codex/gpt-5.4-mini",
24
+ },
25
+ {
26
+ label: "Codex GPT-5.3 Codex",
27
+ value: "openai-codex/gpt-5.3-codex",
28
+ },
29
+ {
30
+ label: "Codex GPT-5.3 Codex Spark",
31
+ value: "openai-codex/gpt-5.3-codex-spark",
32
+ },
33
+ {
34
+ label: "Codex GPT-5.2 Codex",
35
+ value: "openai-codex/gpt-5.2-codex",
36
+ },
37
+ {
38
+ label: "Codex GPT-5.2",
39
+ value: "openai-codex/gpt-5.2",
40
+ },
41
+ {
42
+ label: "Codex GPT-5.1 Codex Max",
43
+ value: "openai-codex/gpt-5.1-codex-max",
44
+ },
45
+ {
46
+ label: "Codex GPT-5.1 Codex Mini",
47
+ value: "openai-codex/gpt-5.1-codex-mini",
48
+ },
49
+ {
50
+ label: "Codex GPT-5.1",
51
+ value: "openai-codex/gpt-5.1",
52
+ },
53
+ ] as const;
54
+ export const OPENAI_API_AGENT_MODEL_OPTIONS = [
10
55
  {
11
56
  label: "OpenAI GPT-5.5 (recommended)",
12
57
  value: "openai/gpt-5.5",
@@ -8,6 +8,8 @@ export type AutomationMode = "plan-first" | "auto-low-risk";
8
8
 
9
9
  export type ContextProfile = "minimal" | "production";
10
10
 
11
+ export type AgentAuthMethod = "codex-account" | "openai-api-key";
12
+
11
13
  export type WorkItemStatus =
12
14
  | "ready"
13
15
  | "needs-info"
@@ -176,6 +178,7 @@ export type AegisConfig = {
176
178
  vercelTeamId?: string;
177
179
  logLookbackMinutes: number;
178
180
  };
181
+ agentAuthMethod: AgentAuthMethod;
179
182
  model: string;
180
183
  };
181
184
 
@@ -219,8 +222,10 @@ export type Bindings = {
219
222
  VERCEL_PROJECT_ID?: string;
220
223
  VERCEL_TEAM_ID?: string;
221
224
  VERCEL_LOG_LOOKBACK_MINUTES?: string;
225
+ AGENT_AUTH_METHOD?: AgentAuthMethod;
222
226
  AGENT_MODEL?: string;
223
227
  OPENAI_API_KEY?: string;
228
+ CODEX_OAUTH_CREDENTIALS_B64?: string;
224
229
  };
225
230
 
226
231
  export type AegisCliConfig = {
@@ -252,6 +257,8 @@ export type AegisCliConfig = {
252
257
  vercelToken?: string;
253
258
  vercelProjectId?: string;
254
259
  vercelTeamId?: string;
260
+ agentAuthMethod?: AgentAuthMethod;
255
261
  agentModel?: string;
256
262
  openaiApiKey?: string;
263
+ codexOauthCredentials?: string;
257
264
  };