@pluginfinity/core 0.1.0 → 0.1.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/index.d.ts +8 -2
- package/package.json +1 -1
- package/target.js +9 -3
- package/version.js +1 -1
package/index.d.ts
CHANGED
|
@@ -514,6 +514,12 @@ declare const Target_base: Schema.Class<Target, Schema.Struct<{
|
|
|
514
514
|
readonly tools: Schema.Struct<{
|
|
515
515
|
readonly names: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, typeof Drop, typeof Unresolved]>>;
|
|
516
516
|
readonly mcp: Schema.String;
|
|
517
|
+
/**
|
|
518
|
+
* What happens to a tool name the table does not list and that is not a
|
|
519
|
+
* Claude MCP name the target can spell: `keep` writes it unchanged, `drop`
|
|
520
|
+
* leaves it out, for a host that has no such tool.
|
|
521
|
+
*/
|
|
522
|
+
readonly unlisted: Schema.Literals<readonly ["keep", "drop"]>;
|
|
517
523
|
}>;
|
|
518
524
|
readonly models: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, typeof Drop, typeof Unresolved]>>;
|
|
519
525
|
readonly efforts: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, typeof Drop, typeof Unresolved]>>;
|
|
@@ -526,8 +532,8 @@ declare const Target_base: Schema.Class<Target, Schema.Struct<{
|
|
|
526
532
|
* so a malformed host description fails when `@pluginfinity/targets` loads.
|
|
527
533
|
* Field maps are typed as string records here; `@pluginfinity/targets` checks
|
|
528
534
|
* their totality over `SKILL_FIELDS` and `AGENT_FIELDS` at compile time and in
|
|
529
|
-
* tests. A tool name absent from `tools.names
|
|
530
|
-
* or `efforts
|
|
535
|
+
* tests. A tool name absent from `tools.names` follows `tools.unlisted`; a value
|
|
536
|
+
* absent from `models` or `efforts` passes through unchanged.
|
|
531
537
|
*
|
|
532
538
|
* @public
|
|
533
539
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pluginfinity/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.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": [
|
package/target.js
CHANGED
|
@@ -124,8 +124,8 @@ const FieldMap = Schema.Record(Schema.String, FieldMapEntry);
|
|
|
124
124
|
* so a malformed host description fails when `@pluginfinity/targets` loads.
|
|
125
125
|
* Field maps are typed as string records here; `@pluginfinity/targets` checks
|
|
126
126
|
* their totality over `SKILL_FIELDS` and `AGENT_FIELDS` at compile time and in
|
|
127
|
-
* tests. A tool name absent from `tools.names
|
|
128
|
-
* or `efforts
|
|
127
|
+
* tests. A tool name absent from `tools.names` follows `tools.unlisted`; a value
|
|
128
|
+
* absent from `models` or `efforts` passes through unchanged.
|
|
129
129
|
*
|
|
130
130
|
* @public
|
|
131
131
|
*/
|
|
@@ -166,7 +166,13 @@ var Target = class extends Schema.Class("Target")({
|
|
|
166
166
|
references: Schema.Struct({ style: Schema.Literals(["path", "prose"]) }),
|
|
167
167
|
tools: Schema.Struct({
|
|
168
168
|
names: Schema.Record(Schema.String, ToolMapping),
|
|
169
|
-
mcp: Schema.String
|
|
169
|
+
mcp: Schema.String,
|
|
170
|
+
/**
|
|
171
|
+
* What happens to a tool name the table does not list and that is not a
|
|
172
|
+
* Claude MCP name the target can spell: `keep` writes it unchanged, `drop`
|
|
173
|
+
* leaves it out, for a host that has no such tool.
|
|
174
|
+
*/
|
|
175
|
+
unlisted: Schema.Literals(["keep", "drop"])
|
|
170
176
|
}),
|
|
171
177
|
models: Schema.Record(Schema.String, ValueMapping),
|
|
172
178
|
efforts: Schema.Record(Schema.String, ValueMapping)
|