continue-custom/binary
Nate Sesti fc3c063041
publish stubs (#1472)
* 💚 fix armhf packaging

* 💚 update package.json

* 💚 update package.json

* 🔖 update package.json version

* 🔖 update package.json version

* 🔖 update package.json version

* 🔖 update package.json version

* 💚 Update package.json version [skip ci]

* 💚 Update package.json version [skip ci]

* 🎨 update url

* 💚 Update package.json version [skip ci]

* 🔖 update package.json version

* 💚 Update package.json version [skip ci]

* 🔖 update package.json version

* 💚 force CI run because VS Code publish failed

* 🔖 update package.json version

* 📌 pin darwin-x64 runner image to macos-12

* 📌 also pin darwin-arm64 to macos-12

* 💚 also make official releases for pre-release

* ✏️ fix preview.yaml indentation

* 🔖 update package.json version

* 🔖 update package.json version

* 🔖 update package.json versino

* 🔖 update package.json version

* 🔖 update package.json version

* 💚 Update package.json version [skip ci]

* 💚 Update package.json version [skip ci]

* 💚 Update package.json version [skip ci]

* 💚 Update package.json version [skip ci]

* 💚 Update package.json version [skip ci]

* 💚 force ci run

* 💚 use pnpm, not npm

* 💚 install pnpm

* 💚 pnpm install

* ci fix

* 💚 wip

* 💚 don't re-install esbuild

* 🔖 update package.json version

* 🐛 fix URLs in client

* 🔊 log

* ➕ add esbuild as production dependency

* 🔊 hash by pnpm lock

* 🔊 log

* 🔖 version 131

* 🐛 fix merge

* 💚 Update package.json version [skip ci]

* 💚 force ci run

* 🐛 fix remote config

* ⚡️ system message migration

* 133

* 🔖 package.json version

* 🔖 update package.json version

* 💚 Update package.json version [skip ci]

* 👷 update preview.yaml

* 🔖 update package.json version

* log

* 💚 reinstall esbuild

* 💚 Update package.json version [skip ci]

* 💚 force ci run

* 💚 Update package.json version [skip ci]

* 🔒️ security improvements

* 💚 testing ci

* 💚 fix armhf packaging

* 🎨 update url

* 💚 use pnpm, not npm

* 💚 install pnpm

* 💚 pnpm install

* 💚 wip

* 🔊 log

* ➕ add esbuild as production dependency

* 🔊 hash by pnpm lock

* 🔊 log

* 🐛 fix merge

* 💚 force ci run

* 👷 update preview.yaml

* 💚 force ci run

* 🔒️ feature flags for free trial protection

* 🎨 fix launchdarkly init

* 🎨 catch launchdarkly errors

* 💚 Add GitHub Actions

* 📝 add README for continue-deploy

* 📝 git push note

* 👔 fill in stubs for remote config

* 🚸 stop github login request

* 💚 update CI to use .nvmrc

* 🔒️ security improvements

* 🔖 update version

* 💚 Update package.json version [skip ci]

* ✨ continue server client

* 🎨 clean up stubs

* 💚 Update package.json version [skip ci]

* 🎨 send 'repo' in indexing/cache request

* 🔥 remove codeql.yaml

* 🔊 log full text of index cache errors

* 🔖 update package.json version

* 💚 Update package.json version [skip ci]

* 💚 Update package.json version [skip ci]

* 💚 Update package.json version [skip ci]

* 💚 Update package.json version [skip ci]

* 🔖 update package.json version

* 💚 Update package.json version [skip ci]

* 👷 run testPackaging.js in CI

* 👷 print all missing files

* 🐛 correct linux path

* 🔊 log grandgrandparent folder

* 💚 testing ci

* 💚 fix ci

* 💚 fix armhf packaging

* 💚 update package.json

* 💚 update package.json

* 🔖 update package.json version

* 🔖 update package.json version

* 🔖 update package.json version

* 🔖 update package.json version

* 💚 Update package.json version [skip ci]

* 💚 Update package.json version [skip ci]

* 🎨 update url

* 💚 Update package.json version [skip ci]

* 🔖 update package.json version

* 💚 Update package.json version [skip ci]

* 🔖 update package.json version

* 💚 force CI run because VS Code publish failed

* 🔖 update package.json version

* 📌 pin darwin-x64 runner image to macos-12

* 📌 also pin darwin-arm64 to macos-12

* 💚 also make official releases for pre-release

* ✏️ fix preview.yaml indentation

* 🔖 update package.json version

* 🔖 update package.json version

* 🔖 update package.json versino

* 🔖 update package.json version

* 🔖 update package.json version

* 💚 Update package.json version [skip ci]

* 💚 Update package.json version [skip ci]

* 💚 Update package.json version [skip ci]

* 💚 Update package.json version [skip ci]

* 💚 Update package.json version [skip ci]

* 💚 force ci run

* 💚 use pnpm, not npm

* 💚 install pnpm

* 💚 pnpm install

* ci fix

* 💚 wip

* 💚 don't re-install esbuild

* 🔖 update package.json version

* 🐛 fix URLs in client

* 🔊 log

* ➕ add esbuild as production dependency

* 🔊 hash by pnpm lock

* 🔊 log

* 🔖 version 131

* 🐛 fix merge

* 💚 Update package.json version [skip ci]

* 💚 force ci run

* 🐛 fix remote config

* ⚡️ system message migration

* 133

* 🔖 package.json version

* 🔖 update package.json version

* 💚 Update package.json version [skip ci]

* 👷 update preview.yaml

* 🔖 update package.json version

* log

* 💚 reinstall esbuild

* 💚 Update package.json version [skip ci]

* 💚 force ci run

* 💚 Update package.json version [skip ci]

* 🔒️ security improvements

* 💚 testing ci

* 💚 fix armhf packaging

* 🎨 update url

* 💚 use pnpm, not npm

* 💚 install pnpm

* 💚 pnpm install

* 💚 wip

* 🔊 log

* ➕ add esbuild as production dependency

* 🔊 hash by pnpm lock

* 🔊 log

* 🐛 fix merge

* 💚 force ci run

* 👷 update preview.yaml

* 💚 force ci run

* 🔒️ feature flags for free trial protection

* 🎨 fix launchdarkly init

* 🎨 catch launchdarkly errors

* 🔒️ v1 header

* 🔖 update package.json version

* 💚 Update package.json version [skip ci]

* 🔀 merge fixes

* 🔀 another merge fix

* 👷 update ci for refactor-core

* 👷 remove refactor-core from ci

* 🔖 update package.json version

* 🚚 fix ci

* 🔖 update package.json version

* 🎨 use telemetry to get free trial headers

* 🔖 version update

* 🎨 remove launchdarkly from headers

* 🎨 update server auth

* 🩹 update def of connected

* 🔖 version update

* 🔖 update version

* update main.yaml

* version

* 💚 Update package.json version [skip ci]

* 💚 Update package.json version [skip ci]

* fix codesral prompt

* version

* 💚 Update package.json version [skip ci]

* 💚 Update package.json version [skip ci]

* v

* update version

* 💚 Update package.json version [skip ci]

* update package.json version

* Changes

* remove README.md

---------

Co-authored-by: GitHub Action <action@github.com>
2024-06-12 22:30:27 -07:00
..
pkgJson 🎨 Refactor core (#1281) 2024-05-24 19:38:13 -07:00
src better terminal code block detection 2024-06-07 10:29:18 -07:00
.continueignore Preview (#1114) 2024-04-12 11:54:58 -07:00
.gitignore publish stubs (#1472) 2024-06-12 22:30:27 -07:00
build.js fix: sqlite binary build on fresh clone (#1433) 2024-06-06 09:23:22 -07:00
importMetaUrl.js Preview (#1114) 2024-04-12 11:54:58 -07:00
package-lock.json feat: Add support for Cloudflare AI Gateway (#1425) 2024-06-05 18:17:34 -07:00
package.json 🎨 Refactor core (#1281) 2024-05-24 19:38:13 -07:00
README.md 🎨 Refactor core (#1281) 2024-05-24 19:38:13 -07:00
tsconfig.json Preview (#1114) 2024-04-12 11:54:58 -07:00

Continue Core Binary

The purpose of this folder is to package Typescript code in a way that can be run from any IDE or platform. We first bundle with esbuild and then package into binaries with pkg.

The pkgJson/package.json contains instructions for building with pkg, and needs to be in a separte folder because there is no CLI flag for the assets option (it must be in a package.json), and pkg doesn't recognize any name other than package.json, but if we use the same package.json with dependencies in it, pkg will automatically include these, significantly increasing the binary size.

The build process is otherwise defined entirely in build.js.

List of native modules

  • sqlite3/build/Release/node_sqlite3.node (*)
  • @lancedb/**
  • esbuild?
  • @esbuild?
  • onnxruntime-node?

List of dynamically imported modules

  • posthog-node
  • @octokit/rest
  • esbuild

List of .wasm files

  • tree-sitter.wasm
  • tree-sitter-wasms/

(*) = need to download for each platform manually

Debugging

To debug the binary with IntelliJ, set useTcp to true in CoreMessenger.kt, and then in VS Code run the "Core Binary" debug script. Instead of starting a subprocess for the binary and communicating over stdin/stdout, the IntelliJ extension will connect over TCP to the server started from the VS Code window. You can place breakpoints anywhere in the core or binary folders.