@pieai/pro-gov 0.4.6 → 0.4.8
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 +2 -0
- package/assets/portfolio-dashboard/app.css +1 -0
- package/assets/portfolio-dashboard/app.js +66 -0
- package/assets/portfolio-dashboard/index.html +16 -0
- package/assets/starter/AGENTS.template.md +23 -36
- package/cli-guide.md +8 -0
- package/dist/cli.js +542 -19
- package/package.json +9 -4
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="zh-CN">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
|
+
<meta name="color-scheme" content="light" />
|
|
7
|
+
<title>ProjectLens · AI 产品线健康看板</title>
|
|
8
|
+
<link rel="stylesheet" href="./app.css" />
|
|
9
|
+
</head>
|
|
10
|
+
<body>
|
|
11
|
+
<div id="root"></div>
|
|
12
|
+
<noscript>此看板需要 JavaScript 才能读取本地扫描数据。</noscript>
|
|
13
|
+
<script src="./data.js"></script>
|
|
14
|
+
<script src="./app.js"></script>
|
|
15
|
+
</body>
|
|
16
|
+
</html>
|
|
@@ -4,45 +4,32 @@
|
|
|
4
4
|
|
|
5
5
|
<!-- PGS-ROUTER:BEGIN v0.9 -->
|
|
6
6
|
|
|
7
|
-
##
|
|
8
|
-
|
|
9
|
-
`README.md` is the human-facing project introduction. Do not use it as the default AI startup path unless the task is about project positioning, public explanation, or the README itself.
|
|
10
|
-
|
|
11
|
-
1. All Markdown files under `docs/policy/**/*.md`, including files in
|
|
12
|
-
subdirectories and symlinked shared-rule files.
|
|
13
|
-
2. `docs/governance/boundary.md`
|
|
14
|
-
3. The selected agents routing file:
|
|
15
|
-
- `docs/governance/agents-routing/engineering-runtime-v0.9.md`, or
|
|
16
|
-
- `docs/governance/agents-routing/doc-only-v0.9.md`
|
|
17
|
-
4. `docs/reference/execution/current-work.md`
|
|
18
|
-
5. Before non-trivial implementation, debugging, release, architecture, or
|
|
19
|
-
migration work, run `pro-gov learn recall --query "<task summary>"` and read
|
|
20
|
-
any relevant prior-learning hits before changing files.
|
|
21
|
-
|
|
22
|
-
When the task creates, edits, moves, deletes, or governs documentation, also
|
|
23
|
-
read `docs/governance/ssot-v0.9.md`,
|
|
24
|
-
`docs/governance/doc-agent-rules.md`, and `docs/governance/doc-types.md` before
|
|
25
|
-
changing governed files.
|
|
26
|
-
|
|
27
|
-
## Governance
|
|
28
|
-
|
|
29
|
-
- Use doc-gov for governed Markdown.
|
|
30
|
-
- Governed Markdown lives under `docs/**` by default.
|
|
31
|
-
- Product artifacts outside `docs/**` are not governed docs unless this project explicitly opts them in.
|
|
32
|
-
- Before creating docs: `pnpm doc-gov find <topic>`.
|
|
33
|
-
- Before claiming doc work complete, run `pnpm doc-gov router-check`, `pnpm
|
|
34
|
-
doc-gov check`, `pnpm doc-gov scan --check`, `pnpm doc-gov links`, `pnpm
|
|
35
|
-
doc-gov audit`, and `pnpm doc-gov doctor`.
|
|
36
|
-
|
|
37
|
-
## Routing
|
|
7
|
+
## Boundary
|
|
38
8
|
|
|
39
|
-
-
|
|
40
|
-
-
|
|
41
|
-
-
|
|
42
|
-
|
|
9
|
+
- PGS governs this `AGENTS.md` entry and governed Markdown under `docs/**`.
|
|
10
|
+
- Product artifacts outside `docs/**` are not governed docs unless this project explicitly opts them in.
|
|
11
|
+
- `README.md` is the human-facing introduction; read it only for positioning,
|
|
12
|
+
public explanation, or README work.
|
|
13
|
+
- `docs/reference/execution/current-work.md` is the active-work index; read it
|
|
14
|
+
when the task depends on current priorities or in-flight work.
|
|
15
|
+
- This project's adopted profile is `PROFILE_NAME`.
|
|
16
|
+
- Its selected agents routing file is `PROFILE_ROUTE` under
|
|
17
|
+
`docs/governance/agents-routing/`.
|
|
18
|
+
|
|
19
|
+
## Documentation Tasks
|
|
20
|
+
|
|
21
|
+
When the task creates, edits, moves, deletes, or governs documentation, read
|
|
22
|
+
`docs/governance/boundary.md`, `docs/governance/ssot-v0.9.md`,
|
|
23
|
+
`docs/governance/doc-agent-rules.md`, `docs/governance/doc-types.md`, the
|
|
24
|
+
selected agents routing file, and all Markdown under `docs/policy/**/*.md`.
|
|
25
|
+
That policy set includes subdirectories and symlinked shared-rule files; keep
|
|
26
|
+
project AI development policy in `docs/policy/`.
|
|
43
27
|
|
|
44
28
|
<!-- PGS-ROUTER:END -->
|
|
45
29
|
|
|
46
30
|
## Upstream Rule
|
|
47
31
|
|
|
48
|
-
Do not locally invent doc-gov core changes such as new document statuses,
|
|
32
|
+
Do not locally invent doc-gov core changes such as new document statuses,
|
|
33
|
+
frontmatter schema, lifecycle rules, shared agents-routing rules, or external
|
|
34
|
+
shared-rule placement contracts. Propose them in the Project Governance System
|
|
35
|
+
upstream repository first.
|
package/cli-guide.md
CHANGED
|
@@ -20,6 +20,7 @@ pro-gov portfolio check --config /path/to/portfolio.json
|
|
|
20
20
|
pro-gov portfolio plan --config /path/to/portfolio.json --target web-app --json
|
|
21
21
|
pro-gov portfolio assets-check --config /path/to/portfolio.json --json
|
|
22
22
|
pro-gov portfolio doctor --config /path/to/portfolio.json --json
|
|
23
|
+
pro-gov portfolio ai-health --config /path/to/portfolio.json --out audits/portfolio-ai-health/2026-07-12
|
|
23
24
|
pro-gov learn recall --query "release downstream sync" --target .
|
|
24
25
|
pro-gov learn capture --title "Reusable learning" --summary "Reusable lesson..." --target .
|
|
25
26
|
pro-gov lens inspect --target .
|
|
@@ -71,6 +72,7 @@ pro-gov portfolio check --config /path/to/control-repo/.pro-gov/portfolio.json -
|
|
|
71
72
|
pro-gov portfolio plan --config /path/to/control-repo/.pro-gov/portfolio.json --target web-app --json
|
|
72
73
|
pro-gov portfolio assets-check --config /path/to/control-repo/.pro-gov/portfolio.json --json
|
|
73
74
|
pro-gov portfolio doctor --config /path/to/control-repo/.pro-gov/portfolio.json --json
|
|
75
|
+
pro-gov portfolio ai-health --config /path/to/control-repo/.pro-gov/portfolio.json --out audits/portfolio-ai-health/2026-07-12
|
|
74
76
|
pro-gov assets plan --bundle base-governance --target . --out .pro-gov/asset-plan.json
|
|
75
77
|
pro-gov assets plan --bundle project-lens --target /path/to/project --host codex --placement manual --out /tmp/project-lens-plan.json
|
|
76
78
|
pro-gov assets apply --plan .pro-gov/asset-plan.json
|
|
@@ -89,6 +91,12 @@ Skill placement normally comes from the asset registry. Use `--placement
|
|
|
89
91
|
auto|manual` only as a migration override when deliberately moving an existing
|
|
90
92
|
target.
|
|
91
93
|
|
|
94
|
+
`portfolio ai-health` performs a read-only structural inventory of the control
|
|
95
|
+
plane, execution engine, and registered targets, then writes a fixed local HTML
|
|
96
|
+
dashboard plus JSON evidence to the explicit `--out` directory. It records MCP
|
|
97
|
+
server names and environment filenames, but never reads or emits secret values,
|
|
98
|
+
environment values, MCP commands, arguments, or MCP environment maps.
|
|
99
|
+
|
|
92
100
|
Portfolio manifests are external configuration files owned by a user or
|
|
93
101
|
organization. PGS provides the format and commands; it does not publish a real
|
|
94
102
|
user's private downstream project list. A normal npm user can omit
|