@pluginfinity/targets 0.0.1 → 0.1.0

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 ADDED
@@ -0,0 +1,103 @@
1
+ import { CLAUDE_HOOK_EVENTS, Target, drop, keep } from "@pluginfinity/core";
2
+
3
+ //#region src/claude.ts
4
+ const ROOT = `\${CLAUDE_PLUGIN_ROOT}`;
5
+ const skillFields = {
6
+ name: keep,
7
+ description: keep,
8
+ license: keep,
9
+ compatibility: keep,
10
+ metadata: keep,
11
+ "allowed-tools": keep,
12
+ "disallowed-tools": keep,
13
+ when_to_use: keep,
14
+ "argument-hint": keep,
15
+ arguments: keep,
16
+ "disable-model-invocation": keep,
17
+ "user-invocable": keep,
18
+ model: keep,
19
+ effort: keep,
20
+ context: keep,
21
+ agent: keep,
22
+ background: keep,
23
+ hooks: keep,
24
+ paths: keep,
25
+ shell: keep
26
+ };
27
+ const agentFields = {
28
+ name: keep,
29
+ description: keep,
30
+ tools: keep,
31
+ disallowedTools: keep,
32
+ model: keep,
33
+ effort: keep,
34
+ permissionMode: drop,
35
+ maxTurns: keep,
36
+ skills: keep,
37
+ mcpServers: drop,
38
+ hooks: drop,
39
+ memory: keep,
40
+ background: keep,
41
+ omitClaudeMd: keep,
42
+ isolation: keep,
43
+ color: keep,
44
+ initialPrompt: drop,
45
+ experimental: keep
46
+ };
47
+ /**
48
+ * Claude Code, described by what it can do.
49
+ *
50
+ * @public
51
+ */
52
+ const CLAUDE = Target.make({
53
+ manifest: {
54
+ path: ".claude-plugin/plugin.json",
55
+ format: "claude-plugin-json",
56
+ keys: [
57
+ "name",
58
+ "version",
59
+ "description",
60
+ "author",
61
+ "homepage",
62
+ "repository",
63
+ "license",
64
+ "keywords"
65
+ ]
66
+ },
67
+ pluginRoot: {
68
+ hooks: ROOT,
69
+ mcp: ROOT,
70
+ body: ROOT
71
+ },
72
+ skills: {
73
+ dir: "skills",
74
+ fields: skillFields,
75
+ hostFields: []
76
+ },
77
+ agents: {
78
+ dir: "agents",
79
+ suffix: ".md",
80
+ fields: agentFields,
81
+ hostFields: []
82
+ },
83
+ hooks: {
84
+ path: "hooks/hooks.json",
85
+ format: "claude-hooks-json",
86
+ events: Object.fromEntries(CLAUDE_HOOK_EVENTS.map((event) => [event, event])),
87
+ ownEvents: []
88
+ },
89
+ mcp: {
90
+ path: ".mcp.json",
91
+ format: "claude-mcp-json"
92
+ },
93
+ references: { style: "path" },
94
+ tools: {
95
+ names: {},
96
+ mcp: "mcp__{server}__{tool}"
97
+ },
98
+ models: {},
99
+ efforts: {}
100
+ });
101
+
102
+ //#endregion
103
+ export { CLAUDE };
package/config.js CHANGED
@@ -1,9 +1,22 @@
1
+ import { COPILOT_OWN_EVENTS } from "./copilot.js";
1
2
  import { KNOWN_TARGET_IDS } from "./registry.js";
2
- import { BASE_CONFIG_KEYS, BaseConfigFields, TargetSetting } from "@pluginfinity/core";
3
+ import { BASE_CONFIG_KEYS, BaseConfigFields, CLAUDE_HOOK_EVENTS, Hooks, makeHooks, makeTargetSetting } from "@pluginfinity/core";
3
4
  import { Schema } from "effect";
4
5
 
5
6
  //#region src/config.ts
6
7
  /**
8
+ * The `claude` key's value: hooks overrides use Claude Code events only.
9
+ *
10
+ * @public
11
+ */
12
+ const ClaudeSetting = makeTargetSetting(Hooks);
13
+ /**
14
+ * The `copilot` key's value: hooks overrides may also use Copilot's own events.
15
+ *
16
+ * @public
17
+ */
18
+ const CopilotSetting = makeTargetSetting(makeHooks([...CLAUDE_HOOK_EVENTS, ...COPILOT_OWN_EVENTS]));
19
+ /**
7
20
  * The whole `pluginfinity.config.ts` shape: the plugin-wide fields from
8
21
  * `@pluginfinity/core` and one optional key per registry target.
9
22
  *
@@ -16,8 +29,8 @@ import { Schema } from "effect";
16
29
  */
