@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.
- package/.output/nitro.json +1 -1
- package/.output/server/_ssr/{router-DUJ0dqtS.mjs → router-ClRUX20Q.mjs} +23 -12
- package/.output/server/_ssr/ssr.mjs +2 -2
- package/.output/server/_ssr/start-Captdpmb.mjs +4 -0
- package/.output/server/index.mjs +492 -492
- package/README.md +14 -1
- package/package.json +10 -3
- package/scripts/release.mjs +173 -0
- package/vendor/node-domexception/index.js +3 -0
- package/vendor/node-domexception/package.json +10 -0
- package/.output/server/_ssr/start-C9AjCGlr.mjs +0 -4
package/.output/nitro.json
CHANGED
|
@@ -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-
|
|
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
|
|
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
|
-
|
|
179
|
-
|
|
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
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
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
|
|
241
|
-
const candidates = [
|
|
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
|
-
|
|
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-
|
|
4803
|
-
import("./start-
|
|
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 {
|