@shell-shock/plugin-skills 0.0.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.
@@ -0,0 +1,2 @@
1
+ import { SkillsPluginContext, SkillsPluginOptions, SkillsPluginResolvedConfig, SkillsPluginUserConfig } from "./plugin.cjs";
2
+ export { SkillsPluginContext, SkillsPluginOptions, SkillsPluginResolvedConfig, SkillsPluginUserConfig };
@@ -0,0 +1,2 @@
1
+ import { SkillsPluginContext, SkillsPluginOptions, SkillsPluginResolvedConfig, SkillsPluginUserConfig } from "./plugin.mjs";
2
+ export { SkillsPluginContext, SkillsPluginOptions, SkillsPluginResolvedConfig, SkillsPluginUserConfig };
@@ -0,0 +1 @@
1
+ export { };
File without changes
@@ -0,0 +1,48 @@
1
+ import { CommandConfig, Context, ResolvedConfig, UserConfig } from "@shell-shock/core";
2
+ import { RequiredKeys } from "@stryke/types/base";
3
+
4
+ //#region src/types/plugin.d.ts
5
+ interface SkillsPluginOptions {
6
+ /**
7
+ * The path to the skills directory relative to the project root. This is where the plugin will read the skills data files.
8
+ *
9
+ * @defaultValue "\{root\}/skills"
10
+ */
11
+ path?: string;
12
+ /**
13
+ * Whether to skip adding skills for commands that are missing.
14
+ *
15
+ * @defaultValue false
16
+ */
17
+ skipMissingSkills?: boolean;
18
+ /**
19
+ * Should the plugin add the `skills` command?
20
+ *
21
+ * @remarks
22
+ * This can be set to a string to specify a custom command name for the `skills` command or an object to override the default command configuration. By default, the command name will be `"skills"`.
23
+ *
24
+ * @defaultValue "./skills"
25
+ */
26
+ command?: Partial<CommandConfig> | string;
27
+ }
28
+ type SkillsPluginUserConfig = UserConfig & {
29
+ /**
30
+ * Resolved skills configuration for the plugin.
31
+ */
32
+ skills: SkillsPluginOptions;
33
+ };
34
+ type SkillsPluginResolvedConfig = ResolvedConfig & {
35
+ /**
36
+ * Resolved skills configuration for the plugin.
37
+ */
38
+ skills: Required<Omit<SkillsPluginOptions, "command">> & {
39
+ /**
40
+ * Resolved command configuration for the skills command.
41
+ */
42
+ command: RequiredKeys<Partial<CommandConfig>, "name">;
43
+ };
44
+ };
45
+ type SkillsPluginContext<TResolvedConfig extends SkillsPluginResolvedConfig = SkillsPluginResolvedConfig> = Context<TResolvedConfig>;
46
+ //#endregion
47
+ export { SkillsPluginContext, SkillsPluginOptions, SkillsPluginResolvedConfig, SkillsPluginUserConfig };
48
+ //# sourceMappingURL=plugin.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;UA0BiB,mBAAA;;AAAjB;;;;EAME,IAAA;EAOA;;;;;EAAA,iBAAA;EAaU;;;;;;;;EAHV,OAAA,GAAU,OAAO,CAAC,aAAA;AAAA;AAAA,KAGR,sBAAA,GAAyB,UAAA;;;;EAInC,MAAA,EAAQ,mBAAmB;AAAA;AAAA,KAGjB,0BAAA,GAA6B,cAAA;EAQf;;;EAJxB,MAAA,EAAQ,QAAA,CAAS,IAAA,CAAK,mBAAA;IAJiB;;;IAQrC,OAAA,EAAS,YAAA,CAAa,OAAA,CAAQ,aAAA;EAAA;AAAA;AAAA,KAItB,mBAAA,yBACc,0BAAA,GACtB,0BAAA,IACA,OAAA,CAAQ,eAAA"}
@@ -0,0 +1,48 @@
1
+ import { CommandConfig, Context, ResolvedConfig, UserConfig } from "@shell-shock/core";
2
+ import { RequiredKeys } from "@stryke/types/base";
3
+
4
+ //#region src/types/plugin.d.ts
5
+ interface SkillsPluginOptions {
6
+ /**
7
+ * The path to the skills directory relative to the project root. This is where the plugin will read the skills data files.
8
+ *
9
+ * @defaultValue "\{root\}/skills"
10
+ */
11
+ path?: string;
12
+ /**
13
+ * Whether to skip adding skills for commands that are missing.
14
+ *
15
+ * @defaultValue false
16
+ */
17
+ skipMissingSkills?: boolean;
18
+ /**
19
+ * Should the plugin add the `skills` command?
20
+ *
21
+ * @remarks
22
+ * This can be set to a string to specify a custom command name for the `skills` command or an object to override the default command configuration. By default, the command name will be `"skills"`.
23
+ *
24
+ * @defaultValue "./skills"
25
+ */
26
+ command?: Partial<CommandConfig> | string;
27
+ }
28
+ type SkillsPluginUserConfig = UserConfig & {
29
+ /**
30
+ * Resolved skills configuration for the plugin.
31
+ */
32
+ skills: SkillsPluginOptions;
33
+ };
34
+ type SkillsPluginResolvedConfig = ResolvedConfig & {
35
+ /**
36
+ * Resolved skills configuration for the plugin.
37
+ */
38
+ skills: Required<Omit<SkillsPluginOptions, "command">> & {
39
+ /**
40
+ * Resolved command configuration for the skills command.
41
+ */
42
+ command: RequiredKeys<Partial<CommandConfig>, "name">;
43
+ };
44
+ };
45
+ type SkillsPluginContext<TResolvedConfig extends SkillsPluginResolvedConfig = SkillsPluginResolvedConfig> = Context<TResolvedConfig>;
46
+ //#endregion
47
+ export { SkillsPluginContext, SkillsPluginOptions, SkillsPluginResolvedConfig, SkillsPluginUserConfig };
48
+ //# sourceMappingURL=plugin.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":""}
@@ -0,0 +1 @@
1
+ export { };
package/package.json ADDED
@@ -0,0 +1,142 @@
1
+ {
2
+ "name": "@shell-shock/plugin-skills",
3
+ "version": "0.0.2",
4
+ "private": false,
5
+ "description": "A package containing a Shell Shock plugin to manage adding agent skills in a Shell Shock application.",
6
+ "keywords": [
7
+ "shell-shock",
8
+ "shell-shock-plugin",
9
+ "powerlines",
10
+ "storm-software"
11
+ ],
12
+ "homepage": "https://stormsoftware.com",
13
+ "bugs": {
14
+ "url": "https://stormsoftware.com/support",
15
+ "email": "support@stormsoftware.com"
16
+ },
17
+ "repository": {
18
+ "type": "github",
19
+ "url": "https://github.com/storm-software/shell-shock.git",
20
+ "directory": "packages/plugin-skills"
21
+ },
22
+ "funding": {
23
+ "type": "github",
24
+ "url": "https://github.com/sponsors/storm-software"
25
+ },
26
+ "license": "Apache-2.0",
27
+ "author": {
28
+ "name": "Storm Software",
29
+ "email": "contact@stormsoftware.com",
30
+ "url": "https://stormsoftware.com"
31
+ },
32
+ "maintainers": [
33
+ {
34
+ "name": "Storm Software",
35
+ "email": "contact@stormsoftware.com",
36
+ "url": "https://stormsoftware.com"
37
+ }
38
+ ],
39
+ "contributors": [
40
+ {
41
+ "name": "Storm Software",
42
+ "email": "contact@stormsoftware.com",
43
+ "url": "https://stormsoftware.com"
44
+ }
45
+ ],
46
+ "type": "module",
47
+ "exports": {
48
+ ".": {
49
+ "require": {
50
+ "types": "./dist/index.d.cts",
51
+ "default": "./dist/index.cjs"
52
+ },
53
+ "import": {
54
+ "types": "./dist/index.d.mts",
55
+ "default": "./dist/index.mjs"
56
+ },
57
+ "default": {
58
+ "types": "./dist/index.d.mts",
59
+ "default": "./dist/index.mjs"
60
+ }
61
+ },
62
+ "./components": {
63
+ "require": {
64
+ "types": "./dist/components/index.d.cts",
65
+ "default": "./dist/components/index.cjs"
66
+ },
67
+ "import": {
68
+ "types": "./dist/components/index.d.mts",
69
+ "default": "./dist/components/index.mjs"
70
+ },
71
+ "default": {
72
+ "types": "./dist/components/index.d.mts",
73
+ "default": "./dist/components/index.mjs"
74
+ }
75
+ },
76
+ "./components/skills-command": {
77
+ "require": {
78
+ "types": "./dist/components/skills-command.d.cts",
79
+ "default": "./dist/components/skills-command.cjs"
80
+ },
81
+ "import": {
82
+ "types": "./dist/components/skills-command.d.mts",
83
+ "default": "./dist/components/skills-command.mjs"
84
+ },
85
+ "default": {
86
+ "types": "./dist/components/skills-command.d.mts",
87
+ "default": "./dist/components/skills-command.mjs"
88
+ }
89
+ },
90
+ "./package.json": "./package.json",
91
+ "./types": {
92
+ "require": {
93
+ "types": "./dist/types/index.d.cts",
94
+ "default": "./dist/types/index.cjs"
95
+ },
96
+ "import": {
97
+ "types": "./dist/types/index.d.mts",
98
+ "default": "./dist/types/index.mjs"
99
+ },
100
+ "default": {
101
+ "types": "./dist/types/index.d.mts",
102
+ "default": "./dist/types/index.mjs"
103
+ }
104
+ },
105
+ "./types/plugin": {
106
+ "require": {
107
+ "types": "./dist/types/plugin.d.cts",
108
+ "default": "./dist/types/plugin.cjs"
109
+ },
110
+ "import": {
111
+ "types": "./dist/types/plugin.d.mts",
112
+ "default": "./dist/types/plugin.mjs"
113
+ },
114
+ "default": {
115
+ "types": "./dist/types/plugin.d.mts",
116
+ "default": "./dist/types/plugin.mjs"
117
+ }
118
+ }
119
+ },
120
+ "main": "./dist/index.cjs",
121
+ "module": "./dist/index.mjs",
122
+ "types": "./dist/index.d.cts",
123
+ "typings": "dist/index.d.mts",
124
+ "files": ["dist"],
125
+ "dependencies": {
126
+ "@alloy-js/core": "^0.23.1",
127
+ "@alloy-js/typescript": "^0.23.0",
128
+ "@powerlines/plugin-alloy": "^0.26.217",
129
+ "@shell-shock/core": "0.17.11",
130
+ "@stryke/path": "^0.29.11",
131
+ "@stryke/type-checks": "^0.6.17",
132
+ "@stryke/types": "^0.12.12",
133
+ "defu": "^6.1.7",
134
+ "powerlines": "^0.47.124"
135
+ },
136
+ "devDependencies": {
137
+ "@powerlines/plugin-plugin": "^0.12.536",
138
+ "@types/node": "^25.9.1"
139
+ },
140
+ "publishConfig": { "access": "public" },
141
+ "gitHead": "9401c1de122d800040306fc89ad1835930c1a826"
142
+ }