@gitgov/core 1.5.0 → 1.6.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.md CHANGED
@@ -251,6 +251,7 @@ npm test
251
251
  npm run test:coverage # Run tests with coverage report
252
252
 
253
253
  # Build-time schema and type generation
254
+ npm run sync:prompts # Sync agent prompts for npm packaging
254
255
  npm run sync:schemas # Generate JSON schemas from YAML protocols
255
256
  npm run sync:workflow-configs # Sync workflow methodology configurations
256
257
  npm run compile:types # Generate TypeScript types from JSON schemas
@@ -258,7 +259,7 @@ npm run generate:indexes # Generate organized export indexes
258
259
  npm run validate:schemas # Validate all generated schemas
259
260
 
260
261
  # Development workflow
261
- npm run prebuild # Pipeline: sync → compile → generate
262
+ npm run prebuild # Pipeline: sync:prompts → compile:types → generate:indexes
262
263
  npm run build # Clean build with TypeScript compilation
263
264
  npm run clean # Remove dist directory
264
265
  npm run clean:generated # Remove all generated schemas and types
package/dist/src/index.js CHANGED
@@ -6820,14 +6820,22 @@ var ProjectAdapter = class {
6820
6820
  }
6821
6821
  }
6822
6822
  async copyAgentPrompt(gitgovPath) {
6823
- try {
6824
- const sourcePrompt = path.join(ConfigManager.findProjectRoot() || process.cwd(), "docs/gitgov_agent_prompt.md");
6825
- const targetPrompt = path.join(gitgovPath, "gitgov");
6826
- await promises.copyFile(sourcePrompt, targetPrompt);
6827
- console.log(`\u{1F4CB} @gitgov agent prompt copied to .gitgov/gitgov`);
6828
- } catch {
6829
- console.warn("Warning: Could not copy @gitgov agent prompt. Project will work but AI assistant may not have local instructions.");
6823
+ const targetPrompt = path.join(gitgovPath, "gitgov");
6824
+ const potentialSources = [
6825
+ path.join(ConfigManager.findProjectRoot() || process.cwd(), "docs/gitgov_agent_prompt.md"),
6826
+ path.join(__dirname, "../../prompts/gitgov_agent_prompt.md")
6827
+ ];
6828
+ for (const sourcePrompt of potentialSources) {
6829
+ try {
6830
+ await promises.access(sourcePrompt);
6831
+ await promises.copyFile(sourcePrompt, targetPrompt);
6832
+ console.log(`\u{1F4CB} @gitgov agent prompt copied to .gitgov/gitgov`);
6833
+ return;
6834
+ } catch {
6835
+ continue;
6836
+ }
6830
6837
  }
6838
+ console.warn("Warning: Could not copy @gitgov agent prompt. Project will work but AI assistant may not have local instructions.");
6831
6839
  }
6832
6840
  generateProjectId(name) {
6833
6841
  return name.toLowerCase().replace(/[^a-z0-9]/g, "-").replace(/-+/g, "-");