@nimashoghi/code-agent-kit 0.1.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.
@@ -0,0 +1,26 @@
1
+ import { PermissionMode, SettingSource } from '@anthropic-ai/claude-agent-sdk';
2
+ import { A as AgentRuntime, R as RuntimeRunOptions, a as AgentResult } from '../runtime-DxAkSUZk.js';
3
+
4
+ interface ClaudeRuntimeConfig {
5
+ /** Claude model to use (e.g., "claude-sonnet-4-20250514"). */
6
+ model?: string;
7
+ /** Permission mode for the Claude Agent SDK. */
8
+ permissionMode?: PermissionMode;
9
+ /** Tools to disallow (e.g., ["AskUserQuestion"]). */
10
+ disallowedTools?: string[];
11
+ /** Filesystem settings sources to load for backwards-compatible behavior. */
12
+ settingSources?: SettingSource[];
13
+ }
14
+ declare class ClaudeRuntime implements AgentRuntime {
15
+ static readonly runtimeName = "claude";
16
+ static readonly capabilities: {
17
+ readonly resumeSession: true;
18
+ readonly eventStreaming: true;
19
+ };
20
+ readonly name = "claude";
21
+ private readonly config;
22
+ constructor(config?: ClaudeRuntimeConfig);
23
+ run(options: RuntimeRunOptions): Promise<AgentResult>;
24
+ }
25
+
26
+ export { ClaudeRuntime, type ClaudeRuntimeConfig };
@@ -0,0 +1,8 @@
1
+ import {
2
+ ClaudeRuntime
3
+ } from "../chunk-EN5WJJ2G.js";
4
+ import "../chunk-YAZLCEAU.js";
5
+ export {
6
+ ClaudeRuntime
7
+ };
8
+ //# sourceMappingURL=claude.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,46 @@
1
+ import { SandboxMode, ApprovalMode, WebSearchMode, ModelReasoningEffort, CodexOptions } from '@openai/codex-sdk';
2
+ import { A as AgentRuntime, R as RuntimeRunOptions, a as AgentResult } from '../runtime-DxAkSUZk.js';
3
+
4
+ interface CodexRuntimeConfig {
5
+ /** Codex model to use. */
6
+ model?: string;
7
+ /** Sandbox mode for Codex. */
8
+ sandboxMode?: SandboxMode;
9
+ /** Approval policy. */
10
+ approvalPolicy?: ApprovalMode;
11
+ /** Skip the Git repository check in the working directory. */
12
+ skipGitRepoCheck?: boolean;
13
+ /** Allow network access in workspace-write or danger-full-access modes. */
14
+ networkAccessEnabled?: boolean;
15
+ /** Configure Codex web search behavior. */
16
+ webSearchMode?: WebSearchMode;
17
+ /** Enable or disable web search. */
18
+ webSearchEnabled?: boolean;
19
+ /** Control model reasoning effort. */
20
+ modelReasoningEffort?: ModelReasoningEffort;
21
+ /** Additional directories to expose to Codex. */
22
+ additionalDirectories?: string[];
23
+ /** Override the Codex binary path. */
24
+ codexPathOverride?: string;
25
+ /** Override the Codex base URL. */
26
+ baseUrl?: string;
27
+ /** Override the API key passed into Codex. */
28
+ apiKey?: string;
29
+ /** Base environment for the Codex SDK process. */
30
+ env?: Record<string, string>;
31
+ /** Additional Codex config overrides passed through the SDK. */
32
+ config?: CodexOptions["config"];
33
+ }
34
+ declare class CodexRuntime implements AgentRuntime {
35
+ static readonly runtimeName = "codex";
36
+ static readonly capabilities: {
37
+ readonly resumeSession: true;
38
+ readonly eventStreaming: true;
39
+ };
40
+ readonly name = "codex";
41
+ private readonly config;
42
+ constructor(config?: CodexRuntimeConfig);
43
+ run(options: RuntimeRunOptions): Promise<AgentResult>;
44
+ }
45
+
46
+ export { CodexRuntime, type CodexRuntimeConfig };
@@ -0,0 +1,8 @@
1
+ import {
2
+ CodexRuntime
3
+ } from "../chunk-CGK4TBZD.js";
4
+ import "../chunk-YAZLCEAU.js";
5
+ export {
6
+ CodexRuntime
7
+ };
8
+ //# sourceMappingURL=codex.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,19 @@
1
+ import { A as AgentRuntime, R as RuntimeRunOptions, a as AgentResult } from '../runtime-DxAkSUZk.js';
2
+
3
+ interface CopilotRuntimeConfig {
4
+ /** Copilot model to use. */
5
+ model?: string;
6
+ }
7
+ declare class CopilotRuntime implements AgentRuntime {
8
+ static readonly runtimeName = "copilot";
9
+ static readonly capabilities: {
10
+ readonly resumeSession: false;
11
+ readonly eventStreaming: false;
12
+ };
13
+ readonly name = "copilot";
14
+ private readonly config;
15
+ constructor(config?: CopilotRuntimeConfig);
16
+ run(options: RuntimeRunOptions): Promise<AgentResult>;
17
+ }
18
+
19
+ export { CopilotRuntime, type CopilotRuntimeConfig };
@@ -0,0 +1,8 @@
1
+ import {
2
+ CopilotRuntime
3
+ } from "../chunk-AVSJQKCD.js";
4
+ import "../chunk-YAZLCEAU.js";
5
+ export {
6
+ CopilotRuntime
7
+ };
8
+ //# sourceMappingURL=copilot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,32 @@
1
+ import { A as AgentRuntime, R as RuntimeRunOptions, a as AgentResult } from '../runtime-DxAkSUZk.js';
2
+
3
+ interface GeminiRuntimeConfig {
4
+ /** Gemini model to use. */
5
+ model?: string;
6
+ /** Whether to enable sandbox mode. */
7
+ sandbox?: boolean;
8
+ /** Gemini approval mode. */
9
+ approvalMode?: "default" | "auto_edit" | "yolo" | "plan";
10
+ /** Additional policy files or directories to load. */
11
+ policy?: string[];
12
+ /** Limit Gemini to the specified extensions. */
13
+ extensions?: string[];
14
+ /** Additional directories to include in the workspace. */
15
+ includeDirectories?: string[];
16
+ }
17
+ declare class GeminiRuntime implements AgentRuntime {
18
+ static readonly runtimeName = "gemini";
19
+ static readonly capabilities: {
20
+ readonly resumeSession: true;
21
+ readonly eventStreaming: true;
22
+ };
23
+ readonly name = "gemini";
24
+ private readonly config;
25
+ constructor(config?: GeminiRuntimeConfig);
26
+ run(options: RuntimeRunOptions): Promise<AgentResult>;
27
+ private runBuffered;
28
+ private runStreamed;
29
+ private buildArgs;
30
+ }
31
+
32
+ export { GeminiRuntime, type GeminiRuntimeConfig };
@@ -0,0 +1,8 @@
1
+ import {
2
+ GeminiRuntime
3
+ } from "../chunk-ZUMYGBXZ.js";
4
+ import "../chunk-YAZLCEAU.js";
5
+ export {
6
+ GeminiRuntime
7
+ };
8
+ //# sourceMappingURL=gemini.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
package/package.json ADDED
@@ -0,0 +1,79 @@
1
+ {
2
+ "name": "@nimashoghi/code-agent-kit",
3
+ "version": "0.1.0",
4
+ "description": "Multi-runtime coding agent runtime toolkit",
5
+ "type": "module",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/nimashoghi/code-agent-kit.git"
9
+ },
10
+ "homepage": "https://github.com/nimashoghi/code-agent-kit#readme",
11
+ "bugs": {
12
+ "url": "https://github.com/nimashoghi/code-agent-kit/issues"
13
+ },
14
+ "publishConfig": {
15
+ "access": "public"
16
+ },
17
+ "exports": {
18
+ ".": {
19
+ "types": "./dist/index.d.ts",
20
+ "import": "./dist/index.js"
21
+ },
22
+ "./claude": {
23
+ "types": "./dist/runtimes/claude.d.ts",
24
+ "import": "./dist/runtimes/claude.js"
25
+ },
26
+ "./codex": {
27
+ "types": "./dist/runtimes/codex.d.ts",
28
+ "import": "./dist/runtimes/codex.js"
29
+ },
30
+ "./copilot": {
31
+ "types": "./dist/runtimes/copilot.d.ts",
32
+ "import": "./dist/runtimes/copilot.js"
33
+ },
34
+ "./gemini": {
35
+ "types": "./dist/runtimes/gemini.d.ts",
36
+ "import": "./dist/runtimes/gemini.js"
37
+ }
38
+ },
39
+ "bin": {
40
+ "code-agent-kit": "cli.js"
41
+ },
42
+ "files": [
43
+ "cli.js",
44
+ "dist",
45
+ "README.md"
46
+ ],
47
+ "scripts": {
48
+ "build": "tsup",
49
+ "prepublishOnly": "npm run build",
50
+ "check": "tsc -p tsconfig.check.json",
51
+ "test": "vitest run",
52
+ "test:watch": "vitest",
53
+ "lint": "eslint src tests *.config.ts --max-warnings=0",
54
+ "lint:fix": "eslint src tests *.config.ts --fix",
55
+ "format": "prettier --write .",
56
+ "format:check": "prettier --check ."
57
+ },
58
+ "dependencies": {
59
+ "@anthropic-ai/claude-agent-sdk": "^0.2.79",
60
+ "@openai/codex-sdk": "^0.115.0",
61
+ "commander": "^13.1.0"
62
+ },
63
+ "devDependencies": {
64
+ "@eslint/js": "^10.0.1",
65
+ "@types/node": "^22.19.15",
66
+ "eslint": "^10.0.3",
67
+ "eslint-config-prettier": "^10.1.8",
68
+ "globals": "^17.4.0",
69
+ "prettier": "^3.8.1",
70
+ "tsup": "^8.5.1",
71
+ "typescript": "^5.9.3",
72
+ "typescript-eslint": "^8.57.1",
73
+ "vitest": "^3.2.4"
74
+ },
75
+ "engines": {
76
+ "node": ">=20"
77
+ },
78
+ "license": "MIT"
79
+ }