trinity-method-sdk 2.0.3 → 2.0.5

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,25 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
19
19
 
20
20
  ### Security
21
21
 
22
+ ## [2.0.5] - 2026-01-06
23
+
24
+ ### Fixed
25
+
26
+ - **CRITICAL: Slash command file updates** - Fixed `trinity update` command file extension handling
27
+ - Update commands module was looking for `.md` files but templates use `.md.template` extension
28
+ - Now correctly processes `.md.template` files and strips extension for deployed files
29
+ - Slash commands now update properly (20 command files) when running `trinity update`
30
+ - Matches the pattern used by knowledge-base update module
31
+
32
+ ## [2.0.4] - 2026-01-06
33
+
34
+ ### Fixed
35
+
36
+ - **CRITICAL: Update command path resolution** - Fixed `trinity update` to use centralized SDK path resolution
37
+ - Update command was using hardcoded `@trinity-method/sdk` path instead of `trinity-method-sdk`
38
+ - Commands, agents, templates, and knowledge base files now update correctly with global installations
39
+ - Fixed "Commands template path not found, skipping" warning
40
+
22
41
  ## [2.0.3] - 2026-01-06
23
42
 
24
43
  ### 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.5 -m "Release v2.0.5"
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.5',
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.5');
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.5';
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
@@ -62,10 +62,12 @@ export async function updateCommands(spinner, stats) {
62
62
  // Copy all command files
63
63
  const commandFiles = await fs.readdir(commandsTemplatePath);
64
64
  for (const file of commandFiles) {
65
- if (file.endsWith('.md')) {
65
+ if (file.endsWith('.md.template')) {
66
66
  const sourcePath = path.join(commandsTemplatePath, file);
67
67
  const category = determineCommandCategory(file);
68
- const targetPath = path.join('.claude/commands', category, file);
68
+ // Remove .template extension for deployed file
69
+ const deployedFileName = file.replace('.template', '');
70
+ const targetPath = path.join('.claude/commands', category, deployedFileName);
69
71
  await fs.copy(sourcePath, targetPath, { overwrite: true });
70
72
  stats.commandsUpdated++;
71
73
  }
@@ -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.5',
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],