opencode-autognosis 0.1.1 → 0.1.2

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,7 +1,7 @@
1
1
  export default function plugin(): {
2
2
  tools: {
3
3
  "/autognosis_init": {
4
- execute: (args: any) => Promise<string | undefined>;
4
+ name: string;
5
5
  description: string;
6
6
  parameters: {
7
7
  type: string;
@@ -17,6 +17,7 @@ export default function plugin(): {
17
17
  };
18
18
  required: string[];
19
19
  };
20
+ execute: (args: any) => Promise<string | undefined>;
20
21
  };
21
22
  autognosis_init: {
22
23
  description: string;
@@ -229,13 +230,83 @@ export default function plugin(): {
229
230
  };
230
231
  commands: {
231
232
  autognosis_init: {
233
+ name: string;
232
234
  description: string;
235
+ parameters: {
236
+ type: string;
237
+ properties: {
238
+ mode: {
239
+ type: string;
240
+ enum: string[];
241
+ default: string;
242
+ };
243
+ token: {
244
+ type: string;
245
+ };
246
+ };
247
+ required: string[];
248
+ };
233
249
  execute: (args: any) => Promise<string | undefined>;
234
250
  };
235
251
  };
236
252
  slashCommands: {
237
253
  name: string;
238
254
  description: string;
255
+ parameters: {
256
+ type: string;
257
+ properties: {
258
+ mode: {
259
+ type: string;
260
+ enum: string[];
261
+ default: string;
262
+ };
263
+ token: {
264
+ type: string;
265
+ };
266
+ };
267
+ required: string[];
268
+ };
269
+ execute: (args: any) => Promise<string | undefined>;
270
+ }[];
271
+ chatCommands: {
272
+ autognosis_init: {
273
+ name: string;
274
+ description: string;
275
+ parameters: {
276
+ type: string;
277
+ properties: {
278
+ mode: {
279
+ type: string;
280
+ enum: string[];
281
+ default: string;
282
+ };
283
+ token: {
284
+ type: string;
285
+ };
286
+ };
287
+ required: string[];
288
+ };
289
+ execute: (args: any) => Promise<string | undefined>;
290
+ };
291
+ };
292
+ intentions: {
293
+ intent: string;
294
+ name: string;
295
+ description: string;
296
+ parameters: {
297
+ type: string;
298
+ properties: {
299
+ mode: {
300
+ type: string;
301
+ enum: string[];
302
+ default: string;
303
+ };
304
+ token: {
305
+ type: string;
306
+ };
307
+ };
308
+ required: string[];
309
+ };
239
310
  execute: (args: any) => Promise<string | undefined>;
240
311
  }[];
241
312
  };
package/dist/index.js CHANGED
@@ -4,27 +4,33 @@ export default function plugin() {
4
4
  const initExecutor = async (args) => {
5
5
  return await tools.autognosis_init.execute(args || {});
6
6
  };
7
+ const initMetadata = {
8
+ name: "autognosis_init",
9
+ description: "Initialize or check the Autognosis environment",
10
+ parameters: tools.autognosis_init.parameters,
11
+ execute: initExecutor
12
+ };
7
13
  return {
8
14
  tools: {
9
15
  ...tools,
10
- // Some versions might look for tools with slashes
11
- "/autognosis_init": {
12
- ...tools.autognosis_init,
13
- execute: initExecutor
14
- }
16
+ // Attempting as a tool with a slash prefix
17
+ "/autognosis_init": initMetadata
15
18
  },
16
- // Common keys for slash command registration
19
+ // Pattern 1: Object-based commands
17
20
  commands: {
18
- autognosis_init: {
19
- description: "Initialize or check the Autognosis environment",
20
- execute: initExecutor
21
- }
21
+ autognosis_init: initMetadata
22
+ },
23
+ // Pattern 2: Array-based commands
24
+ slashCommands: [initMetadata],
25
+ // Pattern 3: Chat-specific commands
26
+ chatCommands: {
27
+ autognosis_init: initMetadata
22
28
  },
23
- slashCommands: [
29
+ // Pattern 4: Intentions (common in some agent frameworks)
30
+ intentions: [
24
31
  {
25
- name: "autognosis_init",
26
- description: "Initialize or check the Autognosis environment",
27
- execute: initExecutor
32
+ ...initMetadata,
33
+ intent: "initialize_autognosis"
28
34
  }
29
35
  ]
30
36
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-autognosis",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
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": {