@cjhyy/code-shell 0.2.0 → 0.3.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.
- package/CHANGELOG.md +108 -0
- package/README.md +35 -2
- package/dist/anthropic-DJXVKFMJ.js +1 -0
- package/dist/arena/index.js +1 -1
- package/dist/arena-MRBATZFD.js +3 -0
- package/dist/{chunk-EU3J7TBP.js → chunk-5QIVXFCT.js} +1 -1
- package/dist/{chunk-XXCZE2U2.js → chunk-AFMP73YP.js} +1 -1
- package/dist/{chunk-L7B2ORID.js → chunk-D3TVASD2.js} +2 -2
- package/dist/chunk-DI26OUIU.js +2 -0
- package/dist/chunk-FZXY554D.js +2 -0
- package/dist/chunk-GGVAOPI7.js +1 -0
- package/dist/chunk-GKAQH2DG.js +2 -0
- package/dist/chunk-GYNO4R7R.js +2 -0
- package/dist/{chunk-RERBX75D.js → chunk-K4HILJ6G.js} +3 -3
- package/dist/{chunk-2EUIMKJA.js → chunk-OWBYLMDD.js} +1 -1
- package/dist/chunk-SKIX2M5Z.js +4 -0
- package/dist/chunk-SV7H4FKT.js +3 -0
- package/dist/{chunk-2GJ7H5NC.js → chunk-WONQHE4P.js} +40 -40
- package/dist/{chunk-DEYFK6FP.js → chunk-X2S7ASQ2.js} +1 -1
- package/dist/chunk-Z5HKHAO7.js +336 -0
- package/dist/cli/commands/builtin/plugin-commands-registration.d.ts +12 -0
- package/dist/cli/commands/builtin/plugin-handler.d.ts +6 -0
- package/dist/cli/commands/registry.d.ts +9 -2
- package/dist/cli/main.js +138 -122
- package/dist/client-base-GSFXPP2Y.js +1 -0
- package/dist/devtools-FBX4HVVY.js +1 -0
- package/dist/engine/engine.d.ts +29 -0
- package/dist/engine/turn-loop.d.ts +25 -0
- package/dist/hooks/events.d.ts +84 -5
- package/dist/hooks/inject.d.ts +19 -0
- package/dist/hooks/shell-runner.d.ts +45 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.js +1 -1
- package/dist/llm/api-key-sanitize.d.ts +22 -0
- package/dist/llm/providers/openai.d.ts +23 -0
- package/dist/llm/retry.d.ts +12 -0
- package/dist/llm/stream-watchdog.d.ts +42 -0
- package/dist/logging/logger.d.ts +14 -0
- package/dist/manager-4XKLZHKE.js +1 -0
- package/dist/mcp-manager-3JGHEJO3.js +1 -0
- package/dist/openai-OQ6LLN5J.js +1 -0
- package/dist/{openrouter-models-GZVCRWD2.js → openrouter-models-ZT4R2AE3.js} +1 -1
- package/dist/openrouter-sync-ARMVWY7S.js +1 -0
- package/dist/plugin-handler-GJISMH5Q.js +11 -0
- package/dist/plugins/gitOps.d.ts +23 -0
- package/dist/plugins/installedPlugins.d.ts +15 -0
- package/dist/plugins/knownMarketplaces.d.ts +10 -0
- package/dist/plugins/loadPluginHooks.d.ts +52 -0
- package/dist/plugins/marketplaceManager.d.ts +49 -0
- package/dist/plugins/parseMarketplaceInput.d.ts +16 -0
- package/dist/plugins/pluginCommandHook.d.ts +54 -0
- package/dist/plugins/pluginCommandsLoader.d.ts +25 -0
- package/dist/plugins/pluginInstaller.d.ts +36 -0
- package/dist/plugins/schemas.d.ts +9 -0
- package/dist/plugins/types.d.ts +73 -2
- package/dist/plugins/varRewrite.d.ts +42 -0
- package/dist/product/index.js +1 -1
- package/dist/protocol/helpers.d.ts +42 -0
- package/dist/render/clearTerminal.d.ts +9 -3
- package/dist/render/components/App.d.ts +1 -0
- package/dist/render/components/Static.d.ts +23 -0
- package/dist/render/devtools.d.ts +8 -4
- package/dist/render/dom.d.ts +2 -1
- package/dist/render/frame.d.ts +1 -0
- package/dist/render/index.d.ts +10 -0
- package/dist/render/ink.d.ts +24 -2
- package/dist/render/log-update.d.ts +12 -1
- package/dist/render/selection.d.ts +1 -1
- package/dist/run/index.js +1 -1
- package/dist/services/index.d.ts +1 -0
- package/dist/services/memory-orchestrator.d.ts +39 -0
- package/dist/settings/schema.d.ts +93 -6
- package/dist/skills/frontmatter.d.ts +13 -0
- package/dist/skills/index.d.ts +4 -4
- package/dist/skills/scanner.d.ts +11 -21
- package/dist/tool-summary-HJX6RHG4.js +2 -0
- package/dist/tool-system/builtin/agent-notifications.d.ts +55 -0
- package/dist/tool-system/builtin/agent-registry.d.ts +35 -4
- package/dist/tool-system/builtin/agent-transcript-translator.d.ts +22 -0
- package/dist/tool-system/builtin/skill-prompt.d.ts +7 -0
- package/dist/tool-system/builtin/skill.d.ts +3 -1
- package/dist/tool-system/context.d.ts +23 -0
- package/dist/tool-system/executor.d.ts +1 -1
- package/dist/tool-system/permission.d.ts +1 -1
- package/dist/types.d.ts +35 -0
- package/dist/ui/components/AgentBlock.d.ts +5 -2
- package/dist/ui/components/AgentDock.d.ts +36 -0
- package/dist/ui/components/CommandInput.d.ts +12 -1
- package/dist/ui/components/MessageRow.d.ts +54 -0
- package/dist/ui/components/SpinnerWithVerb.d.ts +2 -1
- package/dist/ui/components/TextInput.d.ts +9 -1
- package/dist/ui/components/VirtualMessageList.d.ts +30 -11
- package/dist/ui/dev-seed.d.ts +1 -0
- package/dist/ui/fullscreen-mode.d.ts +9 -0
- package/dist/ui/hooks/useVirtualScroll.d.ts +101 -0
- package/dist/ui/perf-probes.d.ts +22 -0
- package/dist/ui/query-guard.d.ts +35 -0
- package/dist/ui/slice-anchor.d.ts +44 -0
- package/dist/ui/store.d.ts +26 -1
- package/package.json +5 -3
- package/dist/anthropic-OVRWAZRD.js +0 -1
- package/dist/arena-64T2EQD4.js +0 -3
- package/dist/chunk-A4M2Y42L.js +0 -2
- package/dist/chunk-DTPABBSV.js +0 -2
- package/dist/chunk-MGP35GKD.js +0 -254
- package/dist/chunk-Q3RSX66I.js +0 -1
- package/dist/chunk-VKKU4LOM.js +0 -3
- package/dist/chunk-ZSAONDT6.js +0 -2
- package/dist/client-base-F5FCRSB3.js +0 -1
- package/dist/devtools-SGDUOOM4.js +0 -1
- package/dist/manager-J6FXEUEK.js +0 -1
- package/dist/mcp-manager-27EVBKRT.js +0 -1
- package/dist/openai-3QEADSYL.js +0 -1
- package/dist/openrouter-sync-WG4AG5NC.js +0 -1
- package/dist/plugins/loader.d.ts +0 -72
- package/dist/skills/matcher.d.ts +0 -21
- package/dist/tool-summary-V2B3MD5N.js +0 -2
- package/skills-builtin/codeshell-help.md +0 -135
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Convert PluginCommand[] (from pluginCommandsLoader) to SlashCommand[]
|
|
3
|
+
* registrable on the CommandRegistry. Each command's execute() reads
|
|
4
|
+
* the body, substitutes $ARGUMENTS / {args}, and stages the result via
|
|
5
|
+
* ctx.setNextContext so the user can submit by pressing Enter.
|
|
6
|
+
*/
|
|
7
|
+
import type { SlashCommand } from "../registry.js";
|
|
8
|
+
/**
|
|
9
|
+
* Returns the full list of SlashCommands derived from currently-installed
|
|
10
|
+
* plugins. Caller registers them on the CommandRegistry.
|
|
11
|
+
*/
|
|
12
|
+
export declare function buildPluginSlashCommands(): SlashCommand[];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `/plugin` slash command dispatcher. Parses subcommand args and calls
|
|
3
|
+
* into the plugin marketplace modules. Returns a multi-line status
|
|
4
|
+
* string the slash command can pass to ctx.addStatus.
|
|
5
|
+
*/
|
|
6
|
+
export declare function runPluginCommand(rawArg: string): Promise<string>;
|
|
@@ -23,7 +23,7 @@ export interface CommandContext {
|
|
|
23
23
|
setModel: (model: string) => void;
|
|
24
24
|
sessionId: string | undefined;
|
|
25
25
|
setSessionId: (id: string) => void;
|
|
26
|
-
|
|
26
|
+
queryGuard: import("../../ui/query-guard.js").QueryGuard;
|
|
27
27
|
addStatus: (msg: string) => void;
|
|
28
28
|
/** Add a message that renders with full markdown formatting (like assistant output). */
|
|
29
29
|
addMessage: (text: string) => void;
|
|
@@ -45,6 +45,12 @@ export interface CommandContext {
|
|
|
45
45
|
openSessionPicker?: () => void;
|
|
46
46
|
/** Open the Ink model management panel (used by /models). */
|
|
47
47
|
openModelManager?: () => void;
|
|
48
|
+
/** Current fullscreen mode (used by /fullscreen status check). */
|
|
49
|
+
fullscreen?: boolean;
|
|
50
|
+
/** Set fullscreen mode explicitly (used by /fullscreen on|off). */
|
|
51
|
+
setFullscreen?: (next: boolean) => void;
|
|
52
|
+
/** Toggle fullscreen mode (used by bare /fullscreen). */
|
|
53
|
+
toggleFullscreen?: () => void;
|
|
48
54
|
}
|
|
49
55
|
export type CommandGroup = "core" | "git" | "context" | "config" | "advanced";
|
|
50
56
|
export interface SlashCommand {
|
|
@@ -64,9 +70,10 @@ export declare class CommandRegistry {
|
|
|
64
70
|
/** Generate grouped help text from all registered commands. */
|
|
65
71
|
helpText(): string;
|
|
66
72
|
listNames(): string[];
|
|
67
|
-
/** Return deduplicated list of { name, description } sorted by name. */
|
|
73
|
+
/** Return deduplicated list of { name, description, usage } sorted by name. */
|
|
68
74
|
listCommands(): Array<{
|
|
69
75
|
name: string;
|
|
70
76
|
description: string;
|
|
77
|
+
usage?: string;
|
|
71
78
|
}>;
|
|
72
79
|
}
|