@pluginfinity/core 0.3.0 → 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/config.js CHANGED
@@ -6,7 +6,7 @@ import { KebabName } from "./name.js";
6
6
  import { Monitors } from "./monitors.js";
7
7
  import { Schema } from "effect";
8
8
 
9
- //#region src/config.ts
9
+ // src/config.ts
10
10
  /**
11
11
  * A plugin name as every host spells it: kebab-case, lowercase letters and
12
12
  * digits separated by single hyphens.
@@ -102,5 +102,4 @@ const makeTargetSetting = (hooks) => Schema.Union([Schema.Literal(true), Schema.
102
102
  monitors: Schema.optionalKey(Monitors)
103
103
  })]);
104
104
 
105
- //#endregion
106
105
  export { BASE_CONFIG_KEYS, BaseConfigFields, PluginName, ScriptInvoke, ShippedPath, makeTargetSetting };
package/env.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { PluginRelativePath } from "./hooks.js";
2
2
  import { Schema } from "effect";
3
3
 
4
- //#region src/env.ts
4
+ // src/env.ts
5
5
  const RESERVED_NAME_LIST = [
6
6
  "PATH",
7
7
  "IFS",
@@ -90,5 +90,4 @@ const EnvConfig = Schema.Struct({
90
90
  }));
91
91
  }));
92
92
 
93
- //#endregion
94
93
  export { EnvConfig, EnvVar, EnvVarName };
package/frontmatter.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { PluginName } from "./config.js";
2
2
  import { Schema } from "effect";
3
3
 
4
- //#region src/frontmatter.ts
4
+ // src/frontmatter.ts
5
5
  /**
6
6
  * A skill or agent name: kebab-case and at most 64 characters, the Agent
7
7
  * Skills spec rule and the strictest of the hosts.
@@ -114,5 +114,4 @@ const SKILL_FIELDS = Object.keys(SkillFrontmatter.fields).filter((key) => key !=
114
114
  */
115
115
  const AGENT_FIELDS = Object.keys(AgentFrontmatter.fields).filter((key) => key !== "targets");
116
116
 
117
- //#endregion
118
117
  export { AGENT_FIELDS, AgentFrontmatter, ComponentName, ComponentTargets, SKILL_FIELDS, SkillFrontmatter };
package/hooks.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Schema } from "effect";
2
2
 
3
- //#region src/hooks.ts
3
+ // src/hooks.ts
4
4
  /**
5
5
  * Every Claude Code hook event, the vocabulary a plugin's `hooks` config is
6
6
  * written in. Each target maps these to its own names.
@@ -124,5 +124,4 @@ const makeHooks = (events) => Schema.Struct(Object.fromEntries(events.map((event
124
124
  */
125
125
  const Hooks = makeHooks(CLAUDE_HOOK_EVENTS);
126
126
 
127
- //#endregion
128
127
  export { CLAUDE_HOOK_EVENTS, ClaudeHookEvent, CommandHook, HookEntries, HookEntry, HookFallback, Hooks, PluginRelativePath, ScriptHook, makeHooks };
package/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { Schema } from "effect";
2
- //#region src/hooks.d.ts
3
2
  /**
4
3
  * Every Claude Code hook event, the vocabulary a plugin's `hooks` config is
5
4
  * written in. Each target maps these to its own names.
@@ -127,8 +126,6 @@ export declare const makeHooks: <const E extends ReadonlyArray<string>>(events:
127
126
  * @public
128
127
  */
129
128
  export declare const Hooks: Schema.Struct<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"]>>;
130
- //#endregion
131
- //#region src/config.d.ts
132
129
  /**
133
130
  * A plugin name as every host spells it: kebab-case, lowercase letters and
134
131
  * digits separated by single hyphens.
@@ -296,8 +293,6 @@ export declare const makeTargetSetting: <H extends Schema.Top>(hooks: H) => Sche
296
293
  readonly command: Schema.String;
297
294
  }>]>>>;
298
295
  }>]>;
299
- //#endregion
300
- //#region src/env.d.ts
301
296
  /**
302
297
  * A session variable's name: upper case letters, digits and `_`, not starting
303
298
  * with a digit.
@@ -355,8 +350,6 @@ export declare const EnvConfig: Schema.Struct<{
355
350
  * @public
356
351
  */