17
30
  const PluginfinityConfig = Schema.Struct({
18
31
  ...BaseConfigFields,
19
- claude: Schema.optionalKey(TargetSetting),
20
- copilot: Schema.optionalKey(TargetSetting)
32
+ claude: Schema.optionalKey(ClaudeSetting),
33
+ copilot: Schema.optionalKey(CopilotSetting)
21
34
  });
22
35
  /**
23
36
  * Every top-level key a config may hold: the base fields, then the target ids.
@@ -33,4 +46,4 @@ const CONFIG_KEYS = [...BASE_CONFIG_KEYS, ...KNOWN_TARGET_IDS];
33
46
  const enabledTargets = (config) => KNOWN_TARGET_IDS.filter((id) => config[id] !== void 0);
34
47
 
35
48
  //#endregion
36
- export { CONFIG_KEYS, PluginfinityConfig, enabledTargets };
49
+ export { CONFIG_KEYS, ClaudeSetting, CopilotSetting, PluginfinityConfig, enabledTargets };
package/copilot.js ADDED
@@ -0,0 +1,170 @@
1
+ import { CLAUDE_HOOK_EVENTS, Target, absent, degrade, drop, keep, translate, unresolved } from "@pluginfinity/core";
2
+
3
+ //#region src/copilot.ts
4
+ const ROOT = `\${PLUGIN_ROOT}`;
5
+ const MODEL_ALIAS = "Copilot names models differently; set a full model ID as model under targets.copilot";
6
+ const EFFORT_LEVEL = "Copilot documents only low, medium and high; set effort under targets.copilot";
7
+ /**
8
+ * Copilot's own hook events: the ones with no Claude Code counterpart.
9
+ * `SubagentStart` and `Notification` are not here; authors write the Claude
10
+ * names and the event table maps them to their camelCase Copilot names.
11
+ *
12
+ * @public
13
+ */
14
+ const COPILOT_OWN_EVENTS = ["userPromptTransformed", "errorOccurred"];
15
+ const skillFields = {
16
+ name: keep,
17
+ description: keep,
18
+ license: keep,
19
+ compatibility: unresolved("Copilot does not document the Agent Skills compatibility field"),
20
+ metadata: unresolved("Copilot does not document the Agent Skills metadata field"),
21
+ "allowed-tools": translate("tools"),
22
+ "disallowed-tools": drop,
23
+ when_to_use: degrade("description-suffix"),
24
+ "argument-hint": keep,
25
+ arguments: drop,
26
+ "disable-model-invocation": keep,
27
+ "user-invocable": keep,
28
+ model: drop,
29
+ effort: drop,
30
+ context: drop,
31
+ agent: drop,
32
+ background: drop,
33
+ hooks: drop,
34
+ paths: degrade("description-suffix"),
35
+ shell: drop
36
+ };
37
+ const agentFields = {
38
+ name: keep,
39
+ description: keep,
40
+ tools: translate("tools"),
41
+ disallowedTools: drop,
42
+ model: translate("models"),
43
+ effort: translate("efforts", "reasoningEffort"),
44
+ permissionMode: drop,
45
+ maxTurns: drop,
46
+ skills: degrade("body-section"),
47
+ mcpServers: unresolved("Claude mcpServers lists names or inline configs; Copilot mcp-servers is an object of configs. Set mcp-servers under targets.copilot"),
48
+ hooks: drop,
49
+ memory: drop,
50
+ background: drop,
51
+ omitClaudeMd: drop,
52
+ isolation: drop,
53
+ color: drop,
54
+ initialPrompt: drop,
55
+ experimental: drop
56
+ };
57
+ const PASCAL_CASE = /* @__PURE__ */ new Set([
58
+ "SessionStart",
59
+ "SessionEnd",
60
+ "UserPromptSubmit",
61
+ "PreToolUse",
62
+ "PostToolUse",
63
+ "PostToolUseFailure",
64
+ "PermissionRequest",
65
+ "Stop",
66
+ "SubagentStop",
67
+ "PreCompact"
68
+ ]);
69
+ const CAMEL_CASE = {
70
+ SubagentStart: "subagentStart",
71
+ Notification: "notification"
72
+ };
73
+ /**
74
+ * GitHub Copilot CLI, emitting Agent Plugins 1.0, described by what it can do.
75
+ *
76
+ * @public
77
+ */
78
+ const COPILOT = Target.make({
79
+ manifest: {
80
+ path: "plugin.json",
81
+ format: "agent-plugins-1.0",
82
+ schema: "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
83
+ keys: [
84
+ "$schema",
85
+ "name",
86
+ "version",
87
+ "description",
88
+ "author",
89
+ "homepage",
90
+ "repository",
91
+ "license",
92
+ "keywords"
93
+ ]
94
+ },
95
+ pluginRoot: {
96
+ hooks: ROOT,
97
+ mcp: ROOT,
98
+ body: unresolved("Copilot documents no plugin-root expansion inside skill or agent bodies")
99
+ },
100
+ skills: {
101
+ dir: "skills",
102
+ fields: skillFields,
103
+ hostFields: []
104
+ },
105
+ agents: {
106
+ dir: "com.github.copilot/agents",
107
+ suffix: ".agent.md",
108
+ fields: agentFields,
109
+ hostFields: [
110
+ "target",
111
+ "metadata",
112
+ "models",
113
+ "modelPolicy",
114
+ "include-custom-instructions",
115
+ "disable-model-invocation",
116
+ "user-invocable",
117
+ "mcp-servers",
118
+ "handoffs",
119
+ "argument-hint",
120
+ "agents"
121
+ ]
122
+ },
123
+ hooks: {
124
+ path: "com.github.copilot/hooks/hooks.json",
125
+ format: "copilot-hooks-v1",
126
+ events: Object.fromEntries(CLAUDE_HOOK_EVENTS.map((event) => [event, PASCAL_CASE.has(event) ? event : CAMEL_CASE[event] ?? absent])),
127
+ ownEvents: [...COPILOT_OWN_EVENTS]
128
+ },
129
+ mcp: {
130
+ path: "mcp.json",
131
+ format: "agent-plugins-mcp-1.0",
132
+ schema: "https://agent-plugins.org/schemas/1.0.0/mcp.schema.json"
133
+ },
134
+ references: { style: "prose" },
135
+ tools: {
136
+ names: {
137
+ Agent: "agent",
138
+ Task: "agent",
139
+ Bash: "execute",
140
+ PowerShell: "execute",
141
+ Read: "read",
142
+ NotebookRead: "read",
143
+ Edit: "edit",
144
+ MultiEdit: "edit",
145
+ Write: "edit",
146
+ NotebookEdit: "edit",
147
+ Grep: "search",
148
+ Glob: "search",
149
+ WebFetch: "web",
150
+ WebSearch: "web",
151
+ TodoWrite: "todo",
152
+ Skill: drop
153
+ },
154
+ mcp: "{server}/{tool}"
155
+ },
156
+ models: {
157
+ inherit: drop,
158
+ sonnet: unresolved(MODEL_ALIAS),
159
+ opus: unresolved(MODEL_ALIAS),
160
+ haiku: unresolved(MODEL_ALIAS),
161
+ fable: unresolved(MODEL_ALIAS)
162
+ },
163
+ efforts: {
164
+ xhigh: unresolved(EFFORT_LEVEL),
165
+ max: unresolved(EFFORT_LEVEL)
166
+ }
167
+ });
168
+
169
+ //#endregion
170
+ export { COPILOT, COPILOT_OWN_EVENTS };
package/index.d.ts CHANGED
@@ -1,4 +1,13 @@
1
+ import { Target } from "@pluginfinity/core";
1
2
  import { Schema } from "effect";
