pi-runline 0.33.0 → 0.35.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.
|
@@ -1,19 +1,13 @@
|
|
|
1
1
|
import * as fs from "node:fs";
|
|
2
2
|
import * as path from "node:path";
|
|
3
3
|
import type { ExtensionCommandContext } from "@mariozechner/pi-coding-agent";
|
|
4
|
+
import {
|
|
5
|
+
type ConnectionSchemaField,
|
|
6
|
+
connectionFields,
|
|
7
|
+
type PluginDef,
|
|
8
|
+
} from "runline";
|
|
4
9
|
|
|
5
|
-
type
|
|
6
|
-
type: string;
|
|
7
|
-
required?: boolean;
|
|
8
|
-
description?: string;
|
|
9
|
-
default?: unknown;
|
|
10
|
-
env?: string;
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
type PluginSummary = {
|
|
14
|
-
name: string;
|
|
15
|
-
connectionConfigSchema?: Record<string, ConnectionSchemaField>;
|
|
16
|
-
};
|
|
10
|
+
type PluginSummary = Pick<PluginDef, "name" | "connectionConfigSchema">;
|
|
17
11
|
|
|
18
12
|
type Connection = {
|
|
19
13
|
name: string;
|
|
@@ -80,8 +74,9 @@ export async function promptForCredentials(
|
|
|
80
74
|
const plugin = plugins.find((p) => p.name === name);
|
|
81
75
|
if (!plugin) continue;
|
|
82
76
|
|
|
83
|
-
|
|
84
|
-
|
|
77
|
+
// Legacy field maps and TypeBox objects both read as named fields.
|
|
78
|
+
const schema = connectionFields(plugin.connectionConfigSchema);
|
|
79
|
+
if (Object.keys(schema).length === 0) continue; // no creds needed
|
|
85
80
|
|
|
86
81
|
if (!force && connectionFor(connections, name)) continue; // already configured
|
|
87
82
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-runline",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.35.0",
|
|
4
4
|
"description": "Code mode for pi",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"keywords": [
|
|
@@ -18,11 +18,12 @@
|
|
|
18
18
|
"scripts": {
|
|
19
19
|
"build": "echo 'no build'",
|
|
20
20
|
"test": "echo 'no tests'",
|
|
21
|
+
"typecheck": "tsc",
|
|
21
22
|
"lint": "biome check extensions/",
|
|
22
23
|
"lint:fix": "biome check --write extensions/"
|
|
23
24
|
},
|
|
24
25
|
"dependencies": {
|
|
25
|
-
"runline": "0.
|
|
26
|
+
"runline": "0.35.0"
|
|
26
27
|
},
|
|
27
28
|
"peerDependencies": {
|
|
28
29
|
"@mariozechner/pi-coding-agent": "*",
|
|
@@ -30,5 +31,9 @@
|
|
|
30
31
|
"@sinclair/typebox": "*"
|
|
31
32
|
},
|
|
32
33
|
"author": "michaelliv",
|
|
33
|
-
"license": "MIT"
|
|
34
|
+
"license": "MIT",
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@types/node": "^25.5.0",
|
|
37
|
+
"typescript": "^5.8.0"
|
|
38
|
+
}
|
|
34
39
|
}
|