357
352
  export type EnvConfig = typeof EnvConfig.Type;
358
- //#endregion
359
- //#region src/frontmatter.d.ts
360
353
  /**
361
354
  * A skill or agent name: kebab-case and at most 64 characters, the Agent
362
355
  * Skills spec rule and the strictest of the hosts.
@@ -452,8 +445,6 @@ export declare const SKILL_FIELDS: ReadonlyArray<SkillField>;
452
445
  * @public
453
446
  */
454
447
  export declare const AGENT_FIELDS: ReadonlyArray<AgentField>;
455
- //#endregion
456
- //#region src/lsp.d.ts
457
448
  /**
458
449
  * One LSP server, in Claude Code's `.lsp.json` server shape. `${PLUGIN_ROOT}`
459
450
  * is the one placeholder in `command`, `args`, `env` and `workspaceFolder`.
@@ -505,8 +496,6 @@ export declare const LSP_FIELDS: readonly ["command", "args", "env", "extensionT
505
496
  * @public
506
497
  */
507
498
  type LspField = (typeof LSP_FIELDS)[number];
508
- //#endregion
509
- //#region src/mcp.d.ts
510
499
  /**
511
500
  * A server's environment. `PLUGINFINITY_` keys are reserved for the
512
501
  * variables the build injects.
@@ -569,8 +558,6 @@ export declare const McpServers: Schema.$Record<Schema.String, Schema.Union<read
569
558
  readonly url: Schema.String;
570
559
  readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
571
560
  }>]>>;
572
- //#endregion
573
- //#region src/monitors.d.ts
574
561
  /**
575
562
  * A monitor's name: kebab-case, the key it is written under.
576
563
  *
@@ -648,8 +635,6 @@ export declare const Monitors: Schema.$Record<Schema.String, Schema.Union<readon
648
635
  readonly when: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"always">, Schema.String]>>;
649
636
  readonly command: Schema.String;
650
637
  }>]>>;
651
- //#endregion
652
- //#region src/name.d.ts
653
638
  /**
654
639
  * A name every host accepts: kebab-case, lowercase letters and digits
655
640
  * separated by single hyphens.
@@ -657,8 +642,6 @@ export declare const Monitors: Schema.$Record<Schema.String, Schema.Union<readon
657
642
  * @public
658
643
  */
659
644
  export declare const KebabName: Schema.String;
660
- //#endregion
661
- //#region src/target.d.ts
662
645
  /**
663
646
  * The forms a field can be moved into when a host lacks it. The engine owns
664
647
  * one renderer per form.
@@ -960,8 +943,6 @@ export declare const translate: (table: typeof TranslateTable.Type, to?: string)
960
943
  export declare const degrade: (form: DegradeForm) => Degrade;
961
944
  /** @public */
962
945
  export declare const unresolved: (note: string) => Unresolved;
963
- //#endregion
964
- //#region src/version.d.ts
965
946
  /**
966
947
  * The version of `@pluginfinity/core` this build was made from.
967
948
  *
@@ -973,6 +954,5 @@ export declare const unresolved: (note: string) => Unresolved;
973
954
  * @public
974
955
  */
975
956
  export declare const CORE_VERSION: string;
976
- //#endregion
977
957
  export type { AgentField, DegradeForm, HooksFields, LspField, SkillField };
978
958
  //# sourceMappingURL=index.d.ts.map
package/lsp.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { ServerEnv } from "./mcp.js";
2
2
  import { Schema } from "effect";
3
3
 
4
- //#region src/lsp.ts
4
+ // src/lsp.ts
5
5
  const NonNegativeInt = Schema.Number.check(Schema.isInt(), Schema.isGreaterThanOrEqualTo(0));
6
6
  /**
7
7
  * One LSP server, in Claude Code's `.lsp.json` server shape. `${PLUGIN_ROOT}`
@@ -49,5 +49,4 @@ const LSP_FIELDS = [
49
49
  "diagnostics"
50
50
  ];
51
51
 
52
- //#endregion
53
52
  export { LSP_FIELDS, LspServer, LspServers };
package/mcp.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Schema } from "effect";
2
2
 
3
- //#region src/mcp.ts
3
+ // src/mcp.ts
4
4
  /**
5
5
  * A server's environment. `PLUGINFINITY_` keys are reserved for the
6
6
  * variables the build injects.
@@ -44,5 +44,4 @@ const McpServer = Schema.Union([StdioMcpServer, RemoteMcpServer]);
44
44
  */
