@clawplays/ospec-cli 0.1.1 → 0.3.0
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.ja.md +290 -0
- package/README.md +211 -469
- package/README.zh-CN.md +211 -469
- package/dist/cli.js +104 -8
- package/dist/commands/DocsCommand.js +3 -2
- package/dist/commands/InitCommand.js +69 -11
- package/dist/commands/SkillCommand.js +41 -19
- package/dist/commands/StatusCommand.js +27 -8
- package/dist/commands/UpdateCommand.js +19 -5
- package/dist/services/ProjectService.js +173 -359
- package/dist/services/templates/ProjectTemplateBuilder.js +4 -10
- package/dist/services/templates/TemplateInputFactory.js +14 -7
- package/dist/utils/subcommandHelp.js +5 -5
- package/package.json +9 -2
- package/scripts/postinstall.js +13 -7
|
@@ -19,7 +19,7 @@ function getDocsHelpText() {
|
|
|
19
19
|
return `
|
|
20
20
|
Docs Commands:
|
|
21
21
|
ospec docs status [path] - show project docs coverage and missing items
|
|
22
|
-
ospec docs generate [path] -
|
|
22
|
+
ospec docs generate [path] - refresh, repair, or backfill the project knowledge layer after initialization
|
|
23
23
|
- does not create business scaffold or docs/project/bootstrap-summary.md
|
|
24
24
|
ospec docs sync-protocol [path] - refresh protocol/AI adopted docs for an existing project
|
|
25
25
|
- affects future work only; does not migrate existing changes
|
|
@@ -36,10 +36,10 @@ Skills Commands:
|
|
|
36
36
|
function getSkillHelpText() {
|
|
37
37
|
return `
|
|
38
38
|
Skill Package Commands:
|
|
39
|
-
ospec skill status [skill-name] [dir] - inspect one Codex OSpec skill
|
|
40
|
-
ospec skill install [skill-name] [dir] - install one Codex OSpec skill
|
|
41
|
-
ospec skill status-claude [skill-name] [dir] - inspect one Claude Code OSpec skill
|
|
42
|
-
ospec skill install-claude [skill-name] [dir] - install one Claude Code OSpec skill
|
|
39
|
+
ospec skill status [skill-name] [dir] - inspect one Codex OSpec skill; managed skills are ospec and ospec-change
|
|
40
|
+
ospec skill install [skill-name] [dir] - install one Codex OSpec skill; managed skills are ospec and ospec-change
|
|
41
|
+
ospec skill status-claude [skill-name] [dir] - inspect one Claude Code OSpec skill; managed skills are ospec and ospec-change
|
|
42
|
+
ospec skill install-claude [skill-name] [dir] - install one Claude Code OSpec skill; managed skills are ospec and ospec-change
|
|
43
43
|
ospec skill help - show skill command help
|
|
44
44
|
`;
|
|
45
45
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clawplays/ospec-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "CLI tool for enforcing ospec workflow",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -20,7 +20,14 @@
|
|
|
20
20
|
"format": "prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"",
|
|
21
21
|
"index:rebuild": "node dist/tools/build-index.js",
|
|
22
22
|
"validate": "node dist/cli/commands/validate.js",
|
|
23
|
-
"release:smoke": "node scripts/release-smoke.js"
|
|
23
|
+
"release:smoke": "node scripts/release-smoke.js",
|
|
24
|
+
"release:sync-version": "node scripts/sync-version.js",
|
|
25
|
+
"release:bump:patch": "npm version patch --no-git-tag-version",
|
|
26
|
+
"release:bump:minor": "npm version minor --no-git-tag-version",
|
|
27
|
+
"release:bump:major": "npm version major --no-git-tag-version",
|
|
28
|
+
"release:check": "npm pack --dry-run",
|
|
29
|
+
"release:publish": "npm publish --access public",
|
|
30
|
+
"version": "npm run release:sync-version"
|
|
24
31
|
},
|
|
25
32
|
"keywords": [
|
|
26
33
|
"ospec",
|
package/scripts/postinstall.js
CHANGED
|
@@ -20,10 +20,14 @@ function shouldSkip() {
|
|
|
20
20
|
return false;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
function getManagedSkillNames() {
|
|
24
|
+
return ['ospec', 'ospec-change'];
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
async function installManagedSkill(provider, skillName) {
|
|
24
28
|
const skillCommand = new SkillCommand();
|
|
25
|
-
const result = await skillCommand.installSkill(provider,
|
|
26
|
-
console.log(`[ospec] installed ${provider} skill: ${result.targetDir}`);
|
|
29
|
+
const result = await skillCommand.installSkill(provider, skillName);
|
|
30
|
+
console.log(`[ospec] installed ${provider} skill ${skillName}: ${result.targetDir}`);
|
|
27
31
|
}
|
|
28
32
|
|
|
29
33
|
async function main() {
|
|
@@ -32,11 +36,13 @@ async function main() {
|
|
|
32
36
|
return;
|
|
33
37
|
}
|
|
34
38
|
|
|
35
|
-
|
|
36
|
-
|
|
39
|
+
for (const skillName of getManagedSkillNames()) {
|
|
40
|
+
await installManagedSkill('codex', skillName);
|
|
41
|
+
await installManagedSkill('claude', skillName);
|
|
42
|
+
}
|
|
37
43
|
} catch (error) {
|
|
38
|
-
console.log(`[ospec]
|
|
39
|
-
console.log('Tip: rerun `npm install -g .` to retry the automatic ospec-change skill sync.');
|
|
44
|
+
console.log(`[ospec] managed skill sync skipped: ${error.message}`);
|
|
45
|
+
console.log('Tip: rerun `npm install -g .` to retry the automatic ospec / ospec-change skill sync.');
|
|
40
46
|
}
|
|
41
47
|
}
|
|
42
48
|
|