@hiai-gg/hiai-opencode 0.1.3 → 0.1.5
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/.env.example +14 -18
- package/AGENTS.md +77 -23
- package/ARCHITECTURE.md +15 -17
- package/LICENSE.md +1 -0
- package/README.md +189 -94
- package/assets/cli/hiai-opencode.mjs +276 -0
- package/assets/mcp/playwright.mjs +7 -0
- package/config/hiai-opencode.schema.json +85 -50
- package/dist/config/defaults.d.ts +1 -3
- package/dist/config/index.d.ts +0 -1
- package/dist/config/platform-schema.d.ts +343 -4
- package/dist/config/schema/agent-overrides.d.ts +256 -0
- package/dist/config/schema/categories.d.ts +1 -1
- package/dist/config/schema/commands.d.ts +1 -0
- package/dist/config/schema/index.d.ts +2 -0
- package/dist/config/schema/oh-my-opencode-config.d.ts +267 -0
- package/dist/config/schema/skill-discovery.d.ts +11 -0
- package/dist/config/types.d.ts +33 -3
- package/dist/create-tools.d.ts +2 -0
- package/dist/features/builtin-commands/templates/mcp-status.d.ts +1 -0
- package/dist/features/builtin-commands/types.d.ts +1 -1
- package/dist/features/opencode-skill-loader/loader.d.ts +2 -0
- package/dist/index.js +744 -358
- package/dist/internals/plugins/websearch-cited/index.d.ts +7 -1
- package/dist/mcp/types.d.ts +1 -1
- package/dist/plugin/skill-discovery-config.d.ts +4 -0
- package/dist/plugin/tool-registry.d.ts +2 -0
- package/dist/shared/startup-diagnostics.d.ts +6 -0
- package/dist/tools/skill-mcp/tools.d.ts +2 -0
- package/hiai-opencode.json +55 -33
- package/package.json +4 -1
- package/src/agents/AGENTS.md +3 -4
- package/src/config/defaults.ts +186 -77
- package/src/config/index.ts +0 -1
- package/src/config/loader.test.ts +16 -1
- package/src/config/loader.ts +4 -2
- package/src/config/platform-schema.ts +53 -4
- package/src/config/schema/agent-overrides.ts +2 -0
- package/src/config/schema/commands.ts +1 -0
- package/src/config/schema/fast-apply.ts +4 -4
- package/src/config/schema/index.ts +2 -0
- package/src/config/schema/oh-my-opencode-config.ts +3 -0
- package/src/config/schema/skill-discovery.ts +25 -0
- package/src/config/types.ts +49 -2
- package/src/create-tools.ts +4 -1
- package/src/features/builtin-commands/commands.ts +7 -0
- package/src/features/builtin-commands/templates/mcp-status.ts +36 -0
- package/src/features/builtin-commands/types.ts +1 -1
- package/src/features/builtin-skills/skills/playwright.ts +24 -2
- package/src/features/opencode-skill-loader/loader.ts +11 -0
- package/src/index.ts +53 -14
- package/src/internals/plugins/websearch-cited/index.ts +10 -5
- package/src/lsp/index.ts +1 -0
- package/src/mcp/registry.ts +6 -1
- package/src/plugin/hooks/create-tool-guard-hooks.ts +1 -1
- package/src/plugin/skill-context.ts +31 -13
- package/src/plugin/skill-discovery-config.ts +32 -0
- package/src/plugin/tool-registry.ts +4 -0
- package/src/plugin-handlers/agent-config-handler.ts +20 -13
- package/src/plugin-handlers/command-config-handler.ts +22 -12
- package/src/shared/migration/agent-names.ts +5 -5
- package/src/shared/startup-diagnostics.ts +77 -0
- package/src/tools/skill-mcp/tools.ts +45 -7
- package/src/config/models.ts +0 -32
package/dist/create-tools.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { AvailableCategory, AvailableSkill } from "./agents/dynamic-agent-prompt-builder";
|
|
2
2
|
import type { HiaiOpenCodeConfig } from "./config";
|
|
3
|
+
import type { HiaiOpencodeConfig } from "./config/types";
|
|
3
4
|
import type { BrowserAutomationProvider } from "./config/schema/browser-automation";
|
|
4
5
|
import type { LoadedSkill } from "./features/opencode-skill-loader/types";
|
|
5
6
|
import type { PluginContext, ToolsRecord } from "./plugin/types";
|
|
@@ -16,6 +17,7 @@ type CreateToolsResult = {
|
|
|
16
17
|
export declare function createTools(args: {
|
|
17
18
|
ctx: PluginContext;
|
|
18
19
|
pluginConfig: HiaiOpenCodeConfig;
|
|
20
|
+
platformConfig?: HiaiOpencodeConfig;
|
|
19
21
|
managers: Pick<Managers, "backgroundManager" | "tmuxSessionManager" | "skillMcpManager">;
|
|
20
22
|
}): Promise<CreateToolsResult>;
|
|
21
23
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MCP_STATUS_TEMPLATE = "# MCP Status Command\n\n## Purpose\n\nUse /mcp-status to show the effective hiai-opencode MCP setup without relying on OpenCode's mcp list output.\n\n## Execute\n\nRun:\n\n```bash\nhiai-opencode mcp-status\n```\n\nIf the binary is not on PATH, try the package-local fallback:\n\n```bash\nnode ./node_modules/@hiai-gg/hiai-opencode/assets/cli/hiai-opencode.mjs mcp-status\n```\n\n## Report\n\nSummarize the output in a compact status table:\n\n- MCP server name\n- status: ok, warning, error, disabled\n- cause or next action\n\nRules:\n\n- Do not print API key values.\n- If a key is missing, name the env var only.\n- If a runtime is missing, give the exact install hint from the command output or the shortest safe next command.\n- Do not edit config unless the user explicitly asks.\n- Do not run package installs unless the user explicitly asks.\n";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CommandDefinition } from "../claude-code-command-loader";
|
|
2
|
-
export type BuiltinCommandName = "init-deep" | "ralph-loop" | "cancel-ralph" | "ulw-loop" | "refactor" | "start-work" | "stop-continuation" | "handoff" | "remove-ai-slops";
|
|
2
|
+
export type BuiltinCommandName = "init-deep" | "ralph-loop" | "cancel-ralph" | "ulw-loop" | "refactor" | "start-work" | "stop-continuation" | "handoff" | "remove-ai-slops" | "mcp-status";
|
|
3
3
|
export interface BuiltinCommandConfig {
|
|
4
4
|
disabled_commands?: BuiltinCommandName[];
|
|
5
5
|
}
|
|
@@ -6,6 +6,7 @@ export declare function loadOpencodeGlobalSkills(): Promise<Record<string, Comma
|
|
|
6
6
|
export declare function loadOpencodeProjectSkills(directory?: string): Promise<Record<string, CommandDefinition>>;
|
|
7
7
|
export declare function loadProjectAgentsSkills(directory?: string): Promise<Record<string, CommandDefinition>>;
|
|
8
8
|
export declare function loadGlobalAgentsSkills(): Promise<Record<string, CommandDefinition>>;
|
|
9
|
+
export declare function loadManagedPluginSkills(): Promise<Record<string, CommandDefinition>>;
|
|
9
10
|
export interface DiscoverSkillsOptions {
|
|
10
11
|
includeClaudeCodePaths?: boolean;
|
|
11
12
|
directory?: string;
|
|
@@ -19,3 +20,4 @@ export declare function discoverOpencodeGlobalSkills(): Promise<LoadedSkill[]>;
|
|
|
19
20
|
export declare function discoverOpencodeProjectSkills(directory?: string): Promise<LoadedSkill[]>;
|
|
20
21
|
export declare function discoverProjectAgentsSkills(directory?: string): Promise<LoadedSkill[]>;
|
|
21
22
|
export declare function discoverGlobalAgentsSkills(): Promise<LoadedSkill[]>;
|
|
23
|
+
export declare function discoverManagedPluginSkills(): Promise<LoadedSkill[]>;
|