@clawplays/ospec-cli 0.1.1 → 0.2.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.
@@ -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] - explicitly backfill the project knowledge layer after protocol-shell init
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, defaults to ospec-change
40
- ospec skill install [skill-name] [dir] - install one Codex OSpec skill, defaults to ospec-change
41
- ospec skill status-claude [skill-name] [dir] - inspect one Claude Code OSpec skill, defaults to ospec-change
42
- ospec skill install-claude [skill-name] [dir] - install one Claude Code OSpec skill, defaults to ospec-change
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.1.1",
3
+ "version": "0.2.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",
@@ -20,10 +20,14 @@ function shouldSkip() {
20
20
  return false;
21
21
  }
22
22
 
23
- async function installManagedSkill(provider) {
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, 'ospec-change');
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
- await installManagedSkill('codex');
36
- await installManagedSkill('claude');
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] ospec-change skill sync skipped: ${error.message}`);
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