Dashboard › opencode › Distillation
d3ac9aec-4cfc-47f9-9bb9-f2157acfd973["lore_tm_v1_QapAyDVUhU9TchmkB3YaYggwH3DLSY5WyNfduW6yaqI","lore_tm_v1_u-TQMJrL1hQZOe2ZrlB9-rqR-o36jq3C0_tOe1GCTA4","lore_tm_v1_3oUcNKYsEoav5zC6-MC6ds50KwMAMFcyM8CoziTZeD4","lore_tm_v1_V-i6XhoN01b1Hl4UybXZoHFosHCIsXG_5wVRL8C1oO0","lore_tm_v1_LQy56EIFWjDkoQvDOwIVq9LQ2VhHxr08FDv9uOQdYDg","lore_tm_v1_3P98Y2wzhaH4uGuElQ8jk3nEGB8ZG1qHNoo8Mj-meEA","lore_tm_v1_68oopYiVLMIPBLriQw1Rp6-9AnmqPd35Uowr30t9apU","lore_tm_v1_q3HUf2M78CNOqo-AmvGFCqBK_VuzuT3fHx0c-6aS5SI","lore_tm_v1_VyOmbncRT4WEn28VN1eaF0Jz1VDstlz3nlwY-8fXafA","lore_tm_v1_-gdw2aPTT4Lb3MqtLAAflUNQ0aAa5HAqm5XqLKUOIKo","lore_tm_v1_nJKFLuOpKmvdhN1Ijg02cBOoFkY98rJ-6LDXB-WMoeU"]
/home/byk/Code/opencode-v2-pilot/packages/core/src/plugin/module.ts as directories. Legacy auto-discovery may still admit standalone server source files./home/byk/Code/opencode-v2-pilot/packages/core/src/plugin/module.ts lines 80-132 define PluginModule.load: absolute targets are local; package targets use Npm.Service with npm.resolve(operation.target) when options.install === false or npm.add(operation.target) otherwise. Local files become { server: pathToFileURL(operation.target).href }; other targets use Host.resolve(installed ?? { directory: operation.target }).PluginModule.load uses entrypoints.server, returns { pending: true } for a non-local unresolved package when installation is disabled, otherwise raises LoadError with Plugin entrypoint not found: ${operation.target}. It loads local sources via sources.read(entrypoint) and packages via Host.load(entrypoint), then requires a default export containing id plus either effect or setup.features.tui and features.rpc when those entrypoints exist; revision is JSON.stringify([operation, loaded.version]). Local source metadata uses fileURLToPath(entrypoint); package metadata includes target and optional installed version.@loreai/opencode/server before the preserved legacy root export, validating the dual-entry package shape. Remaining package gate: finish the shared request export, build dist/server.js, pack it, and load the tarball using a wholly separate V2 config/data tree.Npm.Service: /home/byk/Code/opencode-v2-pilot/packages/core/src/provider.ts, packages/core/src/model-resolver.ts, packages/core/src/plugin/update.ts, packages/core/src/plugin/module.ts, packages/core/src/plugin/internal.ts, packages/core/src/plugin/provider/sdk-factory.ts, packages/core/src/plugin/provider/sap-ai-core.ts, packages/core/src/plugin/provider/dynamic.ts, and packages/core/src/config/plugin/formatter.ts./home/byk/Code/opencode-v2-pilot/packages/core/src found exactly 84 Context.Service matches, including Npm.Service consumers and plugin services such as ConfigPluginSource.Service, Plugin.Service, PluginUpdate.Service, SdkPlugins.Service, InstancePlugins.Service, and PluginHooks.Service.Npm is re-exported from /home/byk/Code/opencode-v2-pilot/packages/util/src/npm.ts; NpmConfig is re-exported from /home/byk/Code/opencode-v2-pilot/packages/util/src/npm-config.ts./home/byk/Code/opencode-v2-pilot/packages/util/src/npm.ts defines Npm.Package with directory, name, optional version, and optional revision; Npm.Interface provides add(pkg), resolve(pkg), check(pkg), update(pkg), and which(pkg, bin?); Service is registered as @opencode/Npm.packages/util/src/npm.ts recognizes registry targets of type version, range, or tag, and Git targets; mutable Git targets lack a commit, while mutable registry targets are anything except an exact version. Git cache keys use git-${slug}-${sha256(pkg).slice(0, 12)}; registry keys use ${name}@${spec} after Windows-safe sanitization.packages/util/src/npm.ts are numeric directories sorted ascending, with the final generation treated as current. Retention is exactly 7 * 24 * 60 * 60 * 1_000; staging retention is exactly 60 * 60 * 1_000. Arborist installs disable audit with audit: false; update operations add preferOnline: true and noGitRevCache: true.packages/core/test/fetch-interceptor-request.test.ts failed exactly 10/10 tests in 1/1 file because rewriteRequest is not a function. Timing: start 10:28:00, duration 867ms, transform 459ms, setup 500ms, import 29ms, tests 46ms, environment 0ms.rewriteRequest tests were: 1. routes a V2-style Request without losing method, body, auth, path, or query; 2. preserves an existing dynamic header set by the caller; 3. returns a direct gateway Request unchanged while observing its headers; 4. returns local Request http://localhost:8000/v1/messages unchanged; 5. returns local Request http://127.0.0.1:8000/v1/messages unchanged; 6. returns local Request http://0.0.0.0:8000/v1/messages unchanged; 7. returns local Request http://[::1]:8000/v1/messages unchanged; 8. returns a non-LLM Request unchanged; 9. routes a streaming body on a known path without reading it; 10. does not read or route a streaming body on an unknown path.@opencode/plugin workspace references in /home/byk/Code/opencode-v2-pilot: packages/sdk/package.json, packages/plugin-browser/package.json, packages/latex/package.json, packages/cli/package.json, packages/core/package.json, root package.json, packages/simulation/package.json, packages/server/package.json, packages/tui/package.json, packages/plugin/package.json where the package name is defined, and packages/merman/package.json./home/byk/Code/opencode-lore-v2/packages/opencode/test/package.test.ts was added.