@agimon-ai/po-cloudflare 0.0.2-alpha.72 → 0.0.2-alpha.74
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/assets/plugins/compositions.json +1 -1
- package/dist/{index.edge-BiVQ9LoZ.js → index.edge-kJrIbDzE.js} +1 -1
- package/dist/{server-nHPXbRDA.js → server-B20agHjD.js} +1 -1
- package/dist/{server-p7qANgrf.js → server-B3jB3q_h.js} +1 -1
- package/dist/{server-C0Lt6nTt.js → server-B51reaJ9.js} +5 -2
- package/dist/{server-BCZ_R3kX.js → server-BD_tbxwG.js} +1 -1
- package/dist/{server-CkJQJ3Oo.js → server-BsEMLlTz.js} +1 -1
- package/dist/{server-BAbdiL38.js → server-BsjwqF7J.js} +1 -1
- package/dist/{server-BsgvOpBF.js → server-Byk0FT6E.js} +1 -1
- package/dist/{server-BGKAeB3M.js → server-CAipGCpQ.js} +1 -1
- package/dist/{server-DRFESCq1.js → server-CUGzeCH4.js} +1 -1
- package/dist/{server-_jWkMESg.js → server-CpbBJ9ZU.js} +9 -8
- package/dist/{server-B8-vStCx.js → server-CqDWkfdL.js} +1 -1
- package/dist/{server-BIQhg1jS.js → server-DEKg8AVN.js} +1 -1
- package/dist/{server-BtnOqSB5.js → server-DI6YhDI5.js} +1 -1
- package/dist/{server-Dkc9Kth2.js → server-DLDK_aeG.js} +1 -1
- package/dist/{server-CWR34Vx6.js → server-DYKXGQVY.js} +1 -1
- package/dist/{server-AKM07WcM.js → server-DebdjWjz.js} +1 -1
- package/dist/{server-DF0YIUeI.js → server-DmqO6gBs.js} +1 -1
- package/dist/{server-_HZm8wEC.js → server-Dosi6o2W.js} +3 -1
- package/dist/{server-B0tM5Ygf.js → server-EYARWKpG.js} +1 -1
- package/dist/{server-Cjtr0oVJ.js → server-NKqdiQ5G.js} +1 -1
- package/dist/{server-vhmQi3co.js → server-_vSe9bTM.js} +1 -1
- package/dist/{server-BeoA0QB-.js → server-dBNqYUdX.js} +1 -1
- package/dist/{server-CMaWF5UA.js → server-hJ4tYEt4.js} +1 -1
- package/dist/{server-Cy2FhGBm.js → server-vZL2icDV.js} +1 -1
- package/dist/{server-D8yEblCB.js → server-wQHKuB2m.js} +1 -1
- package/dist/worker.js +464 -310
- package/package.json +49 -49
- /package/dist/assets/plugins/slots/{approval.09e72f36-DxS_uibk.js → approval.3e4ea6e4-DxS_uibk.js} +0 -0
- /package/dist/assets/plugins/slots/{artifacts.50b639bb-Cp37TAkd.js → artifacts.84980c32-Cp37TAkd.js} +0 -0
- /package/dist/assets/plugins/slots/{author.ea449ace-Ds9Y-tjN.js → author.8eca1a3d-Ds9Y-tjN.js} +0 -0
- /package/dist/assets/plugins/slots/{autocompact.6f428144-CDZpN7I7.js → autocompact.ec8f713f-CDZpN7I7.js} +0 -0
- /package/dist/assets/plugins/slots/{backdrop-bamboo.6e4c928d-qbifuMc6.js → backdrop-bamboo.1a4d85e9-qbifuMc6.js} +0 -0
- /package/dist/assets/plugins/slots/{browse.fa1f1a50-CVYvo1M5.js → browse.61a8907a-CVYvo1M5.js} +0 -0
- /package/dist/assets/plugins/slots/{builtin-tools.75108f21-Cq1ljoL-.js → builtin-tools.16ef5e25-Cq1ljoL-.js} +0 -0
- /package/dist/assets/plugins/slots/{calendar.d8b70190-BBjpOs1v.js → calendar.d337fc49-BBjpOs1v.js} +0 -0
- /package/dist/assets/plugins/slots/{codemode.c58fb583-DOR6OR7R.js → codemode.5f359b9c-DOR6OR7R.js} +0 -0
- /package/dist/assets/plugins/slots/{domain.753f9f92-CJrXxig9.js → domain.832848c8-CJrXxig9.js} +0 -0
- /package/dist/assets/plugins/slots/{edit.804fec90-BFF7_xN9.js → edit.7c802139-BFF7_xN9.js} +0 -0
- /package/dist/assets/plugins/slots/{files.66ffc636-CzOlZrRm.js → files.364f16c9-CzOlZrRm.js} +0 -0
- /package/dist/assets/plugins/slots/{goal.45dffa01-BtQBp3sw.js → goal.a97b169d-BtQBp3sw.js} +0 -0
- /package/dist/assets/plugins/slots/{grep.98262cff-9bUDfjyT.js → grep.d8bf9f57-9bUDfjyT.js} +0 -0
- /package/dist/assets/plugins/slots/{help.5fbd20f7-B4-y6gYK.js → help.5c78c071-B4-y6gYK.js} +0 -0
- /package/dist/assets/plugins/slots/{log.cb964209-BRPa3cVs.js → log.07fd59a4-BRPa3cVs.js} +0 -0
- /package/dist/assets/plugins/slots/{mcp.82cc1ff5-CFtzPkPC.js → mcp.ea8b6aa2-CFtzPkPC.js} +0 -0
- /package/dist/assets/plugins/slots/{plan.3852ba52-CH59Ff49.js → plan.7b30f8d8-CH59Ff49.js} +0 -0
- /package/dist/assets/plugins/slots/{profile.ab16dcec-0e9fWWyE.js → profile.63bc3ae6-0e9fWWyE.js} +0 -0
- /package/dist/assets/plugins/slots/{prompts.ae48c07a-BTqYnBX5.js → prompts.9d9b47cc-BTqYnBX5.js} +0 -0
- /package/dist/assets/plugins/slots/{read.4560591a-C7fMXDEH.js → read.926c024f-C7fMXDEH.js} +0 -0
- /package/dist/assets/plugins/slots/{runner.6e494d59-CqrpqhW9.js → runner.5393fa6c-CqrpqhW9.js} +0 -0
- /package/dist/assets/plugins/slots/{scaffold.d87a6ee0-9qY5gkYW.js → scaffold.686222eb-9qY5gkYW.js} +0 -0
- /package/dist/assets/plugins/slots/{session-mcp.2be84084-Cf0cqopp.js → session-mcp.8eb68fc9-Cf0cqopp.js} +0 -0
- /package/dist/assets/plugins/slots/{sessions.6f47cb4c-B1_eqPJQ.js → sessions.8e378a3b-B1_eqPJQ.js} +0 -0
- /package/dist/assets/plugins/slots/{skill.62a0a1b3-D-SKX8iw.js → skill.56c1cc07-D-SKX8iw.js} +0 -0
- /package/dist/assets/plugins/slots/{space.65a27e5a-fbLHc-DX.js → space.056e8bbc-fbLHc-DX.js} +0 -0
- /package/dist/assets/plugins/slots/{subagents.8bb9992c-Cm_YMEnn.js → subagents.31fc045b-Cm_YMEnn.js} +0 -0
- /package/dist/assets/plugins/slots/{template-advanced.59f3f98a-L0WOM4JT.js → template-advanced.9e8350fe-L0WOM4JT.js} +0 -0
- /package/dist/assets/plugins/slots/{template-desktop.0f0b8491-By9BZlaL.js → template-desktop.69a46f62-By9BZlaL.js} +0 -0
- /package/dist/assets/plugins/slots/{template-elegant.0e3b0acf-El05x7HK.js → template-elegant.381f6acb-El05x7HK.js} +0 -0
- /package/dist/assets/plugins/slots/{vault.3cbfcdc3-DpU_65Wy.js → vault.587549ba-DpU_65Wy.js} +0 -0
- /package/dist/assets/plugins/slots/{voice.a952113d-CvcuL__m.js → voice.9c687181-CvcuL__m.js} +0 -0
- /package/dist/assets/plugins/slots/{web-search.65013836-NVh9fdvE.js → web-search.f6292793-NVh9fdvE.js} +0 -0
- /package/dist/assets/plugins/slots/{workflows.cbc5c5c0-OLKSY9PE.js → workflows.8a13baad-OLKSY9PE.js} +0 -0
package/dist/worker.js
CHANGED
|
@@ -18792,11 +18792,15 @@ async function subagentConversations(harness, context) {
|
|
|
18792
18792
|
}
|
|
18793
18793
|
//#endregion
|
|
18794
18794
|
//#region ../../core/po-core/src/services/skillPrompt/index.ts
|
|
18795
|
+
const escape$2 = (text) => text.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replaceAll("\"", """);
|
|
18796
|
+
/** One skill as Pi lists it, or '' for a skill the model may not invoke. */
|
|
18797
|
+
function formatSkillForSystemPrompt(skill) {
|
|
18798
|
+
return skill.disableModelInvocation ? "" : `<skill><name>${escape$2(skill.name)}</name><description>${escape$2(skill.description)}</description><location>${escape$2(skill.filePath)}</location></skill>`;
|
|
18799
|
+
}
|
|
18795
18800
|
/** Pi's `<available_skills>` block: '' for no visible skills, otherwise led by a blank line. */
|
|
18796
18801
|
function formatSkillsForSystemPrompt(skills) {
|
|
18797
|
-
const
|
|
18798
|
-
|
|
18799
|
-
return visible.length ? `\n\n<available_skills>\n${visible.map((skill) => `<skill><name>${escape(skill.name)}</name><description>${escape(skill.description)}</description><location>${escape(skill.filePath)}</location></skill>`).join("\n")}\n</available_skills>` : "";
|
|
18802
|
+
const visible = skills.map(formatSkillForSystemPrompt).filter(Boolean);
|
|
18803
|
+
return visible.length ? `\n\n<available_skills>\n${visible.join("\n")}\n</available_skills>` : "";
|
|
18800
18804
|
}
|
|
18801
18805
|
//#endregion
|
|
18802
18806
|
//#region ../../core/po-core/src/services/toolContinuation/index.ts
|
|
@@ -19234,6 +19238,8 @@ const AGENT_LOCKED_ERROR = "The local agent is locked. Unlock it to start a turn
|
|
|
19234
19238
|
const CLEARED_SUMMARY = "The person cleared the conversation. Nothing before this point is available. Start fresh.";
|
|
19235
19239
|
const CODEX_API = "openai-codex-responses";
|
|
19236
19240
|
const CODEX_PROVIDER = "openai-codex";
|
|
19241
|
+
/** The last prompt section, holding text whose key `systemPromptSections` did not list. */
|
|
19242
|
+
const UNLISTED_PROMPT_SECTION = "po-unlisted";
|
|
19237
19243
|
/** Largest custom entry payload, in UTF-8 bytes. Every reader decodes a payload whole, so one entry must stay small. */
|
|
19238
19244
|
const MAX_CUSTOM_ENTRY_BYTES = 1048576;
|
|
19239
19245
|
/** Diagnostic codes of the error results pi-durable writes for a tool call that never ran to completion. */
|
|
@@ -19646,179 +19652,235 @@ async function createLaneRuntime(options, attached) {
|
|
|
19646
19652
|
}
|
|
19647
19653
|
}
|
|
19648
19654
|
});
|
|
19649
|
-
|
|
19650
|
-
|
|
19651
|
-
|
|
19652
|
-
|
|
19653
|
-
|
|
19654
|
-
|
|
19655
|
-
|
|
19656
|
-
|
|
19657
|
-
|
|
19658
|
-
|
|
19659
|
-
|
|
19660
|
-
|
|
19661
|
-
|
|
19655
|
+
let offered = [];
|
|
19656
|
+
let shownOrder = [];
|
|
19657
|
+
const inShownOrder = (previous, keys) => {
|
|
19658
|
+
const rank = new Map(previous.map((key, index) => [key, index]));
|
|
19659
|
+
const kept = keys.filter((key) => rank.has(key));
|
|
19660
|
+
kept.sort((left, right) => rank.get(left) - rank.get(right));
|
|
19661
|
+
return [...kept, ...keys.filter((key) => !rank.has(key))];
|
|
19662
|
+
};
|
|
19663
|
+
const inOfferedOrder = (candidates) => {
|
|
19664
|
+
const rank = new Map(offered.map((tool, index) => [tool.name, index]));
|
|
19665
|
+
const native = candidates.map(nativeTool);
|
|
19666
|
+
const unchanged = (tool) => {
|
|
19667
|
+
const index = rank.get(tool.name);
|
|
19668
|
+
return index !== void 0 && declarationsEqual(offered[index], tool);
|
|
19669
|
+
};
|
|
19670
|
+
return [...native.filter(unchanged).sort((left, right) => rank.get(left.name) - rank.get(right.name)), ...native.filter((tool) => !unchanged(tool))];
|
|
19671
|
+
};
|
|
19672
|
+
const offeredTools = () => inOfferedOrder(tools.filter((t) => activeNames.has(t.name)));
|
|
19673
|
+
const readTranscriptOrder = async (ctx) => {
|
|
19674
|
+
const { messages } = await conversation.context(ctx);
|
|
19675
|
+
const shown = /* @__PURE__ */ new Set();
|
|
19676
|
+
for (const message of messages) if (message.role === "system") for (const [key, value] of Object.entries(message.sections ?? {})) if (value === null) shown.delete(key);
|
|
19677
|
+
else shown.add(key);
|
|
19678
|
+
shownOrder = [...shown];
|
|
19679
|
+
offered = getCurrentTools(messages);
|
|
19680
|
+
};
|
|
19681
|
+
const listedSections = () => {
|
|
19682
|
+
const listed = typeof options.systemPromptSections === "function" ? options.systemPromptSections() : options.systemPromptSections;
|
|
19683
|
+
return listed?.length ? [...listed, UNLISTED_PROMPT_SECTION] : ["po"];
|
|
19684
|
+
};
|
|
19685
|
+
let rendered;
|
|
19686
|
+
const renderPrompt = async (keys, ctx) => {
|
|
19687
|
+
const prompt = typeof options.systemPrompt === "function" ? await options.systemPrompt(await resolveToolContext(ctx), ctx) : options.systemPrompt ?? "";
|
|
19688
|
+
if (typeof prompt !== "string") {
|
|
19689
|
+
const unlisted = Object.keys(prompt).filter((key) => !keys.includes(key));
|
|
19690
|
+
return unlisted.length ? {
|
|
19691
|
+
...prompt,
|
|
19692
|
+
[UNLISTED_PROMPT_SECTION]: unlisted.map((key) => prompt[key]).join("\n\n")
|
|
19693
|
+
} : prompt;
|
|
19694
|
+
}
|
|
19695
|
+
const skills = options.systemPrompt === void 0 ? formatSkillsForSystemPrompt(resources.skills ?? []) : "";
|
|
19696
|
+
return { [keys[0]]: [prompt, skills].filter(Boolean).join("\n\n") };
|
|
19697
|
+
};
|
|
19698
|
+
const install = () => {
|
|
19699
|
+
const keys = inShownOrder(shownOrder, listedSections());
|
|
19700
|
+
registry.install({
|
|
19701
|
+
name: extensionName,
|
|
19702
|
+
tools: inOfferedOrder(tools),
|
|
19703
|
+
sections: keys.map((key, index) => ({
|
|
19704
|
+
key,
|
|
19705
|
+
tag: false,
|
|
19706
|
+
async render(input, ctx) {
|
|
19707
|
+
if (index === 0) {
|
|
19708
|
+
preparationFailure = void 0;
|
|
19709
|
+
rendered = void 0;
|
|
19710
|
+
try {
|
|
19711
|
+
rendered = await renderPrompt(keys, ctx);
|
|
19712
|
+
} catch (error) {
|
|
19713
|
+
preparationFailure = error;
|
|
19714
|
+
throw error;
|
|
19715
|
+
}
|
|
19716
|
+
if (input.conversationId === conversation.id) {
|
|
19717
|
+
const visible = keys.filter((key) => rendered[key] !== void 0);
|
|
19718
|
+
shownOrder = inShownOrder(Object.keys(input.shown), visible);
|
|
19719
|
+
offered = input.agent.tools;
|
|
19720
|
+
}
|
|
19721
|
+
}
|
|
19722
|
+
if (!rendered) throw new Error("The system prompt was not prepared for this request.");
|
|
19723
|
+
return rendered[key];
|
|
19662
19724
|
}
|
|
19663
|
-
}
|
|
19664
|
-
|
|
19665
|
-
|
|
19666
|
-
|
|
19667
|
-
|
|
19668
|
-
|
|
19669
|
-
|
|
19670
|
-
|
|
19671
|
-
|
|
19672
|
-
|
|
19673
|
-
|
|
19725
|
+
})),
|
|
19726
|
+
hooks: [
|
|
19727
|
+
hook(GenerationTask, {
|
|
19728
|
+
async afterTools(_assistant, _results, api, ctx) {
|
|
19729
|
+
const lane = conversation;
|
|
19730
|
+
if (lane.id !== api.conversationId) return;
|
|
19731
|
+
await flushToolBoundary();
|
|
19732
|
+
for (const registration of checkpointBoundaries) {
|
|
19733
|
+
if (!registration.active || disposed || ctx.abortSignal?.aborted || external) continue;
|
|
19734
|
+
let open = true;
|
|
19735
|
+
try {
|
|
19736
|
+
await registration.callback({
|
|
19737
|
+
signal: ctx.abortSignal,
|
|
19738
|
+
appendMessage: (message, messageOptions) => commitCheckpointMessage(registration, lane, message, ctx, () => open, api.taskId, messageOptions)
|
|
19739
|
+
});
|
|
19740
|
+
} finally {
|
|
19741
|
+
open = false;
|
|
19742
|
+
}
|
|
19743
|
+
}
|
|
19744
|
+
},
|
|
19745
|
+
async beforeRequest(request, _api, ctx) {
|
|
19746
|
+
assertUnlocked();
|
|
19674
19747
|
try {
|
|
19675
|
-
await
|
|
19676
|
-
|
|
19677
|
-
|
|
19678
|
-
|
|
19679
|
-
|
|
19680
|
-
|
|
19748
|
+
const agent = await conversation.agent(ctx);
|
|
19749
|
+
const model = agent.model ? models.getModel(agent.model.provider, agent.model.modelId) : void 0;
|
|
19750
|
+
await options.beforeModelRequest?.({
|
|
19751
|
+
phase: "turn",
|
|
19752
|
+
model,
|
|
19753
|
+
prompt: [...request.messages],
|
|
19754
|
+
resources
|
|
19755
|
+
}, ctx);
|
|
19756
|
+
const systemPrompt = getCurrentSystemPrompt(request.messages);
|
|
19757
|
+
const contextMessages = options.transformContext ? restoreCustomContextMessages(request.messages, await conversation.context(ctx)) : request.messages.filter((message) => message.role !== "system");
|
|
19758
|
+
const originalContext = structuredClone(contextMessages);
|
|
19759
|
+
const patch = await options.transformContext?.({
|
|
19760
|
+
messages: contextMessages,
|
|
19761
|
+
systemPrompt
|
|
19762
|
+
}, ctx);
|
|
19763
|
+
let messages = patch && (patch.systemPrompt !== void 0 && patch.systemPrompt !== systemPrompt || patch.messages !== void 0 && !isDeepStrictEqual(patch.messages, originalContext)) ? [{
|
|
19764
|
+
role: "system",
|
|
19765
|
+
content: patch.systemPrompt ?? systemPrompt,
|
|
19766
|
+
timestamp: Date.now(),
|
|
19767
|
+
toolsAdded: getCurrentTools(request.messages)
|
|
19768
|
+
}, ...convertToLlm(patch.messages ?? request.messages.filter((m) => m.role !== "system"))] : [...request.messages];
|
|
19769
|
+
if (options.toProviderMessages) messages = await options.toProviderMessages(messages, ctx);
|
|
19770
|
+
messages = await fitProviderImages(messages);
|
|
19771
|
+
await options.beforeModelRequest?.({
|
|
19772
|
+
phase: "request",
|
|
19773
|
+
model,
|
|
19774
|
+
resources
|
|
19775
|
+
}, ctx);
|
|
19776
|
+
return { messages };
|
|
19777
|
+
} catch (error) {
|
|
19778
|
+
preparationFailure = error;
|
|
19779
|
+
throw error;
|
|
19681
19780
|
}
|
|
19682
19781
|
}
|
|
19683
|
-
},
|
|
19684
|
-
|
|
19685
|
-
|
|
19686
|
-
|
|
19687
|
-
|
|
19688
|
-
|
|
19689
|
-
|
|
19690
|
-
|
|
19691
|
-
|
|
19692
|
-
|
|
19693
|
-
|
|
19694
|
-
}, ctx);
|
|
19695
|
-
const systemPrompt = getCurrentSystemPrompt(request.messages);
|
|
19696
|
-
const contextMessages = options.transformContext ? restoreCustomContextMessages(request.messages, await conversation.context(ctx)) : request.messages.filter((message) => message.role !== "system");
|
|
19697
|
-
const originalContext = structuredClone(contextMessages);
|
|
19698
|
-
const patch = await options.transformContext?.({
|
|
19699
|
-
messages: contextMessages,
|
|
19700
|
-
systemPrompt
|
|
19782
|
+
}),
|
|
19783
|
+
hook(ToolTask, {
|
|
19784
|
+
async beforeTool(call, _api, ctx) {
|
|
19785
|
+
if (isBashSequenceEnvelope(call.name, call.arguments)) {
|
|
19786
|
+
if (!options.beforeTool || !options.afterTool) throw new Error("Bash sequences require retained host policy support.");
|
|
19787
|
+
return;
|
|
19788
|
+
}
|
|
19789
|
+
const patch = await options.beforeTool?.({
|
|
19790
|
+
toolCallId: call.id,
|
|
19791
|
+
toolName: call.name,
|
|
19792
|
+
args: call.arguments
|
|
19701
19793
|
}, ctx);
|
|
19702
|
-
|
|
19703
|
-
|
|
19704
|
-
|
|
19705
|
-
|
|
19706
|
-
|
|
19707
|
-
}
|
|
19708
|
-
|
|
19709
|
-
|
|
19710
|
-
|
|
19711
|
-
|
|
19712
|
-
|
|
19713
|
-
|
|
19794
|
+
if (patch?.block?.terminate) terminatingCalls.add(call.id);
|
|
19795
|
+
if (patch?.args) hookedArgs.set(call.id, patch.args);
|
|
19796
|
+
return patch ? {
|
|
19797
|
+
arguments: patch.args,
|
|
19798
|
+
block: patch.block?.reason
|
|
19799
|
+
} : void 0;
|
|
19800
|
+
},
|
|
19801
|
+
async afterTool(call, executed, _api, ctx) {
|
|
19802
|
+
const thrown = thrownFailures.get(call.id);
|
|
19803
|
+
thrownFailures.delete(call.id);
|
|
19804
|
+
if (isBashSequenceEnvelope(call.name, call.arguments)) return void 0;
|
|
19805
|
+
if (executed.diagnostics?.some((diagnostic) => HARNESS_TOOL_CODES.has(diagnostic.code ?? ""))) return terminatingCalls.delete(call.id) ? {
|
|
19806
|
+
...executed,
|
|
19807
|
+
control: {
|
|
19808
|
+
...executed.control,
|
|
19809
|
+
terminate: true
|
|
19810
|
+
}
|
|
19811
|
+
} : void 0;
|
|
19812
|
+
const details = executed.details;
|
|
19813
|
+
const detailsRecord = details !== null && typeof details === "object" && !Array.isArray(details) ? details : void 0;
|
|
19814
|
+
const result = thrown && executed.isError && detailsRecord?.failure === void 0 ? {
|
|
19815
|
+
...executed,
|
|
19816
|
+
details: {
|
|
19817
|
+
...detailsRecord,
|
|
19818
|
+
failure: thrown
|
|
19819
|
+
}
|
|
19820
|
+
} : executed;
|
|
19821
|
+
const patch = await options.afterTool?.({
|
|
19822
|
+
toolCallId: call.id,
|
|
19823
|
+
toolName: call.name,
|
|
19824
|
+
args: call.arguments,
|
|
19825
|
+
content: result.output ?? [],
|
|
19826
|
+
details: result.details,
|
|
19827
|
+
isError: result.isError ?? false,
|
|
19828
|
+
usage: result.usage
|
|
19714
19829
|
}, ctx);
|
|
19715
|
-
|
|
19716
|
-
|
|
19717
|
-
|
|
19718
|
-
|
|
19719
|
-
|
|
19720
|
-
|
|
19721
|
-
|
|
19722
|
-
|
|
19723
|
-
|
|
19724
|
-
|
|
19725
|
-
|
|
19726
|
-
|
|
19830
|
+
const { content: patchedOutput, terminate: _terminate, ...patchFields } = patch ?? {};
|
|
19831
|
+
return patch ? {
|
|
19832
|
+
...result,
|
|
19833
|
+
...patchFields,
|
|
19834
|
+
...patchedOutput === void 0 ? {} : { output: patchedOutput },
|
|
19835
|
+
control: patch.terminate || terminatingCalls.delete(call.id) ? {
|
|
19836
|
+
...result.control,
|
|
19837
|
+
terminate: true
|
|
19838
|
+
} : result.control
|
|
19839
|
+
} : terminatingCalls.delete(call.id) ? {
|
|
19840
|
+
...result,
|
|
19841
|
+
control: {
|
|
19842
|
+
...result.control,
|
|
19843
|
+
terminate: true
|
|
19844
|
+
}
|
|
19845
|
+
} : result === executed ? void 0 : result;
|
|
19727
19846
|
}
|
|
19728
|
-
|
|
19729
|
-
|
|
19730
|
-
|
|
19731
|
-
|
|
19732
|
-
|
|
19733
|
-
if (
|
|
19734
|
-
|
|
19735
|
-
|
|
19736
|
-
|
|
19737
|
-
|
|
19738
|
-
|
|
19739
|
-
|
|
19740
|
-
|
|
19741
|
-
|
|
19742
|
-
|
|
19743
|
-
|
|
19744
|
-
|
|
19745
|
-
|
|
19746
|
-
|
|
19747
|
-
|
|
19748
|
-
|
|
19749
|
-
|
|
19750
|
-
|
|
19751
|
-
|
|
19752
|
-
|
|
19753
|
-
|
|
19754
|
-
|
|
19755
|
-
|
|
19756
|
-
|
|
19757
|
-
failure: thrown
|
|
19847
|
+
}),
|
|
19848
|
+
hook(CompactionTask, { async beforeCompact(input, api, ctx) {
|
|
19849
|
+
const swapped = manualCompaction.conversationId;
|
|
19850
|
+
if (input.reason === "threshold" && swapped !== void 0 && swapped !== String(api.conversationId)) return { decline: true };
|
|
19851
|
+
if (manualCompaction.clear && swapped === String(api.conversationId)) return { summary: CLEARED_SUMMARY };
|
|
19852
|
+
if (!options.beforeCompaction) return;
|
|
19853
|
+
const entries = projectDurableEntries(input.entries);
|
|
19854
|
+
const patch = await options.beforeCompaction({
|
|
19855
|
+
reason: input.reason,
|
|
19856
|
+
customInstructions: input.instructions,
|
|
19857
|
+
preparation: {
|
|
19858
|
+
entries,
|
|
19859
|
+
messages: [...input.messages],
|
|
19860
|
+
tokensBefore: 0,
|
|
19861
|
+
retainedTail: [],
|
|
19862
|
+
firstKeptEntryId: String(input.firstKept),
|
|
19863
|
+
messagesToSummarize: [...input.messages],
|
|
19864
|
+
turnPrefixMessages: [],
|
|
19865
|
+
isSplitTurn: false,
|
|
19866
|
+
fileOps: {
|
|
19867
|
+
read: /* @__PURE__ */ new Set(),
|
|
19868
|
+
written: /* @__PURE__ */ new Set(),
|
|
19869
|
+
edited: /* @__PURE__ */ new Set()
|
|
19870
|
+
},
|
|
19871
|
+
settings: {
|
|
19872
|
+
enabled: options.compaction?.enabled ?? DEFAULT_COMPACTION_POLICY.enabled,
|
|
19873
|
+
reserveTokens: options.compaction?.reserveTokens ?? DEFAULT_COMPACTION_POLICY.reserveTokens,
|
|
19874
|
+
keepRecentTokens: options.compaction?.keepRecentTokens ?? DEFAULT_COMPACTION_POLICY.keepRecentTokens
|
|
19875
|
+
}
|
|
19758
19876
|
}
|
|
19759
|
-
} : executed;
|
|
19760
|
-
const patch = await options.afterTool?.({
|
|
19761
|
-
toolCallId: call.id,
|
|
19762
|
-
toolName: call.name,
|
|
19763
|
-
args: call.arguments,
|
|
19764
|
-
content: result.output ?? [],
|
|
19765
|
-
details: result.details,
|
|
19766
|
-
isError: result.isError ?? false,
|
|
19767
|
-
usage: result.usage
|
|
19768
19877
|
}, ctx);
|
|
19769
|
-
|
|
19770
|
-
|
|
19771
|
-
|
|
19772
|
-
|
|
19773
|
-
|
|
19774
|
-
|
|
19775
|
-
...result.control,
|
|
19776
|
-
terminate: true
|
|
19777
|
-
} : result.control
|
|
19778
|
-
} : terminatingCalls.delete(call.id) ? {
|
|
19779
|
-
...result,
|
|
19780
|
-
control: {
|
|
19781
|
-
...result.control,
|
|
19782
|
-
terminate: true
|
|
19783
|
-
}
|
|
19784
|
-
} : result === executed ? void 0 : result;
|
|
19785
|
-
}
|
|
19786
|
-
}),
|
|
19787
|
-
hook(CompactionTask, { async beforeCompact(input, api, ctx) {
|
|
19788
|
-
const swapped = manualCompaction.conversationId;
|
|
19789
|
-
if (input.reason === "threshold" && swapped !== void 0 && swapped !== String(api.conversationId)) return { decline: true };
|
|
19790
|
-
if (manualCompaction.clear && swapped === String(api.conversationId)) return { summary: CLEARED_SUMMARY };
|
|
19791
|
-
if (!options.beforeCompaction) return;
|
|
19792
|
-
const entries = projectDurableEntries(input.entries);
|
|
19793
|
-
const patch = await options.beforeCompaction({
|
|
19794
|
-
reason: input.reason,
|
|
19795
|
-
customInstructions: input.instructions,
|
|
19796
|
-
preparation: {
|
|
19797
|
-
entries,
|
|
19798
|
-
messages: [...input.messages],
|
|
19799
|
-
tokensBefore: 0,
|
|
19800
|
-
retainedTail: [],
|
|
19801
|
-
firstKeptEntryId: String(input.firstKept),
|
|
19802
|
-
messagesToSummarize: [...input.messages],
|
|
19803
|
-
turnPrefixMessages: [],
|
|
19804
|
-
isSplitTurn: false,
|
|
19805
|
-
fileOps: {
|
|
19806
|
-
read: /* @__PURE__ */ new Set(),
|
|
19807
|
-
written: /* @__PURE__ */ new Set(),
|
|
19808
|
-
edited: /* @__PURE__ */ new Set()
|
|
19809
|
-
},
|
|
19810
|
-
settings: {
|
|
19811
|
-
enabled: options.compaction?.enabled ?? DEFAULT_COMPACTION_POLICY.enabled,
|
|
19812
|
-
reserveTokens: options.compaction?.reserveTokens ?? DEFAULT_COMPACTION_POLICY.reserveTokens,
|
|
19813
|
-
keepRecentTokens: options.compaction?.keepRecentTokens ?? DEFAULT_COMPACTION_POLICY.keepRecentTokens
|
|
19814
|
-
}
|
|
19815
|
-
}
|
|
19816
|
-
}, ctx);
|
|
19817
|
-
if (patch?.decline) return { decline: true };
|
|
19818
|
-
if (patch?.compaction) return { summary: patch.compaction.summary };
|
|
19819
|
-
} })
|
|
19820
|
-
]
|
|
19821
|
-
});
|
|
19878
|
+
if (patch?.decline) return { decline: true };
|
|
19879
|
+
if (patch?.compaction) return { summary: patch.compaction.summary };
|
|
19880
|
+
} })
|
|
19881
|
+
]
|
|
19882
|
+
});
|
|
19883
|
+
};
|
|
19822
19884
|
install();
|
|
19823
19885
|
if (!attached) registry.install(SubagentsExtension);
|
|
19824
19886
|
const harness = attached?.harness ?? await Harness.open(projection.storage, {
|
|
@@ -19836,11 +19898,13 @@ async function createLaneRuntime(options, attached) {
|
|
|
19836
19898
|
let sessionId;
|
|
19837
19899
|
if (attached) {
|
|
19838
19900
|
conversation = attached.conversation;
|
|
19901
|
+
await readTranscriptOrder(context);
|
|
19902
|
+
install();
|
|
19839
19903
|
if (!options.sessionId) throw new Error("A lane requires its session identity.");
|
|
19840
19904
|
sessionId = options.sessionId;
|
|
19841
19905
|
await writable(() => conversation.configure({
|
|
19842
19906
|
extensions: [{ name: extensionName }],
|
|
19843
|
-
tools:
|
|
19907
|
+
tools: offeredTools(),
|
|
19844
19908
|
modelTools: null,
|
|
19845
19909
|
instructions: null,
|
|
19846
19910
|
cwd: options.cwd,
|
|
@@ -19862,6 +19926,8 @@ async function createLaneRuntime(options, attached) {
|
|
|
19862
19926
|
...options.thinkingLevel ? { thinkingLevel: options.thinkingLevel } : {}
|
|
19863
19927
|
} })).id, context);
|
|
19864
19928
|
conversation = await harness.conversation(activeId, context);
|
|
19929
|
+
await readTranscriptOrder(context);
|
|
19930
|
+
install();
|
|
19865
19931
|
const storedAgent = await harness.snapshot(AgentDoc, conversation.id, context);
|
|
19866
19932
|
const initialModel = options.model ?? models.getModels()[0];
|
|
19867
19933
|
await conversation.configure({
|
|
@@ -19870,7 +19936,7 @@ async function createLaneRuntime(options, attached) {
|
|
|
19870
19936
|
modelId: initialModel.id
|
|
19871
19937
|
} } : {},
|
|
19872
19938
|
...!storedAgent?.thinkingLevel && options.thinkingLevel ? { thinkingLevel: options.thinkingLevel } : {},
|
|
19873
|
-
tools:
|
|
19939
|
+
tools: offeredTools()
|
|
19874
19940
|
}, context);
|
|
19875
19941
|
const storedFastMode = await harness.snapshot(FastModeDoc, context);
|
|
19876
19942
|
fastMode = storedFastMode?.enabled ?? options.initialFastMode ?? false;
|
|
@@ -21392,11 +21458,13 @@ async function createLaneRuntime(options, attached) {
|
|
|
21392
21458
|
} } : void 0);
|
|
21393
21459
|
const agent = await conversation.agent(context);
|
|
21394
21460
|
conversation = await harness.conversation(id, context);
|
|
21461
|
+
await readTranscriptOrder(context);
|
|
21462
|
+
install();
|
|
21395
21463
|
if (targetId === null) await conversation.configure({
|
|
21396
21464
|
model: agent.model,
|
|
21397
21465
|
thinkingLevel: agent.thinkingLevel,
|
|
21398
21466
|
cwd: agent.cwd,
|
|
21399
|
-
tools:
|
|
21467
|
+
tools: offeredTools(),
|
|
21400
21468
|
instructions: agent.instructions
|
|
21401
21469
|
}, context);
|
|
21402
21470
|
await attach();
|
|
@@ -21485,7 +21553,7 @@ async function createLaneRuntime(options, attached) {
|
|
|
21485
21553
|
tools = replacement;
|
|
21486
21554
|
activeNames = new Set(tools.map((t) => t.name));
|
|
21487
21555
|
install();
|
|
21488
|
-
await writable(() => conversation.configure({ tools:
|
|
21556
|
+
await writable(() => conversation.configure({ tools: offeredTools() }, context));
|
|
21489
21557
|
},
|
|
21490
21558
|
async replaceResources(replacement) {
|
|
21491
21559
|
resources = replacement;
|
|
@@ -23317,6 +23385,10 @@ var HeadlessHost = class extends Service {
|
|
|
23317
23385
|
}
|
|
23318
23386
|
});
|
|
23319
23387
|
}
|
|
23388
|
+
/** The selection being applied, which the tool and resource sinks see before `context` has it; else the applied one. */
|
|
23389
|
+
get applyingSelection() {
|
|
23390
|
+
return this.applying;
|
|
23391
|
+
}
|
|
23320
23392
|
get context() {
|
|
23321
23393
|
return this.options.context(this.applied);
|
|
23322
23394
|
}
|
|
@@ -23753,7 +23825,7 @@ var HeadlessHost = class extends Service {
|
|
|
23753
23825
|
clientMetadata
|
|
23754
23826
|
} : this.context);
|
|
23755
23827
|
}
|
|
23756
|
-
async dispatchHook(event, payload, signal) {
|
|
23828
|
+
async dispatchHook(event, payload, signal, observe) {
|
|
23757
23829
|
this.assertReady();
|
|
23758
23830
|
signal?.throwIfAborted();
|
|
23759
23831
|
const results = [];
|
|
@@ -23781,6 +23853,7 @@ var HeadlessHost = class extends Service {
|
|
|
23781
23853
|
this.assertReady();
|
|
23782
23854
|
}
|
|
23783
23855
|
results.push(result);
|
|
23856
|
+
observe?.(hook.value, result);
|
|
23784
23857
|
if (result && typeof result === "object" && !Array.isArray(result)) {
|
|
23785
23858
|
const patch = result;
|
|
23786
23859
|
const fields = event === "context" ? ["messages", "systemPrompt"] : event === "tool_call" ? ["args"] : event === "tool_result" ? [
|
|
@@ -23869,11 +23942,63 @@ var HeadlessHost = class extends Service {
|
|
|
23869
23942
|
const EXTERNAL_OPERATION = "external";
|
|
23870
23943
|
const REMOTE_TOOL_WAIT_MS = 3e4;
|
|
23871
23944
|
const PROMPT_PREPARATION_FAILED_EVENT = "po_server.system_prompt_preparation_failed";
|
|
23945
|
+
const MAX_AUXILIARY_IMAGES = 4;
|
|
23946
|
+
const MAX_AUXILIARY_IMAGE_BYTES = 5242880;
|
|
23947
|
+
const AUXILIARY_IMAGE_TYPES = /* @__PURE__ */ new Set([
|
|
23948
|
+
"image/png",
|
|
23949
|
+
"image/jpeg",
|
|
23950
|
+
"image/webp"
|
|
23951
|
+
]);
|
|
23872
23952
|
/** Slash commands renamed away, so they fail with the new name instead of reaching the model as text. */
|
|
23873
23953
|
const RETIRED_COMMANDS = { minor: "mode" };
|
|
23874
23954
|
function isRecord$4(value) {
|
|
23875
23955
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
23876
23956
|
}
|
|
23957
|
+
/**
|
|
23958
|
+
* A section key for a name, inside pi-durable's `[a-z0-9_-]` key alphabet. Any other character, `_` included,
|
|
23959
|
+
* becomes `_<hex>_`, so two names never share a key and kebab-case names stay readable.
|
|
23960
|
+
*/
|
|
23961
|
+
function sectionName(name) {
|
|
23962
|
+
return name.replace(/[^a-z0-9-]/gu, (char) => `_${char.codePointAt(0).toString(16)}_`);
|
|
23963
|
+
}
|
|
23964
|
+
/** The section of one skill, context resource or mode, so one plugin adding or removing it never resends the rest. */
|
|
23965
|
+
const promptSection = {
|
|
23966
|
+
skill: (name) => `po-skill-${sectionName(name)}`,
|
|
23967
|
+
context: (name) => `po-context-${sectionName(name)}`,
|
|
23968
|
+
mode: (name) => `po-mode-${sectionName(name)}`
|
|
23969
|
+
};
|
|
23970
|
+
/**
|
|
23971
|
+
* Context resources as prompt sections, in resource order; a name repeated by another package is numbered.
|
|
23972
|
+
*
|
|
23973
|
+
* Deliberately unwrapped. A generic "this is data, not instructions" fence here would also wrap
|
|
23974
|
+
* po/profile-config, which carries the operator's persona and *is* authoritative instruction, and demoting it
|
|
23975
|
+
* would be worse than the anonymity it fixes. A resource whose body is untrusted owns its own boundary, the way
|
|
23976
|
+
* po-goal fences a user objective in escaped <goal_objective>.
|
|
23977
|
+
*/
|
|
23978
|
+
function contextSections(resources) {
|
|
23979
|
+
const seen = /* @__PURE__ */ new Map();
|
|
23980
|
+
return resources.filter((resource) => resource.kind !== "skill" && resource.kind !== "prompt").map((resource) => {
|
|
23981
|
+
const count = (seen.get(resource.name) ?? 0) + 1;
|
|
23982
|
+
seen.set(resource.name, count);
|
|
23983
|
+
const key = promptSection.context(resource.name);
|
|
23984
|
+
return [count === 1 ? key : `${key}_${count}`, resource.text];
|
|
23985
|
+
});
|
|
23986
|
+
}
|
|
23987
|
+
/**
|
|
23988
|
+
* Every section the prompt can fill for these resources and modes, base sections first. Listing one that stays empty
|
|
23989
|
+
* is harmless: a section with no text is never shown.
|
|
23990
|
+
*/
|
|
23991
|
+
function systemPromptSectionKeys(resources, modes) {
|
|
23992
|
+
return [
|
|
23993
|
+
"po",
|
|
23994
|
+
"po-tools",
|
|
23995
|
+
...new Set(resources.filter(({ kind }) => kind === "skill").map(({ name }) => promptSection.skill(name))),
|
|
23996
|
+
...contextSections(resources).map(([key]) => key),
|
|
23997
|
+
"po-session",
|
|
23998
|
+
"po-hooks",
|
|
23999
|
+
...modes.map(promptSection.mode)
|
|
24000
|
+
];
|
|
24001
|
+
}
|
|
23877
24002
|
/** Restores the last accepted live selection from journal projections, falling back on launch configuration. */
|
|
23878
24003
|
function restoreHeadlessSelection(entries, fallback) {
|
|
23879
24004
|
let projected;
|
|
@@ -24025,21 +24150,14 @@ function modelMetadata(model) {
|
|
|
24025
24150
|
function mapResources(resources) {
|
|
24026
24151
|
const skills = [];
|
|
24027
24152
|
const promptTemplates = [];
|
|
24028
|
-
const
|
|
24029
|
-
|
|
24030
|
-
const skill = headlessHarnessSkill(resource);
|
|
24031
|
-
skills.push(skill);
|
|
24032
|
-
} else if (resource.kind === "prompt") promptTemplates.push({
|
|
24153
|
+
for (const resource of resources) if (resource.kind === "skill") skills.push(headlessHarnessSkill(resource));
|
|
24154
|
+
else if (resource.kind === "prompt") promptTemplates.push({
|
|
24033
24155
|
name: resource.name,
|
|
24034
24156
|
content: resource.text
|
|
24035
24157
|
});
|
|
24036
|
-
else context.push(resource.text);
|
|
24037
24158
|
return {
|
|
24038
|
-
|
|
24039
|
-
|
|
24040
|
-
promptTemplates
|
|
24041
|
-
},
|
|
24042
|
-
context
|
|
24159
|
+
skills,
|
|
24160
|
+
promptTemplates
|
|
24043
24161
|
};
|
|
24044
24162
|
}
|
|
24045
24163
|
function toolAdapter(tool, executionContext, reportedErrors) {
|
|
@@ -24297,6 +24415,26 @@ async function composeHeadlessSessionHost(options, releaseEnvironment) {
|
|
|
24297
24415
|
profileTimeZone = isTimeZone(timeZone) ? timeZone : void 0;
|
|
24298
24416
|
}
|
|
24299
24417
|
};
|
|
24418
|
+
/** The base prompt as named parts, in prompt order. */
|
|
24419
|
+
const composeSystemPromptParts = (resources) => {
|
|
24420
|
+
const skills = systemPromptSkills(resources, toolGuidance.some((entry) => entry.name === PO_LOAD_SKILL_TOOL)).flatMap((resource) => {
|
|
24421
|
+
const text = formatSkillForSystemPrompt(headlessHarnessSkill(resource));
|
|
24422
|
+
return text ? [[promptSection.skill(resource.name), text]] : [];
|
|
24423
|
+
});
|
|
24424
|
+
const join = (parts) => parts.filter(Boolean).join("\n\n");
|
|
24425
|
+
return {
|
|
24426
|
+
po: join([initialSystemPrompt, projectContextBlock]),
|
|
24427
|
+
"po-tools": formatToolPrompt(toolGuidance),
|
|
24428
|
+
...Object.fromEntries(skills),
|
|
24429
|
+
...Object.fromEntries(contextSections(resources)),
|
|
24430
|
+
"po-session": join([
|
|
24431
|
+
workingDirectoryLine,
|
|
24432
|
+
personTimeZoneLine(readPersonTimeZone()),
|
|
24433
|
+
options.environment["PO_SESSION_TEMP_DIR"] ? `Session temporary folder: ${options.environment[PO_SESSION_TEMP_DIR]}\nUse this folder for generated scratch files outside the workspace. Keep workspace edits in place and save important deliverables in session artifacts. Temporary files may be removed by the operating system.` : ""
|
|
24434
|
+
])
|
|
24435
|
+
};
|
|
24436
|
+
};
|
|
24437
|
+
const joinPromptSections = (sections) => Object.values(sections).filter(Boolean).join("\n\n");
|
|
24300
24438
|
/**
|
|
24301
24439
|
* Everything the prompt is made of before a package has had a say.
|
|
24302
24440
|
*
|
|
@@ -24304,20 +24442,7 @@ async function composeHeadlessSessionHost(options, releaseEnvironment) {
|
|
|
24304
24442
|
* pure; the hook pass that follows it there is not, which is why the context
|
|
24305
24443
|
* panel is shown this rather than a prompt built for the panel's sake.
|
|
24306
24444
|
*/
|
|
24307
|
-
const composeSystemPrompt = (resources) =>
|
|
24308
|
-
const mapped = mapResources(resources);
|
|
24309
|
-
const skills = formatSkillsForSystemPrompt(systemPromptSkills(resources, toolGuidance.some((entry) => entry.name === PO_LOAD_SKILL_TOOL)).map(headlessHarnessSkill)).trim();
|
|
24310
|
-
return [
|
|
24311
|
-
initialSystemPrompt,
|
|
24312
|
-
projectContextBlock,
|
|
24313
|
-
formatToolPrompt(toolGuidance),
|
|
24314
|
-
skills,
|
|
24315
|
-
...mapped.context,
|
|
24316
|
-
workingDirectoryLine,
|
|
24317
|
-
personTimeZoneLine(readPersonTimeZone()),
|
|
24318
|
-
options.environment["PO_SESSION_TEMP_DIR"] ? `Session temporary folder: ${options.environment[PO_SESSION_TEMP_DIR]}\nUse this folder for generated scratch files outside the workspace. Keep workspace edits in place and save important deliverables in session artifacts. Temporary files may be removed by the operating system.` : ""
|
|
24319
|
-
].filter(Boolean).join("\n\n");
|
|
24320
|
-
};
|
|
24445
|
+
const composeSystemPrompt = (resources) => joinPromptSections(composeSystemPromptParts(resources));
|
|
24321
24446
|
/** The last prompt a turn actually built, once one has. */
|
|
24322
24447
|
let builtSystemPrompt;
|
|
24323
24448
|
/**
|
|
@@ -24410,7 +24535,9 @@ async function composeHeadlessSessionHost(options, releaseEnvironment) {
|
|
|
24410
24535
|
};
|
|
24411
24536
|
};
|
|
24412
24537
|
const selectionCommand = new AsyncLocalStorage();
|
|
24538
|
+
let headlessHost;
|
|
24413
24539
|
const runtime = await createDirectHarnessRuntime({
|
|
24540
|
+
systemPromptSections: () => headlessHost ? systemPromptSectionKeys(headlessHost.appliedResources, headlessHost.applyingSelection.state?.["mode"] ?? []) : [],
|
|
24414
24541
|
cwd: options.cwd,
|
|
24415
24542
|
sessionId: options.sessionId,
|
|
24416
24543
|
onFullHistoryRead: (sessionId, entryCount) => {
|
|
@@ -24513,10 +24640,22 @@ async function composeHeadlessSessionHost(options, releaseEnvironment) {
|
|
|
24513
24640
|
let stage = "resources";
|
|
24514
24641
|
try {
|
|
24515
24642
|
if (!headlessHost) throw new Error("Headless capabilities are not installed.");
|
|
24516
|
-
|
|
24643
|
+
const base = composeSystemPromptParts(await headlessHost.readResources());
|
|
24644
|
+
let prompt = joinPromptSections(base);
|
|
24645
|
+
const appended = /* @__PURE__ */ new Map([["po-hooks", ""]]);
|
|
24646
|
+
let rewritten = false;
|
|
24517
24647
|
stage = "before_agent_start hooks";
|
|
24518
|
-
|
|
24519
|
-
|
|
24648
|
+
await headlessHost.dispatchHook("before_agent_start", { systemPrompt: prompt }, void 0, (hook, patch) => {
|
|
24649
|
+
if (!isRecord$4(patch) || typeof patch.systemPrompt !== "string") return;
|
|
24650
|
+
if (patch.systemPrompt.startsWith(prompt)) {
|
|
24651
|
+
const text = patch.systemPrompt.slice(prompt.length);
|
|
24652
|
+
const attribution = hook.when?.attribution;
|
|
24653
|
+
const key = attribution?.kind === "mode" && attribution.name ? promptSection.mode(attribution.name) : "po-hooks";
|
|
24654
|
+
appended.set(key, (appended.get(key) ?? "") + text);
|
|
24655
|
+
} else rewritten = true;
|
|
24656
|
+
prompt = patch.systemPrompt;
|
|
24657
|
+
});
|
|
24658
|
+
const sections = rewritten ? { po: prompt } : Object.fromEntries([...Object.entries(base), ...[...appended].map(([key, text]) => [key, text.trim()])].filter(([, text]) => text));
|
|
24520
24659
|
const expectedIdentity = options.workflowContext?.identity;
|
|
24521
24660
|
if (expectedIdentity !== void 0) {
|
|
24522
24661
|
stage = "workflow profile admission";
|
|
@@ -24535,7 +24674,7 @@ async function composeHeadlessSessionHost(options, releaseEnvironment) {
|
|
|
24535
24674
|
else throw error;
|
|
24536
24675
|
}
|
|
24537
24676
|
}
|
|
24538
|
-
return
|
|
24677
|
+
return sections;
|
|
24539
24678
|
} catch (error) {
|
|
24540
24679
|
promptPreparationFailed = true;
|
|
24541
24680
|
promptPreparationError = error;
|
|
@@ -24630,7 +24769,6 @@ async function composeHeadlessSessionHost(options, releaseEnvironment) {
|
|
|
24630
24769
|
let latestSelection = options.selection;
|
|
24631
24770
|
const initialSelection = restoreHeadlessSelection(entries, options.selection);
|
|
24632
24771
|
let requestedProfile = options.requestedProfile;
|
|
24633
|
-
let headlessHost;
|
|
24634
24772
|
let mcpServiceRoot;
|
|
24635
24773
|
let mcpLifecycle = new AbortController();
|
|
24636
24774
|
const chatgptLifecycle = new AbortController();
|
|
@@ -24719,11 +24857,27 @@ async function composeHeadlessSessionHost(options, releaseEnvironment) {
|
|
|
24719
24857
|
const model = separator > 0 ? modelRuntime.getModel(reference.slice(0, separator), reference.slice(separator + 1)) : void 0;
|
|
24720
24858
|
if (!model || !modelRuntime.hasConfiguredAuth(model.provider)) throw new Error(`Model is not configured: ${reference}`);
|
|
24721
24859
|
if (!runtime.completeModel) throw new Error("The runtime does not support auxiliary model requests.");
|
|
24860
|
+
const images = request.images ?? [];
|
|
24861
|
+
if (images.length > 0) {
|
|
24862
|
+
if (!model.input.includes("image")) throw new Error(`Model does not accept images: ${reference}`);
|
|
24863
|
+
if (images.length > MAX_AUXILIARY_IMAGES) throw new Error(`At most ${MAX_AUXILIARY_IMAGES} images per request.`);
|
|
24864
|
+
for (const image of images) {
|
|
24865
|
+
if (!AUXILIARY_IMAGE_TYPES.has(image.mimeType)) throw new Error(`Unsupported image type: ${image.mimeType}`);
|
|
24866
|
+
if (Math.ceil(image.data.length * .75) > MAX_AUXILIARY_IMAGE_BYTES) throw new Error("Image exceeds 5 MiB.");
|
|
24867
|
+
}
|
|
24868
|
+
}
|
|
24722
24869
|
const response = await runtime.completeModel(model, {
|
|
24723
24870
|
systemPrompt: request.systemPrompt,
|
|
24724
24871
|
messages: [{
|
|
24725
24872
|
role: "user",
|
|
24726
|
-
content: request.input
|
|
24873
|
+
content: images.length === 0 ? request.input : [{
|
|
24874
|
+
type: "text",
|
|
24875
|
+
text: request.input
|
|
24876
|
+
}, ...images.map((image) => ({
|
|
24877
|
+
type: "image",
|
|
24878
|
+
data: image.data,
|
|
24879
|
+
mimeType: image.mimeType
|
|
24880
|
+
}))],
|
|
24727
24881
|
timestamp: Date.now()
|
|
24728
24882
|
}],
|
|
24729
24883
|
...request.tools ? { tools: [...request.tools] } : {}
|
|
@@ -25430,11 +25584,11 @@ async function composeHeadlessSessionHost(options, releaseEnvironment) {
|
|
|
25430
25584
|
},
|
|
25431
25585
|
applyResources: async (next) => {
|
|
25432
25586
|
const mapped = mapResources(next);
|
|
25433
|
-
const packageNames = new Set((mapped.
|
|
25587
|
+
const packageNames = new Set((mapped.skills ?? []).map((skill) => skill.name));
|
|
25434
25588
|
const piSkills = (piHost?.skills ?? []).filter((skill) => !packageNames.has(skill.name));
|
|
25435
|
-
const mergedSkills = [...piSkills, ...mapped.
|
|
25436
|
-
await runtime.replaceResources(piSkills.length === 0 ? mapped
|
|
25437
|
-
...mapped
|
|
25589
|
+
const mergedSkills = [...piSkills, ...mapped.skills ?? []];
|
|
25590
|
+
await runtime.replaceResources(piSkills.length === 0 ? mapped : {
|
|
25591
|
+
...mapped,
|
|
25438
25592
|
skills: mergedSkills
|
|
25439
25593
|
});
|
|
25440
25594
|
appliedSkills = new Map(mergedSkills.map((skill) => {
|
|
@@ -114949,86 +115103,86 @@ function scaffoldTenancy(shared) {
|
|
|
114949
115103
|
//#endregion
|
|
114950
115104
|
//#region virtual:po-server-packages
|
|
114951
115105
|
const contentRevisions = {
|
|
114952
|
-
"@agimon-ai/po-approval": "
|
|
114953
|
-
"@agimon-ai/po-artifact": "
|
|
114954
|
-
"@agimon-ai/po-author": "
|
|
114955
|
-
"@agimon-ai/po-autocompact": "
|
|
114956
|
-
"@agimon-ai/po-autostop": "
|
|
115106
|
+
"@agimon-ai/po-approval": "c1530c04594b2a578c6c944dd28725481435c8292ebdd1e9754f3bd3d37f4019",
|
|
115107
|
+
"@agimon-ai/po-artifact": "8432c367aee7b8d516dff2b526f9f10b281459520a1e29b2605a7bae3dda09f5",
|
|
115108
|
+
"@agimon-ai/po-author": "2a93022f20e8a5102e61fd00a7bbbbc5bc1f542e761bb5c643a7cdcc5dcbb0bb",
|
|
115109
|
+
"@agimon-ai/po-autocompact": "6b65115f07498a4cc0424ff0f243c5e7a24336fe2b71b64b0eddd09e1aecd376",
|
|
115110
|
+
"@agimon-ai/po-autostop": "7e955ecb57f0cb9ab88005d37da0a0abf18d6311958aa192f705c58f473db89a",
|
|
114957
115111
|
"@agimon-ai/po-browse": null,
|
|
114958
|
-
"@agimon-ai/po-cache": "
|
|
114959
|
-
"@agimon-ai/po-calendar": "
|
|
114960
|
-
"@agimon-ai/po-codemode": "
|
|
114961
|
-
"@agimon-ai/po-config": "
|
|
114962
|
-
"@agimon-ai/po-db": "
|
|
114963
|
-
"@agimon-ai/po-domain": "
|
|
114964
|
-
"@agimon-ai/po-edit": "
|
|
114965
|
-
"@agimon-ai/po-federation": "
|
|
114966
|
-
"@agimon-ai/po-file-edit": "
|
|
114967
|
-
"@agimon-ai/po-goal": "
|
|
114968
|
-
"@agimon-ai/po-grep": "
|
|
114969
|
-
"@agimon-ai/po-help": "
|
|
114970
|
-
"@agimon-ai/po-log": "
|
|
114971
|
-
"@agimon-ai/po-mcp": "
|
|
114972
|
-
"@agimon-ai/po-mode": "
|
|
114973
|
-
"@agimon-ai/po-notification": "
|
|
114974
|
-
"@agimon-ai/po-plan": "
|
|
114975
|
-
"@agimon-ai/po-preset": "
|
|
114976
|
-
"@agimon-ai/po-profile": "
|
|
114977
|
-
"@agimon-ai/po-prompt": "
|
|
114978
|
-
"@agimon-ai/po-read": "
|
|
114979
|
-
"@agimon-ai/po-runner": "
|
|
114980
|
-
"@agimon-ai/po-scaffold": "
|
|
114981
|
-
"@agimon-ai/po-session": "
|
|
114982
|
-
"@agimon-ai/po-session-mcp": "
|
|
114983
|
-
"@agimon-ai/po-skill": "
|
|
114984
|
-
"@agimon-ai/po-space": "
|
|
114985
|
-
"@agimon-ai/po-team": "
|
|
114986
|
-
"@agimon-ai/po-ui": "
|
|
114987
|
-
"@agimon-ai/po-vault": "
|
|
114988
|
-
"@agimon-ai/po-voice": "
|
|
114989
|
-
"@agimon-ai/po-web-search": "
|
|
114990
|
-
"@agimon-ai/po-workflow": "
|
|
115112
|
+
"@agimon-ai/po-cache": "db84e2e4d81123ffd97f255978ae796efd45c1bd33b9e7cbd9ceb238399fdcb2",
|
|
115113
|
+
"@agimon-ai/po-calendar": "97dc4169ca98eae32135398ccddc6c33166066b886cdc34350b21d3eb500f7f5",
|
|
115114
|
+
"@agimon-ai/po-codemode": "550d89214fc0170d4b6e43c270805a6dfea72b5bf10ed5bca3189f360fe32020",
|
|
115115
|
+
"@agimon-ai/po-config": "b0ab047a06fd68990a9fb40fe65a024ad6455a5fe5e6d36bd98c0276b89a9480",
|
|
115116
|
+
"@agimon-ai/po-db": "0ad26697c5e729a142f53120af162178b093ea8005887c3b7e131522194c77c4",
|
|
115117
|
+
"@agimon-ai/po-domain": "d26b0ae7a2dd1c62c3cdd5c34612a6531e5172f90d0ccf831f37d434a33fe3c8",
|
|
115118
|
+
"@agimon-ai/po-edit": "7a8cded0395bb7cd3df5be0dd8af262d9df6019bc4ef6f8ee642f25005d59977",
|
|
115119
|
+
"@agimon-ai/po-federation": "6e27c852f822448fae4afd2f0705a0875d665d93b5722c94f2e3bd9c0af7d93e",
|
|
115120
|
+
"@agimon-ai/po-file-edit": "b4e1ff7b6e18d7e853c13a5ba750e210d1e0bd7c16b090ba68856d4d3ae183a8",
|
|
115121
|
+
"@agimon-ai/po-goal": "42f60fb720f78ef9af0ff17267ac899e5589da517c635eed2c7c49560fd772e9",
|
|
115122
|
+
"@agimon-ai/po-grep": "e91d896cd8edde41c0ec4967335086bcf119c1a1fba9874e75aa814a1e9eef18",
|
|
115123
|
+
"@agimon-ai/po-help": "425132819634a81d616511f2738f218a2bcccef7cabb553887f8fa8dd7fae4e7",
|
|
115124
|
+
"@agimon-ai/po-log": "2fcd25302254d6934f85e2572b8a053432c1fe2f29fea2eca0f54c1982924bfa",
|
|
115125
|
+
"@agimon-ai/po-mcp": "94b7de1536bf8c818f09437f27832feabc13fb644a17c865ada38dfc8fcdbd8a",
|
|
115126
|
+
"@agimon-ai/po-mode": "d214d1fe4821d1f59f0d0318ec38545b07c5453174d2acb4904ea16756bd1376",
|
|
115127
|
+
"@agimon-ai/po-notification": "fb822b4e07577f8a575abda789f9fc7a2fc04c0cc13e40586fde75e5f8efd5c0",
|
|
115128
|
+
"@agimon-ai/po-plan": "ae85feb73249920760f6ea89242507b48cb4433f59edd550253c46a32faa7cf1",
|
|
115129
|
+
"@agimon-ai/po-preset": "b1569c2bdb81ff0f59a600d08b61f84bce0782c0835dbebfb641ef0d05dadda2",
|
|
115130
|
+
"@agimon-ai/po-profile": "18bd0bffa3d5341412db69431e0ac7d36a658451a8cdef36f977cb46e08d9adc",
|
|
115131
|
+
"@agimon-ai/po-prompt": "9f2d14bababd7f956bfc33e590f9f7416be3cf5b66c768e4487bf8df99047a7f",
|
|
115132
|
+
"@agimon-ai/po-read": "710077c30fb11ac58f370345e1d0e7d52b911d05d41e264669dea2c411e5d39c",
|
|
115133
|
+
"@agimon-ai/po-runner": "1e6b378fa16ce4af41867f9e6a6a0ccb6c6ab5b0ec008dfe1348c95d96a272b5",
|
|
115134
|
+
"@agimon-ai/po-scaffold": "339bf6e783b319b7d3b4d527bdaf3b5b76443bbc95f2d1519263879c54c730d0",
|
|
115135
|
+
"@agimon-ai/po-session": "a88162571dfc2e5c83319d63b9a8fbe84954a796d3983f2dc47f700b5de7cd19",
|
|
115136
|
+
"@agimon-ai/po-session-mcp": "ac6ca8e2a9e1bfa4214bb720573b63c529173caf3c4e3528202b876bd5fa2e21",
|
|
115137
|
+
"@agimon-ai/po-skill": "ed3d25dfe8b409979371df5b00220fe4e4a1edb96b39ab1ce2fc5aa045496483",
|
|
115138
|
+
"@agimon-ai/po-space": "368c2290fafc4a84de85e868ba6175beb4ee33944070207f5b5f74842ba70357",
|
|
115139
|
+
"@agimon-ai/po-team": "8f110ec7abfc766f0eea84cebbe3748ff4d96ae48048b8e5ad2bd83ea5813141",
|
|
115140
|
+
"@agimon-ai/po-ui": "abb3413aa24c65d84fcd923b29f33a157120d7e7cff4616ed8c4345a1a0e7e23",
|
|
115141
|
+
"@agimon-ai/po-vault": "a2ca2599ea79d386484d89e415d86b471c1e7665536c513fce3fc8909a3e7397",
|
|
115142
|
+
"@agimon-ai/po-voice": "71bf5951a25f6c4d0dc844d4875c4236e713499b986aa6f963001b952c5959a4",
|
|
115143
|
+
"@agimon-ai/po-web-search": "bd3754ea4013433023a1196d25cfd43e1388f631009513c5ac0dc68bc2306741",
|
|
115144
|
+
"@agimon-ai/po-workflow": "d0bfbf8e423ab85092b9c19bd529ba2ea039819a1ab2e5d6559153d3ccc5718e"
|
|
114991
115145
|
};
|
|
114992
115146
|
var virtual_po_server_packages_default = {
|
|
114993
115147
|
"@agimon-ai/po-approval": () => import("./server-CQmb0lYL.js"),
|
|
114994
|
-
"@agimon-ai/po-artifact": () => import("./server-
|
|
115148
|
+
"@agimon-ai/po-artifact": () => import("./server-NKqdiQ5G.js"),
|
|
114995
115149
|
"@agimon-ai/po-autocompact": () => import("./server-BcPD_6a2.js"),
|
|
114996
115150
|
"@agimon-ai/po-autostop": () => import("./server-DlRePYOB.js"),
|
|
114997
115151
|
"@agimon-ai/po-browse": async () => ({ default: (await Promise.resolve().then(() => edge_exports)).edgeBrowsePlugin }),
|
|
114998
|
-
"@agimon-ai/po-cache": () => import("./server-
|
|
114999
|
-
"@agimon-ai/po-calendar": () => import("./server-
|
|
115000
|
-
"@agimon-ai/po-codemode": () => import("./server-
|
|
115001
|
-
"@agimon-ai/po-config": () => import("./server-
|
|
115152
|
+
"@agimon-ai/po-cache": () => import("./server-CpbBJ9ZU.js"),
|
|
115153
|
+
"@agimon-ai/po-calendar": () => import("./server-hJ4tYEt4.js"),
|
|
115154
|
+
"@agimon-ai/po-codemode": () => import("./server-B51reaJ9.js"),
|
|
115155
|
+
"@agimon-ai/po-config": () => import("./server-DI6YhDI5.js"),
|
|
115002
115156
|
"@agimon-ai/po-db": () => import("./server-C8NPfG1H.js"),
|
|
115003
|
-
"@agimon-ai/po-domain": () => import("./server-
|
|
115157
|
+
"@agimon-ai/po-domain": () => import("./server-B3jB3q_h.js"),
|
|
115004
115158
|
"@agimon-ai/po-edit": () => import("./server-CKkaxOc0.js"),
|
|
115005
115159
|
"@agimon-ai/po-file-edit": () => import("./server-C-HBjWRo.js"),
|
|
115006
|
-
"@agimon-ai/po-scaffold": () => import("./server-
|
|
115160
|
+
"@agimon-ai/po-scaffold": () => import("./server-dBNqYUdX.js"),
|
|
115007
115161
|
"@agimon-ai/po-grep": () => import("./server-ClQQGtsI.js"),
|
|
115008
|
-
"@agimon-ai/po-log": () => import("./server-
|
|
115009
|
-
"@agimon-ai/po-preset": () => import("./server-
|
|
115010
|
-
"@agimon-ai/po-mcp": () => import("./server-
|
|
115162
|
+
"@agimon-ai/po-log": () => import("./server-DLDK_aeG.js"),
|
|
115163
|
+
"@agimon-ai/po-preset": () => import("./server-_vSe9bTM.js"),
|
|
115164
|
+
"@agimon-ai/po-mcp": () => import("./server-DYKXGQVY.js"),
|
|
115011
115165
|
"@agimon-ai/po-mode": () => import("./server-Df1defzp.js"),
|
|
115012
115166
|
"@agimon-ai/po-notification": () => import("./server-w1aKMZOs.js"),
|
|
115013
|
-
"@agimon-ai/po-profile": () => import("./server-
|
|
115014
|
-
"@agimon-ai/po-prompt": () => import("./server-
|
|
115167
|
+
"@agimon-ai/po-profile": () => import("./server-Dosi6o2W.js"),
|
|
115168
|
+
"@agimon-ai/po-prompt": () => import("./server-CAipGCpQ.js"),
|
|
115015
115169
|
"@agimon-ai/po-read": () => import("./server-DgZd_TuT.js"),
|
|
115016
|
-
"@agimon-ai/po-runner": () => import("./server-
|
|
115017
|
-
"@agimon-ai/po-session": () => import("./server-
|
|
115018
|
-
"@agimon-ai/po-session-mcp": () => import("./server-
|
|
115019
|
-
"@agimon-ai/po-federation": () => import("./server-
|
|
115020
|
-
"@agimon-ai/po-skill": () => import("./server-
|
|
115170
|
+
"@agimon-ai/po-runner": () => import("./server-B20agHjD.js"),
|
|
115171
|
+
"@agimon-ai/po-session": () => import("./server-vZL2icDV.js"),
|
|
115172
|
+
"@agimon-ai/po-session-mcp": () => import("./server-Byk0FT6E.js"),
|
|
115173
|
+
"@agimon-ai/po-federation": () => import("./server-wQHKuB2m.js"),
|
|
115174
|
+
"@agimon-ai/po-skill": () => import("./server-BsEMLlTz.js"),
|
|
115021
115175
|
"@agimon-ai/po-space": () => import("./server-lgV6liTt.js"),
|
|
115022
|
-
"@agimon-ai/po-team": () => import("./server-
|
|
115176
|
+
"@agimon-ai/po-team": () => import("./server-DmqO6gBs.js"),
|
|
115023
115177
|
"@agimon-ai/po-ui": () => import("./server-CQPI6jIa.js"),
|
|
115024
115178
|
"@agimon-ai/po-vault": () => import("./server-CZiAy2v5.js"),
|
|
115025
|
-
"@agimon-ai/po-help": () => import("./server-
|
|
115026
|
-
"@agimon-ai/po-goal": () => import("./server-
|
|
115027
|
-
"@agimon-ai/po-plan": () => import("./server-
|
|
115028
|
-
"@agimon-ai/po-author": () => import("./server-
|
|
115029
|
-
"@agimon-ai/po-voice": () => import("./server-
|
|
115030
|
-
"@agimon-ai/po-workflow": () => import("./server-
|
|
115031
|
-
"@agimon-ai/po-web-search": () => import("./server-
|
|
115179
|
+
"@agimon-ai/po-help": () => import("./server-EYARWKpG.js"),
|
|
115180
|
+
"@agimon-ai/po-goal": () => import("./server-CUGzeCH4.js"),
|
|
115181
|
+
"@agimon-ai/po-plan": () => import("./server-CqDWkfdL.js"),
|
|
115182
|
+
"@agimon-ai/po-author": () => import("./server-BD_tbxwG.js"),
|
|
115183
|
+
"@agimon-ai/po-voice": () => import("./server-BsjwqF7J.js"),
|
|
115184
|
+
"@agimon-ai/po-workflow": () => import("./server-DEKg8AVN.js"),
|
|
115185
|
+
"@agimon-ai/po-web-search": () => import("./server-DebdjWjz.js")
|
|
115032
115186
|
};
|
|
115033
115187
|
//#endregion
|
|
115034
115188
|
//#region src/composition/cloudTeam.ts
|
|
@@ -115208,7 +115362,7 @@ async function loadEdgePackages(scope, onNotice, entries = edgePackageEntries(),
|
|
|
115208
115362
|
activeLayers: [],
|
|
115209
115363
|
onNotice,
|
|
115210
115364
|
importer: async (url) => {
|
|
115211
|
-
if (url === "@agimon-ai/po-session") return { default: cloudSessionPlugin((await import("./server-
|
|
115365
|
+
if (url === "@agimon-ai/po-session") return { default: cloudSessionPlugin((await import("./server-vZL2icDV.js")).default, team, parentTools) };
|
|
115212
115366
|
return virtual_po_server_packages_default[url]();
|
|
115213
115367
|
}
|
|
115214
115368
|
});
|
|
@@ -123669,235 +123823,235 @@ var virtual_po_capabilities_default = {
|
|
|
123669
123823
|
"packages": [
|
|
123670
123824
|
{
|
|
123671
123825
|
"name": "@agimon-ai/po-approval",
|
|
123672
|
-
"version": "0.0.0-alpha.
|
|
123826
|
+
"version": "0.0.0-alpha.174",
|
|
123673
123827
|
"contractFingerprint": "2fe2af06dfdf1ea281408f3a86b7599e2409044cac334bcd4060f55dac3d6953",
|
|
123674
123828
|
"operations": []
|
|
123675
123829
|
},
|
|
123676
123830
|
{
|
|
123677
123831
|
"name": "@agimon-ai/po-artifact",
|
|
123678
|
-
"version": "0.0.0-alpha.
|
|
123832
|
+
"version": "0.0.0-alpha.173",
|
|
123679
123833
|
"contractFingerprint": "995c1365a0db700a3901663f7908a961643f6612a4c7bdca63b2d027a955a393",
|
|
123680
123834
|
"operations": []
|
|
123681
123835
|
},
|
|
123682
123836
|
{
|
|
123683
123837
|
"name": "@agimon-ai/po-autocompact",
|
|
123684
|
-
"version": "0.0.0-alpha.
|
|
123838
|
+
"version": "0.0.0-alpha.174",
|
|
123685
123839
|
"contractFingerprint": "488617da2873d7b4aac523bb93c7a528caf573c41009d22b47af27765478b33a",
|
|
123686
123840
|
"operations": []
|
|
123687
123841
|
},
|
|
123688
123842
|
{
|
|
123689
123843
|
"name": "@agimon-ai/po-autostop",
|
|
123690
|
-
"version": "0.0.0-alpha.
|
|
123844
|
+
"version": "0.0.0-alpha.174",
|
|
123691
123845
|
"contractFingerprint": "488617da2873d7b4aac523bb93c7a528caf573c41009d22b47af27765478b33a",
|
|
123692
123846
|
"operations": []
|
|
123693
123847
|
},
|
|
123694
123848
|
{
|
|
123695
123849
|
"name": "@agimon-ai/po-browse",
|
|
123696
|
-
"version": "0.0.1-alpha.
|
|
123850
|
+
"version": "0.0.1-alpha.172",
|
|
123697
123851
|
"contractFingerprint": "be6ef9f776232eb98826f9843286d0e4de861370ca9a1b1c3518a76ef9214475",
|
|
123698
123852
|
"operations": []
|
|
123699
123853
|
},
|
|
123700
123854
|
{
|
|
123701
123855
|
"name": "@agimon-ai/po-cache",
|
|
123702
|
-
"version": "0.0.0-alpha.
|
|
123856
|
+
"version": "0.0.0-alpha.174",
|
|
123703
123857
|
"contractFingerprint": "488617da2873d7b4aac523bb93c7a528caf573c41009d22b47af27765478b33a",
|
|
123704
123858
|
"operations": []
|
|
123705
123859
|
},
|
|
123706
123860
|
{
|
|
123707
123861
|
"name": "@agimon-ai/po-calendar",
|
|
123708
|
-
"version": "0.0.1-alpha.
|
|
123862
|
+
"version": "0.0.1-alpha.133",
|
|
123709
123863
|
"contractFingerprint": "3d1d19f1d46a2b986d9d882308ade32e1ffd72c7c578ebdc13f6c4603a11c266",
|
|
123710
123864
|
"operations": []
|
|
123711
123865
|
},
|
|
123712
123866
|
{
|
|
123713
123867
|
"name": "@agimon-ai/po-codemode",
|
|
123714
|
-
"version": "0.0.1-alpha.
|
|
123868
|
+
"version": "0.0.1-alpha.147",
|
|
123715
123869
|
"contractFingerprint": "b80fae8697548cb366f2ce11e68c6589aaadb5dd74721aee163fbc976240004f",
|
|
123716
123870
|
"operations": []
|
|
123717
123871
|
},
|
|
123718
123872
|
{
|
|
123719
123873
|
"name": "@agimon-ai/po-config",
|
|
123720
|
-
"version": "0.0.0-alpha.
|
|
123874
|
+
"version": "0.0.0-alpha.174",
|
|
123721
123875
|
"contractFingerprint": "a2034133b2bd6769831a0513c4cc40d142b7bb3f0c56cfe913ca77f4d311c1ad",
|
|
123722
123876
|
"operations": []
|
|
123723
123877
|
},
|
|
123724
123878
|
{
|
|
123725
123879
|
"name": "@agimon-ai/po-db",
|
|
123726
|
-
"version": "0.0.0-alpha.
|
|
123880
|
+
"version": "0.0.0-alpha.174",
|
|
123727
123881
|
"contractFingerprint": "488617da2873d7b4aac523bb93c7a528caf573c41009d22b47af27765478b33a",
|
|
123728
123882
|
"operations": []
|
|
123729
123883
|
},
|
|
123730
123884
|
{
|
|
123731
123885
|
"name": "@agimon-ai/po-domain",
|
|
123732
|
-
"version": "0.0.0-alpha.
|
|
123886
|
+
"version": "0.0.0-alpha.174",
|
|
123733
123887
|
"contractFingerprint": "f84675636fbfb4d18b2a7ea413da2bff8c9aa0ff4a1de7fe2ef106bd3065bb97",
|
|
123734
123888
|
"operations": []
|
|
123735
123889
|
},
|
|
123736
123890
|
{
|
|
123737
123891
|
"name": "@agimon-ai/po-edit",
|
|
123738
|
-
"version": "0.0.0-alpha.
|
|
123892
|
+
"version": "0.0.0-alpha.174",
|
|
123739
123893
|
"contractFingerprint": "488617da2873d7b4aac523bb93c7a528caf573c41009d22b47af27765478b33a",
|
|
123740
123894
|
"operations": []
|
|
123741
123895
|
},
|
|
123742
123896
|
{
|
|
123743
123897
|
"name": "@agimon-ai/po-file-edit",
|
|
123744
|
-
"version": "0.0.0-alpha.
|
|
123898
|
+
"version": "0.0.0-alpha.174",
|
|
123745
123899
|
"contractFingerprint": "81d440573fe5c3698f08a3b86db5fda727b8bab5d3838f6e9c52ba1bace35ba2",
|
|
123746
123900
|
"operations": []
|
|
123747
123901
|
},
|
|
123748
123902
|
{
|
|
123749
123903
|
"name": "@agimon-ai/po-scaffold",
|
|
123750
|
-
"version": "0.0.0-alpha.
|
|
123904
|
+
"version": "0.0.0-alpha.174",
|
|
123751
123905
|
"contractFingerprint": "f8f850b9a58bb4911a4315bc299a150ef0796a4ac2f51fe7c0e7935960bdfd45",
|
|
123752
123906
|
"operations": []
|
|
123753
123907
|
},
|
|
123754
123908
|
{
|
|
123755
123909
|
"name": "@agimon-ai/po-grep",
|
|
123756
|
-
"version": "0.0.0-alpha.
|
|
123910
|
+
"version": "0.0.0-alpha.174",
|
|
123757
123911
|
"contractFingerprint": "488617da2873d7b4aac523bb93c7a528caf573c41009d22b47af27765478b33a",
|
|
123758
123912
|
"operations": []
|
|
123759
123913
|
},
|
|
123760
123914
|
{
|
|
123761
123915
|
"name": "@agimon-ai/po-log",
|
|
123762
|
-
"version": "0.0.0-alpha.
|
|
123916
|
+
"version": "0.0.0-alpha.174",
|
|
123763
123917
|
"contractFingerprint": "b2fd1caec91ff87dfe5532900e651a1bdcb0bd1d077b0207b6798cd6bbb06887",
|
|
123764
123918
|
"operations": []
|
|
123765
123919
|
},
|
|
123766
123920
|
{
|
|
123767
123921
|
"name": "@agimon-ai/po-preset",
|
|
123768
|
-
"version": "0.0.0-alpha.
|
|
123922
|
+
"version": "0.0.0-alpha.174",
|
|
123769
123923
|
"contractFingerprint": "99ef0dcec026a1712ee4c03caa52a816a8bc7f6f5a119c2e34101a111a7408b0",
|
|
123770
123924
|
"operations": []
|
|
123771
123925
|
},
|
|
123772
123926
|
{
|
|
123773
123927
|
"name": "@agimon-ai/po-mcp",
|
|
123774
|
-
"version": "0.0.0-alpha.
|
|
123928
|
+
"version": "0.0.0-alpha.174",
|
|
123775
123929
|
"contractFingerprint": "262dd3b193361f7a3bb6b5c3f330a7d5af7539f390885b7d7dea0fa77cc8a552",
|
|
123776
123930
|
"operations": []
|
|
123777
123931
|
},
|
|
123778
123932
|
{
|
|
123779
123933
|
"name": "@agimon-ai/po-mode",
|
|
123780
|
-
"version": "0.0.0-alpha.
|
|
123934
|
+
"version": "0.0.0-alpha.174",
|
|
123781
123935
|
"contractFingerprint": "532809f876e15199f3a42b3ed6f4706a904abffbdd3f3de3bba5a1edcaa536e6",
|
|
123782
123936
|
"operations": []
|
|
123783
123937
|
},
|
|
123784
123938
|
{
|
|
123785
123939
|
"name": "@agimon-ai/po-notification",
|
|
123786
|
-
"version": "0.0.0-alpha.
|
|
123940
|
+
"version": "0.0.0-alpha.174",
|
|
123787
123941
|
"contractFingerprint": "488617da2873d7b4aac523bb93c7a528caf573c41009d22b47af27765478b33a",
|
|
123788
123942
|
"operations": []
|
|
123789
123943
|
},
|
|
123790
123944
|
{
|
|
123791
123945
|
"name": "@agimon-ai/po-profile",
|
|
123792
|
-
"version": "0.0.0-alpha.
|
|
123946
|
+
"version": "0.0.0-alpha.174",
|
|
123793
123947
|
"contractFingerprint": "a86498d20553e56959b2cc88e160434986fe6b3ad205a81e09f09d3e40dc66de",
|
|
123794
123948
|
"operations": []
|
|
123795
123949
|
},
|
|
123796
123950
|
{
|
|
123797
123951
|
"name": "@agimon-ai/po-prompt",
|
|
123798
|
-
"version": "0.0.0-alpha.
|
|
123952
|
+
"version": "0.0.0-alpha.174",
|
|
123799
123953
|
"contractFingerprint": "499a9268ada55446c3ee4cf7232acbf6902bba73382c4d876f6711880b3dfc86",
|
|
123800
123954
|
"operations": []
|
|
123801
123955
|
},
|
|
123802
123956
|
{
|
|
123803
123957
|
"name": "@agimon-ai/po-read",
|
|
123804
|
-
"version": "0.0.0-alpha.
|
|
123958
|
+
"version": "0.0.0-alpha.174",
|
|
123805
123959
|
"contractFingerprint": "488617da2873d7b4aac523bb93c7a528caf573c41009d22b47af27765478b33a",
|
|
123806
123960
|
"operations": []
|
|
123807
123961
|
},
|
|
123808
123962
|
{
|
|
123809
123963
|
"name": "@agimon-ai/po-runner",
|
|
123810
|
-
"version": "0.0.0-alpha.
|
|
123964
|
+
"version": "0.0.0-alpha.174",
|
|
123811
123965
|
"contractFingerprint": "d5a7adb3dd3c6d2af5209689fc73704a60c33f43d31de662213201479ed8eb9c",
|
|
123812
123966
|
"operations": []
|
|
123813
123967
|
},
|
|
123814
123968
|
{
|
|
123815
123969
|
"name": "@agimon-ai/po-session",
|
|
123816
|
-
"version": "0.0.0-alpha.
|
|
123970
|
+
"version": "0.0.0-alpha.174",
|
|
123817
123971
|
"contractFingerprint": "fb9996e2f2a87b81905ed64d00a4434997a8a9c2231dc0854cdb40e6ae52c8ad",
|
|
123818
123972
|
"operations": []
|
|
123819
123973
|
},
|
|
123820
123974
|
{
|
|
123821
123975
|
"name": "@agimon-ai/po-session-mcp",
|
|
123822
|
-
"version": "0.0.0-alpha.
|
|
123976
|
+
"version": "0.0.0-alpha.174",
|
|
123823
123977
|
"contractFingerprint": "488617da2873d7b4aac523bb93c7a528caf573c41009d22b47af27765478b33a",
|
|
123824
123978
|
"operations": []
|
|
123825
123979
|
},
|
|
123826
123980
|
{
|
|
123827
123981
|
"name": "@agimon-ai/po-federation",
|
|
123828
|
-
"version": "0.0.0-alpha.
|
|
123982
|
+
"version": "0.0.0-alpha.174",
|
|
123829
123983
|
"contractFingerprint": "488617da2873d7b4aac523bb93c7a528caf573c41009d22b47af27765478b33a",
|
|
123830
123984
|
"operations": []
|
|
123831
123985
|
},
|
|
123832
123986
|
{
|
|
123833
123987
|
"name": "@agimon-ai/po-skill",
|
|
123834
|
-
"version": "0.0.0-alpha.
|
|
123988
|
+
"version": "0.0.0-alpha.174",
|
|
123835
123989
|
"contractFingerprint": "488617da2873d7b4aac523bb93c7a528caf573c41009d22b47af27765478b33a",
|
|
123836
123990
|
"operations": []
|
|
123837
123991
|
},
|
|
123838
123992
|
{
|
|
123839
123993
|
"name": "@agimon-ai/po-space",
|
|
123840
|
-
"version": "0.0.1-alpha.
|
|
123994
|
+
"version": "0.0.1-alpha.17",
|
|
123841
123995
|
"contractFingerprint": "c79816f514738b5368dda0194725087262e57e9b9c71f3f4012019b2db5b72da",
|
|
123842
123996
|
"operations": []
|
|
123843
123997
|
},
|
|
123844
123998
|
{
|
|
123845
123999
|
"name": "@agimon-ai/po-team",
|
|
123846
|
-
"version": "0.0.0-alpha.
|
|
124000
|
+
"version": "0.0.0-alpha.174",
|
|
123847
124001
|
"contractFingerprint": "69e6e0677775e07eb4e8b0379946b286da87c92d70bdd774f7ea1ade8db8204e",
|
|
123848
124002
|
"operations": []
|
|
123849
124003
|
},
|
|
123850
124004
|
{
|
|
123851
124005
|
"name": "@agimon-ai/po-ui",
|
|
123852
|
-
"version": "0.0.0-alpha.
|
|
124006
|
+
"version": "0.0.0-alpha.174",
|
|
123853
124007
|
"contractFingerprint": "488617da2873d7b4aac523bb93c7a528caf573c41009d22b47af27765478b33a",
|
|
123854
124008
|
"operations": []
|
|
123855
124009
|
},
|
|
123856
124010
|
{
|
|
123857
124011
|
"name": "@agimon-ai/po-vault",
|
|
123858
|
-
"version": "0.0.0-alpha.
|
|
124012
|
+
"version": "0.0.0-alpha.174",
|
|
123859
124013
|
"contractFingerprint": "488617da2873d7b4aac523bb93c7a528caf573c41009d22b47af27765478b33a",
|
|
123860
124014
|
"operations": []
|
|
123861
124015
|
},
|
|
123862
124016
|
{
|
|
123863
124017
|
"name": "@agimon-ai/po-help",
|
|
123864
|
-
"version": "0.0.0-alpha.
|
|
124018
|
+
"version": "0.0.0-alpha.174",
|
|
123865
124019
|
"contractFingerprint": "e4a2b566f06e64cb0a374179469dfd13adb4a60d7b8f92a3756ab54e0b05b8f9",
|
|
123866
124020
|
"operations": []
|
|
123867
124021
|
},
|
|
123868
124022
|
{
|
|
123869
124023
|
"name": "@agimon-ai/po-goal",
|
|
123870
|
-
"version": "0.0.0-alpha.
|
|
124024
|
+
"version": "0.0.0-alpha.174",
|
|
123871
124025
|
"contractFingerprint": "488617da2873d7b4aac523bb93c7a528caf573c41009d22b47af27765478b33a",
|
|
123872
124026
|
"operations": []
|
|
123873
124027
|
},
|
|
123874
124028
|
{
|
|
123875
124029
|
"name": "@agimon-ai/po-plan",
|
|
123876
|
-
"version": "0.0.0-alpha.
|
|
124030
|
+
"version": "0.0.0-alpha.174",
|
|
123877
124031
|
"contractFingerprint": "95cba01f8c05bc8464f08bdf21e49c9844251e9c8db9fbd2df388863d86fb97a",
|
|
123878
124032
|
"operations": []
|
|
123879
124033
|
},
|
|
123880
124034
|
{
|
|
123881
124035
|
"name": "@agimon-ai/po-author",
|
|
123882
|
-
"version": "0.0.0-alpha.
|
|
124036
|
+
"version": "0.0.0-alpha.174",
|
|
123883
124037
|
"contractFingerprint": "dddcdd25fbdabd502bb49d4f0b591e4d9cb4e9bc3c5ebd064c2a8fc7c2f72eb0",
|
|
123884
124038
|
"operations": []
|
|
123885
124039
|
},
|
|
123886
124040
|
{
|
|
123887
124041
|
"name": "@agimon-ai/po-voice",
|
|
123888
|
-
"version": "0.0.0-alpha.
|
|
124042
|
+
"version": "0.0.0-alpha.174",
|
|
123889
124043
|
"contractFingerprint": "0eca311908bd58bc6d565505ee77e8704e4f9b8caff4ee4945d6e6248fe3cf0a",
|
|
123890
124044
|
"operations": []
|
|
123891
124045
|
},
|
|
123892
124046
|
{
|
|
123893
124047
|
"name": "@agimon-ai/po-workflow",
|
|
123894
|
-
"version": "0.0.0-alpha.
|
|
124048
|
+
"version": "0.0.0-alpha.174",
|
|
123895
124049
|
"contractFingerprint": "1118eec6aa099022525b2583db1bb71f50c480c81b31a3619a7660087b4ad9b0",
|
|
123896
124050
|
"operations": []
|
|
123897
124051
|
},
|
|
123898
124052
|
{
|
|
123899
124053
|
"name": "@agimon-ai/po-web-search",
|
|
123900
|
-
"version": "0.0.0-alpha.
|
|
124054
|
+
"version": "0.0.0-alpha.173",
|
|
123901
124055
|
"contractFingerprint": "488617da2873d7b4aac523bb93c7a528caf573c41009d22b47af27765478b33a",
|
|
123902
124056
|
"operations": []
|
|
123903
124057
|
}
|