@pluginfinity/targets 0.2.1 → 0.3.1
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/claude.js +65 -4
- package/config.js +1 -2
- package/copilot.js +24 -4
- package/index.d.ts +62 -10
- package/package.json +3 -3
- package/registry.js +1 -2
- package/tsdoc-metadata.json +1 -1
- package/version.js +2 -3
package/claude.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CLAUDE_HOOK_EVENTS, LSP_FIELDS, Target, drop, inManifest, keep } from "@pluginfinity/core";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/claude.ts
|
|
4
4
|
const ROOT = `\${CLAUDE_PLUGIN_ROOT}`;
|
|
5
5
|
const skillFields = {
|
|
6
6
|
name: keep,
|
|
@@ -77,7 +77,12 @@ const CLAUDE = Target.make({
|
|
|
77
77
|
dir: "skills",
|
|
78
78
|
fields: skillFields,
|
|
79
79
|
hostFields: [],
|
|
80
|
-
invoke: "/{plugin}:{skill}"
|
|
80
|
+
invoke: "/{plugin}:{skill}",
|
|
81
|
+
dirSpelling: {
|
|
82
|
+
own: `\${CLAUDE_SKILL_DIR}`,
|
|
83
|
+
other: `\${CLAUDE_PLUGIN_ROOT}/skills/{skill}`,
|
|
84
|
+
agent: `\${CLAUDE_PLUGIN_ROOT}/skills/{skill}`
|
|
85
|
+
}
|
|
81
86
|
},
|
|
82
87
|
agents: {
|
|
83
88
|
dir: "agents",
|
|
@@ -90,7 +95,60 @@ const CLAUDE = Target.make({
|
|
|
90
95
|
path: "hooks/hooks.json",
|
|
91
96
|
format: "claude-hooks-json",
|
|
92
97
|
events: Object.fromEntries(CLAUDE_HOOK_EVENTS.map((event) => [event, event])),
|
|
93
|
-
ownEvents: []
|
|
98
|
+
ownEvents: [],
|
|
99
|
+
matcherIgnored: [],
|
|
100
|
+
envShell: [
|
|
101
|
+
"SessionStart",
|
|
102
|
+
"Setup",
|
|
103
|
+
"CwdChanged",
|
|
104
|
+
"FileChanged"
|
|
105
|
+
],
|
|
106
|
+
output: {
|
|
107
|
+
context: [
|
|
108
|
+
"SessionStart",
|
|
109
|
+
"SubagentStart",
|
|
110
|
+
"PostModelSwitch",
|
|
111
|
+
"UserPromptSubmit",
|
|
112
|
+
"UserPromptExpansion",
|
|
113
|
+
"PreToolUse",
|
|
114
|
+
"PostToolUse",
|
|
115
|
+
"PostToolUseFailure",
|
|
116
|
+
"PostToolBatch",
|
|
117
|
+
"Stop",
|
|
118
|
+
"SubagentStop"
|
|
119
|
+
],
|
|
120
|
+
system_message: [
|
|
121
|
+
"SessionStart",
|
|
122
|
+
"Setup",
|
|
123
|
+
"UserPromptSubmit",
|
|
124
|
+
"UserPromptExpansion",
|
|
125
|
+
"PreToolUse",
|
|
126
|
+
"PermissionRequest",
|
|
127
|
+
"PermissionDenied",
|
|
128
|
+
"PostToolUse",
|
|
129
|
+
"PostToolUseFailure",
|
|
130
|
+
"PostToolBatch",
|
|
131
|
+
"MessageDisplay",
|
|
132
|
+
"SubagentStart",
|
|
133
|
+
"SubagentStop",
|
|
134
|
+
"TaskCreated",
|
|
135
|
+
"TaskCompleted",
|
|
136
|
+
"Stop",
|
|
137
|
+
"StopFailure",
|
|
138
|
+
"TeammateIdle",
|
|
139
|
+
"InstructionsLoaded",
|
|
140
|
+
"CwdChanged",
|
|
141
|
+
"DirectoryAdded",
|
|
142
|
+
"FileChanged",
|
|
143
|
+
"WorktreeCreate",
|
|
144
|
+
"WorktreeRemove",
|
|
145
|
+
"PostCompact",
|
|
146
|
+
"PreModelSwitch",
|
|
147
|
+
"PostModelSwitch",
|
|
148
|
+
"Elicitation",
|
|
149
|
+
"ElicitationResult"
|
|
150
|
+
]
|
|
151
|
+
}
|
|
94
152
|
},
|
|
95
153
|
mcp: {
|
|
96
154
|
placement: inManifest("mcpServers", ".mcp.json"),
|
|
@@ -101,6 +159,10 @@ const CLAUDE = Target.make({
|
|
|
101
159
|
format: "claude-lsp-servers",
|
|
102
160
|
fields: lspFields
|
|
103
161
|
},
|
|
162
|
+
monitors: {
|
|
163
|
+
path: "monitors/monitors.json",
|
|
164
|
+
root: ROOT
|
|
165
|
+
},
|
|
104
166
|
references: { style: "path" },
|
|
105
167
|
tools: {
|
|
106
168
|
names: {},
|
|
@@ -116,5 +178,4 @@ const CLAUDE = Target.make({
|
|
|
116
178
|
efforts: {}
|
|
117
179
|
});
|
|
118
180
|
|
|
119
|
-
//#endregion
|
|
120
181
|
export { CLAUDE };
|
package/config.js
CHANGED
|
@@ -3,7 +3,7 @@ import { KNOWN_TARGET_IDS } from "./registry.js";
|
|
|
3
3
|
import { BASE_CONFIG_KEYS, BaseConfigFields, CLAUDE_HOOK_EVENTS, Hooks, makeHooks, makeTargetSetting } from "@pluginfinity/core";
|
|
4
4
|
import { Schema } from "effect";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/config.ts
|
|
7
7
|
/**
|
|
8
8
|
* The `claude` key's value: hooks overrides use Claude Code events only.
|
|
9
9
|
*
|
|
@@ -45,5 +45,4 @@ const CONFIG_KEYS = [...BASE_CONFIG_KEYS, ...KNOWN_TARGET_IDS];
|
|
|
45
45
|
*/
|
|
46
46
|
const enabledTargets = (config) => KNOWN_TARGET_IDS.filter((id) => config[id] !== void 0);
|
|
47
47
|
|
|
48
|
-
//#endregion
|
|
49
48
|
export { CONFIG_KEYS, ClaudeSetting, CopilotSetting, PluginfinityConfig, enabledTargets };
|
package/copilot.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CLAUDE_HOOK_EVENTS, Target, absent, degrade, drop, inFile, keep, rename, translate, unresolved } from "@pluginfinity/core";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/copilot.ts
|
|
4
4
|
const ROOT = `\${PLUGIN_ROOT}`;
|
|
5
5
|
const MODEL_ALIAS = "Copilot names models differently; set a full model ID as model under targets.copilot";
|
|
6
6
|
const EFFORT_LEVEL = "Copilot documents only low, medium and high; set effort under targets.copilot";
|
|
@@ -116,7 +116,12 @@ const COPILOT = Target.make({
|
|
|
116
116
|
dir: "skills",
|
|
117
117
|
fields: skillFields,
|
|
118
118
|
hostFields: [],
|
|
119
|
-
invoke: "/{plugin}:{skill}"
|
|
119
|
+
invoke: "/{plugin}:{skill}",
|
|
120
|
+
dirSpelling: {
|
|
121
|
+
own: "<skill base directory>",
|
|
122
|
+
other: "<skill base directory>/../{skill}",
|
|
123
|
+
agent: unresolved("an agent has no skill base directory on copilot; name the path in the skill instead")
|
|
124
|
+
}
|
|
120
125
|
},
|
|
121
126
|
agents: {
|
|
122
127
|
id: "{plugin}:{agent}",
|
|
@@ -141,7 +146,22 @@ const COPILOT = Target.make({
|
|
|
141
146
|
path: "com.github.copilot/hooks/hooks.json",
|
|
142
147
|
format: "copilot-hooks-v1",
|
|
143
148
|
events: Object.fromEntries(CLAUDE_HOOK_EVENTS.map((event) => [event, PASCAL_CASE.has(event) ? event : CAMEL_CASE[event] ?? absent])),
|
|
144
|
-
ownEvents: [...COPILOT_OWN_EVENTS]
|
|
149
|
+
ownEvents: [...COPILOT_OWN_EVENTS],
|
|
150
|
+
matcherIgnored: [
|
|
151
|
+
"SessionStart",
|
|
152
|
+
"SessionEnd",
|
|
153
|
+
"SubagentStop"
|
|
154
|
+
],
|
|
155
|
+
output: {
|
|
156
|
+
context: [
|
|
157
|
+
"SessionStart",
|
|
158
|
+
"SubagentStart",
|
|
159
|
+
"PostToolUse",
|
|
160
|
+
"Notification"
|
|
161
|
+
],
|
|
162
|
+
system_message: []
|
|
163
|
+
},
|
|
164
|
+
envShell: []
|
|
145
165
|
},
|
|
146
166
|
mcp: {
|
|
147
167
|
placement: inFile("mcp.json"),
|
|
@@ -153,6 +173,7 @@ const COPILOT = Target.make({
|
|
|
153
173
|
format: "copilot-lsp-json",
|
|
154
174
|
fields: lspFields
|
|
155
175
|
},
|
|
176
|
+
monitors: unresolved("Copilot CLI has no monitors"),
|
|
156
177
|
references: { style: "prose" },
|
|
157
178
|
tools: {
|
|
158
179
|
names: {
|
|
@@ -211,5 +232,4 @@ const COPILOT = Target.make({
|
|
|
211
232
|
}
|
|
212
233
|
});
|
|
213
234
|
|
|
214
|
-
//#endregion
|
|
215
235
|
export { COPILOT, COPILOT_OWN_EVENTS };
|
package/index.d.ts
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { Target } from "@pluginfinity/core";
|
|
2
2
|
import { Schema } from "effect";
|
|
3
|
-
//#region src/claude.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Claude Code, described by what it can do.
|
|
6
5
|
*
|
|
7
6
|
* @public
|
|
8
7
|
*/
|
|
9
8
|
export declare const CLAUDE: Target;
|
|
10
|
-
//#endregion
|
|
11
|
-
//#region src/registry.d.ts
|
|
12
9
|
/**
|
|
13
10
|
* The id of every target pluginfinity knows, in registry order. One id names a
|
|
14
11
|
* target everywhere: the config key, `builds/<id>/` and `--target <id>`.
|
|
@@ -50,8 +47,6 @@ export declare const TARGETS: ReadonlyArray<TargetEntry>;
|
|
|
50
47
|
* @public
|
|
51
48
|
*/
|
|
52
49
|
export declare const isKnownTargetId: (id: string) => id is KnownTargetId;
|
|
53
|
-
//#endregion
|
|
54
|
-
//#region src/config.d.ts
|
|
55
50
|
/**
|
|
56
51
|
* The `claude` key's value: hooks overrides use Claude Code events only.
|
|
57
52
|
*
|
|
@@ -59,6 +54,7 @@ export declare const isKnownTargetId: (id: string) => id is KnownTargetId;
|
|
|
59
54
|
*/
|
|
60
55
|
export declare const ClaudeSetting: Schema.Union<readonly [Schema.Literal<true>, Schema.Struct<{
|
|
61
56
|
readonly name: Schema.optionalKey<Schema.String>;
|
|
57
|
+
readonly files: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
62
58
|
readonly hooks: Schema.optionalKey<Schema.Struct<import("@pluginfinity/core").HooksFields<readonly ["SessionStart", "Setup", "UserPromptSubmit", "UserPromptExpansion", "PreToolUse", "PermissionRequest", "PermissionDenied", "PostToolUse", "PostToolUseFailure", "PostToolBatch", "Notification", "MessageDisplay", "SubagentStart", "SubagentStop", "TaskCreated", "TaskCompleted", "Stop", "StopFailure", "TeammateIdle", "InstructionsLoaded", "ConfigChange", "CwdChanged", "DirectoryAdded", "FileChanged", "WorktreeCreate", "WorktreeRemove", "PreCompact", "PostCompact", "PreModelSwitch", "PostModelSwitch", "Elicitation", "ElicitationResult", "SessionEnd"]>>>;
|
|
63
59
|
readonly mcpServers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
64
60
|
readonly type: Schema.optionalKey<Schema.Literal<"stdio">>;
|
|
@@ -85,6 +81,16 @@ export declare const ClaudeSetting: Schema.Union<readonly [Schema.Literal<true>,
|
|
|
85
81
|
readonly maxRestarts: Schema.optionalKey<Schema.Number>;
|
|
86
82
|
readonly diagnostics: Schema.optionalKey<Schema.Boolean>;
|
|
87
83
|
}>>>;
|
|
84
|
+
readonly monitors: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
85
|
+
readonly description: Schema.String;
|
|
86
|
+
readonly when: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"always">, Schema.String]>>;
|
|
87
|
+
readonly script: Schema.String;
|
|
88
|
+
readonly args: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
89
|
+
}>, Schema.Struct<{
|
|
90
|
+
readonly description: Schema.String;
|
|
91
|
+
readonly when: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"always">, Schema.String]>>;
|
|
92
|
+
readonly command: Schema.String;
|
|
93
|
+
}>]>>>;
|
|
88
94
|
}>]>;
|
|
89
95
|
/**
|
|
90
96
|
* The `copilot` key's value: hooks overrides may also use Copilot's own events.
|
|
@@ -93,6 +99,7 @@ export declare const ClaudeSetting: Schema.Union<readonly [Schema.Literal<true>,
|
|
|
93
99
|
*/
|
|
94
100
|
export declare const CopilotSetting: Schema.Union<readonly [Schema.Literal<true>, Schema.Struct<{
|
|
95
101
|
readonly name: Schema.optionalKey<Schema.String>;
|
|
102
|
+
readonly files: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
96
103
|
readonly hooks: Schema.optionalKey<Schema.Struct<import("@pluginfinity/core").HooksFields<readonly ["SessionStart", "Setup", "UserPromptSubmit", "UserPromptExpansion", "PreToolUse", "PermissionRequest", "PermissionDenied", "PostToolUse", "PostToolUseFailure", "PostToolBatch", "Notification", "MessageDisplay", "SubagentStart", "SubagentStop", "TaskCreated", "TaskCompleted", "Stop", "StopFailure", "TeammateIdle", "InstructionsLoaded", "ConfigChange", "CwdChanged", "DirectoryAdded", "FileChanged", "WorktreeCreate", "WorktreeRemove", "PreCompact", "PostCompact", "PreModelSwitch", "PostModelSwitch", "Elicitation", "ElicitationResult", "SessionEnd", "userPromptTransformed", "errorOccurred"]>>>;
|
|
97
104
|
readonly mcpServers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
98
105
|
readonly type: Schema.optionalKey<Schema.Literal<"stdio">>;
|
|
@@ -119,6 +126,16 @@ export declare const CopilotSetting: Schema.Union<readonly [Schema.Literal<true>
|
|
|
119
126
|
readonly maxRestarts: Schema.optionalKey<Schema.Number>;
|
|
120
127
|
readonly diagnostics: Schema.optionalKey<Schema.Boolean>;
|
|
121
128
|
}>>>;
|
|
129
|
+
readonly monitors: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
130
|
+
readonly description: Schema.String;
|
|
131
|
+
readonly when: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"always">, Schema.String]>>;
|
|
132
|
+
readonly script: Schema.String;
|
|
133
|
+
readonly args: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
134
|
+
}>, Schema.Struct<{
|
|
135
|
+
readonly description: Schema.String;
|
|
136
|
+
readonly when: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"always">, Schema.String]>>;
|
|
137
|
+
readonly command: Schema.String;
|
|
138
|
+
}>]>>>;
|
|
122
139
|
}>]>;
|
|
123
140
|
/**
|
|
124
141
|
* The whole `pluginfinity.config.ts` shape: the plugin-wide fields from
|
|
@@ -172,9 +189,28 @@ export declare const PluginfinityConfig: Schema.Struct<{
|
|
|
172
189
|
readonly maxRestarts: Schema.optionalKey<Schema.Number>;
|
|
173
190
|
readonly diagnostics: Schema.optionalKey<Schema.Boolean>;
|
|
174
191
|
}>>>;
|
|
192
|
+
readonly monitors: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
193
|
+
readonly description: Schema.String;
|
|
194
|
+
readonly when: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"always">, Schema.String]>>;
|
|
195
|
+
readonly script: Schema.String;
|
|
196
|
+
readonly args: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
197
|
+
}>, Schema.Struct<{
|
|
198
|
+
readonly description: Schema.String;
|
|
199
|
+
readonly when: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"always">, Schema.String]>>;
|
|
200
|
+
readonly command: Schema.String;
|
|
201
|
+
}>]>>>;
|
|
175
202
|
readonly files: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
203
|
+
readonly env: Schema.optionalKey<Schema.Struct<{
|
|
204
|
+
readonly prefix: Schema.optionalKey<Schema.String>;
|
|
205
|
+
readonly vars: Schema.$Record<Schema.String, Schema.Struct<{
|
|
206
|
+
readonly default: Schema.optionalKey<Schema.String>;
|
|
207
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
208
|
+
}>>;
|
|
209
|
+
readonly setup: Schema.optionalKey<Schema.String>;
|
|
210
|
+
}>>;
|
|
176
211
|
readonly claude: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<true>, Schema.Struct<{
|
|
177
212
|
readonly name: Schema.optionalKey<Schema.String>;
|
|
213
|
+
readonly files: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
178
214
|
readonly hooks: Schema.optionalKey<Schema.Struct<import("@pluginfinity/core").HooksFields<readonly ["SessionStart", "Setup", "UserPromptSubmit", "UserPromptExpansion", "PreToolUse", "PermissionRequest", "PermissionDenied", "PostToolUse", "PostToolUseFailure", "PostToolBatch", "Notification", "MessageDisplay", "SubagentStart", "SubagentStop", "TaskCreated", "TaskCompleted", "Stop", "StopFailure", "TeammateIdle", "InstructionsLoaded", "ConfigChange", "CwdChanged", "DirectoryAdded", "FileChanged", "WorktreeCreate", "WorktreeRemove", "PreCompact", "PostCompact", "PreModelSwitch", "PostModelSwitch", "Elicitation", "ElicitationResult", "SessionEnd"]>>>;
|
|
179
215
|
readonly mcpServers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
180
216
|
readonly type: Schema.optionalKey<Schema.Literal<"stdio">>;
|
|
@@ -201,9 +237,20 @@ export declare const PluginfinityConfig: Schema.Struct<{
|
|
|
201
237
|
readonly maxRestarts: Schema.optionalKey<Schema.Number>;
|
|
202
238
|
readonly diagnostics: Schema.optionalKey<Schema.Boolean>;
|
|
203
239
|
}>>>;
|
|
240
|
+
readonly monitors: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
241
|
+
readonly description: Schema.String;
|
|
242
|
+
readonly when: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"always">, Schema.String]>>;
|
|
243
|
+
readonly script: Schema.String;
|
|
244
|
+
readonly args: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
245
|
+
}>, Schema.Struct<{
|
|
246
|
+
readonly description: Schema.String;
|
|
247
|
+
readonly when: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"always">, Schema.String]>>;
|
|
248
|
+
readonly command: Schema.String;
|
|
249
|
+
}>]>>>;
|
|
204
250
|
}>]>>;
|
|
205
251
|
readonly copilot: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<true>, Schema.Struct<{
|
|
206
252
|
readonly name: Schema.optionalKey<Schema.String>;
|
|
253
|
+
readonly files: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
207
254
|
readonly hooks: Schema.optionalKey<Schema.Struct<import("@pluginfinity/core").HooksFields<readonly ["SessionStart", "Setup", "UserPromptSubmit", "UserPromptExpansion", "PreToolUse", "PermissionRequest", "PermissionDenied", "PostToolUse", "PostToolUseFailure", "PostToolBatch", "Notification", "MessageDisplay", "SubagentStart", "SubagentStop", "TaskCreated", "TaskCompleted", "Stop", "StopFailure", "TeammateIdle", "InstructionsLoaded", "ConfigChange", "CwdChanged", "DirectoryAdded", "FileChanged", "WorktreeCreate", "WorktreeRemove", "PreCompact", "PostCompact", "PreModelSwitch", "PostModelSwitch", "Elicitation", "ElicitationResult", "SessionEnd", "userPromptTransformed", "errorOccurred"]>>>;
|
|
208
255
|
readonly mcpServers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
209
256
|
readonly type: Schema.optionalKey<Schema.Literal<"stdio">>;
|
|
@@ -230,6 +277,16 @@ export declare const PluginfinityConfig: Schema.Struct<{
|
|
|
230
277
|
readonly maxRestarts: Schema.optionalKey<Schema.Number>;
|
|
231
278
|
readonly diagnostics: Schema.optionalKey<Schema.Boolean>;
|
|
232
279
|
}>>>;
|
|
280
|
+
readonly monitors: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
281
|
+
readonly description: Schema.String;
|
|
282
|
+
readonly when: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"always">, Schema.String]>>;
|
|
283
|
+
readonly script: Schema.String;
|
|
284
|
+
readonly args: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
285
|
+
}>, Schema.Struct<{
|
|
286
|
+
readonly description: Schema.String;
|
|
287
|
+
readonly when: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"always">, Schema.String]>>;
|
|
288
|
+
readonly command: Schema.String;
|
|
289
|
+
}>]>>>;
|
|
233
290
|
}>]>>;
|
|
234
291
|
}>;
|
|
235
292
|
/**
|
|
@@ -256,8 +313,6 @@ export declare const CONFIG_KEYS: ReadonlyArray<string>;
|
|
|
256
313
|
* @public
|
|
257
314
|
*/
|
|
258
315
|
export declare const enabledTargets: (config: PluginfinityConfig) => ReadonlyArray<KnownTargetId>;
|
|
259
|
-
//#endregion
|
|
260
|
-
//#region src/copilot.d.ts
|
|
261
316
|
/**
|
|
262
317
|
* Copilot's own hook events: the ones with no Claude Code counterpart.
|
|
263
318
|
* `SubagentStart` and `Notification` are not here; authors write the Claude
|
|
@@ -272,8 +327,6 @@ export declare const COPILOT_OWN_EVENTS: readonly ["userPromptTransformed", "err
|
|
|
272
327
|
* @public
|
|
273
328
|
*/
|
|
274
329
|
export declare const COPILOT: Target;
|
|
275
|
-
//#endregion
|
|
276
|
-
//#region src/version.d.ts
|
|
277
330
|
/**
|
|
278
331
|
* The version of `@pluginfinity/targets` this build was made from.
|
|
279
332
|
*
|
|
@@ -285,6 +338,5 @@ export declare const COPILOT: Target;
|
|
|
285
338
|
* @public
|
|
286
339
|
*/
|
|
287
340
|
export declare const TARGETS_VERSION: string;
|
|
288
|
-
//#endregion
|
|
289
341
|
export type { PluginfinityConfigInput, TargetEntry };
|
|
290
342
|
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pluginfinity/targets",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The host targets pluginfinity builds for (Claude Code, GitHub Copilot), described as data against the @pluginfinity/core Target schema.",
|
|
6
6
|
"keywords": [
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"./package.json": "./package.json"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@pluginfinity/core": "0.
|
|
39
|
+
"@pluginfinity/core": "0.3.1"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"effect": "
|
|
42
|
+
"effect": "~4.1.1"
|
|
43
43
|
},
|
|
44
44
|
"engines": {
|
|
45
45
|
"node": ">=24.11.0"
|
package/registry.js
CHANGED
|
@@ -2,7 +2,7 @@ import { CLAUDE } from "./claude.js";
|
|
|
2
2
|
import { COPILOT } from "./copilot.js";
|
|
3
3
|
import { Schema } from "effect";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/registry.ts
|
|
6
6
|
/**
|
|
7
7
|
* The id of every target pluginfinity knows, in registry order. One id names a
|
|
8
8
|
* target everywhere: the config key, `builds/<id>/` and `--target <id>`.
|
|
@@ -37,5 +37,4 @@ const TARGETS = [{
|
|
|
37
37
|
*/
|
|
38
38
|
const isKnownTargetId = (id) => KNOWN_TARGET_IDS.includes(id);
|
|
39
39
|
|
|
40
|
-
//#endregion
|
|
41
40
|
export { KNOWN_TARGET_IDS, KnownTargetId, TARGETS, isKnownTargetId };
|
package/tsdoc-metadata.json
CHANGED
package/version.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/version.ts
|
|
2
2
|
/**
|
|
3
3
|
* The version of `@pluginfinity/targets` this build was made from.
|
|
4
4
|
*
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
*
|
|
10
10
|
* @public
|
|
11
11
|
*/
|
|
12
|
-
const TARGETS_VERSION = "0.
|
|
12
|
+
const TARGETS_VERSION = "0.3.1";
|
|
13
13
|
|
|
14
|
-
//#endregion
|
|
15
14
|
export { TARGETS_VERSION };
|