@popcraft/cli 0.42.0 → 0.42.1
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/dist/popcraft.mjs +64 -45
- package/package.json +2 -2
package/dist/popcraft.mjs
CHANGED
|
@@ -1196,7 +1196,7 @@ function operations(spec = openapi) {
|
|
|
1196
1196
|
}
|
|
1197
1197
|
async function call(target2, method, path, opts = {}) {
|
|
1198
1198
|
const qs = new URLSearchParams(opts.query ?? {}).toString();
|
|
1199
|
-
const headers = { "user-agent": `popcraft-cli/${"0.42.
|
|
1199
|
+
const headers = { "user-agent": `popcraft-cli/${"0.42.1"}`, ...opts.headers };
|
|
1200
1200
|
if (target2.token) headers.authorization = `Bearer ${target2.token}`;
|
|
1201
1201
|
if (opts.contentType) headers["content-type"] = opts.contentType;
|
|
1202
1202
|
try {
|
|
@@ -96321,6 +96321,7 @@ async function sha256Prefix(bytes2) {
|
|
|
96321
96321
|
}
|
|
96322
96322
|
var init_media_hash = __esm({
|
|
96323
96323
|
"lib/storage/media-hash.ts"() {
|
|
96324
|
+
"use strict";
|
|
96324
96325
|
}
|
|
96325
96326
|
});
|
|
96326
96327
|
|
|
@@ -96703,6 +96704,7 @@ function releaseMediaMemory(hash3) {
|
|
|
96703
96704
|
var key2, peaksKey, objectUrls, sourceKey, remoteResolver, MEDIA_FETCH_TIMEOUT_MS, SHIPPED_MEDIA_PATH, notShipped, MEDIA_SCHEME, isImageDataUrl, memory, pendingLoads, sourceAliases, PAINT_KEYS, URL_KEYS;
|
|
96704
96705
|
var init_media_store = __esm({
|
|
96705
96706
|
"lib/storage/media-store.ts"() {
|
|
96707
|
+
"use strict";
|
|
96706
96708
|
init_media_types();
|
|
96707
96709
|
init_idb();
|
|
96708
96710
|
init_media_hash();
|
|
@@ -310617,6 +310619,7 @@ async function createFreshFileOrExplain(place4 = {}, seed2 = {}) {
|
|
|
310617
310619
|
var online, goesLocal;
|
|
310618
310620
|
var init_new_file = __esm({
|
|
310619
310621
|
"lib/client/cloud/new-file.ts"() {
|
|
310622
|
+
"use strict";
|
|
310620
310623
|
init_scene_graph();
|
|
310621
310624
|
init_print_pages();
|
|
310622
310625
|
init_page_presets();
|
|
@@ -311363,7 +311366,6 @@ async function dispatchShaped(key5, options) {
|
|
|
311363
311366
|
var onViolation;
|
|
311364
311367
|
var init_dispatch = __esm({
|
|
311365
311368
|
"lib/commands/dispatch.ts"() {
|
|
311366
|
-
"use strict";
|
|
311367
311369
|
init_errors();
|
|
311368
311370
|
init_registry();
|
|
311369
311371
|
init_confirm();
|
|
@@ -327683,7 +327685,7 @@ var init_package = __esm({
|
|
|
327683
327685
|
"packages/runtime/package.json"() {
|
|
327684
327686
|
package_default = {
|
|
327685
327687
|
name: "@popcraft/runtime",
|
|
327686
|
-
version: "0.42.
|
|
327688
|
+
version: "0.42.1",
|
|
327687
327689
|
description: "What code exported from PopCraft shares: the meaning of expressions (operators and functions) and, as it grows, the parts of a design's behaviour that are common code rather than generated React.",
|
|
327688
327690
|
license: "MIT",
|
|
327689
327691
|
homepage: "https://popcraft.app/docs/exporting/nextjs",
|
|
@@ -352349,7 +352351,6 @@ function exportsOf(source3) {
|
|
|
352349
352351
|
var CODE_LIMITS, packageOf;
|
|
352350
352352
|
var init_source2 = __esm({
|
|
352351
352353
|
"lib/code/source.ts"() {
|
|
352352
|
-
"use strict";
|
|
352353
352354
|
CODE_LIMITS = { modules: 100, sourceLength: 2e5, packages: 12 };
|
|
352354
352355
|
packageOf = (spec) => spec.split("/").slice(0, spec.startsWith("@") ? 2 : 1).join("/");
|
|
352355
352356
|
}
|
|
@@ -352392,7 +352393,6 @@ function compileModule(module2) {
|
|
|
352392
352393
|
var import_sucrase, BUILT_IN, memo4;
|
|
352393
352394
|
var init_compile2 = __esm({
|
|
352394
352395
|
"lib/code/compile.ts"() {
|
|
352395
|
-
"use strict";
|
|
352396
352396
|
import_sucrase = __toESM(require_dist2());
|
|
352397
352397
|
init_source2();
|
|
352398
352398
|
init_source2();
|
|
@@ -364538,7 +364538,7 @@ var init_open_intent = __esm({
|
|
|
364538
364538
|
}
|
|
364539
364539
|
});
|
|
364540
364540
|
|
|
364541
|
-
// node_modules/.pnpm/@hyperyai+sdk@2.
|
|
364541
|
+
// node_modules/.pnpm/@hyperyai+sdk@2.1.0_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_62022f8c0abbfd4c405f5fb20b5aa9ec/node_modules/@hyperyai/sdk/dist/agents/core/hypery-model.js
|
|
364542
364542
|
function agentModelError(message, code, status3) {
|
|
364543
364543
|
{
|
|
364544
364544
|
return { name: "AgentModelError", message, code: code ?? "ai_upstream", status: ((__v) => __v == null ? "null" : typeof __v)(status3) === "number" ? status3 : 502 };
|
|
@@ -364716,7 +364716,7 @@ function createHyperyModel(opts) {
|
|
|
364716
364716
|
if (base.endsWith("/") ?? null) {
|
|
364717
364717
|
base = base.slice(0, base.length - 1) ?? null;
|
|
364718
364718
|
}
|
|
364719
|
-
return async (messages, tools, hooks, signal) => {
|
|
364719
|
+
return async (messages, tools, hooks, signal, req) => {
|
|
364720
364720
|
{
|
|
364721
364721
|
let token = await (resolve2(opts.token) ?? null);
|
|
364722
364722
|
if (((__v) => __v == null ? "null" : typeof __v)(token) !== "string" || token === "") {
|
|
@@ -364732,7 +364732,8 @@ function createHyperyModel(opts) {
|
|
|
364732
364732
|
}
|
|
364733
364733
|
if (hasTools) {
|
|
364734
364734
|
request2.tools = tools;
|
|
364735
|
-
|
|
364735
|
+
let choice = req != null && ((__v) => __v == null ? "null" : typeof __v)(req) === "object" ? req.toolChoice ?? null : null;
|
|
364736
|
+
request2.tool_choice = choice != null ? choice : "auto";
|
|
364736
364737
|
}
|
|
364737
364738
|
let body = JSON.stringify(request2) ?? null;
|
|
364738
364739
|
if (body.length > limit) {
|
|
@@ -364859,7 +364860,7 @@ function createHyperyModel(opts) {
|
|
|
364859
364860
|
}
|
|
364860
364861
|
var delay, utf8Complete, utf8Decode, MAX_REQUEST_BYTES, DEFAULT_IDLE_TIMEOUT_MS, HYPERY_TEAM_HEADER2, HYPERY_PAYMENT_SOURCE_HEADER2;
|
|
364861
364862
|
var init_hypery_model = __esm({
|
|
364862
|
-
"node_modules/.pnpm/@hyperyai+sdk@2.
|
|
364863
|
+
"node_modules/.pnpm/@hyperyai+sdk@2.1.0_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_62022f8c0abbfd4c405f5fb20b5aa9ec/node_modules/@hyperyai/sdk/dist/agents/core/hypery-model.js"() {
|
|
364863
364864
|
delay = ((ms2) => new Promise((settle4) => setTimeout(() => settle4(null), Math.max(0, Number(ms2) || 0))));
|
|
364864
364865
|
utf8Complete = ((b) => {
|
|
364865
364866
|
if (!Array.isArray(b)) return null;
|
|
@@ -364880,7 +364881,7 @@ var init_hypery_model = __esm({
|
|
|
364880
364881
|
}
|
|
364881
364882
|
});
|
|
364882
364883
|
|
|
364883
|
-
// node_modules/.pnpm/@hyperyai+sdk@2.
|
|
364884
|
+
// node_modules/.pnpm/@hyperyai+sdk@2.1.0_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_62022f8c0abbfd4c405f5fb20b5aa9ec/node_modules/@hyperyai/sdk/dist/agents/core/context.js
|
|
364884
364885
|
function sizeOf2(messages) {
|
|
364885
364886
|
{
|
|
364886
364887
|
return (JSON.stringify(messages) ?? null).length;
|
|
@@ -365018,13 +365019,13 @@ async function compactTranscript(messages, opts) {
|
|
|
365018
365019
|
}
|
|
365019
365020
|
var RENDER_TURN_PREFIX, KEEP_IMAGE_TURNS;
|
|
365020
365021
|
var init_context2 = __esm({
|
|
365021
|
-
"node_modules/.pnpm/@hyperyai+sdk@2.
|
|
365022
|
+
"node_modules/.pnpm/@hyperyai+sdk@2.1.0_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_62022f8c0abbfd4c405f5fb20b5aa9ec/node_modules/@hyperyai/sdk/dist/agents/core/context.js"() {
|
|
365022
365023
|
RENDER_TURN_PREFIX = "Result of ";
|
|
365023
365024
|
KEEP_IMAGE_TURNS = 2;
|
|
365024
365025
|
}
|
|
365025
365026
|
});
|
|
365026
365027
|
|
|
365027
|
-
// node_modules/.pnpm/@hyperyai+sdk@2.
|
|
365028
|
+
// node_modules/.pnpm/@hyperyai+sdk@2.1.0_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_62022f8c0abbfd4c405f5fb20b5aa9ec/node_modules/@hyperyai/sdk/dist/agents/core/loop.js
|
|
365028
365029
|
function batchCalls(calls, isParallel, max3) {
|
|
365029
365030
|
{
|
|
365030
365031
|
let batches = [];
|
|
@@ -365184,13 +365185,25 @@ async function runAgentLoop(opts) {
|
|
|
365184
365185
|
}
|
|
365185
365186
|
};
|
|
365186
365187
|
let modelHooks = { onTextDelta: hook(hooks, "onTextDelta") ?? null, onReasoningDelta: hook(hooks, "onReasoningDelta") ?? null, onToolProgress: hook(hooks, "onToolProgress") ?? null };
|
|
365187
|
-
let
|
|
365188
|
+
let choiceFor = (round6) => {
|
|
365189
|
+
{
|
|
365190
|
+
let c2 = opts.toolChoice ?? null;
|
|
365191
|
+
if (((__v) => __v == null ? "null" : typeof __v)(c2) === "function") {
|
|
365192
|
+
c2 = c2(round6) ?? null ?? null;
|
|
365193
|
+
}
|
|
365194
|
+
return c2;
|
|
365195
|
+
}
|
|
365196
|
+
};
|
|
365197
|
+
let call2 = async (msgs, tools, choice) => {
|
|
365188
365198
|
{
|
|
365189
365199
|
let attempt = 0;
|
|
365190
365200
|
while (true) {
|
|
365191
365201
|
try {
|
|
365192
365202
|
{
|
|
365193
|
-
|
|
365203
|
+
if (choice == null || tools.length === 0) {
|
|
365204
|
+
return await (opts.callModel(msgs, tools, modelHooks, signal) ?? null);
|
|
365205
|
+
}
|
|
365206
|
+
return await (opts.callModel(msgs, tools, modelHooks, signal, { toolChoice: choice }) ?? null);
|
|
365194
365207
|
}
|
|
365195
365208
|
} catch (err2) {
|
|
365196
365209
|
{
|
|
@@ -365221,7 +365234,7 @@ async function runAgentLoop(opts) {
|
|
|
365221
365234
|
if (onStart != null) {
|
|
365222
365235
|
onStart(round5) ?? null;
|
|
365223
365236
|
}
|
|
365224
|
-
let turn = await (call2(messages, specs) ?? null);
|
|
365237
|
+
let turn = await (call2(messages, specs, choiceFor(round5) ?? null) ?? null);
|
|
365225
365238
|
text = turn.text;
|
|
365226
365239
|
let toolCalls = Array.isArray(turn.toolCalls) ?? null ? turn.toolCalls : [];
|
|
365227
365240
|
if (toolCalls.length > 0) {
|
|
@@ -365337,7 +365350,7 @@ async function runAgentLoop(opts) {
|
|
|
365337
365350
|
round5 = round5 + 1;
|
|
365338
365351
|
}
|
|
365339
365352
|
messages.push({ role: "user", content: "You have reached the tool limit for this turn. Summarise what you changed and what is left, without calling more tools." }) ?? null;
|
|
365340
|
-
let final = await (call2(messages, []) ?? null);
|
|
365353
|
+
let final = await (call2(messages, [], null) ?? null);
|
|
365341
365354
|
messages.push({ role: "assistant", content: final.text }) ?? null;
|
|
365342
365355
|
await (save(maxRounds, true) ?? null);
|
|
365343
365356
|
return { messages, text: final.text, rounds: maxRounds, exhausted: true, stopped: false, acted };
|
|
@@ -365345,7 +365358,7 @@ async function runAgentLoop(opts) {
|
|
|
365345
365358
|
}
|
|
365346
365359
|
var DEFAULT_MAX_ROUNDS, DEFAULT_MAX_PARALLEL, DEFAULT_ACTION_NUDGE, RENDER_TURN_PREFIX2, RECOVERABLE_WORDS;
|
|
365347
365360
|
var init_loop = __esm({
|
|
365348
|
-
"node_modules/.pnpm/@hyperyai+sdk@2.
|
|
365361
|
+
"node_modules/.pnpm/@hyperyai+sdk@2.1.0_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_62022f8c0abbfd4c405f5fb20b5aa9ec/node_modules/@hyperyai/sdk/dist/agents/core/loop.js"() {
|
|
365349
365362
|
init_context2();
|
|
365350
365363
|
DEFAULT_MAX_ROUNDS = 40;
|
|
365351
365364
|
DEFAULT_MAX_PARALLEL = 4;
|
|
@@ -365355,7 +365368,7 @@ var init_loop = __esm({
|
|
|
365355
365368
|
}
|
|
365356
365369
|
});
|
|
365357
365370
|
|
|
365358
|
-
// node_modules/.pnpm/@hyperyai+sdk@2.
|
|
365371
|
+
// node_modules/.pnpm/@hyperyai+sdk@2.1.0_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_62022f8c0abbfd4c405f5fb20b5aa9ec/node_modules/@hyperyai/sdk/dist/agents/core/runtime.js
|
|
365359
365372
|
function isBusy(s) {
|
|
365360
365373
|
{
|
|
365361
365374
|
return s != null && (s.status === "running" || s.status === "queued");
|
|
@@ -365487,14 +365500,19 @@ function createAgentRuntime(host) {
|
|
|
365487
365500
|
}
|
|
365488
365501
|
let ctx2 = { session: session3, profile, readOnly: forceReadOnly || profile.readOnly === true, signal: control.signal };
|
|
365489
365502
|
let tools = (host.childTools(ctx2) ?? null).concat([REPORT_SPEC]) ?? null;
|
|
365490
|
-
let messages = fresh ? [{ role: "system", content: host.childSystemPrompt(ctx2) ?? null }, { role: "user", content: prompt2 }] : session3.transcript.concat([{ role: "user", content: "Message from the main agent:\n" + prompt2 }]) ?? null;
|
|
365491
365503
|
let childModel = ((__v) => __v == null ? "null" : typeof __v)(host.childModel) === "function" ? host.childModel(ctx2) ?? null : null;
|
|
365492
365504
|
let budget = ((__v) => __v == null ? "null" : typeof __v)(profile.maxRounds) === "number" && profile.maxRounds > 0 ? profile.maxRounds : ((__v) => __v == null ? "null" : typeof __v)(host.maxRounds) === "number" && host.maxRounds > 0 ? host.maxRounds : 30;
|
|
365493
365505
|
let ok2 = true;
|
|
365494
365506
|
let summary = "";
|
|
365495
365507
|
let rounds = 0;
|
|
365508
|
+
let wasStopped = () => {
|
|
365509
|
+
{
|
|
365510
|
+
return control.signal.aborted === true || parentSignal != null && parentSignal.aborted === true;
|
|
365511
|
+
}
|
|
365512
|
+
};
|
|
365496
365513
|
try {
|
|
365497
365514
|
{
|
|
365515
|
+
let messages = fresh ? [{ role: "system", content: await (host.childSystemPrompt(ctx2) ?? null) }, { role: "user", content: prompt2 }] : session3.transcript.concat([{ role: "user", content: "Message from the main agent:\n" + prompt2 }]) ?? null;
|
|
365498
365516
|
let outcome = await (runAgentLoop({ messages, tools, callModel: ((__v) => __v == null ? "null" : typeof __v)(childModel) === "function" ? childModel : host.callModel, signal: control.signal, stopped: () => {
|
|
365499
365517
|
{
|
|
365500
365518
|
return parentSignal != null && parentSignal.aborted === true;
|
|
@@ -365551,13 +365569,13 @@ function createAgentRuntime(host) {
|
|
|
365551
365569
|
} catch (err2) {
|
|
365552
365570
|
{
|
|
365553
365571
|
ok2 = false;
|
|
365554
|
-
summary = "(agent error: " + (errorMessage2(err2) ?? null) + ")";
|
|
365572
|
+
summary = wasStopped() ?? null ? "(stopped)" : "(agent error: " + (errorMessage2(err2) ?? null) + ")";
|
|
365555
365573
|
}
|
|
365556
365574
|
}
|
|
365557
365575
|
controls.delete(session3.id) ?? null;
|
|
365558
365576
|
session3.rounds = session3.rounds + rounds;
|
|
365559
365577
|
if (session3.status === "running") {
|
|
365560
|
-
session3.status = ok2 ? "done" : "error";
|
|
365578
|
+
session3.status = ok2 ? "done" : wasStopped() ?? null ? "stopped" : "error";
|
|
365561
365579
|
session3.summary = summary;
|
|
365562
365580
|
session3.endedAt = now2() ?? null;
|
|
365563
365581
|
} else {
|
|
@@ -365810,7 +365828,7 @@ function createAgentRuntime(host) {
|
|
|
365810
365828
|
}
|
|
365811
365829
|
var delay2, REPORT_TOOL, REPORT_SPEC, WAIT_STEP_MS;
|
|
365812
365830
|
var init_runtime5 = __esm({
|
|
365813
|
-
"node_modules/.pnpm/@hyperyai+sdk@2.
|
|
365831
|
+
"node_modules/.pnpm/@hyperyai+sdk@2.1.0_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_62022f8c0abbfd4c405f5fb20b5aa9ec/node_modules/@hyperyai/sdk/dist/agents/core/runtime.js"() {
|
|
365814
365832
|
init_loop();
|
|
365815
365833
|
delay2 = ((ms2) => new Promise((settle4) => setTimeout(() => settle4(null), Math.max(0, Number(ms2) || 0))));
|
|
365816
365834
|
REPORT_TOOL = "report_to_parent";
|
|
@@ -365819,39 +365837,39 @@ var init_runtime5 = __esm({
|
|
|
365819
365837
|
}
|
|
365820
365838
|
});
|
|
365821
365839
|
|
|
365822
|
-
// node_modules/.pnpm/@hyperyai+sdk@2.
|
|
365840
|
+
// node_modules/.pnpm/@hyperyai+sdk@2.1.0_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_62022f8c0abbfd4c405f5fb20b5aa9ec/node_modules/@hyperyai/sdk/dist/agents/core/types.js
|
|
365823
365841
|
var init_types9 = __esm({
|
|
365824
|
-
"node_modules/.pnpm/@hyperyai+sdk@2.
|
|
365842
|
+
"node_modules/.pnpm/@hyperyai+sdk@2.1.0_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_62022f8c0abbfd4c405f5fb20b5aa9ec/node_modules/@hyperyai/sdk/dist/agents/core/types.js"() {
|
|
365825
365843
|
}
|
|
365826
365844
|
});
|
|
365827
365845
|
|
|
365828
|
-
// node_modules/.pnpm/@hyperyai+sdk@2.
|
|
365846
|
+
// node_modules/.pnpm/@hyperyai+sdk@2.1.0_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_62022f8c0abbfd4c405f5fb20b5aa9ec/node_modules/@hyperyai/sdk/dist/agents/core/orchestration.js
|
|
365829
365847
|
var init_orchestration = __esm({
|
|
365830
|
-
"node_modules/.pnpm/@hyperyai+sdk@2.
|
|
365848
|
+
"node_modules/.pnpm/@hyperyai+sdk@2.1.0_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_62022f8c0abbfd4c405f5fb20b5aa9ec/node_modules/@hyperyai/sdk/dist/agents/core/orchestration.js"() {
|
|
365831
365849
|
}
|
|
365832
365850
|
});
|
|
365833
365851
|
|
|
365834
|
-
// node_modules/.pnpm/@hyperyai+sdk@2.
|
|
365852
|
+
// node_modules/.pnpm/@hyperyai+sdk@2.1.0_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_62022f8c0abbfd4c405f5fb20b5aa9ec/node_modules/@hyperyai/sdk/dist/agents/core/profiles.js
|
|
365835
365853
|
var ORCHESTRATOR_GUIDANCE;
|
|
365836
365854
|
var init_profiles2 = __esm({
|
|
365837
|
-
"node_modules/.pnpm/@hyperyai+sdk@2.
|
|
365855
|
+
"node_modules/.pnpm/@hyperyai+sdk@2.1.0_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_62022f8c0abbfd4c405f5fb20b5aa9ec/node_modules/@hyperyai/sdk/dist/agents/core/profiles.js"() {
|
|
365838
365856
|
ORCHESTRATOR_GUIDANCE = ["You orchestrate agents. For anything beyond a small edit:", "1. Plan: break the request into steps (a planner agent for big requests).", "2. Do: hand independent steps to agents in parallel (builder for changes, explorer to find things); do small steps yourself.", "3. Check: when the work is done, have a reviewer agent check it against the request.", "4. Repeat: on FAIL, send the fixes to the agent that built it (send_message keeps its context) and review again \u2014 at most three rounds \u2014 then report honestly what is still wrong.", "Steer running agents with send_message, stop ones going wrong with stop_agent, and answer their reports. Finish only when the work is done and checked."].join("\n") ?? null;
|
|
365839
365857
|
}
|
|
365840
365858
|
});
|
|
365841
365859
|
|
|
365842
|
-
// node_modules/.pnpm/@hyperyai+sdk@2.
|
|
365860
|
+
// node_modules/.pnpm/@hyperyai+sdk@2.1.0_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_62022f8c0abbfd4c405f5fb20b5aa9ec/node_modules/@hyperyai/sdk/dist/agents/core/supervisor.js
|
|
365843
365861
|
var init_supervisor = __esm({
|
|
365844
|
-
"node_modules/.pnpm/@hyperyai+sdk@2.
|
|
365862
|
+
"node_modules/.pnpm/@hyperyai+sdk@2.1.0_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_62022f8c0abbfd4c405f5fb20b5aa9ec/node_modules/@hyperyai/sdk/dist/agents/core/supervisor.js"() {
|
|
365845
365863
|
}
|
|
365846
365864
|
});
|
|
365847
365865
|
|
|
365848
|
-
// node_modules/.pnpm/@hyperyai+sdk@2.
|
|
365866
|
+
// node_modules/.pnpm/@hyperyai+sdk@2.1.0_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_62022f8c0abbfd4c405f5fb20b5aa9ec/node_modules/@hyperyai/sdk/dist/agents/core/todos.js
|
|
365849
365867
|
var init_todos = __esm({
|
|
365850
|
-
"node_modules/.pnpm/@hyperyai+sdk@2.
|
|
365868
|
+
"node_modules/.pnpm/@hyperyai+sdk@2.1.0_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_62022f8c0abbfd4c405f5fb20b5aa9ec/node_modules/@hyperyai/sdk/dist/agents/core/todos.js"() {
|
|
365851
365869
|
}
|
|
365852
365870
|
});
|
|
365853
365871
|
|
|
365854
|
-
// node_modules/.pnpm/@hyperyai+sdk@2.
|
|
365872
|
+
// node_modules/.pnpm/@hyperyai+sdk@2.1.0_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_62022f8c0abbfd4c405f5fb20b5aa9ec/node_modules/@hyperyai/sdk/dist/agents/core/store.js
|
|
365855
365873
|
async function loadAll(kv, prefix) {
|
|
365856
365874
|
{
|
|
365857
365875
|
let out = [];
|
|
@@ -365883,19 +365901,19 @@ function sessionStore(kv, scope) {
|
|
|
365883
365901
|
}
|
|
365884
365902
|
}
|
|
365885
365903
|
var init_store = __esm({
|
|
365886
|
-
"node_modules/.pnpm/@hyperyai+sdk@2.
|
|
365904
|
+
"node_modules/.pnpm/@hyperyai+sdk@2.1.0_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_62022f8c0abbfd4c405f5fb20b5aa9ec/node_modules/@hyperyai/sdk/dist/agents/core/store.js"() {
|
|
365887
365905
|
}
|
|
365888
365906
|
});
|
|
365889
365907
|
|
|
365890
|
-
// node_modules/.pnpm/@hyperyai+sdk@2.
|
|
365908
|
+
// node_modules/.pnpm/@hyperyai+sdk@2.1.0_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_62022f8c0abbfd4c405f5fb20b5aa9ec/node_modules/@hyperyai/sdk/dist/agents/core/run.js
|
|
365891
365909
|
var init_run = __esm({
|
|
365892
|
-
"node_modules/.pnpm/@hyperyai+sdk@2.
|
|
365910
|
+
"node_modules/.pnpm/@hyperyai+sdk@2.1.0_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_62022f8c0abbfd4c405f5fb20b5aa9ec/node_modules/@hyperyai/sdk/dist/agents/core/run.js"() {
|
|
365893
365911
|
}
|
|
365894
365912
|
});
|
|
365895
365913
|
|
|
365896
|
-
// node_modules/.pnpm/@hyperyai+sdk@2.
|
|
365914
|
+
// node_modules/.pnpm/@hyperyai+sdk@2.1.0_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_62022f8c0abbfd4c405f5fb20b5aa9ec/node_modules/@hyperyai/sdk/dist/agents/core/index.js
|
|
365897
365915
|
var init_core3 = __esm({
|
|
365898
|
-
"node_modules/.pnpm/@hyperyai+sdk@2.
|
|
365916
|
+
"node_modules/.pnpm/@hyperyai+sdk@2.1.0_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_62022f8c0abbfd4c405f5fb20b5aa9ec/node_modules/@hyperyai/sdk/dist/agents/core/index.js"() {
|
|
365899
365917
|
init_types9();
|
|
365900
365918
|
init_loop();
|
|
365901
365919
|
init_context2();
|
|
@@ -365910,7 +365928,7 @@ var init_core3 = __esm({
|
|
|
365910
365928
|
}
|
|
365911
365929
|
});
|
|
365912
365930
|
|
|
365913
|
-
// node_modules/.pnpm/@hyperyai+sdk@2.
|
|
365931
|
+
// node_modules/.pnpm/@hyperyai+sdk@2.1.0_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_62022f8c0abbfd4c405f5fb20b5aa9ec/node_modules/@hyperyai/sdk/dist/agents/indexeddb.js
|
|
365914
365932
|
function indexedDbStore(name2 = "hypery-agents") {
|
|
365915
365933
|
let db3 = null;
|
|
365916
365934
|
const open4 = () => db3 ?? (db3 = new Promise((res, rej) => {
|
|
@@ -365942,11 +365960,11 @@ function indexedDbStore(name2 = "hypery-agents") {
|
|
|
365942
365960
|
};
|
|
365943
365961
|
}
|
|
365944
365962
|
var init_indexeddb2 = __esm({
|
|
365945
|
-
"node_modules/.pnpm/@hyperyai+sdk@2.
|
|
365963
|
+
"node_modules/.pnpm/@hyperyai+sdk@2.1.0_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_62022f8c0abbfd4c405f5fb20b5aa9ec/node_modules/@hyperyai/sdk/dist/agents/indexeddb.js"() {
|
|
365946
365964
|
}
|
|
365947
365965
|
});
|
|
365948
365966
|
|
|
365949
|
-
// node_modules/.pnpm/@hyperyai+sdk@2.
|
|
365967
|
+
// node_modules/.pnpm/@hyperyai+sdk@2.1.0_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_62022f8c0abbfd4c405f5fb20b5aa9ec/node_modules/@hyperyai/sdk/dist/agents/index.js
|
|
365950
365968
|
function createHyperyModel2(opts) {
|
|
365951
365969
|
return createHyperyModel({ ...opts, fetch: opts.fetch ?? ((url4, init) => fetch(url4, init)) });
|
|
365952
365970
|
}
|
|
@@ -365962,7 +365980,7 @@ function createAgentRuntime2(host) {
|
|
|
365962
365980
|
});
|
|
365963
365981
|
}
|
|
365964
365982
|
var init_agents = __esm({
|
|
365965
|
-
"node_modules/.pnpm/@hyperyai+sdk@2.
|
|
365983
|
+
"node_modules/.pnpm/@hyperyai+sdk@2.1.0_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_62022f8c0abbfd4c405f5fb20b5aa9ec/node_modules/@hyperyai/sdk/dist/agents/index.js"() {
|
|
365966
365984
|
init_hypery_model();
|
|
365967
365985
|
init_runtime5();
|
|
365968
365986
|
init_core3();
|
|
@@ -366273,7 +366291,7 @@ function subagentDelegate(deps = {}) {
|
|
|
366273
366291
|
prompt: request2.prompt,
|
|
366274
366292
|
description: request2.description,
|
|
366275
366293
|
readOnly: deps.readOnly === true || request2.readOnly === true,
|
|
366276
|
-
background: request2.background
|
|
366294
|
+
background: request2.background,
|
|
366277
366295
|
signal: deps.signal,
|
|
366278
366296
|
parentCallId: request2.callId
|
|
366279
366297
|
});
|
|
@@ -366358,7 +366376,8 @@ var init_delegate = __esm({
|
|
|
366358
366376
|
prompt: args2.prompt,
|
|
366359
366377
|
description: args2.description,
|
|
366360
366378
|
readOnly: args2.readonly === true,
|
|
366361
|
-
background: args2.run_in_background
|
|
366379
|
+
background: args2.run_in_background,
|
|
366380
|
+
// omitted → the profile's `background` default (the SDK applies it)
|
|
366362
366381
|
callId: ctx2.callId
|
|
366363
366382
|
});
|
|
366364
366383
|
if (reply.kind === "refused") return { summary: "task refused (nested)", data: { error: reply.reason } };
|
|
@@ -412692,7 +412711,7 @@ init_resources();
|
|
|
412692
412711
|
init_desktop();
|
|
412693
412712
|
init_hypery();
|
|
412694
412713
|
import { createInterface } from "node:readline";
|
|
412695
|
-
var VERSION2 = "0.42.
|
|
412714
|
+
var VERSION2 = "0.42.1";
|
|
412696
412715
|
var HELP = `popcraft ${VERSION2} \u2014 the PopCraft command line
|
|
412697
412716
|
|
|
412698
412717
|
Files (headless, on .popcraft files):
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@popcraft/cli",
|
|
3
|
-
"version": "0.42.
|
|
3
|
+
"version": "0.42.1",
|
|
4
4
|
"description": "The PopCraft command line: edit .popcraft files headlessly, call the REST API, publish to the marketplace and manage the desktop app's local plugins, themes, fonts, skills and agents.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://popcraft.app/docs/api/cli",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"esbuild": "0.28.2"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@popcraft/kit": "0.42.
|
|
37
|
+
"@popcraft/kit": "0.42.1"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "node build.mjs",
|