plexus-agent-config 0.0.2 → 0.0.3
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/dist/bin.js +2 -1
- package/dist/bin.js.map +1 -1
- package/package.json +2 -10
- package/vendor/plexus-agent-config-core/package.json +1 -1
- package/vendor/plexus-agent-config-web/.next/BUILD_ID +1 -1
- package/vendor/plexus-agent-config-web/.next/app-path-routes-manifest.json +10 -10
- package/vendor/plexus-agent-config-web/.next/build-manifest.json +2 -2
- package/vendor/plexus-agent-config-web/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/vendor/plexus-agent-config-web/.next/server/app/_global-error.html +1 -1
- package/vendor/plexus-agent-config-web/.next/server/app/_global-error.rsc +1 -1
- package/vendor/plexus-agent-config-web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/vendor/plexus-agent-config-web/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/vendor/plexus-agent-config-web/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
- package/vendor/plexus-agent-config-web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/vendor/plexus-agent-config-web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/vendor/plexus-agent-config-web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/vendor/plexus-agent-config-web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/vendor/plexus-agent-config-web/.next/server/app/about/page_client-reference-manifest.js +1 -1
- package/vendor/plexus-agent-config-web/.next/server/app/agents/[id]/page_client-reference-manifest.js +1 -1
- package/vendor/plexus-agent-config-web/.next/server/app/api/debug/route.js +1 -1
- package/vendor/plexus-agent-config-web/.next/server/app/backups/page_client-reference-manifest.js +1 -1
- package/vendor/plexus-agent-config-web/.next/server/app/debug/page.js +1 -1
- package/vendor/plexus-agent-config-web/.next/server/app/debug/page_client-reference-manifest.js +1 -1
- package/vendor/plexus-agent-config-web/.next/server/app/mcp/page_client-reference-manifest.js +1 -1
- package/vendor/plexus-agent-config-web/.next/server/app/mirror/page_client-reference-manifest.js +1 -1
- package/vendor/plexus-agent-config-web/.next/server/app/page_client-reference-manifest.js +1 -1
- package/vendor/plexus-agent-config-web/.next/server/app/rules/page_client-reference-manifest.js +1 -1
- package/vendor/plexus-agent-config-web/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/vendor/plexus-agent-config-web/.next/server/app/skills/page_client-reference-manifest.js +1 -1
- package/vendor/plexus-agent-config-web/.next/server/app/spread/page_client-reference-manifest.js +1 -1
- package/vendor/plexus-agent-config-web/.next/server/app/team/page_client-reference-manifest.js +1 -1
- package/vendor/plexus-agent-config-web/.next/server/app-paths-manifest.json +10 -10
- package/vendor/plexus-agent-config-web/.next/server/chunks/620.js +1 -1
- package/vendor/plexus-agent-config-web/.next/server/middleware-build-manifest.js +1 -1
- package/vendor/plexus-agent-config-web/.next/server/pages/500.html +1 -1
- package/vendor/plexus-agent-config-web/.next/static/chunks/app/{layout-2d0506b46622a8c9.js → layout-c148ba3a96b46ad6.js} +1 -1
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/agents/adapters/base.d.ts +38 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/agents/adapters/base.d.ts.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/agents/adapters/base.js +125 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/agents/adapters/base.js.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/agents/adapters/codex.d.ts +9 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/agents/adapters/codex.d.ts.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/agents/adapters/codex.js +96 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/agents/adapters/codex.js.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/agents/adapters/index.d.ts +8 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/agents/adapters/index.d.ts.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/agents/adapters/index.js +12 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/agents/adapters/index.js.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/agents/adapters/json-mcp.d.ts +25 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/agents/adapters/json-mcp.d.ts.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/agents/adapters/json-mcp.js +182 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/agents/adapters/json-mcp.js.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/agents/catalog.d.ts +15 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/agents/catalog.d.ts.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/agents/catalog.js +153 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/agents/catalog.js.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/agents/detect.d.ts +14 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/agents/detect.d.ts.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/agents/detect.js +92 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/agents/detect.js.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/agents/index.d.ts +5 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/agents/index.d.ts.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/agents/index.js +5 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/agents/index.js.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/agents/inspect.d.ts +74 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/agents/inspect.d.ts.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/agents/inspect.js +169 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/agents/inspect.js.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/backup/index.d.ts +70 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/backup/index.d.ts.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/backup/index.js +258 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/backup/index.js.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/debug/index.d.ts +71 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/debug/index.d.ts.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/debug/index.js +263 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/debug/index.js.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/effective/index.d.ts +65 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/effective/index.d.ts.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/effective/index.js +227 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/effective/index.js.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/import/from-agents.d.ts +59 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/import/from-agents.d.ts.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/import/from-agents.js +212 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/import/from-agents.js.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/import/index.d.ts +26 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/import/index.d.ts.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/import/index.js +100 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/import/index.js.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/index.d.ts +12 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/index.d.ts.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/index.js +12 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/index.js.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/rules/index.d.ts +6 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/rules/index.d.ts.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/rules/index.js +292 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/rules/index.js.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/spread/index.d.ts +38 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/spread/index.d.ts.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/spread/index.js +190 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/spread/index.js.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/store/config.d.ts +5 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/store/config.d.ts.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/store/config.js +62 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/store/config.js.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/store/custom-agents.d.ts +45 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/store/custom-agents.d.ts.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/store/custom-agents.js +103 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/store/custom-agents.js.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/store/fs-utils.d.ts +16 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/store/fs-utils.d.ts.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/store/fs-utils.js +45 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/store/fs-utils.js.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/store/index.d.ts +9 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/store/index.d.ts.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/store/index.js +9 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/store/index.js.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/store/mcp.d.ts +5 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/store/mcp.d.ts.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/store/mcp.js +30 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/store/mcp.js.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/store/merge.d.ts +15 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/store/merge.d.ts.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/store/merge.js +28 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/store/merge.js.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/store/paths.d.ts +22 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/store/paths.d.ts.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/store/paths.js +107 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/store/paths.js.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/store/rules.d.ts +12 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/store/rules.d.ts.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/store/rules.js +32 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/store/rules.js.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/store/scaffolding.d.ts +11 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/store/scaffolding.d.ts.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/store/scaffolding.js +32 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/store/scaffolding.js.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/store/skills.d.ts +13 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/store/skills.d.ts.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/store/skills.js +84 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/store/skills.js.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/sync/index.d.ts +89 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/sync/index.d.ts.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/sync/index.js +423 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/sync/index.js.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/team/git.d.ts +23 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/team/git.d.ts.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/team/git.js +132 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/team/git.js.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/team/index.d.ts +2 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/team/index.d.ts.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/team/index.js +2 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/team/index.js.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/types.d.ts +142 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/types.d.ts.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/types.js +13 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/types.js.map +1 -0
- package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/package.json +29 -0
- package/vendor/plexus-agent-config-web/package.json +1 -1
- /package/vendor/plexus-agent-config-web/.next/static/{FKr7yvzxSzNS1oAjTyP1N → cYvZNrsyPRNUjzvxkVMIa}/_buildManifest.js +0 -0
- /package/vendor/plexus-agent-config-web/.next/static/{FKr7yvzxSzNS1oAjTyP1N → cYvZNrsyPRNUjzvxkVMIa}/_ssgManifest.js +0 -0
package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/team/git.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"git.d.ts","sourceRoot":"","sources":["../../src/team/git.ts"],"names":[],"mappings":"AA+BA,MAAM,WAAW,iBAAiB;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,UAAU;IACzB,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,iBAAiB,CAAC;CAC7B;AAeD,wBAAsB,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC;IAAE,EAAE,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC,CAoCzF;AAED,wBAAsB,QAAQ,IAAI,OAAO,CAAC;IAAE,EAAE,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC,CAW1E;AAED,wBAAsB,UAAU,IAAI,OAAO,CAAC,UAAU,CAAC,CA4CtD"}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { execFile } from "node:child_process";
|
|
2
|
+
import fs from "node:fs/promises";
|
|
3
|
+
import { promisify } from "node:util";
|
|
4
|
+
import { readConfig, writeConfig } from "../store/config.js";
|
|
5
|
+
import { pathExists } from "../store/fs-utils.js";
|
|
6
|
+
import { readMCP } from "../store/mcp.js";
|
|
7
|
+
import { PLEXUS_PATHS } from "../store/paths.js";
|
|
8
|
+
import { readRules } from "../store/rules.js";
|
|
9
|
+
import { readSkills } from "../store/skills.js";
|
|
10
|
+
const exec = promisify(execFile);
|
|
11
|
+
/**
|
|
12
|
+
* Team subscription helpers.
|
|
13
|
+
*
|
|
14
|
+
* MVP: a team's source of truth lives in a Git repo. We `git clone` it into
|
|
15
|
+
* `~/.config/plexus/team/` and then `git pull` to refresh.
|
|
16
|
+
*
|
|
17
|
+
* A team repo MUST follow this layout (same as the personal layer):
|
|
18
|
+
* <repo>/
|
|
19
|
+
* ├── mcp/servers.yaml
|
|
20
|
+
* └── skills/<id>/SKILL.md
|
|
21
|
+
*
|
|
22
|
+
* `propose-to-team` is intentionally NOT implemented in the MVP CLI; the web
|
|
23
|
+
* dashboard will guide users through opening a PR via GitHub web UI.
|
|
24
|
+
*/
|
|
25
|
+
async function isGitRepo(dir) {
|
|
26
|
+
return pathExists(`${dir}/.git`);
|
|
27
|
+
}
|
|
28
|
+
async function readTeamSummary() {
|
|
29
|
+
const [mcp, skills, rules] = await Promise.all([
|
|
30
|
+
readMCP("team"),
|
|
31
|
+
readSkills("team"),
|
|
32
|
+
readRules("team"),
|
|
33
|
+
]);
|
|
34
|
+
return {
|
|
35
|
+
mcp: mcp.length,
|
|
36
|
+
skills: skills.length,
|
|
37
|
+
rules: rules !== null,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export async function joinTeam(repoUrl) {
|
|
41
|
+
const teamDir = PLEXUS_PATHS.team;
|
|
42
|
+
if (await pathExists(teamDir)) {
|
|
43
|
+
if (await isGitRepo(teamDir)) {
|
|
44
|
+
try {
|
|
45
|
+
const { stdout } = await exec("git", ["-C", teamDir, "remote", "get-url", "origin"]);
|
|
46
|
+
const current = stdout.trim();
|
|
47
|
+
if (current !== repoUrl) {
|
|
48
|
+
return {
|
|
49
|
+
ok: false,
|
|
50
|
+
message: `Team layer already subscribed to ${current}. Run 'plexus leave' first.`,
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
await exec("git", ["-C", teamDir, "pull", "--ff-only"]);
|
|
54
|
+
const cfg = await readConfig();
|
|
55
|
+
cfg.teamRepo = repoUrl;
|
|
56
|
+
await writeConfig(cfg);
|
|
57
|
+
return { ok: true, message: "Team layer refreshed." };
|
|
58
|
+
}
|
|
59
|
+
catch (err) {
|
|
60
|
+
return { ok: false, message: `Git pull failed: ${err.message}` };
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
const backup = `${teamDir}.plexus-backup-${Date.now()}`;
|
|
64
|
+
await fs.rename(teamDir, backup);
|
|
65
|
+
}
|
|
66
|
+
try {
|
|
67
|
+
await exec("git", ["clone", repoUrl, teamDir]);
|
|
68
|
+
const cfg = await readConfig();
|
|
69
|
+
cfg.teamRepo = repoUrl;
|
|
70
|
+
await writeConfig(cfg);
|
|
71
|
+
return { ok: true, message: `Cloned team repo to ${teamDir}.` };
|
|
72
|
+
}
|
|
73
|
+
catch (err) {
|
|
74
|
+
return { ok: false, message: `Git clone failed: ${err.message}` };
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
export async function pullTeam() {
|
|
78
|
+
const teamDir = PLEXUS_PATHS.team;
|
|
79
|
+
if (!(await isGitRepo(teamDir))) {
|
|
80
|
+
return { ok: false, message: "Team layer is not a git repo. Run 'plexus join <url>' first." };
|
|
81
|
+
}
|
|
82
|
+
try {
|
|
83
|
+
await exec("git", ["-C", teamDir, "pull", "--ff-only"]);
|
|
84
|
+
return { ok: true, message: "Team layer up-to-date." };
|
|
85
|
+
}
|
|
86
|
+
catch (err) {
|
|
87
|
+
return { ok: false, message: `Git pull failed: ${err.message}` };
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
export async function teamStatus() {
|
|
91
|
+
const teamDir = PLEXUS_PATHS.team;
|
|
92
|
+
if (!(await isGitRepo(teamDir)))
|
|
93
|
+
return { subscribed: false };
|
|
94
|
+
try {
|
|
95
|
+
const remoteUrl = (await exec("git", ["-C", teamDir, "remote", "get-url", "origin"])).stdout.trim();
|
|
96
|
+
let ahead = 0;
|
|
97
|
+
let behind = 0;
|
|
98
|
+
try {
|
|
99
|
+
await exec("git", ["-C", teamDir, "fetch", "--quiet"]);
|
|
100
|
+
const { stdout } = await exec("git", [
|
|
101
|
+
"-C",
|
|
102
|
+
teamDir,
|
|
103
|
+
"rev-list",
|
|
104
|
+
"--left-right",
|
|
105
|
+
"--count",
|
|
106
|
+
"HEAD...@{upstream}",
|
|
107
|
+
]);
|
|
108
|
+
const [a, b] = stdout
|
|
109
|
+
.trim()
|
|
110
|
+
.split(/\s+/)
|
|
111
|
+
.map((n) => Number.parseInt(n, 10));
|
|
112
|
+
ahead = a || 0;
|
|
113
|
+
behind = b || 0;
|
|
114
|
+
}
|
|
115
|
+
catch {
|
|
116
|
+
// upstream not set or offline; ignore.
|
|
117
|
+
}
|
|
118
|
+
const summary = await readTeamSummary().catch(() => undefined);
|
|
119
|
+
return {
|
|
120
|
+
subscribed: true,
|
|
121
|
+
repoUrl: remoteUrl,
|
|
122
|
+
hasUpstreamUpdate: behind > 0,
|
|
123
|
+
ahead,
|
|
124
|
+
behind,
|
|
125
|
+
summary,
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
catch {
|
|
129
|
+
return { subscribed: false };
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
//# sourceMappingURL=git.js.map
|
package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/team/git.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"git.js","sourceRoot":"","sources":["../../src/team/git.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MA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KAAK,CAAC,KAAK,CAAC;iBACZ,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;YACtC,KAAK,GAAG,CAAC,IAAI,CAAC,CAAC;YACf,MAAM,GAAG,CAAC,IAAI,CAAC,CAAC;QAClB,CAAC;QAAC,MAAM,CAAC;YACP,uCAAuC;QACzC,CAAC;QAED,MAAM,OAAO,GAAG,MAAM,eAAe,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC;QAE/D,OAAO;YACL,UAAU,EAAE,IAAI;YAChB,OAAO,EAAE,SAAS;YAClB,iBAAiB,EAAE,MAAM,GAAG,CAAC;YAC7B,KAAK;YACL,MAAM;YACN,OAAO;SACR,CAAC;IACJ,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC;IAC/B,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/team/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
|
package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/team/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/team/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Plexus core types.
|
|
3
|
+
*
|
|
4
|
+
* The data model is intentionally minimal for MVP:
|
|
5
|
+
* - One central store under ~/.config/plexus/
|
|
6
|
+
* - team/ synced from a team git repo (read-only locally)
|
|
7
|
+
* - personal/ user's local additions (override / supplement team)
|
|
8
|
+
* - config.yaml enable/disable + agent selection
|
|
9
|
+
* - Each item (MCP server or skill) declares which agents it should publish to.
|
|
10
|
+
* - Adapters know how to *apply* the merged store to each agent's native config.
|
|
11
|
+
*/
|
|
12
|
+
export type AgentId = "claude-code" | "cursor" | "codex" | "gemini-cli" | "qwen-code" | "factory-droid";
|
|
13
|
+
export interface AgentDescriptor {
|
|
14
|
+
id: AgentId;
|
|
15
|
+
displayName: string;
|
|
16
|
+
/** Root config directory (e.g. ~/.claude). */
|
|
17
|
+
rootDir: string;
|
|
18
|
+
/** Whether the agent appears to be installed on this machine. */
|
|
19
|
+
installed: boolean;
|
|
20
|
+
/** Resolved capabilities for the current platform. */
|
|
21
|
+
capabilities: AgentCapabilities;
|
|
22
|
+
}
|
|
23
|
+
export interface AgentCapabilities {
|
|
24
|
+
/** Does this agent support MCP servers natively? */
|
|
25
|
+
mcp: boolean;
|
|
26
|
+
/** Does this agent support skills (markdown bundles)? */
|
|
27
|
+
skills: boolean;
|
|
28
|
+
/** Native MCP config file format. */
|
|
29
|
+
mcpFormat: "json" | "toml";
|
|
30
|
+
/** Where the MCP config file lives. */
|
|
31
|
+
mcpPath: string;
|
|
32
|
+
/** Where the skills directory lives. */
|
|
33
|
+
skillsDir: string;
|
|
34
|
+
/**
|
|
35
|
+
* How exclusively does Plexus own the MCP file?
|
|
36
|
+
* - "exclusive": the file's only purpose is mcp config (e.g. ~/.cursor/mcp.json,
|
|
37
|
+
* ~/.factory/mcp.json). Plexus generates a canonical cache file and
|
|
38
|
+
* symlinks the agent's path to that cache. One source of truth.
|
|
39
|
+
* - "shared": the file holds many other unrelated keys (e.g.
|
|
40
|
+
* ~/.claude.json with auth/history/settings, or ~/.codex/config.toml with
|
|
41
|
+
* [profile]/[auth]/[mcp_servers]). Plexus does partial-write — only its
|
|
42
|
+
* own section is rewritten, every other key is preserved verbatim.
|
|
43
|
+
* Defaults to "shared" when omitted.
|
|
44
|
+
*/
|
|
45
|
+
mcpFileMode?: "exclusive" | "shared";
|
|
46
|
+
}
|
|
47
|
+
export interface MCPServerDef {
|
|
48
|
+
/** Stable id, used as the key in mcpServers map. */
|
|
49
|
+
id: string;
|
|
50
|
+
command: string;
|
|
51
|
+
args?: string[];
|
|
52
|
+
env?: Record<string, string>;
|
|
53
|
+
url?: string;
|
|
54
|
+
httpUrl?: string;
|
|
55
|
+
headers?: Record<string, string>;
|
|
56
|
+
/** Free-form description for the dashboard. */
|
|
57
|
+
description?: string;
|
|
58
|
+
/** Layer this item belongs to ("team" or "personal"). */
|
|
59
|
+
layer: ConfigLayer;
|
|
60
|
+
/** Subset of agents this item should publish to. */
|
|
61
|
+
enabledAgents: AgentId[];
|
|
62
|
+
}
|
|
63
|
+
export interface SkillDef {
|
|
64
|
+
/** Stable id, also used as folder name. */
|
|
65
|
+
id: string;
|
|
66
|
+
/** Display name. */
|
|
67
|
+
name: string;
|
|
68
|
+
description?: string;
|
|
69
|
+
/** Raw markdown body of SKILL.md (excluding frontmatter). */
|
|
70
|
+
body: string;
|
|
71
|
+
/** Optional frontmatter passthrough for adapter-specific fields. */
|
|
72
|
+
frontmatter?: Record<string, unknown>;
|
|
73
|
+
layer: ConfigLayer;
|
|
74
|
+
enabledAgents: AgentId[];
|
|
75
|
+
}
|
|
76
|
+
export interface RulesCanonicalStatus {
|
|
77
|
+
exists: boolean;
|
|
78
|
+
/** Effective layer: personal overrides team. */
|
|
79
|
+
layer: ConfigLayer | null;
|
|
80
|
+
path: string | null;
|
|
81
|
+
content: string | null;
|
|
82
|
+
updatedAt?: string;
|
|
83
|
+
}
|
|
84
|
+
export interface RulesTargetStatus {
|
|
85
|
+
agent: AgentId;
|
|
86
|
+
displayName: string;
|
|
87
|
+
targetPath: string;
|
|
88
|
+
installed: boolean;
|
|
89
|
+
enabled: boolean;
|
|
90
|
+
exists: boolean;
|
|
91
|
+
isSymlink: boolean;
|
|
92
|
+
linkTarget?: string;
|
|
93
|
+
inSync: boolean;
|
|
94
|
+
}
|
|
95
|
+
export interface RulesStatus {
|
|
96
|
+
canonical: RulesCanonicalStatus;
|
|
97
|
+
agents: RulesTargetStatus[];
|
|
98
|
+
}
|
|
99
|
+
export interface RulesApplyResult {
|
|
100
|
+
agent: AgentId;
|
|
101
|
+
targetPath: string;
|
|
102
|
+
applied: boolean;
|
|
103
|
+
via?: "symlink" | "copy";
|
|
104
|
+
skipped?: boolean;
|
|
105
|
+
reason?: string;
|
|
106
|
+
backedUp?: string;
|
|
107
|
+
snapshotDir?: string | null;
|
|
108
|
+
error?: string;
|
|
109
|
+
}
|
|
110
|
+
export interface RulesDetachResult {
|
|
111
|
+
agent: AgentId;
|
|
112
|
+
targetPath: string;
|
|
113
|
+
detached: boolean;
|
|
114
|
+
skipped?: boolean;
|
|
115
|
+
reason?: string;
|
|
116
|
+
snapshotDir?: string | null;
|
|
117
|
+
error?: string;
|
|
118
|
+
}
|
|
119
|
+
export type ConfigLayer = "team" | "personal";
|
|
120
|
+
export interface PlexusConfig {
|
|
121
|
+
/** Optional team repo URL (https://github.com/org/repo). */
|
|
122
|
+
teamRepo?: string;
|
|
123
|
+
/** Per-agent enable switch (user can disable an installed agent). */
|
|
124
|
+
agents: Record<AgentId, boolean>;
|
|
125
|
+
/** Sync strategy: symlink (preferred) or copy. */
|
|
126
|
+
syncStrategy: "symlink" | "copy";
|
|
127
|
+
}
|
|
128
|
+
export interface SyncResult {
|
|
129
|
+
agent: AgentId;
|
|
130
|
+
applied: {
|
|
131
|
+
mcp: number;
|
|
132
|
+
skills: number;
|
|
133
|
+
};
|
|
134
|
+
warnings: string[];
|
|
135
|
+
errors: string[];
|
|
136
|
+
}
|
|
137
|
+
export interface SyncReport {
|
|
138
|
+
results: SyncResult[];
|
|
139
|
+
startedAt: string;
|
|
140
|
+
finishedAt: string;
|
|
141
|
+
}
|
|
142
|
+
//# sourceMappingURL=types.d.ts.map
|
package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/types.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;G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,GAAG,IAAI,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,OAAO,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,UAAU,CAAC;AAE9C,MAAM,WAAW,YAAY;IAC3B,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IACjC,kDAAkD;IAClD,YAAY,EAAE,SAAS,GAAG,MAAM,CAAC;CAClC;AAED,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE;QACP,GAAG,EAAE,MAAM,CAAC;QACZ,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Plexus core types.
|
|
3
|
+
*
|
|
4
|
+
* The data model is intentionally minimal for MVP:
|
|
5
|
+
* - One central store under ~/.config/plexus/
|
|
6
|
+
* - team/ synced from a team git repo (read-only locally)
|
|
7
|
+
* - personal/ user's local additions (override / supplement team)
|
|
8
|
+
* - config.yaml enable/disable + agent selection
|
|
9
|
+
* - Each item (MCP server or skill) declares which agents it should publish to.
|
|
10
|
+
* - Adapters know how to *apply* the merged store to each agent's native config.
|
|
11
|
+
*/
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=types.js.map
|
package/vendor/plexus-agent-config-web/node_modules/plexus-agent-config-core/dist/types.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "plexus-agent-config-core",
|
|
3
|
+
"version": "0.0.3",
|
|
4
|
+
"description": "Plexus core: agent detection, MCP/skill store, sync engine, adapters.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"homepage": "https://github.com/miniLV/Plexus#readme",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/miniLV/Plexus.git",
|
|
11
|
+
"directory": "packages/core"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/miniLV/Plexus/issues"
|
|
15
|
+
},
|
|
16
|
+
"main": "dist/index.js",
|
|
17
|
+
"types": "dist/index.d.ts",
|
|
18
|
+
"exports": {
|
|
19
|
+
".": {
|
|
20
|
+
"types": "./dist/index.d.ts",
|
|
21
|
+
"import": "./dist/index.js"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"@iarna/toml": "^2.2.5",
|
|
26
|
+
"yaml": "^2.4.2",
|
|
27
|
+
"zod": "^3.23.4"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
File without changes
|
|
File without changes
|