@allternit/gizzi-code 1.0.0 → 1.0.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/bin/gizzi +4 -0
- package/bin/gizzi-ink +5 -0
- package/package.json +137 -31
- package/src/Tool.ts +26 -0
- package/src/bootstrap/state.ts +165 -322
- package/src/commands.ts +209 -0
- package/src/context/QueuedMessageContext.tsx +63 -0
- package/src/context/fpsMetrics.tsx +30 -0
- package/src/context/mailbox.tsx +38 -0
- package/src/context/modalContext.tsx +58 -0
- package/src/context/notifications.tsx +240 -0
- package/src/context/overlayContext.tsx +151 -0
- package/src/context/promptOverlayContext.tsx +125 -0
- package/src/context/stats.tsx +220 -0
- package/src/context/voice.tsx +88 -0
- package/src/hooks/useCanUseTool.ts +11 -0
- package/src/hooks/useExitOnCtrlCD.ts +40 -187
- package/src/hooks/useExitOnCtrlCDWithKeybindings.ts +68 -0
- package/src/hooks/useKeybinding.ts +68 -209
- package/src/hooks/useTerminalSize.ts +31 -99
- package/src/hooks.ts +37 -0
- package/src/ink.ts +204 -0
- package/src/main.ts +7 -0
- package/src/types/command.ts +216 -0
- package/src/types/connectorText.ts +39 -0
- package/src/types/fileSuggestion.ts +15 -0
- package/src/types/generated/events_mono/claude_code/v1/claude_code_internal_event.ts +865 -0
- package/src/types/generated/events_mono/common/v1/auth.ts +100 -0
- package/src/types/generated/events_mono/growthbook/v1/growthbook_experiment_event.ts +223 -0
- package/src/types/generated/google/protobuf/timestamp.ts +187 -0
- package/src/types/hooks.ts +319 -0
- package/src/types/ids.ts +44 -0
- package/src/types/logs.ts +331 -0
- package/src/types/merged/index.ts +5 -0
- package/src/types/merged/message.ts +552 -0
- package/src/types/message.ts +927 -186
- package/src/types/messageQueueTypes.ts +21 -0
- package/src/types/notebook.ts +72 -0
- package/src/types/permissions.ts +447 -0
- package/src/types/plugin.ts +363 -0
- package/src/types/statusLine.ts +15 -0
- package/src/types/textInputTypes.ts +387 -0
- package/src/types/tools.ts +149 -0
- package/src/types/utils.ts +20 -0
- package/src/utils/advisor.ts +12 -0
- package/src/utils/api.ts +29 -0
- package/src/utils/array.ts +7 -0
- package/src/utils/attachments.ts +60 -0
- package/src/utils/auth.ts +3 -0
- package/src/utils/claudeInChrome/chromeNativeHost.ts +15 -0
- package/src/utils/claudeInChrome/common.ts +12 -0
- package/src/utils/claudeInChrome/mcpServer.ts +15 -0
- package/src/utils/computerUse/common.ts +19 -0
- package/src/utils/computerUse/mcpServer.ts +15 -0
- package/src/utils/config.ts +35 -0
- package/src/utils/context.ts +19 -0
- package/src/utils/cwd.ts +3 -0
- package/src/utils/debug.ts +3 -0
- package/src/utils/earlyInput.ts +7 -0
- package/src/utils/effort.ts +13 -0
- package/src/utils/embeddedTools.ts +12 -0
- package/src/utils/envUtils.ts +3 -0
- package/src/utils/errors.ts +3 -0
- package/src/utils/execFileNoThrow.ts +24 -0
- package/src/utils/feature-flags.ts +112 -0
- package/src/utils/file.ts +3 -0
- package/src/utils/fileHistory.ts +17 -0
- package/src/utils/fingerprint.ts +7 -0
- package/src/utils/format.ts +75 -305
- package/src/utils/frontmatterParser.ts +33 -0
- package/src/utils/fsOperations.ts +31 -0
- package/src/utils/fullscreen.ts +40 -350
- package/src/utils/git.ts +15 -0
- package/src/utils/imageResizer.ts +30 -0
- package/src/utils/lazySchema.ts +9 -0
- package/src/utils/log.ts +3 -0
- package/src/utils/markdownConfigLoader.ts +12 -0
- package/src/utils/messages.ts +13 -0
- package/src/utils/migration.ts +137 -0
- package/src/utils/model/providers.ts +15 -0
- package/src/utils/path.ts +3 -0
- package/src/utils/permissions/PermissionResult.ts +14 -0
- package/src/utils/permissions/autoModeState.ts +12 -0
- package/src/utils/permissions/filesystem.ts +12 -0
- package/src/utils/plugins/loadPluginOutputStyles.ts +12 -0
- package/src/utils/plugins/schemas.ts +25 -0
- package/src/utils/process.ts +16 -0
- package/src/utils/sandbox/sandbox-adapter.ts +19 -0
- package/src/utils/sessionStorage.ts +238 -472
- package/src/utils/settings/constants.ts +10 -0
- package/src/utils/settings/settings.ts +19 -0
- package/src/utils/settings/types.ts +18 -0
- package/src/utils/shell/shellToolUtils.ts +9 -0
- package/src/utils/sinks.ts +11 -0
- package/src/utils/sleep.ts +7 -0
- package/src/utils/sliceAnsi.ts +7 -0
- package/src/utils/slowOperations.ts +3 -0
- package/src/utils/startupProfiler.ts +11 -0
- package/src/utils/stringUtils.ts +106 -0
- package/src/utils/systemPromptType.ts +9 -0
- package/src/utils/teleport/api.ts +15 -0
- package/src/utils/textHighlighting.ts +16 -0
- package/src/utils/theme.ts +17 -0
- package/src/utils/thinking.ts +58 -0
- package/src/utils/tokens.ts +11 -0
- package/src/utils/toolResultStorage.ts +17 -0
- package/src/utils/worktreeModeEnabled.ts +7 -0
- package/WORKSPACE_INTEGRATION.md +0 -290
- package/chat-sessions/sessions-index.json +0 -98
- package/package.json.original +0 -31
- package/package.json.publish +0 -47
- package/src/bootstrap/state.d.ts +0 -169
- package/src/bootstrap/state.js +0 -261
- package/src/context/pack-builder.d.ts +0 -24
- package/src/context/pack-builder.js +0 -281
- package/src/hooks/useExitOnCtrlCD.d.ts +0 -86
- package/src/hooks/useExitOnCtrlCD.js +0 -130
- package/src/hooks/useKeybinding.d.ts +0 -89
- package/src/hooks/useKeybinding.js +0 -163
- package/src/hooks/useTerminalSize.d.ts +0 -41
- package/src/hooks/useTerminalSize.js +0 -90
- package/src/index.d.ts +0 -23
- package/src/index.js +0 -24
- package/src/runtime/brand/brand.d.ts +0 -488
- package/src/runtime/brand/brand.js +0 -464
- package/src/runtime/brand/brand.ts +0 -667
- package/src/runtime/services/tokenEstimation.d.ts +0 -187
- package/src/runtime/services/tokenEstimation.js +0 -423
- package/src/runtime/services/tokenEstimation.ts +0 -547
- package/src/runtime/tools/Tool.d.ts +0 -239
- package/src/runtime/tools/Tool.js +0 -285
- package/src/runtime/tools/Tool.ts +0 -524
- package/src/scheduler/TaskScheduler.d.ts +0 -98
- package/src/scheduler/TaskScheduler.js +0 -201
- package/src/scheduler/TaskScheduler.ts +0 -259
- package/src/state/AppStateStore.d.ts +0 -347
- package/src/state/AppStateStore.js +0 -439
- package/src/state/AppStateStore.ts +0 -658
- package/src/state/WorkspaceStateStore.d.ts +0 -43
- package/src/state/WorkspaceStateStore.js +0 -224
- package/src/state/WorkspaceStateStore.ts +0 -297
- package/src/types/message.d.ts +0 -190
- package/src/types/message.js +0 -77
- package/src/utils/format.d.ts +0 -126
- package/src/utils/format.js +0 -230
- package/src/utils/fullscreen.d.ts +0 -161
- package/src/utils/fullscreen.js +0 -277
- package/src/utils/sessionStorage.d.ts +0 -210
- package/src/utils/sessionStorage.js +0 -435
- package/src/watcher/WorkspaceWatcher.d.ts +0 -70
- package/src/watcher/WorkspaceWatcher.js +0 -191
- package/src/watcher/WorkspaceWatcher.ts +0 -251
- package/src/workspace/loader.d.ts +0 -30
- package/src/workspace/loader.js +0 -117
- package/src/workspace/types.d.ts +0 -91
- package/src/workspace/types.js +0 -7
- package/threads/thread_1775361175022.json +0 -9
- package/tsconfig.json +0 -14
package/bin/gizzi
ADDED
package/bin/gizzi-ink
ADDED
package/package.json
CHANGED
|
@@ -1,43 +1,149 @@
|
|
|
1
1
|
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/package.json",
|
|
3
|
+
"version": "1.0.1",
|
|
2
4
|
"name": "@allternit/gizzi-code",
|
|
3
|
-
"
|
|
4
|
-
"description": "Gizzi Code - Workspace-aware AI assistant framework (like Claude Code for Allternit)",
|
|
5
|
+
"description": "AI-powered terminal interface for the Allternit ecosystem",
|
|
5
6
|
"type": "module",
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"homepage": "https://docs.gizziio.com",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/Gizziio/allternit-platform.git",
|
|
12
|
+
"directory": "cmd/gizzi-code"
|
|
13
13
|
},
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"dev": "tsc --watch",
|
|
17
|
-
"typecheck": "tsc --noEmit || true"
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/Gizziio/allternit-platform/issues"
|
|
18
16
|
},
|
|
19
17
|
"keywords": [
|
|
20
|
-
"
|
|
21
|
-
"
|
|
18
|
+
"allternitchitect",
|
|
19
|
+
"shell",
|
|
20
|
+
"terminal",
|
|
21
|
+
"tui",
|
|
22
22
|
"cli",
|
|
23
|
-
"
|
|
24
|
-
"assistant",
|
|
25
|
-
"workspace"
|
|
23
|
+
"gizzi-code"
|
|
26
24
|
],
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"
|
|
25
|
+
"scripts": {
|
|
26
|
+
"typecheck": "tsgo --noEmit",
|
|
27
|
+
"test": "bun test --timeout 30000",
|
|
28
|
+
"build": "bun run script/build.ts",
|
|
29
|
+
"dev": "bun run --conditions=browser ./src/cli/main.ts",
|
|
30
|
+
"start": "bun run --conditions=browser ./src/cli/main.ts",
|
|
31
|
+
"fix:hang": "bash script/fix-hang.sh",
|
|
32
|
+
"e2e:clerk-login": "bun run script/terminal-clerk-e2e.ts",
|
|
33
|
+
"e2e:tui:visual": "bash script/tui-visual-e2e.sh",
|
|
34
|
+
"e2e:tui:regression": "bash script/tui-visual-regression.sh",
|
|
35
|
+
"random": "echo 'Random script updated at $(date)' && echo 'Change queued successfully' && echo 'Another change made' && echo 'Yet another change' && echo 'One more change' && echo 'Final change' && echo 'Another final change' && echo 'Yet another final change'",
|
|
36
|
+
"clean": "echo 'Cleaning up...' && rm -rf node_modules dist",
|
|
37
|
+
"lint": "echo 'Running lint checks...' && bun test --coverage",
|
|
38
|
+
"format": "echo 'Formatting code...' && bun run --prettier --write src/**/*.ts",
|
|
39
|
+
"docs": "echo 'Generating documentation...' && find src -name '*.ts' -exec echo 'Processing: {}' \\;",
|
|
40
|
+
"deploy": "echo 'Deploying application...' && bun run build && echo 'Deployment completed successfully'",
|
|
41
|
+
"db": "bun drizzle-kit"
|
|
42
|
+
},
|
|
43
|
+
"bin": {
|
|
44
|
+
"gizzi": "./dist/gizzi-code",
|
|
45
|
+
"gizzi-code": "./dist/gizzi-code"
|
|
46
|
+
},
|
|
47
|
+
"exports": {
|
|
48
|
+
"./*": "./src/*.ts"
|
|
31
49
|
},
|
|
32
50
|
"devDependencies": {
|
|
33
|
-
"@
|
|
34
|
-
"@
|
|
35
|
-
"
|
|
51
|
+
"@babel/core": "7.28.4",
|
|
52
|
+
"@hey-api/openapi-ts": "^0.94.1",
|
|
53
|
+
"@octokit/webhooks-types": "7.6.1",
|
|
54
|
+
"@parcel/watcher-darwin-arm64": "2.5.1",
|
|
55
|
+
"@parcel/watcher-darwin-x64": "2.5.1",
|
|
56
|
+
"@parcel/watcher-linux-arm64-glibc": "2.5.1",
|
|
57
|
+
"@parcel/watcher-linux-arm64-musl": "2.5.1",
|
|
58
|
+
"@parcel/watcher-linux-x64-glibc": "2.5.1",
|
|
59
|
+
"@parcel/watcher-linux-x64-musl": "2.5.1",
|
|
60
|
+
"@parcel/watcher-win32-x64": "2.5.1",
|
|
61
|
+
"@tsconfig/bun": "*",
|
|
62
|
+
"@types/babel__core": "7.20.5",
|
|
63
|
+
"@types/bun": "*",
|
|
64
|
+
"@types/mime-types": "3.0.1",
|
|
65
|
+
"@types/turndown": "5.0.5",
|
|
66
|
+
"@types/yargs": "17.0.33",
|
|
67
|
+
"drizzle-kit": "1.0.0-beta.12-a5629fb",
|
|
68
|
+
"drizzle-orm": "1.0.0-beta.12-a5629fb",
|
|
69
|
+
"typescript": "*",
|
|
70
|
+
"vscode-languageserver-types": "3.17.5",
|
|
71
|
+
"why-is-node-running": "3.2.2",
|
|
72
|
+
"zod-to-json-schema": "3.24.5"
|
|
73
|
+
},
|
|
74
|
+
"dependencies": {
|
|
75
|
+
"@allternit/plugin": "workspace:*",
|
|
76
|
+
"@allternit/script": "workspace:*",
|
|
77
|
+
"@allternit/sdk": "workspace:*",
|
|
78
|
+
"@allternit/util": "workspace:*",
|
|
79
|
+
"@actions/core": "1.11.1",
|
|
80
|
+
"@actions/github": "6.0.1",
|
|
81
|
+
"@agentclientprotocol/sdk": "0.14.1",
|
|
82
|
+
"@ai-sdk/anthropic": "2.0.65",
|
|
83
|
+
"@ai-sdk/google": "2.0.54",
|
|
84
|
+
"@ai-sdk/mistral": "2.0.27",
|
|
85
|
+
"@ai-sdk/openai": "2.0.89",
|
|
86
|
+
"@ai-sdk/openai-compatible": "1.0.32",
|
|
87
|
+
"@ai-sdk/provider": "2.0.1",
|
|
88
|
+
"@ai-sdk/provider-utils": "3.0.21",
|
|
89
|
+
"@clack/prompts": "1.0.0-alpha.1",
|
|
90
|
+
"@hono/standard-validator": "0.1.5",
|
|
91
|
+
"@hono/zod-validator": "*",
|
|
92
|
+
"@modelcontextprotocol/sdk": "1.25.2",
|
|
93
|
+
"@modelcontextprotocol/server-sequential-thinking": "^2025.12.18",
|
|
94
|
+
"@octokit/graphql": "9.0.2",
|
|
95
|
+
"@octokit/rest": "*",
|
|
96
|
+
"@openauthjs/openauth": "*",
|
|
97
|
+
"@opentui/core": "0.1.87",
|
|
98
|
+
"@opentui/solid": "0.1.87",
|
|
99
|
+
"@parcel/watcher": "2.5.1",
|
|
100
|
+
"@pierre/diffs": "*",
|
|
101
|
+
"@solid-primitives/event-bus": "1.1.2",
|
|
102
|
+
"@solid-primitives/scheduled": "1.5.2",
|
|
103
|
+
"@standard-schema/spec": "1.0.0",
|
|
104
|
+
"@upstash/context7-mcp": "^2.1.4",
|
|
105
|
+
"@zip.js/zip.js": "2.7.62",
|
|
106
|
+
"ai": "5.0.124",
|
|
107
|
+
"bonjour-service": "1.3.0",
|
|
108
|
+
"bun-pty": "0.4.8",
|
|
109
|
+
"chokidar": "4.0.3",
|
|
110
|
+
"clipboardy": "4.0.0",
|
|
111
|
+
"decimal.js": "10.5.0",
|
|
112
|
+
"diff": "*",
|
|
113
|
+
"drizzle-orm": "1.0.0-beta.12-a5629fb",
|
|
114
|
+
"fuzzysort": "3.1.0",
|
|
115
|
+
"glob": "13.0.5",
|
|
116
|
+
"gray-matter": "4.0.3",
|
|
117
|
+
"hono": "*",
|
|
118
|
+
"hono-openapi": "*",
|
|
119
|
+
"ignore": "7.0.5",
|
|
120
|
+
"jsonc-parser": "3.3.1",
|
|
121
|
+
"marked": "^17.0.4",
|
|
122
|
+
"mime-types": "3.0.2",
|
|
123
|
+
"minimatch": "10.0.3",
|
|
124
|
+
"moment-timezone": "^0.6.0",
|
|
125
|
+
"open": "10.1.2",
|
|
126
|
+
"opentui-spinner": "0.0.6",
|
|
127
|
+
"partial-json": "0.1.7",
|
|
128
|
+
"remeda": "*",
|
|
129
|
+
"solid-js": "*",
|
|
130
|
+
"strip-ansi": "7.1.2",
|
|
131
|
+
"tree-sitter-bash": "0.25.0",
|
|
132
|
+
"turndown": "7.2.0",
|
|
133
|
+
"ulid": "*",
|
|
134
|
+
"vscode-jsonrpc": "^8.2.1",
|
|
135
|
+
"vscode-languageserver-protocol": "^3.17.5",
|
|
136
|
+
"web-tree-sitter": "0.25.10",
|
|
137
|
+
"xdg-basedir": "5.1.0",
|
|
138
|
+
"yargs": "18.0.0",
|
|
139
|
+
"zod": "4.3.6",
|
|
140
|
+
"zod-to-json-schema": "3.24.5"
|
|
36
141
|
},
|
|
37
|
-
"
|
|
38
|
-
"
|
|
142
|
+
"overrides": {
|
|
143
|
+
"drizzle-orm": "1.0.0-beta.12-a5629fb"
|
|
39
144
|
},
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
|
|
43
|
-
|
|
145
|
+
"files": [
|
|
146
|
+
"src",
|
|
147
|
+
"bin"
|
|
148
|
+
]
|
|
149
|
+
}
|
package/src/Tool.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tool - re-export from runtime tools
|
|
3
|
+
* Top-level entry point for all tool types and utilities
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
// Re-export from runtime/tools/Tool.ts
|
|
7
|
+
export {
|
|
8
|
+
ToolUseContext,
|
|
9
|
+
ToolPermissionContext,
|
|
10
|
+
ToolDef,
|
|
11
|
+
buildTool,
|
|
12
|
+
toolMatchesName,
|
|
13
|
+
findToolByName,
|
|
14
|
+
type Tools,
|
|
15
|
+
} from './runtime/tools/Tool.js'
|
|
16
|
+
|
|
17
|
+
// Re-export the Tool interface/type
|
|
18
|
+
export type { Tool } from './runtime/tools/Tool.js'
|
|
19
|
+
|
|
20
|
+
// Re-export from runtime tools builtins
|
|
21
|
+
export {
|
|
22
|
+
type ToolUse,
|
|
23
|
+
type ToolResult,
|
|
24
|
+
type ToolCall,
|
|
25
|
+
type ToolInvocation,
|
|
26
|
+
} from './runtime/tools/builtins/Tool.js'
|