tribunal-kit 4.0.0 → 4.0.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.
@@ -142,16 +142,16 @@ function compareSemver(a, b) {
142
142
  }
143
143
 
144
144
  /**
145
- * Fetch the latest version from GitHub Releases.
146
- * Returns the version string (e.g. '2.4.0') or null on failure.
145
+ * Fetch the latest version from npm registry.
146
+ * Returns the version string (e.g. '4.0.0') or null on failure.
147
147
  */
148
148
  function fetchLatestVersion() {
149
149
  return new Promise((resolve) => {
150
150
  const req = https.get(
151
- 'https://api.github.com/repos/Harmitx7/tribunal-kit/releases/latest',
151
+ 'https://registry.npmjs.org/tribunal-kit/latest',
152
152
  {
153
153
  headers: {
154
- 'Accept': 'application/vnd.github.v3+json',
154
+ 'Accept': 'application/json',
155
155
  'User-Agent': `tribunal-kit/${CURRENT_VERSION}`
156
156
  },
157
157
  timeout: 5000
@@ -162,8 +162,7 @@ function fetchLatestVersion() {
162
162
  res.on('end', () => {
163
163
  try {
164
164
  const json = JSON.parse(data);
165
- // GitHub tags usually have a 'v' prefix (e.g., 'v2.4.0')
166
- const version = json.tag_name ? json.tag_name.replace(/^v/, '') : null;
165
+ const version = json.version || null;
167
166
  resolve(version);
168
167
  } catch {
169
168
  resolve(null);
@@ -207,9 +206,9 @@ async function autoUpdateCheck(originalArgs) {
207
206
  log('');
208
207
 
209
208
  try {
210
- // Build the command pulling directly from GitHub
209
+ // Build the command pulling from npm registry
211
210
  const args = originalArgs.join(' ');
212
- const cmd = `npx -y github:Harmitx7/tribunal-kit#v${latestVersion} ${args}`;
211
+ const cmd = `npx -y tribunal-kit@${latestVersion} ${args}`;
213
212
 
214
213
  execSync(cmd, {
215
214
  stdio: 'inherit',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tribunal-kit",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "description": "Anti-Hallucination AI Agent Kit — 34 specialist agents, 26 slash commands, Swarm/Supervisor engine, and Supreme Court Tribunal review pipeline.",
5
5
  "keywords": [
6
6
  "ai",
@@ -70,5 +70,8 @@
70
70
  "collectCoverageFrom": [
71
71
  "bin/**/*.js"
72
72
  ]
73
+ },
74
+ "dependencies": {
75
+ "tribunal-kit": "^4.0.0"
73
76
  }
74
77
  }