@ahumandev/autocode 0.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/LICENSE.md +21 -0
- package/README.md +379 -0
- package/dist/agents/index.d.ts +25 -0
- package/dist/agents/index.d.ts.map +1 -0
- package/dist/agents/index.test.d.ts +2 -0
- package/dist/agents/index.test.d.ts.map +1 -0
- package/dist/agents/prompts/assist.d.ts +2 -0
- package/dist/agents/prompts/assist.d.ts.map +1 -0
- package/dist/agents/prompts/assist_git_conflict.d.ts +2 -0
- package/dist/agents/prompts/assist_git_conflict.d.ts.map +1 -0
- package/dist/agents/prompts/assist_troubleshoot.d.ts +2 -0
- package/dist/agents/prompts/assist_troubleshoot.d.ts.map +1 -0
- package/dist/agents/prompts/auto.d.ts +2 -0
- package/dist/agents/prompts/auto.d.ts.map +1 -0
- package/dist/agents/prompts/auto_feature.d.ts +2 -0
- package/dist/agents/prompts/auto_feature.d.ts.map +1 -0
- package/dist/agents/prompts/auto_general.d.ts +2 -0
- package/dist/agents/prompts/auto_general.d.ts.map +1 -0
- package/dist/agents/prompts/auto_refactor.d.ts +2 -0
- package/dist/agents/prompts/auto_refactor.d.ts.map +1 -0
- package/dist/agents/prompts/auto_research.d.ts +2 -0
- package/dist/agents/prompts/auto_research.d.ts.map +1 -0
- package/dist/agents/prompts/auto_review_api.d.ts +2 -0
- package/dist/agents/prompts/auto_review_api.d.ts.map +1 -0
- package/dist/agents/prompts/auto_review_ui.d.ts +2 -0
- package/dist/agents/prompts/auto_review_ui.d.ts.map +1 -0
- package/dist/agents/prompts/auto_test.d.ts +2 -0
- package/dist/agents/prompts/auto_test.d.ts.map +1 -0
- package/dist/agents/prompts/auto_troubleshoot.d.ts +2 -0
- package/dist/agents/prompts/auto_troubleshoot.d.ts.map +1 -0
- package/dist/agents/prompts/design.d.ts +2 -0
- package/dist/agents/prompts/design.d.ts.map +1 -0
- package/dist/agents/prompts/document_agents.d.ts +2 -0
- package/dist/agents/prompts/document_agents.d.ts.map +1 -0
- package/dist/agents/prompts/document_code.d.ts +2 -0
- package/dist/agents/prompts/document_code.d.ts.map +1 -0
- package/dist/agents/prompts/document_conventions.d.ts +2 -0
- package/dist/agents/prompts/document_conventions.d.ts.map +1 -0
- package/dist/agents/prompts/document_install.d.ts +2 -0
- package/dist/agents/prompts/document_install.d.ts.map +1 -0
- package/dist/agents/prompts/document_prd.d.ts +2 -0
- package/dist/agents/prompts/document_prd.d.ts.map +1 -0
- package/dist/agents/prompts/document_ux.d.ts +2 -0
- package/dist/agents/prompts/document_ux.d.ts.map +1 -0
- package/dist/agents/prompts/execute_author.d.ts +2 -0
- package/dist/agents/prompts/execute_author.d.ts.map +1 -0
- package/dist/agents/prompts/execute_code.d.ts +2 -0
- package/dist/agents/prompts/execute_code.d.ts.map +1 -0
- package/dist/agents/prompts/execute_debug.d.ts +2 -0
- package/dist/agents/prompts/execute_debug.d.ts.map +1 -0
- package/dist/agents/prompts/execute_document.d.ts +2 -0
- package/dist/agents/prompts/execute_document.d.ts.map +1 -0
- package/dist/agents/prompts/execute_excel.d.ts +2 -0
- package/dist/agents/prompts/execute_excel.d.ts.map +1 -0
- package/dist/agents/prompts/execute_git_commit.d.ts +2 -0
- package/dist/agents/prompts/execute_git_commit.d.ts.map +1 -0
- package/dist/agents/prompts/execute_os.d.ts +2 -0
- package/dist/agents/prompts/execute_os.d.ts.map +1 -0
- package/dist/agents/prompts/execute_script.d.ts +2 -0
- package/dist/agents/prompts/execute_script.d.ts.map +1 -0
- package/dist/agents/prompts/query_architect.d.ts +2 -0
- package/dist/agents/prompts/query_architect.d.ts.map +1 -0
- package/dist/agents/prompts/query_browser.d.ts +2 -0
- package/dist/agents/prompts/query_browser.d.ts.map +1 -0
- package/dist/agents/prompts/query_code.d.ts +2 -0
- package/dist/agents/prompts/query_code.d.ts.map +1 -0
- package/dist/agents/prompts/query_db.d.ts +2 -0
- package/dist/agents/prompts/query_db.d.ts.map +1 -0
- package/dist/agents/prompts/query_excel.d.ts +2 -0
- package/dist/agents/prompts/query_excel.d.ts.map +1 -0
- package/dist/agents/prompts/query_git.d.ts +2 -0
- package/dist/agents/prompts/query_git.d.ts.map +1 -0
- package/dist/agents/prompts/query_os.d.ts +2 -0
- package/dist/agents/prompts/query_os.d.ts.map +1 -0
- package/dist/agents/prompts/query_text.d.ts +2 -0
- package/dist/agents/prompts/query_text.d.ts.map +1 -0
- package/dist/agents/prompts/query_web.d.ts +2 -0
- package/dist/agents/prompts/query_web.d.ts.map +1 -0
- package/dist/agents/prompts/research.d.ts +2 -0
- package/dist/agents/prompts/research.d.ts.map +1 -0
- package/dist/agents/prompts/temp_concept.d.ts +2 -0
- package/dist/agents/prompts/temp_concept.d.ts.map +1 -0
- package/dist/agents/prompts/temp_manual.d.ts +4 -0
- package/dist/agents/prompts/temp_manual.d.ts.map +1 -0
- package/dist/agents/prompts/temp_report.d.ts +2 -0
- package/dist/agents/prompts/temp_report.d.ts.map +1 -0
- package/dist/agents/rules/caveman.d.ts +2 -0
- package/dist/agents/rules/caveman.d.ts.map +1 -0
- package/dist/agents/rules/definitions.d.ts +2 -0
- package/dist/agents/rules/definitions.d.ts.map +1 -0
- package/dist/agents/rules/error.d.ts +2 -0
- package/dist/agents/rules/error.d.ts.map +1 -0
- package/dist/agents/rules/markdown.d.ts +2 -0
- package/dist/agents/rules/markdown.d.ts.map +1 -0
- package/dist/agents/rules/planner.d.ts +2 -0
- package/dist/agents/rules/planner.d.ts.map +1 -0
- package/dist/agents/rules/question.d.ts +2 -0
- package/dist/agents/rules/question.d.ts.map +1 -0
- package/dist/agents/rules/response.d.ts +2 -0
- package/dist/agents/rules/response.d.ts.map +1 -0
- package/dist/agents/rules/swap2assist.d.ts +2 -0
- package/dist/agents/rules/swap2assist.d.ts.map +1 -0
- package/dist/agents/rules/task.d.ts +2 -0
- package/dist/agents/rules/task.d.ts.map +1 -0
- package/dist/commands/index.d.ts +19 -0
- package/dist/commands/index.d.ts.map +1 -0
- package/dist/commands/index.test.d.ts +2 -0
- package/dist/commands/index.test.d.ts.map +1 -0
- package/dist/config.d.ts +29 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.test.d.ts +2 -0
- package/dist/config.test.d.ts.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/plugin.d.ts +4 -0
- package/dist/plugin.d.ts.map +1 -0
- package/dist/plugin.js +30676 -0
- package/dist/plugin.test.d.ts +2 -0
- package/dist/plugin.test.d.ts.map +1 -0
- package/dist/skills/author-article/SKILL.md +116 -0
- package/dist/skills/author-caveman/SKILL.md +18 -0
- package/dist/skills/author-readme/SKILL.md +199 -0
- package/dist/skills/author-rules/SKILL.md +182 -0
- package/dist/skills/author-skill/SKILL.md +78 -0
- package/dist/skills/author-tutorial/SKILL.md +24 -0
- package/dist/skills/code-java/SKILL.md +345 -0
- package/dist/skills/code-rest/SKILL.md +82 -0
- package/dist/skills/code-typescript/SKILL.md +453 -0
- package/dist/skills/execute-sandbox/SKILL.md +42 -0
- package/dist/skills/test-jest/SKILL.md +211 -0
- package/dist/skills/test-junit/SKILL.md +206 -0
- package/dist/skills/test-mockito/SKILL.md +209 -0
- package/dist/skills/test-vitest/SKILL.md +159 -0
- package/dist/tools/autocode_agent_swap.d.ts +13 -0
- package/dist/tools/autocode_agent_swap.d.ts.map +1 -0
- package/dist/tools/autocode_agent_swap.test.d.ts +2 -0
- package/dist/tools/autocode_agent_swap.test.d.ts.map +1 -0
- package/dist/tools/autocode_concept_create.d.ts +23 -0
- package/dist/tools/autocode_concept_create.d.ts.map +1 -0
- package/dist/tools/autocode_concept_list.d.ts +14 -0
- package/dist/tools/autocode_concept_list.d.ts.map +1 -0
- package/dist/tools/autocode_concept_read.d.ts +20 -0
- package/dist/tools/autocode_concept_read.d.ts.map +1 -0
- package/dist/tools/autocode_criteria.d.ts +52 -0
- package/dist/tools/autocode_criteria.d.ts.map +1 -0
- package/dist/tools/autocode_criteria.test.d.ts +2 -0
- package/dist/tools/autocode_criteria.test.d.ts.map +1 -0
- package/dist/tools/autocode_db.d.ts +80 -0
- package/dist/tools/autocode_db.d.ts.map +1 -0
- package/dist/tools/autocode_db.test.d.ts +2 -0
- package/dist/tools/autocode_db.test.d.ts.map +1 -0
- package/dist/tools/autocode_dependencies.d.ts +4 -0
- package/dist/tools/autocode_dependencies.d.ts.map +1 -0
- package/dist/tools/autocode_dependencies.test.d.ts +2 -0
- package/dist/tools/autocode_dependencies.test.d.ts.map +1 -0
- package/dist/tools/autocode_job_execute.d.ts +14 -0
- package/dist/tools/autocode_job_execute.d.ts.map +1 -0
- package/dist/tools/autocode_job_execute.test.d.ts +2 -0
- package/dist/tools/autocode_job_execute.test.d.ts.map +1 -0
- package/dist/tools/autocode_job_list.d.ts +23 -0
- package/dist/tools/autocode_job_list.d.ts.map +1 -0
- package/dist/tools/autocode_job_list.test.d.ts +3 -0
- package/dist/tools/autocode_job_list.test.d.ts.map +1 -0
- package/dist/tools/autocode_job_status.d.ts +5 -0
- package/dist/tools/autocode_job_status.d.ts.map +1 -0
- package/dist/tools/autocode_job_status.test.d.ts +2 -0
- package/dist/tools/autocode_job_status.test.d.ts.map +1 -0
- package/dist/tools/autocode_logo_find.d.ts +10 -0
- package/dist/tools/autocode_logo_find.d.ts.map +1 -0
- package/dist/tools/autocode_plan_read.d.ts +12 -0
- package/dist/tools/autocode_plan_read.d.ts.map +1 -0
- package/dist/tools/autocode_plan_save.d.ts +48 -0
- package/dist/tools/autocode_plan_save.d.ts.map +1 -0
- package/dist/tools/autocode_sandbox_cli.d.ts +23 -0
- package/dist/tools/autocode_sandbox_cli.d.ts.map +1 -0
- package/dist/tools/autocode_sandbox_create.d.ts +16 -0
- package/dist/tools/autocode_sandbox_create.d.ts.map +1 -0
- package/dist/tools/autocode_sandbox_delete.d.ts +12 -0
- package/dist/tools/autocode_sandbox_delete.d.ts.map +1 -0
- package/dist/tools/autocode_sandbox_file_tools.d.ts +9 -0
- package/dist/tools/autocode_sandbox_file_tools.d.ts.map +1 -0
- package/dist/tools/autocode_sandbox_tools.test.d.ts +2 -0
- package/dist/tools/autocode_sandbox_tools.test.d.ts.map +1 -0
- package/dist/tools/autocode_session_create.d.ts +13 -0
- package/dist/tools/autocode_session_create.d.ts.map +1 -0
- package/dist/tools/autocode_session_create.test.d.ts +2 -0
- package/dist/tools/autocode_session_create.test.d.ts.map +1 -0
- package/dist/tools/autocode_shelve.d.ts +5 -0
- package/dist/tools/autocode_shelve.d.ts.map +1 -0
- package/dist/tools/autocode_shelve.test.d.ts +2 -0
- package/dist/tools/autocode_shelve.test.d.ts.map +1 -0
- package/dist/tools/index.d.ts +324 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.test.d.ts +2 -0
- package/dist/tools/index.test.d.ts.map +1 -0
- package/dist/tools/task_external.d.ts +35 -0
- package/dist/tools/task_external.d.ts.map +1 -0
- package/dist/tools/task_external.test.d.ts +2 -0
- package/dist/tools/task_external.test.d.ts.map +1 -0
- package/dist/tools/task_resume.d.ts +12 -0
- package/dist/tools/task_resume.d.ts.map +1 -0
- package/dist/tools/task_resume.test.d.ts +2 -0
- package/dist/tools/task_resume.test.d.ts.map +1 -0
- package/dist/tools/test_context.d.ts +5 -0
- package/dist/tools/test_context.d.ts.map +1 -0
- package/dist/utils/agent_swap.d.ts +56 -0
- package/dist/utils/agent_swap.d.ts.map +1 -0
- package/dist/utils/agent_swap.test.d.ts +2 -0
- package/dist/utils/agent_swap.test.d.ts.map +1 -0
- package/dist/utils/autocode_dependencies.d.ts +44 -0
- package/dist/utils/autocode_dependencies.d.ts.map +1 -0
- package/dist/utils/autocode_sandbox_helpers.d.ts +12 -0
- package/dist/utils/autocode_sandbox_helpers.d.ts.map +1 -0
- package/dist/utils/db.d.ts +82 -0
- package/dist/utils/db.d.ts.map +1 -0
- package/dist/utils/delegate.d.ts +3 -0
- package/dist/utils/delegate.d.ts.map +1 -0
- package/dist/utils/frontmatter.d.ts +3 -0
- package/dist/utils/frontmatter.d.ts.map +1 -0
- package/dist/utils/jobs.d.ts +210 -0
- package/dist/utils/jobs.d.ts.map +1 -0
- package/dist/utils/jobs.test.d.ts +2 -0
- package/dist/utils/jobs.test.d.ts.map +1 -0
- package/dist/utils/sandbox.d.ts +233 -0
- package/dist/utils/sandbox.d.ts.map +1 -0
- package/dist/utils/sandbox.test.d.ts +2 -0
- package/dist/utils/sandbox.test.d.ts.map +1 -0
- package/dist/utils/sandbox_file_tools.d.ts +34 -0
- package/dist/utils/sandbox_file_tools.d.ts.map +1 -0
- package/dist/utils/shelve.d.ts +33 -0
- package/dist/utils/shelve.d.ts.map +1 -0
- package/dist/utils/solution.d.ts +28 -0
- package/dist/utils/solution.d.ts.map +1 -0
- package/dist/utils/solution.test.d.ts +2 -0
- package/dist/utils/solution.test.d.ts.map +1 -0
- package/dist/utils/tool_permission.d.ts +2 -0
- package/dist/utils/tool_permission.d.ts.map +1 -0
- package/dist/utils/tools.d.ts +7 -0
- package/dist/utils/tools.d.ts.map +1 -0
- package/package.json +58 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { OpencodeClient } from "@opencode-ai/sdk";
|
|
2
|
+
type FileSystem = {
|
|
3
|
+
mkdir?: (dirPath: string, options?: {
|
|
4
|
+
recursive?: boolean;
|
|
5
|
+
}) => Promise<string | undefined | void>;
|
|
6
|
+
readFile: (filePath: string, encoding: "utf8") => Promise<string>;
|
|
7
|
+
readdir?: (dirPath: string, options?: {
|
|
8
|
+
withFileTypes?: boolean;
|
|
9
|
+
}) => Promise<string[] | import("fs").Dirent[]>;
|
|
10
|
+
writeFile: (filePath: string, content: string) => Promise<void>;
|
|
11
|
+
appendFile?: (filePath: string, content: string) => Promise<void>;
|
|
12
|
+
};
|
|
13
|
+
export declare function createAutocodeCriteriaSetTool(clientOrFileSystem?: OpencodeClient | FileSystem, maybeFileSystem?: FileSystem): {
|
|
14
|
+
description: string;
|
|
15
|
+
args: {
|
|
16
|
+
id: import("zod").ZodString;
|
|
17
|
+
metric: import("zod").ZodString;
|
|
18
|
+
};
|
|
19
|
+
execute(args: {
|
|
20
|
+
id: string;
|
|
21
|
+
metric: string;
|
|
22
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
23
|
+
};
|
|
24
|
+
export declare function createAutocodeCriteriaListTool(clientOrFileSystem?: OpencodeClient | FileSystem, maybeFileSystem?: FileSystem): {
|
|
25
|
+
description: string;
|
|
26
|
+
args: {};
|
|
27
|
+
execute(args: Record<string, never>, context: import("@opencode-ai/plugin").ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
28
|
+
};
|
|
29
|
+
export declare function createAutocodeCriteriaAcceptTool(clientOrFileSystem?: OpencodeClient | FileSystem, maybeFileSystem?: FileSystem): {
|
|
30
|
+
description: string;
|
|
31
|
+
args: {
|
|
32
|
+
id: import("zod").ZodString;
|
|
33
|
+
actions: import("zod").ZodArray<import("zod").ZodString>;
|
|
34
|
+
proof: import("zod").ZodString;
|
|
35
|
+
};
|
|
36
|
+
execute(args: {
|
|
37
|
+
id: string;
|
|
38
|
+
actions: string[];
|
|
39
|
+
proof: string;
|
|
40
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
41
|
+
};
|
|
42
|
+
export declare function createAutocodeCriteriaRemoveTool(clientOrFileSystem?: OpencodeClient | FileSystem, maybeFileSystem?: FileSystem): {
|
|
43
|
+
description: string;
|
|
44
|
+
args: {
|
|
45
|
+
id: import("zod").ZodString;
|
|
46
|
+
};
|
|
47
|
+
execute(args: {
|
|
48
|
+
id: string;
|
|
49
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
50
|
+
};
|
|
51
|
+
export {};
|
|
52
|
+
//# sourceMappingURL=autocode_criteria.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autocode_criteria.d.ts","sourceRoot":"","sources":["../../src/tools/autocode_criteria.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAMtD,KAAK,UAAU,GAAG;IACd,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,OAAO,CAAA;KAAE,KAAK,OAAO,CAAC,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC,CAAA;IAClG,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAA;IACjE,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,aAAa,CAAC,EAAE,OAAO,CAAA;KAAE,KAAK,OAAO,CAAC,MAAM,EAAE,GAAG,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC,CAAA;IAC/G,SAAS,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IAC/D,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;CACpE,CAAA;AA0SD,wBAAgB,6BAA6B,CAAC,kBAAkB,CAAC,EAAE,cAAc,GAAG,UAAU,EAAE,eAAe,CAAC,EAAE,UAAU;;;;;;;;;;EA+B3H;AAED,wBAAgB,8BAA8B,CAAC,kBAAkB,CAAC,EAAE,cAAc,GAAG,UAAU,EAAE,eAAe,CAAC,EAAE,UAAU;;;;EAwB5H;AAED,wBAAgB,gCAAgC,CAAC,kBAAkB,CAAC,EAAE,cAAc,GAAG,UAAU,EAAE,eAAe,CAAC,EAAE,UAAU;;;;;;;;;;;;EAwC9H;AAED,wBAAgB,gCAAgC,CAAC,kBAAkB,CAAC,EAAE,cAAc,GAAG,UAAU,EAAE,eAAe,CAAC,EAAE,UAAU;;;;;;;;EA8B9H"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autocode_criteria.test.d.ts","sourceRoot":"","sources":["../../src/tools/autocode_criteria.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { type DbClientFactory } from "@/utils/db";
|
|
2
|
+
export type DbDeps = {
|
|
3
|
+
clientFactory?: DbClientFactory;
|
|
4
|
+
env?: NodeJS.ProcessEnv;
|
|
5
|
+
};
|
|
6
|
+
export declare function createAutocodeDbTablesTool(deps?: DbDeps): {
|
|
7
|
+
description: string;
|
|
8
|
+
args: {
|
|
9
|
+
db_key: import("zod").ZodString;
|
|
10
|
+
schema: import("zod").ZodOptional<import("zod").ZodString>;
|
|
11
|
+
};
|
|
12
|
+
execute(args: {
|
|
13
|
+
db_key: string;
|
|
14
|
+
schema?: string | undefined;
|
|
15
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
16
|
+
};
|
|
17
|
+
export declare function createAutocodeDbTableTool(deps?: DbDeps): {
|
|
18
|
+
description: string;
|
|
19
|
+
args: {
|
|
20
|
+
db_key: import("zod").ZodString;
|
|
21
|
+
schema: import("zod").ZodString;
|
|
22
|
+
table: import("zod").ZodString;
|
|
23
|
+
};
|
|
24
|
+
execute(args: {
|
|
25
|
+
db_key: string;
|
|
26
|
+
schema: string;
|
|
27
|
+
table: string;
|
|
28
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
29
|
+
};
|
|
30
|
+
export declare function createAutocodeDbTableReadTool(deps?: DbDeps): {
|
|
31
|
+
description: string;
|
|
32
|
+
args: {
|
|
33
|
+
db_key: import("zod").ZodString;
|
|
34
|
+
fields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
35
|
+
filters: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
36
|
+
key: import("zod").ZodString;
|
|
37
|
+
operator: import("zod").ZodEnum<{
|
|
38
|
+
">": ">";
|
|
39
|
+
"=": "=";
|
|
40
|
+
"!=": "!=";
|
|
41
|
+
"<": "<";
|
|
42
|
+
"<=": "<=";
|
|
43
|
+
">=": ">=";
|
|
44
|
+
like: "like";
|
|
45
|
+
in: "in";
|
|
46
|
+
is_null: "is_null";
|
|
47
|
+
}>;
|
|
48
|
+
value: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
49
|
+
}, import("zod/v4/core").$strip>>>;
|
|
50
|
+
limit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
51
|
+
schema: import("zod").ZodString;
|
|
52
|
+
sort_asc: import("zod").ZodOptional<import("zod").ZodString>;
|
|
53
|
+
sort_desc: import("zod").ZodOptional<import("zod").ZodString>;
|
|
54
|
+
table: import("zod").ZodString;
|
|
55
|
+
};
|
|
56
|
+
execute(args: {
|
|
57
|
+
db_key: string;
|
|
58
|
+
schema: string;
|
|
59
|
+
table: string;
|
|
60
|
+
fields?: string[] | undefined;
|
|
61
|
+
filters?: {
|
|
62
|
+
key: string;
|
|
63
|
+
operator: ">" | "=" | "!=" | "<" | "<=" | ">=" | "like" | "in" | "is_null";
|
|
64
|
+
value?: unknown;
|
|
65
|
+
}[] | undefined;
|
|
66
|
+
limit?: number | undefined;
|
|
67
|
+
sort_asc?: string | undefined;
|
|
68
|
+
sort_desc?: string | undefined;
|
|
69
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
70
|
+
};
|
|
71
|
+
export declare function createAutocodeDbSchemasTool(deps?: DbDeps): {
|
|
72
|
+
description: string;
|
|
73
|
+
args: {
|
|
74
|
+
db_key: import("zod").ZodString;
|
|
75
|
+
};
|
|
76
|
+
execute(args: {
|
|
77
|
+
db_key: string;
|
|
78
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
79
|
+
};
|
|
80
|
+
//# sourceMappingURL=autocode_db.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autocode_db.d.ts","sourceRoot":"","sources":["../../src/tools/autocode_db.ts"],"names":[],"mappings":"AACA,OAAO,EAaH,KAAK,eAAe,EAEvB,MAAM,YAAY,CAAA;AAGnB,MAAM,MAAM,MAAM,GAAG;IACjB,aAAa,CAAC,EAAE,eAAe,CAAA;IAC/B,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAA;CAC1B,CAAA;AAkED,wBAAgB,0BAA0B,CAAC,IAAI,CAAC,EAAE,MAAM;;;;;;;;;;EAgBvD;AAED,wBAAgB,yBAAyB,CAAC,IAAI,CAAC,EAAE,MAAM;;;;;;;;;;;;EAgBtD;AAED,wBAAgB,6BAA6B,CAAC,IAAI,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoC1D;AAED,wBAAgB,2BAA2B,CAAC,IAAI,CAAC,EAAE,MAAM;;;;;;;;EAcxD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autocode_db.test.d.ts","sourceRoot":"","sources":["../../src/tools/autocode_db.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autocode_dependencies.d.ts","sourceRoot":"","sources":["../../src/tools/autocode_dependencies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAoB,MAAM,qBAAqB,CAAA;AAG5D,OAAO,EAA8B,KAAK,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AAEtF,wBAAgB,8BAA8B,CAAC,IAAI,GAAE,mBAAgD,GAAG,UAAU,CAAC,OAAO,IAAI,CAAC,CAa9H"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autocode_dependencies.test.d.ts","sourceRoot":"","sources":["../../src/tools/autocode_dependencies.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { OpencodeClient } from "@opencode-ai/sdk";
|
|
2
|
+
import { type JobToolFileSystem } from "@/utils/jobs";
|
|
3
|
+
type FileSystem = JobToolFileSystem;
|
|
4
|
+
export declare function createAutocodeJobExecuteTool(client?: OpencodeClient, fileSystem?: FileSystem): {
|
|
5
|
+
description: string;
|
|
6
|
+
args: {
|
|
7
|
+
agent: import("zod").ZodString;
|
|
8
|
+
};
|
|
9
|
+
execute(args: {
|
|
10
|
+
agent: string;
|
|
11
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=autocode_job_execute.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autocode_job_execute.d.ts","sourceRoot":"","sources":["../../src/tools/autocode_job_execute.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAGtD,OAAO,EAAqQ,KAAK,iBAAiB,EAA2B,MAAM,cAAc,CAAA;AAGjV,KAAK,UAAU,GAAG,iBAAiB,CAAA;AAqGnC,wBAAgB,4BAA4B,CAAC,MAAM,CAAC,EAAE,cAAc,EAAE,UAAU,GAAE,UAA8B;;;;;;;;EA8H/G"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autocode_job_execute.test.d.ts","sourceRoot":"","sources":["../../src/tools/autocode_job_execute.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type JobStatus } from "@/utils/jobs";
|
|
2
|
+
type FileSystem = {
|
|
3
|
+
readFile: (filePath: string, encoding: "utf8") => Promise<string>;
|
|
4
|
+
readdir: (dirPath: string, options?: {
|
|
5
|
+
withFileTypes?: boolean;
|
|
6
|
+
}) => Promise<string[] | import("fs").Dirent[]>;
|
|
7
|
+
};
|
|
8
|
+
export declare function executePlannedJobList(fileSystem: FileSystem, worktree: string, options: {
|
|
9
|
+
resultKey: string;
|
|
10
|
+
failedAction: string;
|
|
11
|
+
filter?: JobStatus;
|
|
12
|
+
}): Promise<string>;
|
|
13
|
+
export declare function createAutocodeJobListTool(fileSystem?: FileSystem): {
|
|
14
|
+
description: string;
|
|
15
|
+
args: {
|
|
16
|
+
filter: import("zod").ZodOptional<import("zod").ZodString>;
|
|
17
|
+
};
|
|
18
|
+
execute(args: {
|
|
19
|
+
filter?: string | undefined;
|
|
20
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
21
|
+
};
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=autocode_job_list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autocode_job_list.d.ts","sourceRoot":"","sources":["../../src/tools/autocode_job_list.ts"],"names":[],"mappings":"AAGA,OAAO,EAA2H,KAAK,SAAS,EAAE,MAAM,cAAc,CAAA;AAEtK,KAAK,UAAU,GAAG;IACd,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAA;IACjE,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,aAAa,CAAC,EAAE,OAAO,CAAA;KAAE,KAAK,OAAO,CAAC,MAAM,EAAE,GAAG,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC,CAAA;CACjH,CAAA;AAWD,wBAAsB,qBAAqB,CAAC,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,SAAS,CAAA;CAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAkB/K;AAED,wBAAgB,yBAAyB,CAAC,UAAU,GAAE,UAA8B;;;;;;;;EA2BnF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autocode_job_list.test.d.ts","sourceRoot":"","sources":["../../src/tools/autocode_job_list.test.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAMtD,wBAAgB,iBAAiB,IAAI,WAAW,CAY/C"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { tool } from "@opencode-ai/plugin";
|
|
2
|
+
import type { OpencodeClient } from "@opencode-ai/sdk";
|
|
3
|
+
import { type JobToolFileSystem } from "@/utils/jobs";
|
|
4
|
+
export declare function createAutocodeJobStatusTool(clientOrFileSystem?: OpencodeClient | JobToolFileSystem, fileSystemOrNow?: JobToolFileSystem | (() => Date), maybeNow?: () => Date): ReturnType<typeof tool>;
|
|
5
|
+
//# sourceMappingURL=autocode_job_status.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autocode_job_status.d.ts","sourceRoot":"","sources":["../../src/tools/autocode_job_status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAC1C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAGtD,OAAO,EAAmO,KAAK,iBAAiB,EAAqC,MAAM,cAAc,CAAA;AAiGzT,wBAAgB,2BAA2B,CAAC,kBAAkB,CAAC,EAAE,cAAc,GAAG,iBAAiB,EAAE,eAAe,CAAC,EAAE,iBAAiB,GAAG,CAAC,MAAM,IAAI,CAAC,EAAE,QAAQ,CAAC,EAAE,MAAM,IAAI,GAAG,UAAU,CAAC,OAAO,IAAI,CAAC,CAyHvM"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autocode_job_status.test.d.ts","sourceRoot":"","sources":["../../src/tools/autocode_job_status.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type FileSystem = {
|
|
2
|
+
access: (filePath: string) => Promise<void>;
|
|
3
|
+
};
|
|
4
|
+
export declare function createAutocodeLogoFindTool(fileSystem?: FileSystem): {
|
|
5
|
+
description: string;
|
|
6
|
+
args: {};
|
|
7
|
+
execute(args: Record<string, never>, context: import("@opencode-ai/plugin").ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
8
|
+
};
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=autocode_logo_find.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autocode_logo_find.d.ts","sourceRoot":"","sources":["../../src/tools/autocode_logo_find.ts"],"names":[],"mappings":"AAIA,KAAK,UAAU,GAAG;IACd,MAAM,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;CAC9C,CAAA;AA+BD,wBAAgB,0BAA0B,CAAC,UAAU,GAAE,UAA8B;;;;EA8BpF"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { tool } from "@opencode-ai/plugin";
|
|
2
|
+
import type { OpencodeClient } from "@opencode-ai/sdk";
|
|
3
|
+
import type { Dirent } from "fs";
|
|
4
|
+
type FileSystem = {
|
|
5
|
+
readFile: (filePath: string, encoding: "utf8") => Promise<string>;
|
|
6
|
+
readdir?: (dirPath: string, options: {
|
|
7
|
+
withFileTypes: true;
|
|
8
|
+
}) => Promise<Dirent[]>;
|
|
9
|
+
};
|
|
10
|
+
export declare function createAutocodePlanReadTool(clientOrFileSystem?: OpencodeClient | FileSystem, maybeFileSystem?: FileSystem): ReturnType<typeof tool>;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=autocode_plan_read.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autocode_plan_read.d.ts","sourceRoot":"","sources":["../../src/tools/autocode_plan_read.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAC1C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACtD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,IAAI,CAAA;AAMhC,KAAK,UAAU,GAAG;IACd,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAA;IACjE,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE;QAAE,aAAa,EAAE,IAAI,CAAA;KAAE,KAAK,OAAO,CAAC,MAAM,EAAE,CAAC,CAAA;CACrF,CAAA;AAiCD,wBAAgB,0BAA0B,CAAC,kBAAkB,CAAC,EAAE,cAAc,GAAG,UAAU,EAAE,eAAe,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC,OAAO,IAAI,CAAC,CAgElJ"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { OpencodeClient } from "@opencode-ai/sdk";
|
|
2
|
+
import type { Dirent } from "fs";
|
|
3
|
+
export declare const planSections: readonly ["problems", "requirements", "constraints", "risks", "proposal"];
|
|
4
|
+
export type PlanSection = typeof planSections[number];
|
|
5
|
+
type SummaryMap = Record<string, string>;
|
|
6
|
+
type FileSystem = {
|
|
7
|
+
readFile: (filePath: string, encoding: "utf8") => Promise<string>;
|
|
8
|
+
writeFile: (filePath: string, content: string) => Promise<void>;
|
|
9
|
+
mkdir?: (dirPath: string, options?: {
|
|
10
|
+
recursive?: boolean;
|
|
11
|
+
}) => Promise<string | undefined | void>;
|
|
12
|
+
rm?: (path: string, options?: {
|
|
13
|
+
recursive?: boolean;
|
|
14
|
+
force?: boolean;
|
|
15
|
+
}) => Promise<void>;
|
|
16
|
+
stat?: (path: string) => Promise<{
|
|
17
|
+
mtimeMs: number;
|
|
18
|
+
}>;
|
|
19
|
+
readdir?: (dirPath: string, options: {
|
|
20
|
+
withFileTypes: true;
|
|
21
|
+
}) => Promise<Dirent[]>;
|
|
22
|
+
};
|
|
23
|
+
export declare function composePlanMarkdown(sections: Record<PlanSection, string>): string;
|
|
24
|
+
export declare function parsePlanMarkdown(content: string): Record<PlanSection, string>;
|
|
25
|
+
export declare function createPlanSummaryMaps(sections: Record<PlanSection, string>): {
|
|
26
|
+
requirement_summaries: SummaryMap;
|
|
27
|
+
constraint_summaries: SummaryMap;
|
|
28
|
+
risk_summaries: SummaryMap;
|
|
29
|
+
};
|
|
30
|
+
export declare function createAutocodePlanSaveTool(clientOrFileSystem?: OpencodeClient | FileSystem, maybeFileSystem?: FileSystem): {
|
|
31
|
+
description: string;
|
|
32
|
+
args: {
|
|
33
|
+
problems: import("zod").ZodOptional<import("zod").ZodString>;
|
|
34
|
+
requirements: import("zod").ZodOptional<import("zod").ZodString>;
|
|
35
|
+
constraints: import("zod").ZodOptional<import("zod").ZodString>;
|
|
36
|
+
risks: import("zod").ZodOptional<import("zod").ZodString>;
|
|
37
|
+
proposal: import("zod").ZodOptional<import("zod").ZodString>;
|
|
38
|
+
};
|
|
39
|
+
execute(args: {
|
|
40
|
+
problems?: string | undefined;
|
|
41
|
+
requirements?: string | undefined;
|
|
42
|
+
constraints?: string | undefined;
|
|
43
|
+
risks?: string | undefined;
|
|
44
|
+
proposal?: string | undefined;
|
|
45
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
46
|
+
};
|
|
47
|
+
export {};
|
|
48
|
+
//# sourceMappingURL=autocode_plan_save.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autocode_plan_save.d.ts","sourceRoot":"","sources":["../../src/tools/autocode_plan_save.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEtD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,IAAI,CAAA;AAKhC,eAAO,MAAM,YAAY,2EAA4E,CAAA;AAErG,MAAM,MAAM,WAAW,GAAG,OAAO,YAAY,CAAC,MAAM,CAAC,CAAA;AAIrD,KAAK,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;AAkDxC,KAAK,UAAU,GAAG;IACd,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAA;IACjE,SAAS,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IAC/D,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,OAAO,CAAA;KAAE,KAAK,OAAO,CAAC,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC,CAAA;IAClG,EAAE,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IACxF,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IACrD,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE;QAAE,aAAa,EAAE,IAAI,CAAA;KAAE,KAAK,OAAO,CAAC,MAAM,EAAE,CAAC,CAAA;CACrF,CAAA;AAwCD,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,GAAG,MAAM,CAEjF;AAsED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,CAiC9E;AA0CD,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC;;;;EAM1E;AAiFD,wBAAgB,0BAA0B,CAAC,kBAAkB,CAAC,EAAE,cAAc,GAAG,UAAU,EAAE,eAAe,CAAC,EAAE,UAAU;;;;;;;;;;;;;;;;EAmDxH"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { OpencodeClient } from "@opencode-ai/sdk";
|
|
2
|
+
import { spawn as nodeSpawn } from "child_process";
|
|
3
|
+
import { type SandboxDependencies } from "@/utils/sandbox";
|
|
4
|
+
type SandboxCliDependencies = SandboxDependencies & {
|
|
5
|
+
spawnProcess?: typeof nodeSpawn;
|
|
6
|
+
};
|
|
7
|
+
export declare function createAutocodeSandboxCliTool(client?: OpencodeClient, deps?: SandboxCliDependencies): {
|
|
8
|
+
description: string;
|
|
9
|
+
args: {
|
|
10
|
+
sandbox_name: import("zod").ZodString;
|
|
11
|
+
command: import("zod").ZodString;
|
|
12
|
+
working_dir: import("zod").ZodOptional<import("zod").ZodString>;
|
|
13
|
+
timeout: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
14
|
+
};
|
|
15
|
+
execute(args: {
|
|
16
|
+
sandbox_name: string;
|
|
17
|
+
command: string;
|
|
18
|
+
working_dir?: string | undefined;
|
|
19
|
+
timeout?: number | undefined;
|
|
20
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
21
|
+
};
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=autocode_sandbox_cli.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autocode_sandbox_cli.d.ts","sourceRoot":"","sources":["../../src/tools/autocode_sandbox_cli.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACtD,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,eAAe,CAAA;AAGlD,OAAO,EAAoL,KAAK,mBAAmB,EAAoE,MAAM,iBAAiB,CAAA;AAY9S,KAAK,sBAAsB,GAAG,mBAAmB,GAAG;IAChD,YAAY,CAAC,EAAE,OAAO,SAAS,CAAA;CAClC,CAAA;AAuLD,wBAAgB,4BAA4B,CAAC,MAAM,CAAC,EAAE,cAAc,EAAE,IAAI,GAAE,sBAAmD;;;;;;;;;;;;;;EAuE9H"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { OpencodeClient } from "@opencode-ai/sdk";
|
|
2
|
+
import { type SandboxConfig, type SandboxDependencies } from "@/utils/sandbox";
|
|
3
|
+
export declare function createAutocodeSandboxCreateTool(client?: OpencodeClient, deps?: SandboxDependencies, sandboxConfig?: SandboxConfig): {
|
|
4
|
+
description: string;
|
|
5
|
+
args: {
|
|
6
|
+
sandbox_name: import("zod").ZodString;
|
|
7
|
+
distro: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8
|
+
internet_enabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
9
|
+
};
|
|
10
|
+
execute(args: {
|
|
11
|
+
sandbox_name: string;
|
|
12
|
+
distro?: string | undefined;
|
|
13
|
+
internet_enabled?: boolean | undefined;
|
|
14
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=autocode_sandbox_create.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autocode_sandbox_create.d.ts","sourceRoot":"","sources":["../../src/tools/autocode_sandbox_create.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAGtD,OAAO,EAAkY,KAAK,aAAa,EAAE,KAAK,mBAAmB,EAA4C,MAAM,iBAAiB,CAAA;AA4Ixf,wBAAgB,+BAA+B,CAAC,MAAM,CAAC,EAAE,cAAc,EAAE,IAAI,GAAE,mBAAgD,EAAE,aAAa,GAAE,aAAkB;;;;;;;;;;;;EAoEjK"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { OpencodeClient } from "@opencode-ai/sdk";
|
|
2
|
+
import { type SandboxDependencies } from "@/utils/sandbox";
|
|
3
|
+
export declare function createAutocodeSandboxDeleteTool(client?: OpencodeClient, deps?: SandboxDependencies): {
|
|
4
|
+
description: string;
|
|
5
|
+
args: {
|
|
6
|
+
sandbox_name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7
|
+
};
|
|
8
|
+
execute(args: {
|
|
9
|
+
sandbox_name?: string | undefined;
|
|
10
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=autocode_sandbox_delete.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autocode_sandbox_delete.d.ts","sourceRoot":"","sources":["../../src/tools/autocode_sandbox_delete.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACtD,OAAO,EAA+K,KAAK,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AAMvO,wBAAgB,+BAA+B,CAAC,MAAM,CAAC,EAAE,cAAc,EAAE,IAAI,GAAE,mBAAgD;;;;;;;;EA+B9H"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { tool } from "@opencode-ai/plugin";
|
|
2
|
+
import type { OpencodeClient } from "@opencode-ai/sdk";
|
|
3
|
+
import { type SandboxDependencies } from "@/utils/sandbox";
|
|
4
|
+
export declare function createAutocodeSandboxEditTool(client?: OpencodeClient, deps?: SandboxDependencies): ReturnType<typeof tool>;
|
|
5
|
+
export declare function createAutocodeSandboxGlobTool(client?: OpencodeClient, deps?: SandboxDependencies): ReturnType<typeof tool>;
|
|
6
|
+
export declare function createAutocodeSandboxGrepTool(client?: OpencodeClient, deps?: SandboxDependencies): ReturnType<typeof tool>;
|
|
7
|
+
export declare function createAutocodeSandboxReadTool(client?: OpencodeClient, deps?: SandboxDependencies): ReturnType<typeof tool>;
|
|
8
|
+
export declare function createAutocodeSandboxCopyTool(client?: OpencodeClient, deps?: SandboxDependencies): ReturnType<typeof tool>;
|
|
9
|
+
//# sourceMappingURL=autocode_sandbox_file_tools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autocode_sandbox_file_tools.d.ts","sourceRoot":"","sources":["../../src/tools/autocode_sandbox_file_tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAC1C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAItD,OAAO,EAA8B,KAAK,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AAiHtF,wBAAgB,6BAA6B,CAAC,MAAM,CAAC,EAAE,cAAc,EAAE,IAAI,GAAE,mBAAgD,GAAG,UAAU,CAAC,OAAO,IAAI,CAAC,CA8CtJ;AAED,wBAAgB,6BAA6B,CAAC,MAAM,CAAC,EAAE,cAAc,EAAE,IAAI,GAAE,mBAAgD,GAAG,UAAU,CAAC,OAAO,IAAI,CAAC,CAiCtJ;AAED,wBAAgB,6BAA6B,CAAC,MAAM,CAAC,EAAE,cAAc,EAAE,IAAI,GAAE,mBAAgD,GAAG,UAAU,CAAC,OAAO,IAAI,CAAC,CA8CtJ;AA6BD,wBAAgB,6BAA6B,CAAC,MAAM,CAAC,EAAE,cAAc,EAAE,IAAI,GAAE,mBAAgD,GAAG,UAAU,CAAC,OAAO,IAAI,CAAC,CAiCtJ;AAED,wBAAgB,6BAA6B,CAAC,MAAM,CAAC,EAAE,cAAc,EAAE,IAAI,GAAE,mBAAgD,GAAG,UAAU,CAAC,OAAO,IAAI,CAAC,CA8CtJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autocode_sandbox_tools.test.d.ts","sourceRoot":"","sources":["../../src/tools/autocode_sandbox_tools.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { OpencodeClient } from "@opencode-ai/sdk";
|
|
2
|
+
export declare function createAutocodeSessionCreateTool(client?: OpencodeClient): {
|
|
3
|
+
description: string;
|
|
4
|
+
args: {
|
|
5
|
+
agent: import("zod").ZodString;
|
|
6
|
+
prompt: import("zod").ZodString;
|
|
7
|
+
};
|
|
8
|
+
execute(args: {
|
|
9
|
+
agent: string;
|
|
10
|
+
prompt: string;
|
|
11
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=autocode_session_create.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autocode_session_create.d.ts","sourceRoot":"","sources":["../../src/tools/autocode_session_create.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAItD,wBAAgB,+BAA+B,CAAC,MAAM,CAAC,EAAE,cAAc;;;;;;;;;;EAsDtE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autocode_session_create.test.d.ts","sourceRoot":"","sources":["../../src/tools/autocode_session_create.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { tool } from "@opencode-ai/plugin";
|
|
2
|
+
import type { OpencodeClient } from "@opencode-ai/sdk";
|
|
3
|
+
import { type JobToolFileSystem } from "@/utils/jobs";
|
|
4
|
+
export declare function createAutocodeShelveTool(clientOrFileSystem?: OpencodeClient | JobToolFileSystem, fileSystemOrNow?: JobToolFileSystem | (() => Date), maybeNow?: () => Date): ReturnType<typeof tool>;
|
|
5
|
+
//# sourceMappingURL=autocode_shelve.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autocode_shelve.d.ts","sourceRoot":"","sources":["../../src/tools/autocode_shelve.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAC1C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAGtD,OAAO,EAAmH,KAAK,iBAAiB,EAAqC,MAAM,cAAc,CAAA;AAoDzM,wBAAgB,wBAAwB,CAAC,kBAAkB,CAAC,EAAE,cAAc,GAAG,iBAAiB,EAAE,eAAe,CAAC,EAAE,iBAAiB,GAAG,CAAC,MAAM,IAAI,CAAC,EAAE,QAAQ,CAAC,EAAE,MAAM,IAAI,GAAG,UAAU,CAAC,OAAO,IAAI,CAAC,CAgFpM"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autocode_shelve.test.d.ts","sourceRoot":"","sources":["../../src/tools/autocode_shelve.test.ts"],"names":[],"mappings":""}
|