opencode-autognosis 0.1.0 → 0.1.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/dist/index.d.ts CHANGED
@@ -1,5 +1,23 @@
1
1
  export default function plugin(): {
2
2
  tools: {
3
+ "/autognosis_init": {
4
+ execute: (args: any) => Promise<string | undefined>;
5
+ description: string;
6
+ parameters: {
7
+ type: string;
8
+ properties: {
9
+ mode: {
10
+ type: string;
11
+ enum: string[];
12
+ default: string;
13
+ };
14
+ token: {
15
+ type: string;
16
+ };
17
+ };
18
+ required: string[];
19
+ };
20
+ };
3
21
  autognosis_init: {
4
22
  description: string;
5
23
  parameters: {
@@ -209,4 +227,15 @@ export default function plugin(): {
209
227
  }) => Promise<string>;
210
228
  };
211
229
  };
230
+ commands: {
231
+ autognosis_init: {
232
+ description: string;
233
+ execute: (args: any) => Promise<string | undefined>;
234
+ };
235
+ };
236
+ slashCommands: {
237
+ name: string;
238
+ description: string;
239
+ execute: (args: any) => Promise<string | undefined>;
240
+ }[];
212
241
  };
package/dist/index.js CHANGED
@@ -1,8 +1,31 @@
1
1
  import { systemTools } from "./system-tools.js";
2
2
  export default function plugin() {
3
+ const tools = systemTools();
4
+ const initExecutor = async (args) => {
5
+ return await tools.autognosis_init.execute(args || {});
6
+ };
3
7
  return {
4
8
  tools: {
5
- ...systemTools(),
9
+ ...tools,
10
+ // Some versions might look for tools with slashes
11
+ "/autognosis_init": {
12
+ ...tools.autognosis_init,
13
+ execute: initExecutor
14
+ }
15
+ },
16
+ // Common keys for slash command registration
17
+ commands: {
18
+ autognosis_init: {
19
+ description: "Initialize or check the Autognosis environment",
20
+ execute: initExecutor
21
+ }
6
22
  },
23
+ slashCommands: [
24
+ {
25
+ name: "autognosis_init",
26
+ description: "Initialize or check the Autognosis environment",
27
+ execute: initExecutor
28
+ }
29
+ ]
7
30
  };
8
31
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-autognosis",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Transforms OpenCode agents into 'miniature engineers' with deep codebase awareness. Includes fast structural search (ast-grep), instant symbol navigation (ctags), and a disciplined 'Plan → Execute → Patch' workflow.",
5
5
  "type": "module",
6
6
  "exports": {