@bendyline/gezel-cli 1.0.1 → 1.0.2
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 +2 -1
- package/dist/bin/gezel.js +28 -7
- package/dist/tui/index.js +28 -7
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -79,7 +79,8 @@ CLI-owned daemon on the canonical port.
|
|
|
79
79
|
|
|
80
80
|
## What you get with no further setup
|
|
81
81
|
|
|
82
|
-
The
|
|
82
|
+
The CLI does not bundle native inference engines; those are downloaded only on
|
|
83
|
+
demand when you opt into on-device models. Straight away you can use:
|
|
83
84
|
|
|
84
85
|
- The interactive TUI (`gezel`) and one-shot prompts (`gezel run "…"`)
|
|
85
86
|
- Cloud providers — OpenAI, Anthropic, GitHub Copilot, and any
|
package/dist/bin/gezel.js
CHANGED
|
@@ -711,14 +711,35 @@ var init_bootstrap = __esm({
|
|
|
711
711
|
});
|
|
712
712
|
|
|
713
713
|
// src/tui/active-access.ts
|
|
714
|
-
import
|
|
715
|
-
resolveGezelWorkspaceAccess
|
|
716
|
-
} from "@bendyline/gezel";
|
|
714
|
+
import * as GezelCore from "@bendyline/gezel";
|
|
717
715
|
function activeAccessMode(opts) {
|
|
718
|
-
const
|
|
719
|
-
if (
|
|
720
|
-
|
|
721
|
-
|
|
716
|
+
const resolveAccess = Reflect.get(GezelCore, "resolveGezelWorkspaceAccess");
|
|
717
|
+
if (resolveAccess) {
|
|
718
|
+
const access = resolveAccess(opts);
|
|
719
|
+
if (access.nativeAccess === "reviewed") return "reviewed edits";
|
|
720
|
+
if (access.nativeAccess === "full") return "full access";
|
|
721
|
+
return access.effectiveWritable ? "editable" : "read-only";
|
|
722
|
+
}
|
|
723
|
+
const { provider, project, gezel, config } = opts;
|
|
724
|
+
if (provider === "codex-cli") {
|
|
725
|
+
const mode = GezelCore.normalizeCodexPermissionMode(
|
|
726
|
+
project?.codexPermissionMode ?? gezel?.codexPermissionMode ?? gezel?.claudePermissionMode ?? config?.codexCli?.defaultPermissionMode
|
|
727
|
+
);
|
|
728
|
+
if (mode === "plan") return "read-only";
|
|
729
|
+
if (mode === "reviewed") return "reviewed edits";
|
|
730
|
+
if (mode === "full") return "full access";
|
|
731
|
+
return "editable";
|
|
732
|
+
}
|
|
733
|
+
if (provider === "anthropic-cli") {
|
|
734
|
+
const mode = project?.claudePermissionMode ?? gezel?.claudePermissionMode ?? config?.anthropicCli?.defaultPermissionMode ?? "acceptEdits";
|
|
735
|
+
if (mode === "plan") return "read-only";
|
|
736
|
+
if (mode === "bypassPermissions") return "full access";
|
|
737
|
+
return "editable";
|
|
738
|
+
}
|
|
739
|
+
if (provider === "copilot" && !GezelCore.resolveSandboxCopilot(config?.sandboxCopilot, gezel?.sandboxCopilot)) {
|
|
740
|
+
return "editable";
|
|
741
|
+
}
|
|
742
|
+
return GezelCore.projectWorkspaceWritable(project) ? "editable" : "read-only";
|
|
722
743
|
}
|
|
723
744
|
var init_active_access = __esm({
|
|
724
745
|
"src/tui/active-access.ts"() {
|
package/dist/tui/index.js
CHANGED
|
@@ -107,14 +107,35 @@ var CLI_ENGAGEMENT_MODE_USAGE = CLI_ENGAGEMENT_MODES.map((option) => option.name
|
|
|
107
107
|
);
|
|
108
108
|
|
|
109
109
|
// src/tui/active-access.ts
|
|
110
|
-
import
|
|
111
|
-
resolveGezelWorkspaceAccess
|
|
112
|
-
} from "@bendyline/gezel";
|
|
110
|
+
import * as GezelCore from "@bendyline/gezel";
|
|
113
111
|
function activeAccessMode(opts) {
|
|
114
|
-
const
|
|
115
|
-
if (
|
|
116
|
-
|
|
117
|
-
|
|
112
|
+
const resolveAccess = Reflect.get(GezelCore, "resolveGezelWorkspaceAccess");
|
|
113
|
+
if (resolveAccess) {
|
|
114
|
+
const access = resolveAccess(opts);
|
|
115
|
+
if (access.nativeAccess === "reviewed") return "reviewed edits";
|
|
116
|
+
if (access.nativeAccess === "full") return "full access";
|
|
117
|
+
return access.effectiveWritable ? "editable" : "read-only";
|
|
118
|
+
}
|
|
119
|
+
const { provider, project, gezel, config } = opts;
|
|
120
|
+
if (provider === "codex-cli") {
|
|
121
|
+
const mode = GezelCore.normalizeCodexPermissionMode(
|
|
122
|
+
project?.codexPermissionMode ?? gezel?.codexPermissionMode ?? gezel?.claudePermissionMode ?? config?.codexCli?.defaultPermissionMode
|
|
123
|
+
);
|
|
124
|
+
if (mode === "plan") return "read-only";
|
|
125
|
+
if (mode === "reviewed") return "reviewed edits";
|
|
126
|
+
if (mode === "full") return "full access";
|
|
127
|
+
return "editable";
|
|
128
|
+
}
|
|
129
|
+
if (provider === "anthropic-cli") {
|
|
130
|
+
const mode = project?.claudePermissionMode ?? gezel?.claudePermissionMode ?? config?.anthropicCli?.defaultPermissionMode ?? "acceptEdits";
|
|
131
|
+
if (mode === "plan") return "read-only";
|
|
132
|
+
if (mode === "bypassPermissions") return "full access";
|
|
133
|
+
return "editable";
|
|
134
|
+
}
|
|
135
|
+
if (provider === "copilot" && !GezelCore.resolveSandboxCopilot(config?.sandboxCopilot, gezel?.sandboxCopilot)) {
|
|
136
|
+
return "editable";
|
|
137
|
+
}
|
|
138
|
+
return GezelCore.projectWorkspaceWritable(project) ? "editable" : "read-only";
|
|
118
139
|
}
|
|
119
140
|
|
|
120
141
|
// src/tui/commands.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bendyline/gezel-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "The `gezel` command-line tool.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -44,18 +44,18 @@
|
|
|
44
44
|
"!dist/**/*.map"
|
|
45
45
|
],
|
|
46
46
|
"dependencies": {
|
|
47
|
+
"@bendyline/gezel": "1.0.2",
|
|
48
|
+
"@bendyline/gezel-app-sdk": "1.0.2",
|
|
49
|
+
"@bendyline/gezel-catalog": "1.0.2",
|
|
50
|
+
"@bendyline/gezel-client": "1.0.2",
|
|
51
|
+
"@bendyline/gezel-service": "1.0.2",
|
|
47
52
|
"@bendyline/squisq": "2.7.1",
|
|
48
53
|
"@bendyline/squisq-formats": "2.4.3",
|
|
49
54
|
"@bendyline/squisq-react": "2.7.1",
|
|
50
55
|
"commander": "^15.0.0",
|
|
51
56
|
"ink": "^7.1.1",
|
|
52
57
|
"ink-text-input": "^6.0.0",
|
|
53
|
-
"react": "^19.2.8"
|
|
54
|
-
"@bendyline/gezel": "1.0.0",
|
|
55
|
-
"@bendyline/gezel-app-sdk": "1.0.0",
|
|
56
|
-
"@bendyline/gezel-client": "1.0.0",
|
|
57
|
-
"@bendyline/gezel-service": "1.0.0",
|
|
58
|
-
"@bendyline/gezel-catalog": "1.0.0"
|
|
58
|
+
"react": "^19.2.8"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@types/node": "^24.13.3",
|