@shardworks/tool-commission 0.1.17
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 +15 -0
- package/dist/handler.d.ts +7 -0
- package/dist/handler.d.ts.map +1 -0
- package/dist/handler.js +20 -0
- package/dist/handler.js.map +1 -0
- package/instructions.md +21 -0
- package/nexus-tool.json +6 -0
- package/package.json +34 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
ISC License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Sean Boots
|
|
4
|
+
|
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
7
|
+
copyright notice and this permission notice appear in all copies.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
10
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
11
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
12
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
13
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
14
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
15
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../src/handler.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;;;;;AAExB,wBASG"}
|
package/dist/handler.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* commission tool.
|
|
3
|
+
*
|
|
4
|
+
* Posts a commission to the guild and signals commission.posted for the
|
|
5
|
+
* Clockworks. Everything downstream (worktree setup, anima summoning,
|
|
6
|
+
* merge) is handled by standing orders.
|
|
7
|
+
*/
|
|
8
|
+
import { tool, commission } from '@shardworks/nexus-core';
|
|
9
|
+
import { z } from 'zod';
|
|
10
|
+
export default tool({
|
|
11
|
+
description: 'Post a commission to the guild for an artificer to work on',
|
|
12
|
+
params: {
|
|
13
|
+
spec: z.string().describe('Commission specification — what needs to be done'),
|
|
14
|
+
workshop: z.string().describe('Target workshop for the commission'),
|
|
15
|
+
},
|
|
16
|
+
handler: (params, { home }) => {
|
|
17
|
+
return commission({ home, ...params });
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
//# sourceMappingURL=handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handler.js","sourceRoot":"","sources":["../src/handler.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAe,IAAI,CAAC;IAClB,WAAW,EAAE,4DAA4D;IACzE,MAAM,EAAE;QACN,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,kDAAkD,CAAC;QAC7E,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oCAAoC,CAAC;KACpE;IACD,OAAO,EAAE,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;QAC5B,OAAO,UAAU,CAAC,EAAE,IAAI,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC;IACzC,CAAC;CACF,CAAC,CAAC"}
|
package/instructions.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# commission
|
|
2
|
+
|
|
3
|
+
Post a commission to the guild. The Clockworks handles everything downstream — worktree setup, anima summoning, and post-session merge.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
commission <spec> --workshop <workshop>
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Arguments
|
|
12
|
+
|
|
13
|
+
- `<spec>` — Commission specification describing what needs to be done. Include a clear problem statement and acceptance criteria.
|
|
14
|
+
- `--workshop <workshop>` — Target workshop where the work will be done.
|
|
15
|
+
|
|
16
|
+
## Guidance
|
|
17
|
+
|
|
18
|
+
- Write clear, specific commission specs. The artificer receives this as their entire brief.
|
|
19
|
+
- Include acceptance criteria so the artificer knows when the work is done.
|
|
20
|
+
- After posting, use `nsg clock run` to process the commission through the Clockworks pipeline.
|
|
21
|
+
- The commission flows through standing orders: workshop-prepare → summon artificer → workshop-merge.
|
package/nexus-tool.json
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@shardworks/tool-commission",
|
|
3
|
+
"version": "0.1.17",
|
|
4
|
+
"license": "ISC",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/shardworks/nexus-mk2",
|
|
8
|
+
"directory": "packages/tool-commission"
|
|
9
|
+
},
|
|
10
|
+
"description": "Post commissions to the guild — signals commission.posted for the Clockworks",
|
|
11
|
+
"type": "module",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"types": "./dist/handler.d.ts",
|
|
15
|
+
"import": "./dist/handler.js"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"zod": "^4.0.0",
|
|
20
|
+
"@shardworks/nexus-core": "0.1.17"
|
|
21
|
+
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"@types/node": "25.5.0"
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"dist",
|
|
27
|
+
"nexus-tool.json",
|
|
28
|
+
"instructions.md"
|
|
29
|
+
],
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build": "tsc",
|
|
32
|
+
"typecheck": "tsc --noEmit"
|
|
33
|
+
}
|
|
34
|
+
}
|