maskweaver 0.9.2 → 0.9.3

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,17 @@
1
+ ---
2
+ description: Run or manage the Maskweaver autonomous build loop
3
+ ---
4
+
5
+ Use the `weave` tool with `command="build"`.
6
+
7
+ Forward the user arguments from `$ARGUMENTS` to the build command:
8
+
9
+ - No arguments: run the default build loop.
10
+ - `status <buildId>`: call `weave` with `command="build"`, `action="status"`, and `buildId`.
11
+ - `stop <buildId>`: call `weave` with `command="build"`, `action="stop"`, and `buildId`.
12
+ - `list`: call `weave` with `command="build"` and `action="list"`.
13
+ - `resume <buildId>`: call `weave` with `command="build"`, `action="resume"`, and `buildId`.
14
+ - `sync <buildId>`: call `weave` with `command="build"`, `action="sync"`, and `buildId`.
15
+ - Otherwise, treat `$ARGUMENTS` as phase IDs or build options for `action="run"`.
16
+
17
+ Do not run shell build commands directly unless the `weave` tool asks for verification.
@@ -31,6 +31,19 @@ import { createSquadTool } from './tools/squad.js';
31
31
  import { createWeaveTool } from './tools/weave.js';
32
32
  import { createSlashcommandTool } from './tools/slashcommand.js';
33
33
  import { generatePoolAgentFilesFromConfig, writeDefaultRuntimeConfig, writeDefaultPluginConfig, } from '../shared/generate-agents.js';
34
+ const BUILD_COMMAND_TEMPLATE = `Use the \`weave\` tool with \`command="build"\`.
35
+
36
+ Forward the user arguments from \`$ARGUMENTS\` to the build command:
37
+
38
+ - No arguments: run the default build loop.
39
+ - \`status <buildId>\`: call \`weave\` with \`command="build"\`, \`action="status"\`, and \`buildId\`.
40
+ - \`stop <buildId>\`: call \`weave\` with \`command="build"\`, \`action="stop"\`, and \`buildId\`.
41
+ - \`list\`: call \`weave\` with \`command="build"\` and \`action="list"\`.
42
+ - \`resume <buildId>\`: call \`weave\` with \`command="build"\`, \`action="resume"\`, and \`buildId\`.
43
+ - \`sync <buildId>\`: call \`weave\` with \`command="build"\`, \`action="sync"\`, and \`buildId\`.
44
+ - Otherwise, treat \`$ARGUMENTS\` as phase IDs or build options for \`action="run"\`.
45
+
46
+ Do not run shell build commands directly unless the \`weave\` tool asks for verification.`;
34
47
  const REMOVED_WEAVE_COMMAND_FILES = [
35
48
  'weave-task.md',
36
49
  'weave-task-auto.md',
@@ -967,7 +980,14 @@ ${buildRichPrompt(state.activeMask)}
967
980
  },
968
981
  // Config hook - allows plugins to modify opencode configuration
969
982
  config: async (config) => {
970
- // Reserved for future configuration injection (model, provider, etc.)
983
+ // opencode discovers slash commands from config.command and command files.
984
+ // installAssets() writes command files for subsequent starts, while this
985
+ // hook makes the direct /build command visible on the current plugin load.
986
+ config.command ||= {};
987
+ config.command.build ||= {
988
+ description: 'Run or manage the Maskweaver autonomous build loop',
989
+ template: BUILD_COMMAND_TEMPLATE,
990
+ };
971
991
  return;
972
992
  },
973
993
  };
package/dist/version.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  * 2. Update this constant
10
10
  * 3. That's it — all other files import from here
11
11
  */
12
- export declare const VERSION = "0.9.2";
12
+ export declare const VERSION = "0.9.3";
13
13
  /**
14
14
  * Returns a formatted version string for display.
15
15
  * @example "Maskweaver v0.7.29"
package/dist/version.js CHANGED
@@ -9,7 +9,7 @@
9
9
  * 2. Update this constant
10
10
  * 3. That's it — all other files import from here
11
11
  */
12
- export const VERSION = '0.9.2';
12
+ export const VERSION = '0.9.3';
13
13
  /**
14
14
  * Returns a formatted version string for display.
15
15
  * @example "Maskweaver v0.7.29"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "maskweaver",
3
- "version": "0.9.2",
3
+ "version": "0.9.3",
4
4
  "description": "AI Expert Persona System - Give your AI coding assistant expert personalities (가면술사)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",