trinity-method-sdk 2.0.3 → 2.0.4

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/CHANGELOG.md CHANGED
@@ -19,6 +19,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
19
19
 
20
20
  ### Security
21
21
 
22
+ ## [2.0.4] - 2026-01-06
23
+
24
+ ### Fixed
25
+
26
+ - **CRITICAL: Update command path resolution** - Fixed `trinity update` to use centralized SDK path resolution
27
+ - Update command was using hardcoded `@trinity-method/sdk` path instead of `trinity-method-sdk`
28
+ - Commands, agents, templates, and knowledge base files now update correctly with global installations
29
+ - Fixed "Commands template path not found, skipping" warning
30
+
22
31
  ## [2.0.3] - 2026-01-06
23
32
 
24
33
  ### Fixed
package/README.md CHANGED
@@ -492,7 +492,7 @@ npm run build
492
492
  npm publish --access public
493
493
 
494
494
  # 3. Create git tag and push
495
- git tag -a v2.0.3 -m "Release v2.0.3"
495
+ git tag -a v2.0.4 -m "Release v2.0.4"
496
496
  git push origin main --follow-tags
497
497
  ```
498
498
 
@@ -98,7 +98,7 @@ export async function deploy(options) {
98
98
  PACKAGE_MANAGER: stack.packageManager || 'npm',
99
99
  BACKEND_FRAMEWORK: stack.framework,
100
100
  CURRENT_DATE: new Date().toISOString(),
101
- TRINITY_VERSION: pkg.version || '2.0.3',
101
+ TRINITY_VERSION: pkg.version || '2.0.4',
102
102
  };
103
103
  // STEP 4: Create directory structure
104
104
  const directoriesCreated = await createDirectories(spinner);
@@ -39,7 +39,7 @@ async function deployRootClaudeMarkdown(templatesPath, variables) {
39
39
  */
40
40
  async function deployVersionFile(pkgVersion) {
41
41
  const versionPath = validatePath('trinity/VERSION');
42
- await fs.writeFile(versionPath, pkgVersion || '2.0.3');
42
+ await fs.writeFile(versionPath, pkgVersion || '2.0.4');
43
43
  return 1;
44
44
  }
45
45
  /**
@@ -24,7 +24,7 @@ export async function installSDK(spinner) {
24
24
  if (!packageJson.dependencies) {
25
25
  packageJson.dependencies = {};
26
26
  }
27
- packageJson.dependencies['trinity-method-sdk'] = '^2.0.3';
27
+ packageJson.dependencies['trinity-method-sdk'] = '^2.0.4';
28
28
  await fs.writeJson(packageJsonPath, packageJson, { spaces: 2 });
29
29
  spinner.text = 'Installing Trinity Method SDK (this may take a moment)...';
30
30
  // Install dependencies
@@ -5,6 +5,7 @@
5
5
  */
6
6
  /**
7
7
  * Get SDK path for reading template files
8
+ * Uses centralized SDK path resolution that supports dev, local, and global installs
8
9
  * @returns Path to SDK directory
9
10
  */
10
11
  export declare function getSDKPath(): Promise<string>;
@@ -3,17 +3,13 @@
3
3
  * Shared utilities for update command
4
4
  * @module cli/commands/update/utils
5
5
  */
6
- import fs from 'fs-extra';
7
- import path from 'path';
6
+ import { getSDKPath as getCentralSDKPath } from '../../utils/get-sdk-path.js';
8
7
  /**
9
8
  * Get SDK path for reading template files
9
+ * Uses centralized SDK path resolution that supports dev, local, and global installs
10
10
  * @returns Path to SDK directory
11
11
  */
12
12
  export async function getSDKPath() {
13
- // In tests it's process.cwd(), in production it's node_modules/@trinity-method/sdk
14
- const sdkPath = (await fs.pathExists(path.join(process.cwd(), 'dist/templates')))
15
- ? process.cwd() // Running from SDK root (tests or dev)
16
- : path.join(process.cwd(), 'node_modules', '@trinity-method', 'sdk'); // Installed package
17
- return sdkPath;
13
+ return getCentralSDKPath();
18
14
  }
19
15
  //# sourceMappingURL=utils.js.map
@@ -24,7 +24,7 @@ const VARIABLE_RESOLVERS = {
24
24
  DEPLOYMENT_TIMESTAMP: (v) => toString(v.DEPLOYMENT_TIMESTAMP || v.timestamp) || new Date().toISOString(),
25
25
  LANGUAGE: (v) => toString(v.LANGUAGE || v.language) || 'Unknown',
26
26
  PACKAGE_MANAGER: (v) => toString(v.PACKAGE_MANAGER || v.packageManager) || 'npm',
27
- TRINITY_VERSION: (v) => toString(v.TRINITY_VERSION) || '2.0.3',
27
+ TRINITY_VERSION: (v) => toString(v.TRINITY_VERSION) || '2.0.4',
28
28
  TECHNOLOGY_STACK: (v) => toString(v.TECHNOLOGY_STACK || v.TECH_STACK || v.techStack) || 'Unknown',
29
29
  PRIMARY_FRAMEWORK: (v) => toString(v.PRIMARY_FRAMEWORK || v.FRAMEWORK || v.framework) || 'Generic',
30
30
  CURRENT_DATE: (v) => toString(v.CURRENT_DATE) || new Date().toISOString().split('T')[0],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trinity-method-sdk",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "description": "Trinity Method SDK - Investigation-first development methodology for any project",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",