dryai 0.2.1 → 0.3.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.
- package/LICENSE +7 -0
- package/README.md +92 -2
- package/dest/lib/skills.d.ts +12 -12
- package/dest/main.js +3 -3
- package/package.json +6 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Copyright 2026 Will Mruzek
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
+
|
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -24,6 +24,94 @@ Live output is written to:
|
|
|
24
24
|
- `~/.cursor/rules`
|
|
25
25
|
- `~/.cursor/skills`
|
|
26
26
|
|
|
27
|
+
## Example Configs
|
|
28
|
+
|
|
29
|
+
One input root can contain all three source types:
|
|
30
|
+
|
|
31
|
+
```text
|
|
32
|
+
~/.config/agents/
|
|
33
|
+
├── commands/
|
|
34
|
+
│ └── gen-commit-msg.md
|
|
35
|
+
├── rules/
|
|
36
|
+
│ └── say-yes-captain.md
|
|
37
|
+
└── skills/
|
|
38
|
+
└── review-helper/
|
|
39
|
+
└── SKILL.md
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Example Rule
|
|
43
|
+
|
|
44
|
+
Rules are markdown files under `rules/`. `dryai` recognizes these rule frontmatter fields:
|
|
45
|
+
|
|
46
|
+
- `description`
|
|
47
|
+
- `copilot.applyTo`
|
|
48
|
+
- `cursor.alwaysApply`
|
|
49
|
+
- `cursor.globs`
|
|
50
|
+
|
|
51
|
+
`cursor.globs` should be provided as one comma-separated glob string.
|
|
52
|
+
|
|
53
|
+
```md
|
|
54
|
+
---
|
|
55
|
+
description: Reply with "Yes, Captain!" before answering when the user says "Make it so" or "Engage".
|
|
56
|
+
copilot:
|
|
57
|
+
applyTo: '**/*.tsx, **/*.ts, src/**/*.ts, src/**/*.tsx, src/**/*.js, src/**/*.jsx'
|
|
58
|
+
cursor:
|
|
59
|
+
alwaysApply: false
|
|
60
|
+
globs: '**/*.tsx, **/*.ts, src/**/*.ts, src/**/*.tsx, src/**/*.js, src/**/*.jsx'
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
# Say Yes Captain
|
|
64
|
+
|
|
65
|
+
When the user says "Make it so" or "Engage", start your response with "Yes, Captain!".
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### Example Command
|
|
69
|
+
|
|
70
|
+
Commands are markdown files under `commands/`. `dryai` recognizes these command frontmatter fields:
|
|
71
|
+
|
|
72
|
+
- `name`
|
|
73
|
+
- `description`
|
|
74
|
+
- `cursor.disable-model-invocation`
|
|
75
|
+
|
|
76
|
+
```md
|
|
77
|
+
---
|
|
78
|
+
name: gen-commit-msg
|
|
79
|
+
description: Generate a conventional commit message from the current staged git diff.
|
|
80
|
+
cursor:
|
|
81
|
+
disable-model-invocation: true
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
# Generate Commit Message
|
|
85
|
+
|
|
86
|
+
Read the staged diff and produce a conventional commit message with a concise subject and optional body.
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### Example Skill
|
|
90
|
+
|
|
91
|
+
Skills live in directories under `skills/`. The directory is copied as-is into the Copilot and Cursor skills targets.
|
|
92
|
+
|
|
93
|
+
Unlike commands and rules, `dryai` does not define or validate a fixed skill frontmatter schema. Skill files are passed through unchanged, so the allowed frontmatter fields depend on the skill format expected by the target editor or agent.
|
|
94
|
+
|
|
95
|
+
```text
|
|
96
|
+
skills/
|
|
97
|
+
└── review-helper/
|
|
98
|
+
└── SKILL.md
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
```md
|
|
102
|
+
---
|
|
103
|
+
name: review-helper
|
|
104
|
+
description: Use this skill when the user asks for a code review, PR review, or wants bugs and risks called out first.
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
# Review Helper
|
|
108
|
+
|
|
109
|
+
Focus on findings first.
|
|
110
|
+
|
|
111
|
+
- Identify bugs, regressions, and missing tests before summarizing.
|
|
112
|
+
- Keep the overview brief unless the user asks for a deeper walkthrough.
|
|
113
|
+
```
|
|
114
|
+
|
|
27
115
|
## Commands
|
|
28
116
|
|
|
29
117
|
```sh
|
|
@@ -94,14 +182,16 @@ pnpm dev:dryai --input ./config install
|
|
|
94
182
|
- Run CI validation with build, test, and `npm pack --dry-run`.
|
|
95
183
|
- On changes landing on `main`
|
|
96
184
|
- Run the same CI validation with build, test, and `npm pack --dry-run`.
|
|
97
|
-
- On `v*` tag pushed to `main
|
|
185
|
+
- On `v*` tag pushed to `main`, the release workflow will:
|
|
98
186
|
- Verify the tag matches the checked-in `package.json` version.
|
|
99
187
|
- Verify the tagged commit is on `main`.
|
|
100
188
|
- Build and test the CLI.
|
|
101
189
|
- Create a tarball with `npm pack`.
|
|
102
|
-
- Publish the package to npm using the repository `NPM_TOKEN` secret.
|
|
103
190
|
- Create or update the matching GitHub Release.
|
|
104
191
|
- Upload the tarball as a release asset.
|
|
192
|
+
- After the release workflow succeeds, the publish workflow will:
|
|
193
|
+
- Download the tarball artifact produced by the release workflow.
|
|
194
|
+
- Publish that exact tarball to npm using npm trusted publishing.
|
|
105
195
|
|
|
106
196
|
Example release flow:
|
|
107
197
|
|
package/dest/lib/skills.d.ts
CHANGED
|
@@ -10,16 +10,16 @@ declare const skillLockEntrySchema: z.ZodObject<{
|
|
|
10
10
|
updatedAt: z.ZodString;
|
|
11
11
|
}, "strip", z.ZodTypeAny, {
|
|
12
12
|
name: string;
|
|
13
|
-
repo: string;
|
|
14
13
|
path: string;
|
|
14
|
+
repo: string;
|
|
15
15
|
commit: string;
|
|
16
16
|
importedAt: string;
|
|
17
17
|
updatedAt: string;
|
|
18
18
|
ref?: string | undefined;
|
|
19
19
|
}, {
|
|
20
20
|
name: string;
|
|
21
|
-
repo: string;
|
|
22
21
|
path: string;
|
|
22
|
+
repo: string;
|
|
23
23
|
commit: string;
|
|
24
24
|
importedAt: string;
|
|
25
25
|
updatedAt: string;
|
|
@@ -37,65 +37,65 @@ declare const skillsLockfileSchema: z.ZodEffects<z.ZodObject<{
|
|
|
37
37
|
updatedAt: z.ZodString;
|
|
38
38
|
}, "strip", z.ZodTypeAny, {
|
|
39
39
|
name: string;
|
|
40
|
-
repo: string;
|
|
41
40
|
path: string;
|
|
41
|
+
repo: string;
|
|
42
42
|
commit: string;
|
|
43
43
|
importedAt: string;
|
|
44
44
|
updatedAt: string;
|
|
45
45
|
ref?: string | undefined;
|
|
46
46
|
}, {
|
|
47
47
|
name: string;
|
|
48
|
-
repo: string;
|
|
49
48
|
path: string;
|
|
49
|
+
repo: string;
|
|
50
50
|
commit: string;
|
|
51
51
|
importedAt: string;
|
|
52
52
|
updatedAt: string;
|
|
53
53
|
ref?: string | undefined;
|
|
54
54
|
}>, "many">;
|
|
55
55
|
}, "strip", z.ZodTypeAny, {
|
|
56
|
-
version: 1;
|
|
57
56
|
skills: {
|
|
58
57
|
name: string;
|
|
59
|
-
repo: string;
|
|
60
58
|
path: string;
|
|
59
|
+
repo: string;
|
|
61
60
|
commit: string;
|
|
62
61
|
importedAt: string;
|
|
63
62
|
updatedAt: string;
|
|
64
63
|
ref?: string | undefined;
|
|
65
64
|
}[];
|
|
66
|
-
}, {
|
|
67
65
|
version: 1;
|
|
66
|
+
}, {
|
|
68
67
|
skills: {
|
|
69
68
|
name: string;
|
|
70
|
-
repo: string;
|
|
71
69
|
path: string;
|
|
70
|
+
repo: string;
|
|
72
71
|
commit: string;
|
|
73
72
|
importedAt: string;
|
|
74
73
|
updatedAt: string;
|
|
75
74
|
ref?: string | undefined;
|
|
76
75
|
}[];
|
|
77
|
-
}>, {
|
|
78
76
|
version: 1;
|
|
77
|
+
}>, {
|
|
79
78
|
skills: {
|
|
80
79
|
name: string;
|
|
81
|
-
repo: string;
|
|
82
80
|
path: string;
|
|
81
|
+
repo: string;
|
|
83
82
|
commit: string;
|
|
84
83
|
importedAt: string;
|
|
85
84
|
updatedAt: string;
|
|
86
85
|
ref?: string | undefined;
|
|
87
86
|
}[];
|
|
88
|
-
}, {
|
|
89
87
|
version: 1;
|
|
88
|
+
}, {
|
|
90
89
|
skills: {
|
|
91
90
|
name: string;
|
|
92
|
-
repo: string;
|
|
93
91
|
path: string;
|
|
92
|
+
repo: string;
|
|
94
93
|
commit: string;
|
|
95
94
|
importedAt: string;
|
|
96
95
|
updatedAt: string;
|
|
97
96
|
ref?: string | undefined;
|
|
98
97
|
}[];
|
|
98
|
+
version: 1;
|
|
99
99
|
}>;
|
|
100
100
|
export type ManagedSkill = z.infer<typeof skillLockEntrySchema>;
|
|
101
101
|
export type SkillsLockfile = z.infer<typeof skillsLockfileSchema>;
|
package/dest/main.js
CHANGED
|
@@ -13,6 +13,7 @@ const rootOptionsSchema = z.object({
|
|
|
13
13
|
input: nonEmptyOptionStringSchema.optional(),
|
|
14
14
|
output: nonEmptyOptionStringSchema.optional(),
|
|
15
15
|
});
|
|
16
|
+
const EXECUTABLE_NAME = 'dryai';
|
|
16
17
|
/**
|
|
17
18
|
* Reads the CLI version from the package manifest at the repository root.
|
|
18
19
|
*/
|
|
@@ -56,11 +57,10 @@ function resolveActiveContext(program) {
|
|
|
56
57
|
* Configures and runs the agents CLI entrypoint.
|
|
57
58
|
*/
|
|
58
59
|
async function main() {
|
|
59
|
-
const executableName = 'dryai';
|
|
60
60
|
const program = new Command();
|
|
61
61
|
const cliVersion = await readCliVersion();
|
|
62
62
|
program
|
|
63
|
-
.name(
|
|
63
|
+
.name(EXECUTABLE_NAME)
|
|
64
64
|
.usage('[options] <command> [args]')
|
|
65
65
|
.helpOption('-h, --help', 'Display this message')
|
|
66
66
|
.version(cliVersion, '-v, --version', 'Display the current version')
|
|
@@ -90,7 +90,7 @@ async function main() {
|
|
|
90
90
|
});
|
|
91
91
|
addSkillsCommand({
|
|
92
92
|
parent: program,
|
|
93
|
-
commandName: `${
|
|
93
|
+
commandName: `${EXECUTABLE_NAME} skills`,
|
|
94
94
|
resolveContext: () => resolveActiveContext(program),
|
|
95
95
|
});
|
|
96
96
|
await program.parseAsync(process.argv);
|
package/package.json
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dryai",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.3",
|
|
4
|
+
"description": "CLI for installing shared AI commands, rules, and skills into Copilot and Cursor.",
|
|
4
5
|
"type": "module",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+ssh://git@github.com/willmruzek/dryai.git"
|
|
7
9
|
},
|
|
10
|
+
"license": "MIT",
|
|
8
11
|
"files": [
|
|
9
12
|
"dest/**/*.js",
|
|
10
13
|
"dest/**/*.d.ts"
|