cline 1.0.0-nightly.7 → 1.0.0-nightly.8
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/bin/cline +0 -0
- package/bin/cline-darwin-amd64 +0 -0
- package/bin/cline-darwin-arm64 +0 -0
- package/bin/cline-host +0 -0
- package/bin/cline-host-darwin-amd64 +0 -0
- package/bin/cline-host-darwin-arm64 +0 -0
- package/bin/cline-host-linux-amd64 +0 -0
- package/bin/cline-host-linux-arm64 +0 -0
- package/bin/cline-linux-amd64 +0 -0
- package/bin/cline-linux-arm64 +0 -0
- package/cline-core.js +157142 -101496
- package/extension/package.json +18 -5
- package/package.json +4 -1
- package/postinstall.js +120 -0
package/extension/package.json
CHANGED
|
@@ -370,7 +370,7 @@
|
|
|
370
370
|
"@types/should": "^11.2.0",
|
|
371
371
|
"@types/sinon": "^17.0.4",
|
|
372
372
|
"@types/turndown": "^5.0.5",
|
|
373
|
-
"@types/vscode": "
|
|
373
|
+
"@types/vscode": "1.84.0",
|
|
374
374
|
"@vscode/test-cli": "^0.0.10",
|
|
375
375
|
"@vscode/test-electron": "^2.5.2",
|
|
376
376
|
"@vscode/vsce": "^3.6.0",
|
|
@@ -410,12 +410,25 @@
|
|
|
410
410
|
"@grpc/reflection": "^1.0.4",
|
|
411
411
|
"@mistralai/mistralai": "^1.5.0",
|
|
412
412
|
"@modelcontextprotocol/sdk": "^1.11.1",
|
|
413
|
-
"@opentelemetry/api": "^1.
|
|
414
|
-
"@opentelemetry/
|
|
413
|
+
"@opentelemetry/api": "^1.9.0",
|
|
414
|
+
"@opentelemetry/core": "^2.1.0",
|
|
415
|
+
"@opentelemetry/exporter-logs-otlp-grpc": "^0.56.0",
|
|
416
|
+
"@opentelemetry/exporter-logs-otlp-http": "^0.56.0",
|
|
417
|
+
"@opentelemetry/exporter-logs-otlp-proto": "^0.56.0",
|
|
418
|
+
"@opentelemetry/exporter-metrics-otlp-grpc": "^0.56.0",
|
|
419
|
+
"@opentelemetry/exporter-metrics-otlp-http": "^0.56.0",
|
|
420
|
+
"@opentelemetry/exporter-metrics-otlp-proto": "^0.56.0",
|
|
421
|
+
"@opentelemetry/exporter-prometheus": "^0.56.0",
|
|
422
|
+
"@opentelemetry/exporter-trace-otlp-http": "^0.56.0",
|
|
423
|
+
"@opentelemetry/instrumentation": "^0.205.0",
|
|
424
|
+
"@opentelemetry/instrumentation-http": "^0.205.0",
|
|
415
425
|
"@opentelemetry/resources": "^1.30.1",
|
|
416
|
-
"@opentelemetry/sdk-
|
|
426
|
+
"@opentelemetry/sdk-logs": "^0.56.0",
|
|
427
|
+
"@opentelemetry/sdk-metrics": "^1.30.1",
|
|
428
|
+
"@opentelemetry/sdk-node": "^0.56.0",
|
|
429
|
+
"@opentelemetry/sdk-trace-base": "^2.1.0",
|
|
417
430
|
"@opentelemetry/sdk-trace-node": "^1.30.1",
|
|
418
|
-
"@opentelemetry/semantic-conventions": "^1.
|
|
431
|
+
"@opentelemetry/semantic-conventions": "^1.37.0",
|
|
419
432
|
"@playwright/test": "^1.53.2",
|
|
420
433
|
"@sap-ai-sdk/ai-api": "^1.17.0",
|
|
421
434
|
"@sap-ai-sdk/orchestration": "^1.17.0",
|
package/package.json
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cline",
|
|
3
|
-
"version": "1.0.0-nightly.
|
|
3
|
+
"version": "1.0.0-nightly.8",
|
|
4
4
|
"description": "Autonomous coding agent CLI - capable of creating/editing files, running commands, using the browser, and more",
|
|
5
5
|
"main": "cline-core.js",
|
|
6
6
|
"bin": {
|
|
7
7
|
"cline": "./bin/cline",
|
|
8
8
|
"cline-host": "./bin/cline-host"
|
|
9
9
|
},
|
|
10
|
+
"scripts": {
|
|
11
|
+
"postinstall": "node postinstall.js"
|
|
12
|
+
},
|
|
10
13
|
"bundleDependencies": [
|
|
11
14
|
"@grpc/grpc-js",
|
|
12
15
|
"@grpc/reflection",
|
package/postinstall.js
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const fs = require('fs');
|
|
4
|
+
const path = require('path');
|
|
5
|
+
const os = require('os');
|
|
6
|
+
|
|
7
|
+
// Detect current platform and architecture
|
|
8
|
+
function getPlatformInfo() {
|
|
9
|
+
const platform = os.platform();
|
|
10
|
+
const arch = os.arch();
|
|
11
|
+
|
|
12
|
+
// Map Node.js arch names to Go arch names
|
|
13
|
+
let goArch = arch;
|
|
14
|
+
if (arch === 'x64') {
|
|
15
|
+
goArch = 'amd64';
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
let goPlatform = platform;
|
|
19
|
+
|
|
20
|
+
return { platform: goPlatform, arch: goArch };
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// Setup platform-specific binaries
|
|
24
|
+
function setupBinaries() {
|
|
25
|
+
const { platform, arch } = getPlatformInfo();
|
|
26
|
+
const platformSuffix = `${platform}-${arch}`;
|
|
27
|
+
|
|
28
|
+
console.log(`Setting up Cline CLI for ${platformSuffix}...`);
|
|
29
|
+
|
|
30
|
+
const binDir = path.join(__dirname, 'bin');
|
|
31
|
+
|
|
32
|
+
// Check if platform-specific binaries exist
|
|
33
|
+
const clineSource = path.join(binDir, `cline-${platformSuffix}`);
|
|
34
|
+
const clineHostSource = path.join(binDir, `cline-host-${platformSuffix}`);
|
|
35
|
+
|
|
36
|
+
if (!fs.existsSync(clineSource)) {
|
|
37
|
+
console.error(`Error: Binary not found for platform ${platformSuffix}`);
|
|
38
|
+
console.error(`Expected: ${clineSource}`);
|
|
39
|
+
console.error(`Supported platforms: darwin-arm64, darwin-amd64, linux-amd64, linux-arm64`);
|
|
40
|
+
process.exit(1);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
if (!fs.existsSync(clineHostSource)) {
|
|
44
|
+
console.error(`Error: Binary not found for platform ${platformSuffix}`);
|
|
45
|
+
console.error(`Expected: ${clineHostSource}`);
|
|
46
|
+
process.exit(1);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// Create symlinks or copies to the generic names
|
|
50
|
+
const clineTarget = path.join(binDir, 'cline');
|
|
51
|
+
const clineHostTarget = path.join(binDir, 'cline-host');
|
|
52
|
+
|
|
53
|
+
// Remove existing files if they exist
|
|
54
|
+
[clineTarget, clineHostTarget].forEach(target => {
|
|
55
|
+
if (fs.existsSync(target)) {
|
|
56
|
+
try {
|
|
57
|
+
fs.unlinkSync(target);
|
|
58
|
+
} catch (e) {
|
|
59
|
+
console.warn(`Warning: Could not remove existing file ${target}: ${e.message}`);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
// On Unix, create symlinks; on Windows, copy files
|
|
65
|
+
if (platform === 'win32') {
|
|
66
|
+
// Windows: copy files
|
|
67
|
+
fs.copyFileSync(clineSource, clineTarget);
|
|
68
|
+
fs.copyFileSync(clineHostSource, clineHostTarget);
|
|
69
|
+
console.log('✓ Copied platform-specific binaries');
|
|
70
|
+
} else {
|
|
71
|
+
// Unix: create symlinks
|
|
72
|
+
fs.symlinkSync(path.basename(clineSource), clineTarget);
|
|
73
|
+
fs.symlinkSync(path.basename(clineHostSource), clineHostTarget);
|
|
74
|
+
console.log('✓ Created symlinks to platform-specific binaries');
|
|
75
|
+
|
|
76
|
+
// Make binaries executable
|
|
77
|
+
try {
|
|
78
|
+
fs.chmodSync(clineSource, 0o755);
|
|
79
|
+
fs.chmodSync(clineHostSource, 0o755);
|
|
80
|
+
fs.chmodSync(clineTarget, 0o755);
|
|
81
|
+
fs.chmodSync(clineHostTarget, 0o755);
|
|
82
|
+
} catch (error) {
|
|
83
|
+
console.warn(`Warning: Could not set executable permissions: ${error.message}`);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// Check ripgrep binary
|
|
88
|
+
const rgBinary = platform === 'win32' ? 'rg.exe' : 'rg';
|
|
89
|
+
const rgPath = path.join(__dirname, rgBinary);
|
|
90
|
+
|
|
91
|
+
if (!fs.existsSync(rgPath)) {
|
|
92
|
+
console.error(`Error: ripgrep binary not found at ${rgPath}`);
|
|
93
|
+
process.exit(1);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
// Make ripgrep executable (Unix only)
|
|
97
|
+
if (platform !== 'win32') {
|
|
98
|
+
try {
|
|
99
|
+
fs.chmodSync(rgPath, 0o755);
|
|
100
|
+
} catch (error) {
|
|
101
|
+
console.warn(`Warning: Could not set ripgrep executable permissions: ${error.message}`);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
console.log('✓ Cline CLI installation complete');
|
|
106
|
+
console.log('');
|
|
107
|
+
console.log('Usage:');
|
|
108
|
+
console.log(' cline - Start Cline CLI');
|
|
109
|
+
console.log(' cline-host - Start Cline host service');
|
|
110
|
+
console.log('');
|
|
111
|
+
console.log('Documentation: https://docs.cline.bot');
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
try {
|
|
115
|
+
setupBinaries();
|
|
116
|
+
} catch (error) {
|
|
117
|
+
console.error(`Installation failed: ${error.message}`);
|
|
118
|
+
console.error('Please report this issue at: https://github.com/cline/cline/issues');
|
|
119
|
+
process.exit(1);
|
|
120
|
+
}
|