@jeger-ai/opengantry 3.1.0 → 3.1.1

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.
Files changed (115) hide show
  1. package/dist/cli/commands/attest.d.ts +1 -1
  2. package/dist/cli/commands/attest.d.ts.map +1 -1
  3. package/dist/cli/commands/attest.js +11 -10
  4. package/dist/cli/commands/attest.js.map +1 -1
  5. package/dist/cli/commands/check-imports.d.ts.map +1 -1
  6. package/dist/cli/commands/check-imports.js +4 -7
  7. package/dist/cli/commands/check-imports.js.map +1 -1
  8. package/dist/cli/commands/context-feed.d.ts.map +1 -1
  9. package/dist/cli/commands/context-feed.js +7 -10
  10. package/dist/cli/commands/context-feed.js.map +1 -1
  11. package/dist/cli/commands/doctor.d.ts.map +1 -1
  12. package/dist/cli/commands/doctor.js +2 -1
  13. package/dist/cli/commands/doctor.js.map +1 -1
  14. package/dist/cli/commands/metrics.d.ts.map +1 -1
  15. package/dist/cli/commands/metrics.js +5 -8
  16. package/dist/cli/commands/metrics.js.map +1 -1
  17. package/dist/cli/commands/pin.d.ts +6 -0
  18. package/dist/cli/commands/pin.d.ts.map +1 -0
  19. package/dist/cli/commands/pin.js +31 -0
  20. package/dist/cli/commands/pin.js.map +1 -0
  21. package/dist/cli/commands/receipt.d.ts +11 -0
  22. package/dist/cli/commands/receipt.d.ts.map +1 -0
  23. package/dist/cli/commands/receipt.js +45 -0
  24. package/dist/cli/commands/receipt.js.map +1 -0
  25. package/dist/cli/commands/runtime.d.ts +1 -1
  26. package/dist/cli/commands/runtime.d.ts.map +1 -1
  27. package/dist/cli/commands/runtime.js +20 -26
  28. package/dist/cli/commands/runtime.js.map +1 -1
  29. package/dist/cli/commands/scan.d.ts.map +1 -1
  30. package/dist/cli/commands/scan.js +17 -15
  31. package/dist/cli/commands/scan.js.map +1 -1
  32. package/dist/cli/commands/tmvc-guard.d.ts.map +1 -1
  33. package/dist/cli/commands/tmvc-guard.js +8 -15
  34. package/dist/cli/commands/tmvc-guard.js.map +1 -1
  35. package/dist/cli/commands/verify.d.ts.map +1 -1
  36. package/dist/cli/commands/verify.js +1 -6
  37. package/dist/cli/commands/verify.js.map +1 -1
  38. package/dist/cli/lib/attest-mission.d.ts +5 -1
  39. package/dist/cli/lib/attest-mission.d.ts.map +1 -1
  40. package/dist/cli/lib/attest-mission.js +10 -9
  41. package/dist/cli/lib/attest-mission.js.map +1 -1
  42. package/dist/cli/lib/command-boundary.d.ts +18 -0
  43. package/dist/cli/lib/command-boundary.d.ts.map +1 -1
  44. package/dist/cli/lib/command-boundary.js +50 -4
  45. package/dist/cli/lib/command-boundary.js.map +1 -1
  46. package/dist/cli/lib/errors.d.ts +1 -0
  47. package/dist/cli/lib/errors.d.ts.map +1 -1
  48. package/dist/cli/lib/errors.js +3 -0
  49. package/dist/cli/lib/errors.js.map +1 -1
  50. package/dist/cli/lib/gxt-error-codes.d.ts.map +1 -1
  51. package/dist/cli/lib/gxt-error-codes.js +3 -0
  52. package/dist/cli/lib/gxt-error-codes.js.map +1 -1
  53. package/dist/cli/lib/kpi-scan.d.ts.map +1 -1
  54. package/dist/cli/lib/kpi-scan.js +4 -3
  55. package/dist/cli/lib/kpi-scan.js.map +1 -1
  56. package/dist/cli/lib/mcp-attest.d.ts.map +1 -1
  57. package/dist/cli/lib/mcp-attest.js +8 -1
  58. package/dist/cli/lib/mcp-attest.js.map +1 -1
  59. package/dist/cli/lib/mcp-governance-shared.d.ts +2 -0
  60. package/dist/cli/lib/mcp-governance-shared.d.ts.map +1 -1
  61. package/dist/cli/lib/mcp-governance-shared.js +10 -0
  62. package/dist/cli/lib/mcp-governance-shared.js.map +1 -1
  63. package/dist/cli/lib/mcp-pin-mission.d.ts.map +1 -1
  64. package/dist/cli/lib/mcp-pin-mission.js +10 -10
  65. package/dist/cli/lib/mcp-pin-mission.js.map +1 -1
  66. package/dist/cli/lib/mcp-start-orchestration.d.ts.map +1 -1
  67. package/dist/cli/lib/mcp-start-orchestration.js +8 -4
  68. package/dist/cli/lib/mcp-start-orchestration.js.map +1 -1
  69. package/dist/cli/lib/mission-arg.d.ts +18 -0
  70. package/dist/cli/lib/mission-arg.d.ts.map +1 -0
  71. package/dist/cli/lib/mission-arg.js +45 -0
  72. package/dist/cli/lib/mission-arg.js.map +1 -0
  73. package/dist/cli/lib/missions/parser.d.ts +4 -0
  74. package/dist/cli/lib/missions/parser.d.ts.map +1 -1
  75. package/dist/cli/lib/missions/parser.js +16 -0
  76. package/dist/cli/lib/missions/parser.js.map +1 -1
  77. package/dist/cli/lib/receipt-inspect.d.ts +27 -0
  78. package/dist/cli/lib/receipt-inspect.d.ts.map +1 -0
  79. package/dist/cli/lib/receipt-inspect.js +104 -0
  80. package/dist/cli/lib/receipt-inspect.js.map +1 -0
  81. package/dist/cli/lib/verify-context.d.ts +15 -0
  82. package/dist/cli/lib/verify-context.d.ts.map +1 -0
  83. package/dist/cli/lib/verify-context.js +2 -0
  84. package/dist/cli/lib/verify-context.js.map +1 -0
  85. package/dist/cli/lib/verify-options.d.ts +0 -2
  86. package/dist/cli/lib/verify-options.d.ts.map +1 -1
  87. package/dist/cli/lib/verify-options.js +1 -12
  88. package/dist/cli/lib/verify-options.js.map +1 -1
  89. package/dist/cli/lib/verify-payload.d.ts +7 -2
  90. package/dist/cli/lib/verify-payload.d.ts.map +1 -1
  91. package/dist/cli/lib/verify-payload.js +3 -3
  92. package/dist/cli/lib/verify-payload.js.map +1 -1
  93. package/dist/cli/lib/verify-presenters.d.ts +23 -15
  94. package/dist/cli/lib/verify-presenters.d.ts.map +1 -1
  95. package/dist/cli/lib/verify-presenters.js +49 -42
  96. package/dist/cli/lib/verify-presenters.js.map +1 -1
  97. package/dist/cli/lib/verify-run.d.ts +1 -0
  98. package/dist/cli/lib/verify-run.d.ts.map +1 -1
  99. package/dist/cli/lib/verify-run.js +56 -33
  100. package/dist/cli/lib/verify-run.js.map +1 -1
  101. package/dist/cli/lib/version.gen.d.ts +1 -1
  102. package/dist/cli/lib/version.gen.js +1 -1
  103. package/dist/cli/program-core.d.ts.map +1 -1
  104. package/dist/cli/program-core.js +29 -0
  105. package/dist/cli/program-core.js.map +1 -1
  106. package/dist/cli/program-mission.js +1 -1
  107. package/dist/cli/program-mission.js.map +1 -1
  108. package/dist/cli/program-workflow.d.ts.map +1 -1
  109. package/dist/cli/program-workflow.js +3 -3
  110. package/dist/cli/program-workflow.js.map +1 -1
  111. package/package.json +1 -1
  112. package/templates/.gitagent/foreman/SUBSTRATE.version.json +1 -1
  113. package/templates/integrations/compatibility.json +52 -16
  114. package/templates/scripts/gxt-pin-mission.sh +15 -2
  115. package/templates/scripts/gxt-runtime-env.sh +12 -6
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schema_version": "1",
3
- "opengantry_version": "3.1.0",
3
+ "opengantry_version": "3.1.1",
4
4
  "asset_catalog": "integrations/asset-catalog.json",
