@elvis1513/auto-coding-skill 5.0.3 → 5.0.4

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 CHANGED
@@ -27,10 +27,10 @@ docs/product/
27
27
  ```
28
28
 
29
29
  `docs/ENVIRONMENT.md` is managed shared context and is refreshed on each
30
- `init`/`sync`. It records common endpoints, ports, and local credential variable
31
- names. `docs/PROJECT.md` is project-owned and never overwritten; use it for
32
- project-specific configuration. Keep actual passwords only in the local,
33
- untracked credential source referenced by the environment document.
30
+ `init`/`sync`. It records common endpoints and ports without empty project
31
+ credential fields. `docs/PROJECT.md` is project-owned and never overwritten;
32
+ use it for project-specific configuration and project-approved credential
33
+ records.
34
34
 
35
35
  Only `AGENTS.md` and `docs/ENVIRONMENT.md` are refreshed by later `init` or
36
36
  `sync` runs. Project documents are created only when missing and are never
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schema_version": 2,
3
- "skill_version": "5.0.3",
3
+ "skill_version": "5.0.4",
4
4
  "asset_files": [
5
5
  {
6
6
  "path": "SKILL.md",
@@ -8,11 +8,11 @@
8
8
  },
9
9
  {
10
10
  "path": "data/templates/ENVIRONMENT.md",
11
- "sha256": "daf360b44b2bb68315a201de2f82eaf2fce8e6f1e58ceefe91190c6f8916c125"
11
+ "sha256": "480b0f1095138fff10e066e06ee29b306c6fcf7e3722a798767f9dbc09e72017"
12
12
  },
13
13
  {
14
14
  "path": "data/templates/PROJECT.md",
15
- "sha256": "9e6bb774677b5d752453c09f0c22771b3075fc81969e564ee7c12bdc1310b143"
15
+ "sha256": "28a784d979a4cf98607bd812db1f82580838da67cad99b8edc7027d762d8f33d"
16
16
  },
17
17
  {
18
18
  "path": "data/templates/architecture/.gitkeep",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  {
22
22
  "path": "data/templates/bridges/AGENTS.md",
23
- "sha256": "e46deaf34d30690a0f242a2e4c668edc9b213099cb8c37310c90400f6ba5d6d8"
23
+ "sha256": "ba16f25644883f0748cb6fc0016cb14f1825cc08c505d671e627d1a1455da8f1"
24
24
  },
25
25
  {
26
26
  "path": "data/templates/deployment/.gitkeep",
@@ -16,7 +16,6 @@ It contains only common endpoints, ports, and credential lookup guidance.
16
16
 
17
17
  ## Credential lookup
18
18
 
19
- Actual usernames and passwords are not stored in this document or any tracked
20
- project documentation. Read them only from the local, untracked credential source
21
- referenced by `docs/PROJECT.md`. Do not copy credentials into a repository, chat
22
- transcript, build log, or deployment artifact.
19
+ Actual usernames and passwords are project-specific information. Read them from
20
+ the credential records in `docs/PROJECT.md`; this managed environment document
21
+ intentionally contains no blank or project-specific credential fields.
@@ -4,8 +4,9 @@
4
4
  > create it only when missing and never overwrite it.
5
5
 
6
6
  Record only durable, project-specific information that helps later development
7
- or diagnosis. Do not put plaintext passwords, tokens, private keys, or other
8
- credentials here; use the local credential source reference below.
7
+ or diagnosis. This project-owned document may contain project-approved plaintext
8
+ usernames and passwords for development and diagnosis. Keep each credential next
9
+ to its system, address, and purpose; do not echo it in chat or logs.
9
10
 
10
11
  ## Project services and ports
11
12
 
@@ -16,8 +17,7 @@ credentials here; use the local credential source reference below.
16
17
  ## Shared-access overrides
17
18
 
18
19
  - Backend host or URL:
19
- - Local credential source path:
20
- - Required credential variable names:
20
+ - Credential records:
21
21
  - Access constraints:
22
22
 
23
23
  ## Runtime and operations
@@ -46,9 +46,8 @@ of creating parallel summaries.
46
46
 
47
47
  `docs/ENVIRONMENT.md` is shared managed context: it names endpoint ports and
48
48
  credential lookup guidance, but never contains plaintext credentials. Project
49
- specific configuration belongs in `docs/PROJECT.md`; it may name the local,
50
- untracked credential source and required variable names, but never stores the
51
- values. It is preserved across Skill upgrades. Never invent credentials, copy
52
- them into chat output, or expose them in logs.
49
+ specific configuration belongs in `docs/PROJECT.md`; it is preserved across
50
+ Skill upgrades and may hold project-approved plaintext credential records. Never
51
+ invent credentials, copy them into chat output, or expose them in logs.
53
52
 
54
53
  <!-- auto-coding-skill:managed-agents:end -->
package/cli/src/index.js CHANGED
@@ -100,54 +100,18 @@ function stripLegacyAccessConfiguration(text) {
100
100
  return text.replace(/\n?## Migrated access configuration\s*\n```yaml\n[\s\S]*?\n```\s*/g, "\n").trim();
101
101
  }
102
102
 
103
- function stripCredentialMaterial(text) {
104
- const lines = stripLegacyAccessConfiguration(text).split(/\r?\n/);
105
- const output = [];
106
- let noted = false;
107
- const note = () => {
108
- if (!noted) output.push("> Credential values are local-only; see the credential source reference below.");
109
- noted = true;
110
- };
111
- for (let index = 0; index < lines.length; index += 1) {
112
- const line = lines[index];
113
- if (/^\|.*\b(password|token|secret|credential|private[ _-]?key)\b/i.test(line)) {
114
- while (index < lines.length && /^\|/.test(lines[index])) index += 1;
115
- index -= 1;
116
- note();
117
- continue;
118
- }
119
- if (/^```/.test(line)) {
120
- const block = [line];
121
- while (index + 1 < lines.length) {
122
- index += 1;
123
- block.push(lines[index]);
124
- if (/^```/.test(lines[index])) break;
125
- }
126
- if (block.some(item => /\b(password|token|secret|private[ _-]?key)\b\s*[:=]/i.test(item))) note();
127
- else output.push(...block);
128
- continue;
129
- }
130
- if (/\b(password|token|secret|private[ _-]?key)\b.*(?:[:=]|\|)/i.test(line)) {
131
- note();
132
- continue;
133
- }
134
- output.push(line);
135
- }
136
- return output.join("\n").replace(/\n{3,}/g, "\n\n").trim();
137
- }
138
-
139
103
  function migrateLegacyEnvironment(project) {
140
104
  const previous = readManifest(project);
141
105
  const environment = path.join(project, "docs", "ENVIRONMENT.md");
142
106
  const projectConfig = path.join(project, "docs", "PROJECT.md");
143
107
  if (exists(projectConfig)) {
144
108
  const existing = fs.readFileSync(projectConfig, "utf8");
145
- const cleaned = stripCredentialMaterial(existing);
109
+ const cleaned = stripLegacyAccessConfiguration(existing);
146
110
  if (cleaned !== existing.trim()) fs.writeFileSync(projectConfig, `${cleaned}\n`);
147
111
  return false;
148
112
  }
149
113
  if (!exists(environment) || isManaged(previous, "docs/ENVIRONMENT.md")) return false;
150
- const legacy = stripCredentialMaterial(fs.readFileSync(environment, "utf8"));
114
+ const legacy = stripLegacyAccessConfiguration(fs.readFileSync(environment, "utf8"));
151
115
  if (!legacy) return false;
152
116
  const template = fs.readFileSync(path.join(assetSkill, "data", "templates", "PROJECT.md"), "utf8").trimEnd();
153
117
  mkdirFor(projectConfig);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elvis1513/auto-coding-skill",
3
- "version": "5.0.3",
3
+ "version": "5.0.4",
4
4
  "description": "CLI installer for project-owned engineering constitution, environment, and change-record documentation.",
5
5
  "type": "module",
6
6
  "bin": {