cline 1.0.0-nightly.7 → 1.0.0-nightly.9

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.
@@ -297,6 +297,7 @@
297
297
  "compile-standalone": "npm run check-types && npm run lint && node esbuild.mjs --standalone",
298
298
  "compile-standalone-npm": "npm run check-types && npm run lint && node esbuild.mjs --standalone",
299
299
  "compile-cli": "scripts/build-cli.sh",
300
+ "compile-cli-all-platforms": "scripts/build-cli-all-platforms.sh",
300
301
  "test:install": "bash scripts/test-install.sh",
301
302
  "dev:cli:watch": "node scripts/dev-cli-watch.mjs",
302
303
  "postcompile-standalone": "node scripts/package-standalone.mjs",
@@ -370,7 +371,7 @@
370
371
  "@types/should": "^11.2.0",
371
372
  "@types/sinon": "^17.0.4",
372
373
  "@types/turndown": "^5.0.5",
373
- "@types/vscode": "^1.84.0",
374
+ "@types/vscode": "1.84.0",
374
375
  "@vscode/test-cli": "^0.0.10",
375
376
  "@vscode/test-electron": "^2.5.2",
376
377
  "@vscode/vsce": "^3.6.0",
@@ -410,12 +411,25 @@
410
411
  "@grpc/reflection": "^1.0.4",
411
412
  "@mistralai/mistralai": "^1.5.0",
412
413
  "@modelcontextprotocol/sdk": "^1.11.1",
413
- "@opentelemetry/api": "^1.4.1",
414
- "@opentelemetry/exporter-trace-otlp-http": "^0.39.1",
414
+ "@opentelemetry/api": "^1.9.0",
415
+ "@opentelemetry/core": "^2.1.0",
416
+ "@opentelemetry/exporter-logs-otlp-grpc": "^0.56.0",
417
+ "@opentelemetry/exporter-logs-otlp-http": "^0.56.0",
418
+ "@opentelemetry/exporter-logs-otlp-proto": "^0.56.0",
419
+ "@opentelemetry/exporter-metrics-otlp-grpc": "^0.56.0",
420
+ "@opentelemetry/exporter-metrics-otlp-http": "^0.56.0",
421
+ "@opentelemetry/exporter-metrics-otlp-proto": "^0.56.0",
422
+ "@opentelemetry/exporter-prometheus": "^0.56.0",
423
+ "@opentelemetry/exporter-trace-otlp-http": "^0.56.0",
424
+ "@opentelemetry/instrumentation": "^0.205.0",
425
+ "@opentelemetry/instrumentation-http": "^0.205.0",
415
426
  "@opentelemetry/resources": "^1.30.1",
416
- "@opentelemetry/sdk-node": "^0.39.1",
427
+ "@opentelemetry/sdk-logs": "^0.56.0",
428
+ "@opentelemetry/sdk-metrics": "^1.30.1",
429
+ "@opentelemetry/sdk-node": "^0.56.0",
430
+ "@opentelemetry/sdk-trace-base": "^2.1.0",
417
431
  "@opentelemetry/sdk-trace-node": "^1.30.1",
418
- "@opentelemetry/semantic-conventions": "^1.30.0",
432
+ "@opentelemetry/semantic-conventions": "^1.37.0",
419
433
  "@playwright/test": "^1.53.2",
420
434
  "@sap-ai-sdk/ai-api": "^1.17.0",
421
435
  "@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.7",
3
+ "version": "1.0.0-nightly.9",
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
+ }