45
45
  const McpServers = Schema.Record(Schema.String, McpServer);
46
46
 
47
- //#endregion
48
47
  export { McpServer, McpServers, RemoteMcpServer, ServerEnv, StdioMcpServer };
package/monitors.js CHANGED
@@ -2,7 +2,7 @@ import { PluginRelativePath } from "./hooks.js";
2
2
  import { KebabName } from "./name.js";
3
3
  import { Schema } from "effect";
4
4
 
5
- //#region src/monitors.ts
5
+ // src/monitors.ts
6
6
  /**
7
7
  * A monitor's name: kebab-case, the key it is written under.
8
8
  *
@@ -61,5 +61,4 @@ const MonitorEntry = Schema.Union([ScriptMonitor, CommandMonitor]);
61
61
  */
62
62
  const Monitors = Schema.Record(MonitorName, MonitorEntry);
63
63
 
64
- //#endregion
65
64
  export { CommandMonitor, MonitorEntry, MonitorName, MonitorWhen, Monitors, ScriptMonitor };
package/name.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Schema } from "effect";
2
2
 
3
- //#region src/name.ts
3
+ // src/name.ts
4
4
  /**
5
5
  * A name every host accepts: kebab-case, lowercase letters and digits
6
6
  * separated by single hyphens.
@@ -9,5 +9,4 @@ import { Schema } from "effect";
9
9
  */
10
10
  const KebabName = Schema.String.check(Schema.isPattern(/^[a-z0-9]+(?:-[a-z0-9]+)*$/, { message: "must be kebab-case: lowercase letters and digits separated by single hyphens" }));
11
11
 
12
- //#endregion
13
12
  export { KebabName };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pluginfinity/core",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "private": false,
5
5
  "description": "The pluginfinity domain model: the host-neutral plugin source, the Target capability schema and the pluginfinity config shape. Platform-free.",
6
6
  "keywords": [
@@ -34,7 +34,7 @@
34
34
  "./package.json": "./package.json"
35
35
  },
36
36
  "peerDependencies": {
37
- "effect": "^4.0.0"
37
+ "effect": "~4.1.1"
38
38
  },
39
39
  "engines": {
40
40
  "node": ">=24.11.0"
package/target.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Schema } from "effect";
2
2
 
3
- //#region src/target.ts
3
+ // src/target.ts
4
4
  /**
5
5
  * The forms a field can be moved into when a host lacks it. The engine owns
6
6
  * one renderer per form.
@@ -304,5 +304,4 @@ const degrade = (form) => Degrade.make({ form });
304
304
  /** @public */
305
305
  const unresolved = (note) => Unresolved.make({ note });
306
306
 
307
- //#endregion
308
307
  export { Absent, DEGRADE_FORMS, Degrade, DegradeForm, Drop, EventMapping, FieldMapEntry, HOOKS_FORMATS, HooksFormat, InFile, InManifest, Keep, LSP_FORMATS, LspFormat, MANIFEST_FORMATS, MCP_FORMATS, ManifestFormat, McpFormat, Rename, RootSpelling, ServerPlacement, Target, ToolMapping, Translate, TranslateTable, Unresolved, ValueMapping, absent, degrade, drop, inFile, inManifest, keep, rename, translate, unresolved };
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.59.1"
8
+ "packageVersion": "7.60.0"
9
9
  }
10
10
  ]
11
11
  }
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/version.ts
1
+ // src/version.ts
2
2
  /**
3
3
  * The version of `@pluginfinity/core` this build was made from.
4
4
  *
@@ -9,7 +9,6 @@
9
9
  *
10
10
  * @public
11
11
  */
12
- const CORE_VERSION = "0.3.0";
12
+ const CORE_VERSION = "0.3.1";
13
13
 
14
- //#endregion
15
14
  export { CORE_VERSION };