@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.
@@ -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,3 @@
1
+ import { tool } from "@opencode-ai/plugin";
2
+ export type ToolDefinition = ReturnType<typeof tool>;
3
+ export declare function createAgentTools(): Record<string, ToolDefinition>;
@@ -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,8 @@
1
+ export type EnvironmentInfo = {
2
+ cwd: string;
3
+ isGit: boolean;
4
+ platform: string;
5
+ shell: string;
6
+ };
7
+ export declare function detectGit(cwd: string): boolean;
8
+ export declare function getEnvironmentSection(env: EnvironmentInfo): 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;
@@ -0,0 +1,10 @@
1
+ export type ToolSectionNames = {
2
+ bash: string;
3
+ read: string;
4
+ edit: string;
5
+ write: string;
6
+ glob: string;
7
+ grep: string;
8
+ todo?: string;
9
+ };
10
+ export declare function getUsingToolsSection(toolNames: ToolSectionNames): 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
+ }