@pluginfinity/engine 0.3.18 → 0.3.20
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/agents.js +2 -2
- package/component.js +2 -2
- package/discovery.js +2 -2
- package/doctor.js +6 -6
- package/errors.js +1 -1
- package/loader.js +2 -2
- package/logs.js +1 -1
- package/operations.js +4 -4
- package/package.json +4 -4
- package/selection.js +1 -1
- package/skills.js +2 -2
- package/tools.js +1 -1
- package/version.js +1 -1
package/agents.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { AGENT_FIELDS, AgentFrontmatter } from "@pluginfinity/core";
|
|
2
|
+
import { Effect, FileSystem, Path } from "effect";
|
|
1
3
|
import { mapHostBlocks } from "./body.js";
|
|
2
4
|
import { decodeComponent, frontmatterText, invalid, issue, lineIssues, overlayIssues, unknownTargets } from "./component.js";
|
|
3
5
|
import { appendSections, mapFrontmatter } from "./frontmatter.js";
|
|
4
6
|
import { renderTokens } from "./tokens.js";
|
|
5
|
-
import { AGENT_FIELDS, AgentFrontmatter } from "@pluginfinity/core";
|
|
6
|
-
import { Effect, FileSystem, Path } from "effect";
|
|
7
7
|
|
|
8
8
|
// src/agents.ts
|
|
9
9
|
/** Read and decode one agent file. */
|
package/component.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { Yaml } from "@effected/yaml";
|
|
2
|
+
import { Effect, Schema, SchemaIssue } from "effect";
|
|
1
3
|
import { ComponentInvalid, ConfigIssue } from "./errors.js";
|
|
2
4
|
import { splitFrontmatter } from "./frontmatter.js";
|
|
3
|
-
import { Effect, Schema, SchemaIssue } from "effect";
|
|
4
|
-
import { Yaml } from "@effected/yaml";
|
|
5
5
|
|
|
6
6
|
// src/component.ts
|
|
7
7
|
const formatter = SchemaIssue.makeFormatterStandardSchemaV1();
|
package/discovery.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ConfigAmbiguous, ConfigNotFound } from "./errors.js";
|
|
2
|
-
import { Effect, Option, Path } from "effect";
|
|
3
1
|
import { GlobPattern } from "@effected/glob";
|
|
4
2
|
import { Walker, descend } from "@effected/walker";
|
|
3
|
+
import { Effect, Option, Path } from "effect";
|
|
4
|
+
import { ConfigAmbiguous, ConfigNotFound } from "./errors.js";
|
|
5
5
|
|
|
6
6
|
// src/discovery.ts
|
|
7
7
|
/**
|
package/doctor.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ConfigLoader } from "./loader.js";
|
|
2
|
-
import { selectConfigPaths } from "./selection.js";
|
|
3
|
-
import { ENGINE_VERSION } from "./version.js";
|
|
4
|
-
import { Duration, Effect, Option, Path, Result, Schema } from "effect";
|
|
5
|
-
import { TARGETS } from "@pluginfinity/targets";
|
|
6
|
-
import { Walker } from "@effected/walker";
|
|
7
1
|
import { Tool, ToolDiscovery } from "@effected/commands";
|
|
8
2
|
import { CurrentDistribution, DistributionField, Remediation } from "@effected/kit";
|
|
9
3
|
import { SemVer } from "@effected/semver";
|
|
4
|
+
import { Walker } from "@effected/walker";
|
|
10
5
|
import { PackageManagerDetector } from "@effected/workspaces";
|
|
6
|
+
import { TARGETS } from "@pluginfinity/targets";
|
|
7
|
+
import { Duration, Effect, Option, Path, Result, Schema } from "effect";
|
|
8
|
+
import { ConfigLoader } from "./loader.js";
|
|
9
|
+
import { selectConfigPaths } from "./selection.js";
|
|
10
|
+
import { ENGINE_VERSION } from "./version.js";
|
|
11
11
|
|
|
12
12
|
// src/doctor.ts
|
|
13
13
|
/**
|
package/errors.js
CHANGED
package/loader.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ConfigInvalid, ConfigIssue, ConfigLoadFailed, UnknownTarget } from "./errors.js";
|
|
2
1
|
import { BASE_CONFIG_KEYS } from "@pluginfinity/core";
|
|
3
|
-
import { Effect, Path, Schema, SchemaIssue } from "effect";
|
|
4
2
|
import { CONFIG_KEYS, KNOWN_TARGET_IDS, PluginfinityConfig, enabledTargets } from "@pluginfinity/targets";
|
|
3
|
+
import { Effect, Path, Schema, SchemaIssue } from "effect";
|
|
5
4
|
import { createJiti } from "jiti";
|
|
5
|
+
import { ConfigInvalid, ConfigIssue, ConfigLoadFailed, UnknownTarget } from "./errors.js";
|
|
6
6
|
|
|
7
7
|
// src/loader.ts
|
|
8
8
|
const firstLine = (cause) => {
|
package/logs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { Effect, FileSystem, Path } from "effect";
|
|
1
2
|
import { pluginName } from "./manifest.js";
|
|
2
3
|
import { preparePlugins } from "./selection.js";
|
|
3
|
-
import { Effect, FileSystem, Path } from "effect";
|
|
4
4
|
|
|
5
5
|
// src/logs.ts
|
|
6
6
|
const LINE = /^(\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?Z) \[([^\]]*)\] (hook|server|monitor|script)\/([^:]*): (.*)$/;
|
package/operations.js
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import { Run } from "@effected/commands";
|
|
2
|
+
import { KNOWN_TARGET_IDS, TARGETS } from "@pluginfinity/targets";
|
|
3
|
+
import { Effect, FileSystem, Path, Schema } from "effect";
|
|
4
|
+
import { ChildProcess } from "effect/process";
|
|
1
5
|
import { readAgents, renderAgent } from "./agents.js";
|
|
2
6
|
import { isJunk } from "./component.js";
|
|
3
7
|
import { applyEmit, planEmit } from "./emit.js";
|
|
@@ -16,10 +20,6 @@ import { SERVER_LIB_DIR, serverLibFiles } from "./server-lib.js";
|
|
|
16
20
|
import { mcpServerNames, renderServers, serverFiles } from "./servers.js";
|
|
17
21
|
import { readSkills, renderSkill } from "./skills.js";
|
|
18
22
|
import { renderToolMap } from "./tool-map.js";
|
|
19
|
-
import { Effect, FileSystem, Path, Schema } from "effect";
|
|
20
|
-
import { KNOWN_TARGET_IDS, TARGETS } from "@pluginfinity/targets";
|
|
21
|
-
import { Run } from "@effected/commands";
|
|
22
|
-
import { ChildProcess } from "effect/process";
|
|
23
23
|
|
|
24
24
|
// src/operations.ts
|
|
25
25
|
const PackageVersion = Schema.fromJsonString(Schema.Struct({ version: Schema.String }));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pluginfinity/engine",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.20",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The pluginfinity build pipeline shared by every pluginfinity front end: config discovery, read, transform per target, emit and check.",
|
|
6
6
|
"keywords": [
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@effected/commands": "0.22.0",
|
|
38
|
-
"@effected/glob": "0.
|
|
38
|
+
"@effected/glob": "0.23.0",
|
|
39
39
|
"@effected/kit": "0.14.0",
|
|
40
40
|
"@effected/semver": "0.24.0",
|
|
41
|
-
"@effected/walker": "0.
|
|
42
|
-
"@effected/workspaces": "0.48.
|
|
41
|
+
"@effected/walker": "0.30.0",
|
|
42
|
+
"@effected/workspaces": "0.48.2",
|
|
43
43
|
"@effected/yaml": "0.30.0",
|
|
44
44
|
"@pluginfinity/core": "0.3.3",
|
|
45
45
|
"@pluginfinity/targets": "0.3.3",
|
package/selection.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { Effect, FileSystem } from "effect";
|
|
1
2
|
import { ConfigDiscovery } from "./discovery.js";
|
|
2
3
|
import { ConfigNotFound, TargetNotEnabled } from "./errors.js";
|
|
3
4
|
import { ConfigLoader } from "./loader.js";
|
|
4
|
-
import { Effect, FileSystem } from "effect";
|
|
5
5
|
|
|
6
6
|
// src/selection.ts
|
|
7
7
|
/**
|
package/skills.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { ComponentName, SKILL_FIELDS, SkillFrontmatter } from "@pluginfinity/core";
|
|
2
|
+
import { Effect, FileSystem, Path, Schema } from "effect";
|
|
1
3
|
import { mapHostBlocks } from "./body.js";
|
|
2
4
|
import { decodeComponent, frontmatterText, invalid, isJunk, issue, lineIssues, overlayIssues, toLf, unknownTargets } from "./component.js";
|
|
3
5
|
import { ComponentsInvalid } from "./errors.js";
|
|
4
6
|
import { appendSections, mapFrontmatter } from "./frontmatter.js";
|
|
5
7
|
import { renderTokens } from "./tokens.js";
|
|
6
|
-
import { ComponentName, SKILL_FIELDS, SkillFrontmatter } from "@pluginfinity/core";
|
|
7
|
-
import { Effect, FileSystem, Path, Schema } from "effect";
|
|
8
8
|
|
|
9
9
|
// src/skills.ts
|
|
10
10
|
/**
|
package/tools.js
CHANGED