@pluginfinity/cli 0.3.21 → 0.3.22
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/cli/program.js +2 -2
- package/cli/run.js +1 -1
- package/commands/build.js +4 -4
- package/commands/doctor.js +3 -3
- package/commands/init.js +3 -3
- package/commands/logs.js +4 -4
- package/commands/name.js +2 -2
- package/commands/plugin.js +3 -3
- package/commands/shared.js +2 -2
- package/commands/validate.js +4 -4
- package/main.js +3 -3
- package/package.json +5 -5
- package/state-home.js +1 -1
- package/version.js +1 -1
package/cli/program.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { CliAudience } from "@effected/cli-kit";
|
|
2
|
+
import { Command } from "effect/cli";
|
|
1
3
|
import { buildCommand } from "../commands/build.js";
|
|
2
4
|
import { doctorCommand } from "../commands/doctor.js";
|
|
3
5
|
import { initCommand } from "../commands/init.js";
|
|
4
6
|
import { logsCommand } from "../commands/logs.js";
|
|
5
7
|
import { pluginCommand } from "../commands/plugin.js";
|
|
6
8
|
import { validateCommand } from "../commands/validate.js";
|
|
7
|
-
import { CliAudience } from "@effected/cli-kit";
|
|
8
|
-
import { Command } from "effect/cli";
|
|
9
9
|
|
|
10
10
|
// src/cli/program.ts
|
|
11
11
|
const root = (launch) => Command.make("pluginfinity").pipe(Command.withDescription("Build one agent-plugin source into per-host plugin outputs (Claude Code, GitHub Copilot)"), Command.withSharedFlags(CliAudience.flags()), Command.withSubcommands([
|
package/cli/run.js
CHANGED
package/commands/build.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { buildJson, buildLines } from "../render/build.js";
|
|
2
|
-
import { reportFindings } from "../render/config-error.js";
|
|
3
|
-
import { allFlag, configFlag, pathArgument, targetFlag, toSelection } from "./shared.js";
|
|
4
|
-
import { Command, Flag } from "effect/cli";
|
|
5
1
|
import { Audience } from "@effected/env";
|
|
6
2
|
import { CurrentDistribution } from "@effected/kit";
|
|
7
3
|
import { ENGINE_VERSION, build } from "@pluginfinity/engine";
|
|
8
4
|
import { Console, Effect, Option } from "effect";
|
|
5
|
+
import { Command, Flag } from "effect/cli";
|
|
6
|
+
import { buildJson, buildLines } from "../render/build.js";
|
|
7
|
+
import { reportFindings } from "../render/config-error.js";
|
|
8
|
+
import { allFlag, configFlag, pathArgument, targetFlag, toSelection } from "./shared.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/build.ts
|
|
11
11
|
/** `pluginfinity build [path]`: regenerate `builds/<id>/` from source. */
|
package/commands/doctor.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { doctorJson, doctorLines } from "../render/doctor.js";
|
|
2
|
-
import { allFlag, configFlag, pathArgument, toSelection } from "./shared.js";
|
|
3
1
|
import { CliExit } from "@effected/cli-kit";
|
|
4
|
-
import { Command, Flag } from "effect/cli";
|
|
5
2
|
import { Audience } from "@effected/env";
|
|
6
3
|
import { runDoctor } from "@pluginfinity/engine";
|
|
7
4
|
import { Console, Effect } from "effect";
|
|
5
|
+
import { Command, Flag } from "effect/cli";
|
|
6
|
+
import { doctorJson, doctorLines } from "../render/doctor.js";
|
|
7
|
+
import { allFlag, configFlag, pathArgument, toSelection } from "./shared.js";
|
|
8
8
|
|
|
9
9
|
// src/commands/doctor.ts
|
|
10
10
|
/** `pluginfinity doctor [path]`: report on the environment. */
|
package/commands/init.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { checkPluginName } from "./name.js";
|
|
2
|
-
import { targetFlag } from "./shared.js";
|
|
3
|
-
import { Argument, Command, Flag } from "effect/cli";
|
|
4
1
|
import { NotImplemented } from "@pluginfinity/engine";
|
|
5
2
|
import { Effect } from "effect";
|
|
3
|
+
import { Argument, Command, Flag } from "effect/cli";
|
|
4
|
+
import { checkPluginName } from "./name.js";
|
|
5
|
+
import { targetFlag } from "./shared.js";
|
|
6
6
|
|
|
7
7
|
// src/commands/init.ts
|
|
8
8
|
/** `pluginfinity init [dir]`: create a plugin repository and its first plugin. A stub. */
|
package/commands/logs.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { reportFindings } from "../render/config-error.js";
|
|
2
|
-
import { entryJson, logsJson, logsLines, sectionHeader } from "../render/logs.js";
|
|
3
|
-
import { checkPluginName } from "./name.js";
|
|
4
|
-
import { Command, Flag } from "effect/cli";
|
|
5
1
|
import { Audience } from "@effected/env";
|
|
6
2
|
import { CurrentDistribution } from "@effected/kit";
|
|
7
3
|
import { configPluginNames, listLogPlugins, logRoot, parseLogLine, readLog, readLogFrom } from "@pluginfinity/engine";
|
|
8
4
|
import { Console, Context, Effect, FileSystem, Option, Schedule } from "effect";
|
|
5
|
+
import { Command, Flag } from "effect/cli";
|
|
6
|
+
import { reportFindings } from "../render/config-error.js";
|
|
7
|
+
import { entryJson, logsJson, logsLines, sectionHeader } from "../render/logs.js";
|
|
8
|
+
import { checkPluginName } from "./name.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/logs.ts
|
|
11
11
|
/** A follow that never stops by itself, checking twice a second. */
|
package/commands/name.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CliError } from "effect/cli";
|
|
2
|
-
import { Effect, Schema } from "effect";
|
|
3
1
|
import { PluginName } from "@pluginfinity/core";
|
|
2
|
+
import { Effect, Schema } from "effect";
|
|
3
|
+
import { CliError } from "effect/cli";
|
|
4
4
|
|
|
5
5
|
// src/commands/name.ts
|
|
6
6
|
/** Check a plugin name from the command line: kebab-case, or a usage error naming the flag. */
|
package/commands/plugin.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { checkPluginName } from "./name.js";
|
|
2
|
-
import { targetFlag } from "./shared.js";
|
|
3
|
-
import { Argument, Command, Flag } from "effect/cli";
|
|
4
1
|
import { NotImplemented } from "@pluginfinity/engine";
|
|
5
2
|
import { Effect } from "effect";
|
|
3
|
+
import { Argument, Command, Flag } from "effect/cli";
|
|
4
|
+
import { checkPluginName } from "./name.js";
|
|
5
|
+
import { targetFlag } from "./shared.js";
|
|
6
6
|
|
|
7
7
|
// src/commands/plugin.ts
|
|
8
8
|
/** `pluginfinity plugin add <name>`: add a plugin source. A stub. */
|
package/commands/shared.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Argument, CliError, Flag } from "effect/cli";
|
|
2
|
-
import { Effect, FileSystem, Path } from "effect";
|
|
3
1
|
import { KNOWN_TARGET_IDS } from "@pluginfinity/targets";
|
|
2
|
+
import { Effect, FileSystem, Path } from "effect";
|
|
3
|
+
import { Argument, CliError, Flag } from "effect/cli";
|
|
4
4
|
|
|
5
5
|
// src/commands/shared.ts
|
|
6
6
|
/** `--target <id>`, repeatable. An unknown id is a usage error at parse time. */
|
package/commands/validate.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { validateJson, validateLines } from "../render/build.js";
|
|
2
|
-
import { reportFindings } from "../render/config-error.js";
|
|
3
|
-
import { allFlag, configFlag, pathArgument, targetFlag, toSelection } from "./shared.js";
|
|
4
|
-
import { Command, Flag } from "effect/cli";
|
|
5
1
|
import { Audience } from "@effected/env";
|
|
6
2
|
import { CurrentDistribution } from "@effected/kit";
|
|
7
3
|
import { ENGINE_VERSION, validate } from "@pluginfinity/engine";
|
|
8
4
|
import { Console, Effect, Option } from "effect";
|
|
5
|
+
import { Command, Flag } from "effect/cli";
|
|
6
|
+
import { validateJson, validateLines } from "../render/build.js";
|
|
7
|
+
import { reportFindings } from "../render/config-error.js";
|
|
8
|
+
import { allFlag, configFlag, pathArgument, targetFlag, toSelection } from "./shared.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/validate.ts
|
|
11
11
|
/** `pluginfinity validate [path]`: pluginfinity's own checks, then each host's CLI. */
|
package/main.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import * as NodeRuntime from "@effect/platform-node/NodeRuntime";
|
|
2
|
+
import * as NodeServices from "@effect/platform-node/NodeServices";
|
|
3
|
+
import { Cause, Effect, Exit, Runtime } from "effect";
|
|
1
4
|
import { run } from "./cli/run.js";
|
|
2
5
|
import { CurrentFollow, DEFAULT_FOLLOW } from "./commands/logs.js";
|
|
3
6
|
import { ShellStateXdg, stateHome } from "./state-home.js";
|
|
4
7
|
import { CLI_VERSION } from "./version.js";
|
|
5
|
-
import { Cause, Effect, Exit, Runtime } from "effect";
|
|
6
|
-
import * as NodeRuntime from "@effect/platform-node/NodeRuntime";
|
|
7
|
-
import * as NodeServices from "@effect/platform-node/NodeServices";
|
|
8
8
|
|
|
9
9
|
// src/main.ts
|
|
10
10
|
const exitAfterFlush = (following) => (exit, onExit) => Runtime.defaultTeardown(following() && !Exit.isSuccess(exit) && Cause.hasInterruptsOnly(exit.cause) ? Exit.void : exit, (code) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pluginfinity/cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.22",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The pluginfinity command-line front end. Install the pluginfinity package to get the pluginfinity bin.",
|
|
6
6
|
"keywords": [
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
"./package.json": "./package.json"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@effect/platform-node": "4.1.
|
|
43
|
+
"@effect/platform-node": "4.1.5",
|
|
44
44
|
"@effected/bun": "0.1.0",
|
|
45
|
-
"@effected/cli-kit": "0.30.
|
|
45
|
+
"@effected/cli-kit": "0.30.1",
|
|
46
46
|
"@effected/commands": "0.22.0",
|
|
47
47
|
"@effected/config-file": "0.29.0",
|
|
48
48
|
"@effected/env": "0.12.0",
|
|
@@ -54,9 +54,9 @@
|
|
|
54
54
|
"@effected/walker": "0.30.0",
|
|
55
55
|
"@effected/xdg": "0.22.0",
|
|
56
56
|
"@pluginfinity/core": "0.3.3",
|
|
57
|
-
"@pluginfinity/engine": "0.3.
|
|
57
|
+
"@pluginfinity/engine": "0.3.20",
|
|
58
58
|
"@pluginfinity/targets": "0.3.3",
|
|
59
|
-
"effect": "4.1.
|
|
59
|
+
"effect": "4.1.5",
|
|
60
60
|
"jiti": "^2.6.1"
|
|
61
61
|
},
|
|
62
62
|
"engines": {
|
package/state-home.js
CHANGED