opencode-autognosis 0.1.0 → 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,5 +1,24 @@
1
1
  export default function plugin(): {
2
2
  tools: {
3
+ "/autognosis_init": {
4
+ name: string;
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
+ execute: (args: any) => Promise<string | undefined>;
21
+ };
3
22
  autognosis_init: {
4
23
  description: string;
5
24
  parameters: {
@@ -209,4 +228,85 @@ export default function plugin(): {
209
228
  }) => Promise<string>;
210
229
  };
211
230
  };
231
+ commands: {
232
+ autognosis_init: {
233
+ name: string;
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
+ };
249
+ execute: (args: any) => Promise<string | undefined>;
250
+ };
251
+ };
252
+ slashCommands: {
253
+ name: string;
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
+ };
310
+ execute: (args: any) => Promise<string | undefined>;
311
+ }[];
212
312
  };
package/dist/index.js CHANGED
@@ -1,8 +1,37 @@
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
+ };
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
+ };
3
13
  return {
4
14
  tools: {
5
- ...systemTools(),
15
+ ...tools,
16
+ // Attempting as a tool with a slash prefix
17
+ "/autognosis_init": initMetadata
18
+ },
19
+ // Pattern 1: Object-based commands
20
+ commands: {
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
6
28
  },
29
+ // Pattern 4: Intentions (common in some agent frameworks)
30
+ intentions: [
31
+ {
32
+ ...initMetadata,
33
+ intent: "initialize_autognosis"
34
+ }
35
+ ]
7
36
  };
8
37
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-autognosis",
3
- "version": "0.1.0",
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": {