pi-profile-switch 0.4.0 → 0.4.2
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/README.md +0 -1
- package/README.zh-CN.md +0 -1
- package/package.json +6 -2
- package/schemas/profiles.schema.json +1 -1
- package/src/profile-catalog.ts +2 -2
package/README.md
CHANGED
|
@@ -58,7 +58,6 @@ In the TUI, the `/profile` command family manages everything in-session:
|
|
|
58
58
|
| `/profile list` / `/profile status` | Show profiles / active profile details |
|
|
59
59
|
| `/profile use <name>` / `/profile reload` | Switch / reload without restarting (rollback on failure) |
|
|
60
60
|
| `/profile create\|edit\|delete\|duplicate` | Guided profile CRUD (TUI only) |
|
|
61
|
-
| `/profile resource create\|edit\|delete` | Guided resource overrides |
|
|
62
61
|
| `/profile customize` / `/profile reset` | Narrow the active profile for this session only |
|
|
63
62
|
| `/mcp enable\|disable <server>` | Toggle MCP servers in the active profile |
|
|
64
63
|
|
package/README.zh-CN.md
CHANGED
|
@@ -58,7 +58,6 @@ Profile 只**引用**资源,从不复制资源。已安装的包和标准目
|
|
|
58
58
|
| `/profile list` / `/profile status` | 列出 profile / 查看活动 profile 详情 |
|
|
59
59
|
| `/profile use <name>` / `/profile reload` | 会话内切换 / 重载(失败自动回滚) |
|
|
60
60
|
| `/profile create\|edit\|delete\|duplicate` | 向导式 profile 增删改(仅 TUI) |
|
|
61
|
-
| `/profile resource create\|edit\|delete` | 向导式资源覆盖管理 |
|
|
62
61
|
| `/profile customize` / `/profile reset` | 仅本次会话收窄活动 profile |
|
|
63
62
|
| `/mcp enable\|disable <server>` | 在活动 profile 中开关 MCP server |
|
|
64
63
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-profile-switch",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"description": "Named profiles for Pi: reference skills, extensions, MCP servers, and tools per workflow, switched without restarting.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -11,8 +11,12 @@
|
|
|
11
11
|
"pi"
|
|
12
12
|
],
|
|
13
13
|
"license": "MIT",
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+https://github.com/VincentFF/pi-profile-switch.git"
|
|
17
|
+
},
|
|
14
18
|
"bin": {
|
|
15
|
-
"pi-profile": "
|
|
19
|
+
"pi-profile": "bin/pi-profile.js"
|
|
16
20
|
},
|
|
17
21
|
"pi": {
|
|
18
22
|
"extensions": [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"title": "pi-profile-switch profile catalog",
|
|
4
|
-
"description": "Named profile definitions (global ~/.pi/agent/profiles.json or project .pi/profiles.json). Definitions are complete and self-contained: there is no inheritance field, and resource references are names/globs, never copies. The built-in \"default\" profile must not be defined here.",
|
|
4
|
+
"description": "Named profile definitions (global ~/.pi-profile-switch/profiles.json, legacy fallback ~/.pi/agent/profiles.json; or project .pi/profiles.json). Definitions are complete and self-contained: there is no inheritance field, and resource references are names/globs, never copies. The built-in \"default\" profile must not be defined here.",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"required": [
|
|
7
7
|
"schemaVersion",
|
package/src/profile-catalog.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* ProfileCatalog: reads profile definitions from the global catalog
|
|
3
|
-
* (`<agentDir>/profiles.json`)
|
|
4
|
-
* catalog (`<projectDir>/.pi/profiles.json`).
|
|
3
|
+
* (`~/.pi-profile-switch/profiles.json`, legacy fallback `<agentDir>/profiles.json`)
|
|
4
|
+
* and, for trusted projects, the project catalog (`<projectDir>/.pi/profiles.json`).
|
|
5
5
|
*
|
|
6
6
|
* Invariants:
|
|
7
7
|
* - The built-in `default` profile never exists in either file and cannot be
|