5
5
  "integrations": {
6
6
  "cursor": {
@@ -13,9 +13,14 @@
13
13
  ".cursor/rules/opengantry-gxt-substrate.mdc",
14
14
  ".cursor/hooks.json"
15
15
  ],
16
- "deprecated_paths": [".cursorrules"],
16
+ "deprecated_paths": [
17
+ ".cursorrules"
18
+ ],
17
19
  "hooks_schema_version": 1,
18
- "cli_probe": ["cursor", "--version"]
20
+ "cli_probe": [
21
+ "cursor",
22
+ "--version"
23
+ ]
19
24
  },
20
25
  "claude-code": {
21
26
  "display_name": "Claude Code",
@@ -23,9 +28,14 @@
23
28
  "docs_url": "https://docs.anthropic.com/en/docs/claude-code",
24
29
  "recipe_file": "claude-code.md",
25
30
  "bootstrap_mode": "shell_wrapper",
26
- "canonical_paths": ["CLAUDE.md"],
31
+ "canonical_paths": [
32
+ "CLAUDE.md"
33
+ ],
27
34
  "deprecated_paths": [],
28
- "cli_probe": ["claude", "--version"]
35
+ "cli_probe": [
36
+ "claude",
37
+ "--version"
38
+ ]
29
39
  },
