@maccesar/titools 2.0.1 → 2.0.3
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/lib/downloader.js +2 -3
- package/package.json +1 -2
package/lib/downloader.js
CHANGED
|
@@ -8,8 +8,7 @@ import { tmpdir } from 'os';
|
|
|
8
8
|
import { join, dirname } from 'path';
|
|
9
9
|
import { pipeline } from 'stream/promises';
|
|
10
10
|
import { unlink } from 'fs/promises';
|
|
11
|
-
import
|
|
12
|
-
import fetch from 'node-fetch';
|
|
11
|
+
import { extract } from 'tar';
|
|
13
12
|
import { REPO_API_URL, REPO_RAW_URL, GITHUB_API_HEADERS } from './config.js';
|
|
14
13
|
|
|
15
14
|
/**
|
|
@@ -78,7 +77,7 @@ export async function downloadRepoArchive(destDir, ref = 'main') {
|
|
|
78
77
|
await downloadFile(archiveUrl, tempFile);
|
|
79
78
|
|
|
80
79
|
// Extract archive
|
|
81
|
-
await
|
|
80
|
+
await extract({
|
|
82
81
|
file: tempFile,
|
|
83
82
|
cwd: destDir,
|
|
84
83
|
strip: 1, // Remove top-level directory
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maccesar/titools",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "Titanium SDK skills and agents for AI coding assistants (Claude Code, Gemini CLI, Codex CLI)",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -45,7 +45,6 @@
|
|
|
45
45
|
"commander": "^12.0.0",
|
|
46
46
|
"fs-extra": "^11.2.0",
|
|
47
47
|
"inquirer": "^9.2.0",
|
|
48
|
-
"node-fetch": "^3.3.0",
|
|
49
48
|
"ora": "^8.0.0",
|
|
50
49
|
"tar": "^7.4.3"
|
|
51
50
|
},
|