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 +9 -0
- package/README.md +1 -1
- package/dist/cli/commands/deploy/index.js +1 -1
- package/dist/cli/commands/deploy/root-files.js +1 -1
- package/dist/cli/commands/deploy/sdk-install.js +1 -1
- package/dist/cli/commands/update/utils.d.ts +1 -0
- package/dist/cli/commands/update/utils.js +3 -7
- package/dist/cli/utils/template-processor.js +1 -1
- package/package.json +1 -1
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
|
@@ -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.
|
|
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.
|
|
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.
|
|
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
|
|
@@ -3,17 +3,13 @@
|
|
|
3
3
|
* Shared utilities for update command
|
|
4
4
|
* @module cli/commands/update/utils
|
|
5
5
|
*/
|
|
6
|
-
import
|
|
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
|
-
|
|
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.
|
|
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],
|