30
40
  "codex-cli": {
31
41
  "display_name": "OpenAI Codex CLI",
@@ -34,9 +44,15 @@
34
44
  "disambiguation": "OpenAI Codex API (2021-2023) is NOT this product",
35
45
  "recipe_file": "codex-cli.md",
36
46
  "bootstrap_mode": "shell_wrapper",
37
- "canonical_paths": ["AGENTS.md", ".codex/config.toml"],
47
+ "canonical_paths": [
48
+ "AGENTS.md",
49
+ ".codex/config.toml"
50
+ ],
38
51
  "deprecated_paths": [],
39
- "cli_probe": ["codex", "--version"]
52
+ "cli_probe": [
53
+ "codex",
54
+ "--version"
55
+ ]
40
56
  },
41
57
  "opencode": {
42
58
  "display_name": "OpenCode",
@@ -44,9 +60,14 @@
44
60
  "docs_url": "https://opencode.ai/docs",
45
61
  "recipe_file": "opencode.md",
46
62
  "bootstrap_mode": "shell_wrapper",
47
- "canonical_paths": ["opencode.json"],
63
+ "canonical_paths": [
64
+ "opencode.json"
65
+ ],
48
66
  "deprecated_paths": [],
49
- "cli_probe": ["opencode", "--version"]
67
+ "cli_probe": [
68
+ "opencode",
69
+ "--version"
70
+ ]
50
71
  },
51
72
  "junie": {
52
73
  "display_name": "JetBrains Junie",
@@ -54,7 +75,9 @@
54
75
  "docs_url": "https://www.jetbrains.com/junie/",
55
76
  "recipe_file": "junie.md",
56
77
  "bootstrap_mode": "manual_recipe",
57
- "canonical_paths": [".junie/guidelines.md"],
78
+ "canonical_paths": [
79
+ ".junie/guidelines.md"
80
+ ],
58
81
  "deprecated_paths": [],
59
82
  "cli_probe": null
60
83
  },
@@ -64,7 +87,9 @@
64
87
  "docs_url": "https://antigravity.google/",
65
88
  "recipe_file": "antigravity.md",
66
89
  "bootstrap_mode": "manual_recipe",
67
- "canonical_paths": [".agent/rules/gxt.md"],
90
+ "canonical_paths": [
91
+ ".agent/rules/gxt.md"
92
+ ],
68
93
  "deprecated_paths": [],
69
94
  "cli_probe": null
70
95
  },
@@ -74,8 +99,12 @@
74
99
  "docs_url": "https://docs.cline.bot/",
75
100
  "recipe_file": "cline.md",
76
101
  "bootstrap_mode": "manual_recipe",
77
- "canonical_paths": [".clinerules/gxt.md"],
78
- "deprecated_paths": [".cursorrules"],
102
+ "canonical_paths": [
103
+ ".clinerules/gxt.md"
104
+ ],
105
+ "deprecated_paths": [
106
+ ".cursorrules"
107
+ ],
79
108
  "cli_probe": null
80
109
  },
81
110
  "aider": {
@@ -84,9 +113,14 @@
84
113
  "docs_url": "https://aider.chat/docs/",
85
114
  "recipe_file": "aider.md",
86
115
  "bootstrap_mode": "manual_recipe",
87
- "canonical_paths": [".aider.conf.yml"],
116
+ "canonical_paths": [
117
+ ".aider.conf.yml"
118
+ ],
88
119
  "deprecated_paths": [],
89
- "cli_probe": ["aider", "--version"]
120
+ "cli_probe": [
121
+ "aider",
122
+ "--version"
123
+ ]
90
124
  },
