sdg-agents 1.0.9 → 1.0.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sdg-agents",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "Structured working protocol and engineering rules for AI agents. Works with Claude Code, Antigravity, Codex, and others.",
5
5
  "type": "module",
6
6
  "main": "./src/engine/bin/index.mjs",
@@ -74,7 +74,9 @@ function getDirname(importMetaUrl) {
74
74
  }
75
75
 
76
76
  function runIfDirect(importMetaUrl, fn) {
77
- if (fileURLToPath(importMetaUrl) === path.resolve(process.argv[1])) {
77
+ const currentFile = fileURLToPath(importMetaUrl);
78
+ const entryFile = fs.realpathSync(path.resolve(process.argv[1]));
79
+ if (currentFile === entryFile) {
78
80
  fn().catch((error) => {
79
81
  if (error.name === 'ExitPromptError') {
80
82
  console.log('\n\n Aborted.\n');