@xortex/xcode 3.0.4 → 3.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/bin/xcode +1 -1
- package/entrypoints/cli.tsx +2 -22
- package/macro.ts +1 -1
- package/package.json +1 -1
package/bin/xcode
CHANGED
|
@@ -46,7 +46,7 @@ const args = process.argv.slice(2);
|
|
|
46
46
|
const command = args[0];
|
|
47
47
|
|
|
48
48
|
if (command === '--version' || command === '-v') {
|
|
49
|
-
console.log('xcode v3.0.
|
|
49
|
+
console.log('xcode v3.0.5 — AI coding assistant with XMem memory');
|
|
50
50
|
process.exit(0);
|
|
51
51
|
}
|
|
52
52
|
|
package/entrypoints/cli.tsx
CHANGED
|
@@ -1,26 +1,6 @@
|
|
|
1
1
|
import '../macro'; // Import to set MACRO global before any other code
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
// eslint-disable-next-line custom-rules/no-top-level-side-effects
|
|
5
|
-
declare const Bun: { version: string } | undefined;
|
|
6
|
-
// eslint-disable-next-line custom-rules/no-top-level-side-effects
|
|
7
|
-
const isBun = typeof Bun !== 'undefined' && typeof Bun.version === 'string';
|
|
8
|
-
|
|
9
|
-
// Stub feature function for Node.js compatibility
|
|
10
|
-
// eslint-disable-next-line custom-rules/no-top-level-side-effects
|
|
11
|
-
function feature(name: string): boolean {
|
|
12
|
-
if (isBun) {
|
|
13
|
-
// Dynamic import for Bun - will only execute in Bun
|
|
14
|
-
try {
|
|
15
|
-
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
16
|
-
const bunBundle = require('bun:bundle');
|
|
17
|
-
return bunBundle.feature(name);
|
|
18
|
-
} catch {
|
|
19
|
-
return false;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
return false;
|
|
23
|
-
}
|
|
3
|
+
import { feature } from 'bun:bundle'
|
|
24
4
|
|
|
25
5
|
// Bugfix for corepack auto-pinning, which adds yarnpkg to peoples' package.jsons
|
|
26
6
|
// eslint-disable-next-line custom-rules/no-top-level-side-effects
|
|
@@ -59,7 +39,7 @@ async function main(): Promise<void> {
|
|
|
59
39
|
if (args.length === 1 && (args[0] === '--version' || args[0] === '-v' || args[0] === '-V')) {
|
|
60
40
|
// MACRO.VERSION is inlined at build time
|
|
61
41
|
// biome-ignore lint/suspicious/noConsole:: intentional console output
|
|
62
|
-
console.log(`xcode v3.0.
|
|
42
|
+
console.log(`xcode v3.0.5 — AI coding assistant with XMem memory`);
|
|
63
43
|
return;
|
|
64
44
|
}
|
|
65
45
|
|
package/macro.ts
CHANGED
package/package.json
CHANGED