91
125
  "openhands": {
92
126
  "display_name": "OpenHands",
@@ -94,7 +128,9 @@
94
128
  "docs_url": "https://docs.all-hands.dev/",
95
129
  "recipe_file": "openhands.md",
96
130
  "bootstrap_mode": "manual_recipe",
97
- "canonical_paths": [".openhands/microagents/gxt.md"],
131
+ "canonical_paths": [
132
+ ".openhands/microagents/gxt.md"
133
+ ],
98
134
  "deprecated_paths": [],
99
135
  "cli_probe": null
100
136
  }
@@ -16,16 +16,29 @@ usage: scripts/gxt-pin-mission.sh .gitagent/missions/<file>.yaml
16
16
  Writes .gitagent/missions/.active-mission (gitignored) for:
17
17
  - scripts/gxt-runtime-env.sh (no arg)
18
18
  - .cursor/hooks/gxt-session-start.sh (new Agent sessions)
19
+
20
+ Prefer: gantry pin <mission> (writes repo-relative path)
19
21
  EOF
20
22
  exit 1
21
23
  fi
22
24
 
23
25
  MISSION="$1"
26
+ if command -v gantry >/dev/null 2>&1; then
27
+ gantry pin "$MISSION"
28
+ exit $?
29
+ fi
30
+
24
31
  if [ ! -f "$MISSION" ]; then
25
32
  echo "gxt-pin-mission: mission file not found: $MISSION" >&2
26
33
  exit 1
27
34
  fi
28
35
 
29
36
  mkdir -p .gitagent/missions
30
- printf '%s\n' "$MISSION" > .gitagent/missions/.active-mission
31
- printf 'Pinned active mission: %s\n' "$MISSION"
37
+ # Repo-relative path (matches gantry pin / pinMissionFile; portable — no GNU realpath)
38
+ if [[ "$MISSION" = /* ]]; then
39
+ MISSION_REL="${MISSION#"$ROOT"/}"
40
+ else
41
+ MISSION_REL="$MISSION"
42
+ fi
43
+ printf '%s\n' "$MISSION_REL" > .gitagent/missions/.active-mission
44
+ printf 'Pinned active mission: %s\n' "$MISSION_REL"
@@ -2,22 +2,29 @@
2
2
  # Load GXT Executor Runtime Contract into the current shell (any IDE terminal / manual runs).
3
3
  set -euo pipefail
4
4
 
5
+ _gxt_runtime_die() {
6
+ echo "$1" >&2
7
+ if [[ "${BASH_SOURCE[0]}" != "${0}" ]]; then
8
+ return 1
9
+ fi
10
+ exit 1
11
+ }
12
+
5
13
  ROOT="$(git rev-parse --show-toplevel 2>/dev/null || true)"
6
14
  if [ -z "$ROOT" ]; then
7
- echo "gxt-runtime-env: not inside a git repository" >&2
8
- exit 1
15
+ _gxt_runtime_die "gxt-runtime-env: not inside a git repository"
9
16
  fi
10
17
  cd "$ROOT"
11
18
 
12
19
  MISSION=""
13
20
  if ! MISSION="$(scripts/gxt-resolve-mission.sh "${1:-}" 2>/dev/null)"; then
14
- cat >&2 <<'EOF'
21
+ _gxt_runtime_die "$(cat <<'EOF'
15
22
  gxt-runtime-env: no mission file resolved.
16
23
  scripts/gxt-pin-mission.sh .gitagent/missions/<file>.yaml
17
24
  source scripts/gxt-runtime-env.sh .gitagent/missions/<file>.yaml
18
25
  export GANTRY_MISSION=.gitagent/missions/<file>.yaml
19
26
  EOF
20
- exit 1
27
+ )"
21
28
  fi
22
29
 
23
30
  if command -v gantry >/dev/null 2>&1; then
@@ -25,8 +32,7 @@ if command -v gantry >/dev/null 2>&1; then
25
32
  elif [ -f "dist/cli/index.js" ]; then
26
33
  eval "$(node dist/cli/index.js runtime env --mission "$MISSION")"
27
34
  else
28
- echo "gxt-runtime-env: gantry not found (npm ci && npm run build)" >&2
29
- exit 1
35
+ _gxt_runtime_die "gxt-runtime-env: gantry not found (npm ci && npm run build)"
30
36
  fi
31
37
 
32
38
  printf 'GXT runtime loaded: mission=%s skill=%s\n' "$GXT_MISSION_FILE" "${GXT_SKILL_KEY:-unknown}"