@alivault/pico 0.1.3 → 0.1.4

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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "date": "2026-05-08T05:11:23.171Z",
2
+ "date": "2026-05-08T05:28:38.675Z",
3
3
  "preset": "node-server",
4
4
  "framework": {
5
5
  "name": "nitro",
@@ -20,7 +20,7 @@ import os, { homedir } from "node:os";
20
20
  import { performance } from "node:perf_hooks";
21
21
  import { isMainThread } from "node:worker_threads";
22
22
  import { execSync, spawn } from "node:child_process";
23
- //#region node_modules/.nitro/vite/services/ssr/assets/router-DUJ0dqtS.js
23
+ //#region node_modules/.nitro/vite/services/ssr/assets/router-ClRUX20Q.js
24
24
  var import_react = /* @__PURE__ */ __toESM(require_react());
25
25
  var import_jsx_runtime = require_jsx_runtime();
26
26
  var Toaster$1 = ({ ...props }) => {
@@ -161,7 +161,7 @@ function AppTanStackDevtools() {
161
161
  }, []);
162
162
  if (!isReady) return null;
163
163
  }
164
- var PI_CODING_AGENT_PACKAGE = "@mariozechner/pi-coding-agent";
164
+ var PI_CODING_AGENT_PACKAGES = ["@earendil-works/pi-coding-agent", "@mariozechner/pi-coding-agent"];
165
165
  function normalizeSdkDir(candidate) {
166
166
  if (!candidate) return void 0;
167
167
  try {
@@ -175,8 +175,11 @@ function findNodeModulePackageDir(startDir) {
175
175
  if (!startDir) return void 0;
176
176
  let current = path.resolve(startDir);
177
177
  while (true) {
178
- const candidate = normalizeSdkDir(path.join(current, "node_modules", "@mariozechner", "pi-coding-agent"));
179
- if (candidate) return candidate;
178
+ for (const packageName of PI_CODING_AGENT_PACKAGES) {
179
+ const [scope, name] = packageName.split("/");
180
+ const candidate = normalizeSdkDir(path.join(current, "node_modules", scope, name));
181
+ if (candidate) return candidate;
182
+ }
180
183
  const parent = path.dirname(current);
181
184
  if (parent === current) return void 0;
182
185
  current = parent;
@@ -184,11 +187,13 @@ function findNodeModulePackageDir(startDir) {
184
187
  }
185
188
  function resolveFromBundledDependency() {
186
189
  try {
187
- const entryUrl = import.meta.resolve?.(PI_CODING_AGENT_PACKAGE);
188
- if (entryUrl) {
189
- const entry = entryUrl.startsWith("file:") ? fileURLToPath(entryUrl) : entryUrl;
190
- const sdkDir = normalizeSdkDir(path.dirname(path.dirname(entry)));
191
- if (sdkDir) return sdkDir;
190
+ for (const packageName of PI_CODING_AGENT_PACKAGES) {
191
+ const entryUrl = import.meta.resolve?.(packageName);
192
+ if (entryUrl) {
193
+ const entry = entryUrl.startsWith("file:") ? fileURLToPath(entryUrl) : entryUrl;
194
+ const sdkDir = normalizeSdkDir(path.dirname(path.dirname(entry)));
195
+ if (sdkDir) return sdkDir;
196
+ }
192
197
  }
193
198
  } catch {}
194
199
  return findNodeModulePackageDir((() => {
@@ -237,13 +242,19 @@ async function loadPiSdk() {
237
242
  const sdkDir = resolvePiSdkDir();
238
243
  return patchSdkForWorkerThreads(await importExternalModule(path.join(sdkDir, "dist", "index.js")));
239
244
  }
240
- function resolvePiAiEntry(sdkDir) {
241
- const candidates = [path.join(sdkDir, "node_modules", "@mariozechner", "pi-ai", "dist", "index.js")];
245
+ function getPiAiCandidates(sdkDir) {
246
+ const candidates = [];
247
+ for (const scope of ["@earendil-works", "@mariozechner"]) candidates.push(path.join(sdkDir, "node_modules", scope, "pi-ai", "dist", "index.js"));
242
248
  try {
243
249
  const realSdkDir = fs.realpathSync(sdkDir);
244
- candidates.push(path.join(realSdkDir, "node_modules", "@mariozechner", "pi-ai", "dist", "index.js"), path.join(path.dirname(realSdkDir), "pi-ai", "dist", "index.js"));
250
+ for (const scope of ["@earendil-works", "@mariozechner"]) candidates.push(path.join(realSdkDir, "node_modules", scope, "pi-ai", "dist", "index.js"));
251
+ candidates.push(path.join(path.dirname(realSdkDir), "pi-ai", "dist", "index.js"));
245
252
  } catch {}
246
253
  candidates.push(path.join(path.dirname(sdkDir), "pi-ai", "dist", "index.js"));
254
+ return candidates;
255
+ }
256
+ function resolvePiAiEntry(sdkDir) {
257
+ const candidates = getPiAiCandidates(sdkDir);
247
258
  return candidates.find((candidate) => fs.existsSync(candidate)) ?? candidates[0];
248
259
  }
249
260
  async function loadPiAi() {
@@ -4799,8 +4799,8 @@ var baseManifestPromise;
4799
4799
  var cachedFinalManifestPromise;
4800
4800
  async function loadEntries() {
4801
4801
  const [routerEntry, startEntry, pluginAdapters] = await Promise.all([
4802
- import("./router-DUJ0dqtS.mjs"),
4803
- import("./start-C9AjCGlr.mjs"),
4802
+ import("./router-ClRUX20Q.mjs"),
4803
+ import("./start-Captdpmb.mjs"),
4804
4804
  import("../__23tanstack-start-plugin-adapters-y_fshQDY.mjs")
4805
4805
  ]);
4806
4806
  return {
@@ -0,0 +1,4 @@
1
+ //#region node_modules/.nitro/vite/services/ssr/assets/start-Captdpmb.js
2
+ var startInstance = void 0;
3
+ //#endregion
4
+ export { startInstance };