3
+ //#region src/claude.d.ts
4
+ /**
5
+ * Claude Code, described by what it can do.
6
+ *
7
+ * @public
8
+ */
9
+ export declare const CLAUDE: Target;
10
+ //#endregion
2
11
  //#region src/registry.d.ts
3
12
  /**
4
13
  * The id of every target pluginfinity knows, in registry order. One id names a
@@ -20,14 +29,14 @@ export declare const KnownTargetId: Schema.Literals<readonly ["claude", "copilot
20
29
  */
21
30
  export type KnownTargetId = typeof KnownTargetId.Type;
22
31
  /**
23
- * One registry entry. Only an id and a display name for now; the capability
24
- * description lands with the core `Target` schema.
32
+ * One registry entry: the id, a display name, and the host's description.
25
33
  *
26
34
  * @public
27
35
  */
28
36
  interface TargetEntry {
29
37
  readonly id: KnownTargetId;
30
38
  readonly displayName: string;
39
+ readonly target: Target;
31
40
  }
32
41
  /**
33
42
  * Every target pluginfinity builds for.
@@ -43,6 +52,46 @@ export declare const TARGETS: ReadonlyArray<TargetEntry>;
43
52
  export declare const isKnownTargetId: (id: string) => id is KnownTargetId;
44
53
  //#endregion
45
54
  //#region src/config.d.ts
55
+ /**
56
+ * The `claude` key's value: hooks overrides use Claude Code events only.
57
+ *
58
+ * @public
59
+ */
60
+ export declare const ClaudeSetting: Schema.Union<readonly [Schema.Literal<true>, Schema.Struct<{
61
+ readonly name: Schema.optionalKey<Schema.String>;
62
+ 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
+ readonly mcpServers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
64
+ readonly type: Schema.optionalKey<Schema.Literal<"stdio">>;
65
+ readonly command: Schema.String;
66
+ readonly args: Schema.optionalKey<Schema.$Array<Schema.String>>;
67
+ readonly env: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
68
+ readonly cwd: Schema.optionalKey<Schema.String>;
69
+ }>, Schema.Struct<{
70
+ readonly type: Schema.Literals<readonly ["http", "sse"]>;
71
+ readonly url: Schema.String;
72
+ readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
73
+ }>]>>>;
74
+ }>]>;
75
+ /**
76
+ * The `copilot` key's value: hooks overrides may also use Copilot's own events.
77
+ *
78
+ * @public
79
+ */
80
+ export declare const CopilotSetting: Schema.Union<readonly [Schema.Literal<true>, Schema.Struct<{
81
+ readonly name: Schema.optionalKey<Schema.String>;
82
+ 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"]>>>;
83
+ readonly mcpServers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
84
+ readonly type: Schema.optionalKey<Schema.Literal<"stdio">>;
85
+ readonly command: Schema.String;
86
+ readonly args: Schema.optionalKey<Schema.$Array<Schema.String>>;
87
+ readonly env: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
88
+ readonly cwd: Schema.optionalKey<Schema.String>;
89
+ }>, Schema.Struct<{
90
+ readonly type: Schema.Literals<readonly ["http", "sse"]>;
91
+ readonly url: Schema.String;
92
+ readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
93
+ }>]>>>;
94
+ }>]>;
46
95
  /**
47
96
  * The whole `pluginfinity.config.ts` shape: the plugin-wide fields from
48
97
  * `@pluginfinity/core` and one optional key per registry target.
@@ -56,11 +105,60 @@ export declare const isKnownTargetId: (id: string) => id is KnownTargetId;
56
105
  */
