-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglobals.d.ts
More file actions
77 lines (67 loc) · 2.03 KB
/
globals.d.ts
File metadata and controls
77 lines (67 loc) · 2.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/**
* Global type declarations for Claude Code build-time constants.
*
* MACRO is defined at bundle time via Bun's --define flag.
* bun:bundle provides compile-time feature flags for dead code elimination.
*/
// Build-time macro constants injected via --define
declare const MACRO: {
/** Application version string, e.g. "1.0.0" */
VERSION: string;
/** ISO 8601 build timestamp, e.g. "2026-03-31T00:00:00Z" */
BUILD_TIME: string;
/** npm package URL, e.g. "@anthropic-ai/claude-code" */
PACKAGE_URL: string;
/** Native package URL for platform-specific binaries */
NATIVE_PACKAGE_URL: string | undefined;
/** Feedback channel URL or description */
FEEDBACK_CHANNEL: string;
/** Instructions for reporting issues */
ISSUES_EXPLAINER: string;
/** Version changelog content */
VERSION_CHANGELOG: string;
};
// Bun's bundle-time feature flag module
declare module "bun:bundle" {
/**
* Returns true if the named feature flag is enabled at bundle time.
* Used for dead code elimination — disabled branches are stripped entirely.
*/
export function feature(name: string): boolean;
}
// Stub declarations for internal Anthropic packages that are not publicly available
declare module "@ant/claude-for-chrome-mcp" {
const mod: any;
export default mod;
export const runClaudeInChromeMcpServer: () => Promise<void>;
}
declare module "@ant/computer-use-input" {
const mod: any;
export default mod;
}
declare module "@ant/computer-use-mcp" {
const mod: any;
export default mod;
export const runComputerUseMcpServer: () => Promise<void>;
}
declare module "@ant/computer-use-swift" {
const mod: any;
export default mod;
}
declare module "@anthropic-ai/claude-agent-sdk" {
const mod: any;
export default mod;
}
declare module "@anthropic-ai/mcpb" {
const mod: any;
export default mod;
}
declare module "@anthropic-ai/sandbox-runtime" {
const mod: any;
export default mod;
}
declare module "color-diff-napi" {
export function diff(a: string, b: string): any;
const mod: any;
export default mod;
}