diff options
| author | Dax Raad <[email protected]> | 2026-04-25 13:29:52 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2026-04-25 13:30:37 -0400 |
| commit | 1a734adb4d1ce6071432bd68ac45fa4457f0dc2e (patch) | |
| tree | aed9acae5ae3da2fb93d3184ea2dc1f6a9412104 /packages/core/src/installation | |
| parent | a9740b9133a8056f5992b17f1b3fde15cc039f8d (diff) | |
| download | opencode-1a734adb4d1ce6071432bd68ac45fa4457f0dc2e.tar.gz opencode-1a734adb4d1ce6071432bd68ac45fa4457f0dc2e.zip | |
core: consolidate shared infrastructure into core package
Moves effect logging, observability, runtime utilities, flags, installation
version info, and process utilities from opencode to core package. This
enables better code sharing across packages and establishes core as the
single source of truth for foundational utilities.
All internal imports updated to use @opencode-ai/core paths for consistency.
Diffstat (limited to 'packages/core/src/installation')
| -rw-r--r-- | packages/core/src/installation/version.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/core/src/installation/version.ts b/packages/core/src/installation/version.ts new file mode 100644 index 000000000..25d9cd99a --- /dev/null +++ b/packages/core/src/installation/version.ts @@ -0,0 +1,8 @@ +declare global { + const OPENCODE_VERSION: string + const OPENCODE_CHANNEL: string +} + +export const InstallationVersion = typeof OPENCODE_VERSION === "string" ? OPENCODE_VERSION : "local" +export const InstallationChannel = typeof OPENCODE_CHANNEL === "string" ? OPENCODE_CHANNEL : "local" +export const InstallationLocal = InstallationChannel === "local" |