57
106
  export declare const PluginfinityConfig: Schema.Struct<{
58
107
  readonly name: Schema.String;
108
+ readonly description: Schema.String;
109
+ readonly author: Schema.optionalKey<Schema.Struct<{
110
+ readonly name: Schema.String;
111
+ readonly email: Schema.optionalKey<Schema.String>;
112
+ readonly url: Schema.optionalKey<Schema.String>;
113
+ }>>;
114
+ readonly homepage: Schema.optionalKey<Schema.String>;
115
+ readonly repository: Schema.optionalKey<Schema.String>;
116
+ readonly license: Schema.optionalKey<Schema.String>;
117
+ readonly keywords: Schema.optionalKey<Schema.$Array<Schema.String>>;
118
+ readonly scripts: Schema.optionalKey<Schema.Struct<{
119
+ readonly invoke: Schema.optionalKey<Schema.Literals<readonly ["bash", "exec"]>>;
120
+ }>>;
121
+ 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"]>>>;
122
+ readonly mcpServers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
123
+ readonly type: Schema.optionalKey<Schema.Literal<"stdio">>;
124
+ readonly command: Schema.String;
125
+ readonly args: Schema.optionalKey<Schema.$Array<Schema.String>>;
126
+ readonly env: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
127
+ readonly cwd: Schema.optionalKey<Schema.String>;
128
+ }>, Schema.Struct<{
129
+ readonly type: Schema.Literals<readonly ["http", "sse"]>;
130
+ readonly url: Schema.String;
131
+ readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
132
+ }>]>>>;
59
133
  readonly claude: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<true>, Schema.Struct<{
60
134
  readonly name: Schema.optionalKey<Schema.String>;
135
+ 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"]>>>;
136
+ readonly mcpServers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
137
+ readonly type: Schema.optionalKey<Schema.Literal<"stdio">>;
138
+ readonly command: Schema.String;
139
+ readonly args: Schema.optionalKey<Schema.$Array<Schema.String>>;
140
+ readonly env: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
141
+ readonly cwd: Schema.optionalKey<Schema.String>;
142
+ }>, Schema.Struct<{
143
+ readonly type: Schema.Literals<readonly ["http", "sse"]>;
144
+ readonly url: Schema.String;
145
+ readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
146
+ }>]>>>;
61
147
  }>]>>;
