@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 +4 -4
- package/cli/assets/managed-install.json +4 -4
- package/cli/assets/skill/data/templates/ENVIRONMENT.md +3 -4
- package/cli/assets/skill/data/templates/PROJECT.md +4 -4
- package/cli/assets/skill/data/templates/bridges/AGENTS.md +3 -4
- package/cli/src/index.js +2 -38
- package/package.json +1 -1
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
|
|
31
|
-
|
|
32
|
-
project-specific configuration
|
|
33
|
-
|
|
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
|
+
"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": "
|
|
11
|
+
"sha256": "480b0f1095138fff10e066e06ee29b306c6fcf7e3722a798767f9dbc09e72017"
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
14
|
"path": "data/templates/PROJECT.md",
|
|
15
|
-
"sha256": "
|
|
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": "
|
|
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
|
|
20
|
-
|
|
21
|
-
|
|
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.
|
|
8
|
-
|
|
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
|
-
-
|
|
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
|
|
50
|
-
|
|
51
|
-
|
|
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 =
|
|
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 =
|
|
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