@makerbi/openclaude 0.15.0 → 0.16.1
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/README.md +20 -6
- package/dist/cli.mjs +17377 -14325
- package/dist/sdk.mjs +5362 -1751
- package/package.json +4 -3
- package/src/entrypoints/sdk/coreTypes.generated.ts +14 -14
- package/src/entrypoints/sdk.d.ts +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@makerbi/openclaude",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.1",
|
|
4
4
|
"description": "OpenClaude opens coding-agent workflows to any LLM — OpenAI, Gemini, DeepSeek, Ollama, and 200+ models",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -52,15 +52,17 @@
|
|
|
52
52
|
"web:preview": "bun run --cwd web preview",
|
|
53
53
|
"web:typecheck": "bun run --cwd web typecheck",
|
|
54
54
|
"test": "bun test",
|
|
55
|
+
"test:full": "bun test --max-concurrency=1",
|
|
55
56
|
"test:coverage": "bun test --coverage --coverage-reporter=lcov --coverage-dir=coverage --max-concurrency=1 && bun run scripts/render-coverage-heatmap.ts",
|
|
56
57
|
"test:coverage:ui": "bun run scripts/render-coverage-heatmap.ts",
|
|
57
58
|
"security:pr-scan": "bun run scripts/pr-intent-scan.ts",
|
|
58
59
|
"test:provider-recommendation": "bun test src/utils/providerRecommendation.test.ts src/utils/providerProfile.test.ts",
|
|
59
60
|
"typecheck": "tsc --noEmit",
|
|
60
61
|
"smoke": "bun run build && node dist/cli.mjs --version",
|
|
62
|
+
"check": "bun run smoke && bun run test:full",
|
|
61
63
|
"verify:privacy": "bun run scripts/verify-no-phone-home.ts",
|
|
62
64
|
"build:verified": "bun run build && bun run verify:privacy",
|
|
63
|
-
"test:provider": "bun test src/services/api/*.test.ts src/utils/context.test.ts",
|
|
65
|
+
"test:provider": "bun test --max-concurrency=1 src/services/api/*.test.ts src/utils/context.test.ts",
|
|
64
66
|
"doctor:runtime": "bun run scripts/system-check.ts",
|
|
65
67
|
"doctor:runtime:json": "bun run scripts/system-check.ts --json",
|
|
66
68
|
"doctor:report": "bun run scripts/system-check.ts --out reports/doctor-runtime.json",
|
|
@@ -131,7 +133,6 @@
|
|
|
131
133
|
"shell-quote": "1.8.3",
|
|
132
134
|
"signal-exit": "4.1.0",
|
|
133
135
|
"stack-utils": "2.0.6",
|
|
134
|
-
"strip-ansi": "7.2.0",
|
|
135
136
|
"supports-hyperlinks": "3.2.0",
|
|
136
137
|
"tree-kill": "1.2.2",
|
|
137
138
|
"turndown": "7.2.2",
|
|
@@ -220,7 +220,7 @@ export type PermissionUpdate = ({
|
|
|
220
220
|
destination: "userSettings" | "projectSettings" | "localSettings" | "session" | "cliArg"
|
|
221
221
|
}) | ({
|
|
222
222
|
type: "setMode"
|
|
223
|
-
mode: "default" | "acceptEdits" | "bypassPermissions" | "plan" | "dontAsk"
|
|
223
|
+
mode: "default" | "acceptEdits" | "bypassPermissions" | "fullAccess" | "plan" | "dontAsk"
|
|
224
224
|
destination: "userSettings" | "projectSettings" | "localSettings" | "session" | "cliArg"
|
|
225
225
|
}) | ({
|
|
226
226
|
type: "addDirectories"
|
|
@@ -264,7 +264,7 @@ export type PermissionResult = ({
|
|
|
264
264
|
destination: "userSettings" | "projectSettings" | "localSettings" | "session" | "cliArg"
|
|
265
265
|
}) | ({
|
|
266
266
|
type: "setMode"
|
|
267
|
-
mode: "default" | "acceptEdits" | "bypassPermissions" | "plan" | "dontAsk"
|
|
267
|
+
mode: "default" | "acceptEdits" | "bypassPermissions" | "fullAccess" | "plan" | "dontAsk"
|
|
268
268
|
destination: "userSettings" | "projectSettings" | "localSettings" | "session" | "cliArg"
|
|
269
269
|
}) | ({
|
|
270
270
|
type: "addDirectories"
|
|
@@ -285,8 +285,8 @@ export type PermissionResult = ({
|
|
|
285
285
|
decisionClassification?: "user_temporary" | "user_permanent" | "user_reject"
|
|
286
286
|
})
|
|
287
287
|
|
|
288
|
-
/** Permission mode for controlling how tool executions are handled. 'default' - Standard behavior, prompts for dangerous operations. 'acceptEdits' - Auto-accept file edit operations. 'bypassPermissions' - Bypass
|
|
289
|
-
export type PermissionMode = "default" | "acceptEdits" | "bypassPermissions" | "plan" | "dontAsk"
|
|
288
|
+
/** Permission mode for controlling how tool executions are handled. 'default' - Standard behavior, prompts for dangerous operations. 'acceptEdits' - Auto-accept file edit operations. 'bypassPermissions' - Bypass normal permission prompts while preserving hard safety checks (requires allowDangerouslySkipPermissions). 'fullAccess' - Bypass normal permission prompts and hard safety-check prompts (requires allowDangerouslySkipPermissions). 'plan' - Planning mode, no actual tool execution. 'dontAsk' - Don't prompt for permissions, deny if not pre-approved. */
|
|
289
|
+
export type PermissionMode = "default" | "acceptEdits" | "bypassPermissions" | "fullAccess" | "plan" | "dontAsk"
|
|
290
290
|
|
|
291
291
|
export type HookEvent = "PreToolUse" | "PostToolUse" | "PostToolUseFailure" | "Notification" | "UserPromptSubmit" | "SessionStart" | "SessionEnd" | "Stop" | "StopFailure" | "SubagentStart" | "SubagentStop" | "PreCompact" | "PostCompact" | "PermissionRequest" | "PermissionDenied" | "Setup" | "TeammateIdle" | "TaskCreated" | "TaskCompleted" | "Elicitation" | "ElicitationResult" | "ConfigChange" | "WorktreeCreate" | "WorktreeRemove" | "InstructionsLoaded" | "CwdChanged" | "FileChanged"
|
|
292
292
|
|
|
@@ -530,7 +530,7 @@ export type PermissionRequestHookInput = {
|
|
|
530
530
|
destination: "userSettings" | "projectSettings" | "localSettings" | "session" | "cliArg"
|
|
531
531
|
}) | ({
|
|
532
532
|
type: "setMode"
|
|
533
|
-
mode: "default" | "acceptEdits" | "bypassPermissions" | "plan" | "dontAsk"
|
|
533
|
+
mode: "default" | "acceptEdits" | "bypassPermissions" | "fullAccess" | "plan" | "dontAsk"
|
|
534
534
|
destination: "userSettings" | "projectSettings" | "localSettings" | "session" | "cliArg"
|
|
535
535
|
}) | ({
|
|
536
536
|
type: "addDirectories"
|
|
@@ -918,7 +918,7 @@ export type HookInput = ({
|
|
|
918
918
|
destination: "userSettings" | "projectSettings" | "localSettings" | "session" | "cliArg"
|
|
919
919
|
}) | ({
|
|
920
920
|
type: "setMode"
|
|
921
|
-
mode: "default" | "acceptEdits" | "bypassPermissions" | "plan" | "dontAsk"
|
|
921
|
+
mode: "default" | "acceptEdits" | "bypassPermissions" | "fullAccess" | "plan" | "dontAsk"
|
|
922
922
|
destination: "userSettings" | "projectSettings" | "localSettings" | "session" | "cliArg"
|
|
923
923
|
}) | ({
|
|
924
924
|
type: "addDirectories"
|
|
@@ -1164,7 +1164,7 @@ export type PermissionRequestHookSpecificOutput = {
|
|
|
1164
1164
|
destination: "userSettings" | "projectSettings" | "localSettings" | "session" | "cliArg"
|
|
1165
1165
|
}) | ({
|
|
1166
1166
|
type: "setMode"
|
|
1167
|
-
mode: "default" | "acceptEdits" | "bypassPermissions" | "plan" | "dontAsk"
|
|
1167
|
+
mode: "default" | "acceptEdits" | "bypassPermissions" | "fullAccess" | "plan" | "dontAsk"
|
|
1168
1168
|
destination: "userSettings" | "projectSettings" | "localSettings" | "session" | "cliArg"
|
|
1169
1169
|
}) | ({
|
|
1170
1170
|
type: "addDirectories"
|
|
@@ -1283,7 +1283,7 @@ export type SyncHookJSONOutput = {
|
|
|
1283
1283
|
destination: "userSettings" | "projectSettings" | "localSettings" | "session" | "cliArg"
|
|
1284
1284
|
}) | ({
|
|
1285
1285
|
type: "setMode"
|
|
1286
|
-
mode: "default" | "acceptEdits" | "bypassPermissions" | "plan" | "dontAsk"
|
|
1286
|
+
mode: "default" | "acceptEdits" | "bypassPermissions" | "fullAccess" | "plan" | "dontAsk"
|
|
1287
1287
|
destination: "userSettings" | "projectSettings" | "localSettings" | "session" | "cliArg"
|
|
1288
1288
|
}) | ({
|
|
1289
1289
|
type: "addDirectories"
|
|
@@ -1393,7 +1393,7 @@ export type HookJSONOutput = ({
|
|
|
1393
1393
|
destination: "userSettings" | "projectSettings" | "localSettings" | "session" | "cliArg"
|
|
1394
1394
|
}) | ({
|
|
1395
1395
|
type: "setMode"
|
|
1396
|
-
mode: "default" | "acceptEdits" | "bypassPermissions" | "plan" | "dontAsk"
|
|
1396
|
+
mode: "default" | "acceptEdits" | "bypassPermissions" | "fullAccess" | "plan" | "dontAsk"
|
|
1397
1397
|
destination: "userSettings" | "projectSettings" | "localSettings" | "session" | "cliArg"
|
|
1398
1398
|
}) | ({
|
|
1399
1399
|
type: "addDirectories"
|
|
@@ -1535,7 +1535,7 @@ export type AgentDefinition = {
|
|
|
1535
1535
|
background?: boolean
|
|
1536
1536
|
memory?: "user" | "project" | "local"
|
|
1537
1537
|
effort?: "low" | "medium" | "high" | "max" | number
|
|
1538
|
-
permissionMode?: "default" | "acceptEdits" | "bypassPermissions" | "plan" | "dontAsk"
|
|
1538
|
+
permissionMode?: "default" | "acceptEdits" | "bypassPermissions" | "fullAccess" | "plan" | "dontAsk"
|
|
1539
1539
|
}
|
|
1540
1540
|
|
|
1541
1541
|
/** Source for loading filesystem-based settings. 'user' - Global user settings (~/.claude/settings.json). 'project' - Project settings (.claude/settings.json). 'local' - Local settings (.claude/settings.local.json). */
|
|
@@ -1785,7 +1785,7 @@ export type SDKSystemMessage = {
|
|
|
1785
1785
|
status: string
|
|
1786
1786
|
}[]
|
|
1787
1787
|
model: string
|
|
1788
|
-
permissionMode: "default" | "acceptEdits" | "bypassPermissions" | "plan" | "dontAsk"
|
|
1788
|
+
permissionMode: "default" | "acceptEdits" | "bypassPermissions" | "fullAccess" | "plan" | "dontAsk"
|
|
1789
1789
|
slash_commands: string[]
|
|
1790
1790
|
output_style: string
|
|
1791
1791
|
skills: string[]
|
|
@@ -1827,7 +1827,7 @@ export type SDKStatusMessage = {
|
|
|
1827
1827
|
type: "system"
|
|
1828
1828
|
subtype: "status"
|
|
1829
1829
|
status: "compacting" | null
|
|
1830
|
-
permissionMode?: "default" | "acceptEdits" | "bypassPermissions" | "plan" | "dontAsk"
|
|
1830
|
+
permissionMode?: "default" | "acceptEdits" | "bypassPermissions" | "fullAccess" | "plan" | "dontAsk"
|
|
1831
1831
|
uuid: string
|
|
1832
1832
|
session_id: string
|
|
1833
1833
|
}
|
|
@@ -2142,7 +2142,7 @@ export type SDKMessage = ({
|
|
|
2142
2142
|
status: string
|
|
2143
2143
|
}[]
|
|
2144
2144
|
model: string
|
|
2145
|
-
permissionMode: "default" | "acceptEdits" | "bypassPermissions" | "plan" | "dontAsk"
|
|
2145
|
+
permissionMode: "default" | "acceptEdits" | "bypassPermissions" | "fullAccess" | "plan" | "dontAsk"
|
|
2146
2146
|
slash_commands: string[]
|
|
2147
2147
|
output_style: string
|
|
2148
2148
|
skills: string[]
|
|
@@ -2178,7 +2178,7 @@ export type SDKMessage = ({
|
|
|
2178
2178
|
type: "system"
|
|
2179
2179
|
subtype: "status"
|
|
2180
2180
|
status: "compacting" | null
|
|
2181
|
-
permissionMode?: "default" | "acceptEdits" | "bypassPermissions" | "plan" | "dontAsk"
|
|
2181
|
+
permissionMode?: "default" | "acceptEdits" | "bypassPermissions" | "fullAccess" | "plan" | "dontAsk"
|
|
2182
2182
|
uuid: string
|
|
2183
2183
|
session_id: string
|
|
2184
2184
|
}) | ({
|
package/src/entrypoints/sdk.d.ts
CHANGED
|
@@ -109,7 +109,7 @@ export type PermissionResult = ({
|
|
|
109
109
|
destination: 'userSettings' | 'projectSettings' | 'localSettings' | 'session' | 'cliArg'
|
|
110
110
|
}) | ({
|
|
111
111
|
type: 'setMode'
|
|
112
|
-
mode: 'default' | 'acceptEdits' | 'bypassPermissions' | 'plan' | 'dontAsk'
|
|
112
|
+
mode: 'default' | 'acceptEdits' | 'bypassPermissions' | 'fullAccess' | 'plan' | 'dontAsk'
|
|
113
113
|
destination: 'userSettings' | 'projectSettings' | 'localSettings' | 'session' | 'cliArg'
|
|
114
114
|
}) | ({
|
|
115
115
|
type: 'addDirectories'
|
|
@@ -208,6 +208,8 @@ export type QueryPermissionMode =
|
|
|
208
208
|
| 'auto-accept'
|
|
209
209
|
| 'bypass-permissions'
|
|
210
210
|
| 'bypassPermissions'
|
|
211
|
+
| 'full-access'
|
|
212
|
+
| 'fullAccess'
|
|
211
213
|
| 'acceptEdits'
|
|
212
214
|
|
|
213
215
|
export type QueryOptions = {
|
|
@@ -355,6 +357,7 @@ export type SDKSessionOptions = {
|
|
|
355
357
|
cwd: string
|
|
356
358
|
model?: string
|
|
357
359
|
permissionMode?: QueryPermissionMode
|
|
360
|
+
allowDangerouslySkipPermissions?: boolean
|
|
358
361
|
abortController?: AbortController
|
|
359
362
|
/**
|
|
360
363
|
* Callback invoked before each tool use. Return `{ behavior: 'allow' }` to
|