@ccx-agent/opencode-ccx 0.1.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/README.md +131 -0
- package/dist/agents/coordinator.d.ts +3 -0
- package/dist/agents/explore.d.ts +3 -0
- package/dist/agents/general-purpose.d.ts +3 -0
- package/dist/agents/plan.d.ts +3 -0
- package/dist/agents/types.d.ts +7 -0
- package/dist/agents/verification.d.ts +3 -0
- package/dist/config/loader.d.ts +2 -0
- package/dist/config/schema.d.ts +12 -0
- package/dist/hooks/config-handler.d.ts +2 -0
- package/dist/hooks/environment-context.d.ts +9 -0
- package/dist/hooks/risk-guard.d.ts +1 -0
- package/dist/hooks/system-prompt-injector.d.ts +2 -0
- package/dist/hooks/verification-reminder.d.ts +2 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +26874 -0
- package/dist/plugin/interface.d.ts +10 -0
- package/dist/plugin/tool-registry.d.ts +3 -0
- package/dist/prompts/actions.d.ts +1 -0
- package/dist/prompts/compose.d.ts +8 -0
- package/dist/prompts/doing-tasks.d.ts +1 -0
- package/dist/prompts/environment.d.ts +8 -0
- package/dist/prompts/intro.d.ts +1 -0
- package/dist/prompts/output-efficiency.d.ts +1 -0
- package/dist/prompts/system-rules.d.ts +1 -0
- package/dist/prompts/tone-style.d.ts +1 -0
- package/dist/prompts/using-tools.d.ts +10 -0
- package/package.json +40 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Plugin } from "@opencode-ai/plugin";
|
|
2
|
+
import type { OhMyCCAgentConfig } from "../config/schema";
|
|
3
|
+
type PluginContext = Parameters<Plugin>[0];
|
|
4
|
+
type PluginInstance = Awaited<ReturnType<Plugin>>;
|
|
5
|
+
export type PluginInterface = Pick<PluginInstance, "config" | "tool" | "tool.execute.before" | "tool.execute.after" | "event">;
|
|
6
|
+
export declare function createPluginInterface(args: {
|
|
7
|
+
ctx: PluginContext;
|
|
8
|
+
config: OhMyCCAgentConfig;
|
|
9
|
+
}): PluginInterface;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getActionsSection(): string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type EnvironmentInfo as EnvInfo } from './environment.js';
|
|
2
|
+
import { type ToolSectionNames as ToolNames } from './using-tools.js';
|
|
3
|
+
export type { EnvInfo, ToolNames };
|
|
4
|
+
export declare function composeSystemPrompt(options: {
|
|
5
|
+
toolNames: ToolNames;
|
|
6
|
+
env: EnvInfo;
|
|
7
|
+
outputStyle?: string;
|
|
8
|
+
}): string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getDoingTasksSection(): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getIntroSection(outputStyle?: string): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getOutputEfficiencySection(): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getSystemRulesSection(): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getToneStyleSection(): string;
|
package/package.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ccx-agent/opencode-ccx",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Production-grade prompt engineering for OpenCode — disciplined coding, risk-aware actions, adversarial verification",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"dist"
|
|
16
|
+
],
|
|
17
|
+
"scripts": {
|
|
18
|
+
"build": "bun build src/index.ts --outdir dist --target bun --format esm && tsc --emitDeclarationOnly",
|
|
19
|
+
"clean": "rm -rf dist",
|
|
20
|
+
"typecheck": "tsc --noEmit",
|
|
21
|
+
"prepublishOnly": "bun run clean && bun run build"
|
|
22
|
+
},
|
|
23
|
+
"keywords": [
|
|
24
|
+
"opencode",
|
|
25
|
+
"plugin",
|
|
26
|
+
"claude",
|
|
27
|
+
"agent",
|
|
28
|
+
"harness",
|
|
29
|
+
"prompt-engineering"
|
|
30
|
+
],
|
|
31
|
+
"license": "MIT",
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@opencode-ai/plugin": "^1.2.24",
|
|
34
|
+
"zod": "^4.1.8"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"bun-types": "^1.3.11",
|
|
38
|
+
"typescript": "^5.7.3"
|
|
39
|
+
}
|
|
40
|
+
}
|