62
148
  readonly copilot: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<true>, Schema.Struct<{
63
149
  readonly name: Schema.optionalKey<Schema.String>;
150
+ 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"]>>>;
151
+ readonly mcpServers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
152
+ readonly type: Schema.optionalKey<Schema.Literal<"stdio">>;
153
+ readonly command: Schema.String;
154
+ readonly args: Schema.optionalKey<Schema.$Array<Schema.String>>;
155
+ readonly env: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
156
+ readonly cwd: Schema.optionalKey<Schema.String>;
157
+ }>, Schema.Struct<{
158
+ readonly type: Schema.Literals<readonly ["http", "sse"]>;
159
+ readonly url: Schema.String;
160
+ readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
161
+ }>]>>>;
64
162
  }>]>>;
65
163
  }>;
66
164
  /**
@@ -88,6 +186,22 @@ export declare const CONFIG_KEYS: ReadonlyArray<string>;
88
186
  */
89
187
  export declare const enabledTargets: (config: PluginfinityConfig) => ReadonlyArray<KnownTargetId>;
90
188
  //#endregion
189
+ //#region src/copilot.d.ts
190
+ /**
191
+ * Copilot's own hook events: the ones with no Claude Code counterpart.
192
+ * `SubagentStart` and `Notification` are not here; authors write the Claude
193
+ * names and the event table maps them to their camelCase Copilot names.
194
+ *
195
+ * @public
196
+ */
197
+ export declare const COPILOT_OWN_EVENTS: readonly ["userPromptTransformed", "errorOccurred"];
198
+ /**
199
+ * GitHub Copilot CLI, emitting Agent Plugins 1.0, described by what it can do.
200
+ *
201
+ * @public
202
+ */
203
+ export declare const COPILOT: Target;
204
+ //#endregion
91
205
  //#region src/version.d.ts
92
206
  /**
93
207
  * The version of `@pluginfinity/targets` this build was made from.
package/index.js CHANGED
@@ -1,5 +1,7 @@
1
+ import { CLAUDE } from "./claude.js";
2
+ import { COPILOT, COPILOT_OWN_EVENTS } from "./copilot.js";
1
3
  import { KNOWN_TARGET_IDS, KnownTargetId, TARGETS, isKnownTargetId } from "./registry.js";
2
- import { CONFIG_KEYS, PluginfinityConfig, enabledTargets } from "./config.js";
4
+ import { CONFIG_KEYS, ClaudeSetting, CopilotSetting, PluginfinityConfig, enabledTargets } from "./config.js";
3
5
  import { TARGETS_VERSION } from "./version.js";
4
6
 
5
- export { CONFIG_KEYS, KNOWN_TARGET_IDS, KnownTargetId, PluginfinityConfig, TARGETS, TARGETS_VERSION, enabledTargets, isKnownTargetId };
7
+ export { CLAUDE, CONFIG_KEYS, COPILOT, COPILOT_OWN_EVENTS, ClaudeSetting, CopilotSetting, KNOWN_TARGET_IDS, KnownTargetId, PluginfinityConfig, TARGETS, TARGETS_VERSION, enabledTargets, isKnownTargetId };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pluginfinity/targets",
3
- "version": "0.0.1",
3
+ "version": "0.1.0",
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,7 +36,7 @@
36
36
  "./package.json": "./package.json"
37
37
  },
38
38
  "dependencies": {
39
- "@pluginfinity/core": "0.0.1"
39
+ "@pluginfinity/core": "0.1.0"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "effect": "^4.0.0"
package/registry.js CHANGED
@@ -1,3 +1,5 @@
1
+ import { CLAUDE } from "./claude.js";
2
+ import { COPILOT } from "./copilot.js";
1
3
  import { Schema } from "effect";
2
4
 
3
5
  //#region src/registry.ts
@@ -21,10 +23,12 @@ const KnownTargetId = Schema.Literals(KNOWN_TARGET_IDS);
21
23
  */
22
24
  const TARGETS = [{
23
25
  id: "claude",
24
- displayName: "Claude Code"
26
+ displayName: "Claude Code",
27
+ target: CLAUDE
25
28
  }, {
26
29
  id: "copilot",
27
- displayName: "GitHub Copilot"
30
+ displayName: "GitHub Copilot",
31
+ target: COPILOT
28
32
  }];
29
33
  /**
30
34
  * Whether `id` names a known target.
package/version.js CHANGED
@@ -9,7 +9,7 @@
9
9
  *
10
10
  * @public
11
11
  */
12
- const TARGETS_VERSION = "0.0.1";
12
+ const TARGETS_VERSION = "0.1.0";
13
13
 
14
14
  //#endregion
15
15
  export { TARGETS_VERSION };