@halcyonlabs/app 0.47.0-halcyon.454 → 0.47.0-halcyon.456
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/index.d.ts +9 -9
- package/host-daemon/dist/bb +1 -1
- package/host-daemon/dist/bb-chunks/{chunk-LU2GXM52.js → chunk-OGLMZGKU.js} +1 -1
- package/host-daemon/dist/bb-chunks/{guide-JYCBRHXL.js → guide-EGOMFPPW.js} +1 -1
- package/host-daemon/dist/bb-chunks/{thread-JC6R3W5D.js → thread-64XRXIWK.js} +12 -12
- package/host-daemon/dist/daemon-bundle.mjs +116 -116
- package/package.json +2 -2
- package/server/dist/builtin-plugins/bb-guide/skills/bb-plugin-authoring/references/backend-api-index.md +1 -1
- package/server/dist/builtin-plugins/bb-guide/skills/bb-plugin-authoring/references/backend-cli-agents.md +24 -0
- package/server/dist/builtin-plugins/orbit/dist/assets/assets/orbit-guidance/migrations/task-index.json +25 -0
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/fixed-runner/linux-x64/manifest.json +4 -4
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/revision +1 -1
- package/server/dist/builtin-plugins/orbit/dist/server.js +350 -350
- package/server/dist/builtin-plugins/plugin-api-docs/dist/app.js +1 -1
- package/server/dist/builtin-plugins/plugin-api-docs/dist/server.js +1 -1
- package/server/dist/builtin-skills/bb-plugin-authoring/references/backend-api-index.md +1 -1
- package/server/dist/builtin-skills/bb-plugin-authoring/references/backend-cli-agents.md +24 -0
- package/server/dist/start-server.js +1730 -1337
package/dist/index.d.ts
CHANGED
|
@@ -83,8 +83,8 @@ declare const appSettingsSchema: z$1.ZodObject<{
|
|
|
83
83
|
providerOrder: z$1.ZodArray<z$1.ZodString>;
|
|
84
84
|
defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
85
85
|
providerCompletedTurnDisplay: z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
86
|
-
collapse: "collapse";
|
|
87
86
|
flat: "flat";
|
|
87
|
+
collapse: "collapse";
|
|
88
88
|
}>>;
|
|
89
89
|
streamerMode: z$1.ZodBoolean;
|
|
90
90
|
allowFastServiceTier: z$1.ZodBoolean;
|
|
@@ -105,8 +105,8 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
|
105
105
|
providerOrder: z$1.ZodArray<z$1.ZodString>;
|
|
106
106
|
defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
107
107
|
providerCompletedTurnDisplay: z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
108
|
-
collapse: "collapse";
|
|
109
108
|
flat: "flat";
|
|
109
|
+
collapse: "collapse";
|
|
110
110
|
}>>;
|
|
111
111
|
streamerMode: z$1.ZodBoolean;
|
|
112
112
|
managedBranchPrefix: z$1.ZodString;
|
|
@@ -143,8 +143,8 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
|
143
143
|
providerOrder: z$1.ZodArray<z$1.ZodString>;
|
|
144
144
|
defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
145
145
|
providerCompletedTurnDisplay: z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
|
|
146
|
-
collapse: "collapse";
|
|
147
146
|
flat: "flat";
|
|
147
|
+
collapse: "collapse";
|
|
148
148
|
}>>;
|
|
149
149
|
streamerMode: z$1.ZodBoolean;
|
|
150
150
|
machineServerUrl: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -3008,8 +3008,8 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
|
|
|
3008
3008
|
}>;
|
|
3009
3009
|
name: z$1.ZodString;
|
|
3010
3010
|
source: z$1.ZodEnum<{
|
|
3011
|
-
command: "command";
|
|
3012
3011
|
skill: "skill";
|
|
3012
|
+
command: "command";
|
|
3013
3013
|
}>;
|
|
3014
3014
|
origin: z$1.ZodEnum<{
|
|
3015
3015
|
user: "user";
|
|
@@ -3098,8 +3098,8 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
|
|
|
3098
3098
|
}>;
|
|
3099
3099
|
name: z$1.ZodString;
|
|
3100
3100
|
source: z$1.ZodEnum<{
|
|
3101
|
-
command: "command";
|
|
3102
3101
|
skill: "skill";
|
|
3102
|
+
command: "command";
|
|
3103
3103
|
}>;
|
|
3104
3104
|
origin: z$1.ZodEnum<{
|
|
3105
3105
|
user: "user";
|
|
@@ -4016,8 +4016,8 @@ declare const promptTextMentionSchema: z$1.ZodObject<{
|
|
|
4016
4016
|
}>;
|
|
4017
4017
|
name: z$1.ZodString;
|
|
4018
4018
|
source: z$1.ZodEnum<{
|
|
4019
|
-
command: "command";
|
|
4020
4019
|
skill: "skill";
|
|
4020
|
+
command: "command";
|
|
4021
4021
|
}>;
|
|
4022
4022
|
origin: z$1.ZodEnum<{
|
|
4023
4023
|
user: "user";
|
|
@@ -4081,8 +4081,8 @@ declare const promptInputSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
4081
4081
|
}>;
|
|
4082
4082
|
name: z$1.ZodString;
|
|
4083
4083
|
source: z$1.ZodEnum<{
|
|
4084
|
-
command: "command";
|
|
4085
4084
|
skill: "skill";
|
|
4085
|
+
command: "command";
|
|
4086
4086
|
}>;
|
|
4087
4087
|
origin: z$1.ZodEnum<{
|
|
4088
4088
|
user: "user";
|
|
@@ -4240,8 +4240,8 @@ declare const providerInfoSchema: z$1.ZodObject<{
|
|
|
4240
4240
|
}, z$1.core.$strip>;
|
|
4241
4241
|
}, z$1.core.$strip>], "kind">>;
|
|
4242
4242
|
completedTurnDisplay: z$1.ZodEnum<{
|
|
4243
|
-
collapse: "collapse";
|
|
4244
4243
|
flat: "flat";
|
|
4244
|
+
collapse: "collapse";
|
|
4245
4245
|
}>;
|
|
4246
4246
|
available: z$1.ZodBoolean;
|
|
4247
4247
|
strings: z$1.ZodOptional<z$1.ZodObject<{
|
|
@@ -4393,8 +4393,8 @@ declare const threadQueuedMessageSchema: z$1.ZodObject<{
|
|
|
4393
4393
|
}>;
|
|
4394
4394
|
name: z$1.ZodString;
|
|
4395
4395
|
source: z$1.ZodEnum<{
|
|
4396
|
-
command: "command";
|
|
4397
4396
|
skill: "skill";
|
|
4397
|
+
command: "command";
|
|
4398
4398
|
}>;
|
|
4399
4399
|
origin: z$1.ZodEnum<{
|
|
4400
4400
|
user: "user";
|
package/host-daemon/dist/bb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire as __createRequire } from "node:module";import { dirname as __pathDirname } from "node:path";import { fileURLToPath as __fileURLToPath } from "node:url";const require = __createRequire(import.meta.url);const __filename = __fileURLToPath(import.meta.url);const __dirname = __pathDirname(__filename);
|
|
3
|
-
import{a as g,b as v,c as C}from"./bb-chunks/chunk-
|
|
3
|
+
import{a as g,b as v,c as C}from"./bb-chunks/chunk-OGLMZGKU.js";import{a as d,b as p,d as u}from"./bb-chunks/chunk-NCQMSH7M.js";import"./bb-chunks/chunk-5PWLIQO6.js";import{spawnSync as _}from"node:child_process";import{realpathSync as R}from"node:fs";import{resolve as S,win32 as B}from"node:path";var f="BB_CLI_REEXEC";function I(e){return e.platform==="win32"&&B.extname(e.target)===""?{command:e.nodePath,args:[e.target,...e.argv]}:{command:e.target,args:e.argv}}function x(e){try{return R(S(e))}catch{return null}}function b(e={}){let n=e.env??process.env;if(n[f]==="1")return;let r=n.BB_CLI?.trim();if(!r)return;let t=e.currentExecutablePath??process.argv[1];if(!t)return;let o=x(r),a=x(t);if(o===null||a===null||o===a)return;let i=e.argv??process.argv.slice(2),c={...n,[f]:"1"};if(e.reexec){e.reexec({target:o,argv:i,env:c});return}let l=I({argv:i,nodePath:process.execPath,platform:process.platform,target:o}),s=_(l.command,l.args,{env:c,stdio:"inherit"});if(s.error){process.stderr.write(`Moonlet: failed to re-exec BB_CLI=${o}: ${s.error.message}
|
|
4
4
|
`),process.exitCode=1;return}process.exit(s.status===null?1:s.status)}process.env.FORCE_COLOR!==void 0&&delete process.env.NO_COLOR;b();var m=new p;m.name("bb").description("Moonlet CLI - manage your AI coding agents").enablePositionalOptions().exitOverride().showSuggestionAfterError(!1).version(u());var O=new Set([...g.map(e=>e.name),"help"]);function A(e){let n,r=()=>n??=e.createCliRuntimeContext();return{getUrl:()=>e.resolveServerUrl(r()),getContext:()=>e.resolveContextSnapshot(r())}}async function L(e,n,r){let t=await import("./bb-chunks/plugin-cli-proxy-5UJXWD7T.js"),o=await t.fetchPluginCliContributions(n());if(o.outcome==="unreachable"){if(r)return;let s=t.describeUnreachableServer(n(),o.cause,o.lastTimeoutMs,o.attempts);console.error(s);let{isJsonInvocation:E,writeCliErrorEnvelope:y}=await import("./bb-chunks/cli-error-output-KERMGTKZ.js");y({code:"server_unreachable",hint:null,message:s},E(process.argv)),process.exit(1)}if(o.outcome==="invalid")return;let a=t.findPluginCliCommand(o.contributions,e);if(a===void 0){let s=await t.findDisabledPluginForCommand(n(),e);s!==null&&(console.error(`bb ${e} is provided by the "${s}" plugin, which is disabled \u2014 run \`bb plugin enable ${s}\` or enable it in Plugins.`),process.exit(1));return}let i=process.argv.slice(3),c=a.commands.find(s=>s.name===i[0]);c!==void 0&&a.rendersHelp!==!0&&i.slice(1).some(s=>s==="--help"||s==="-h")&&(console.log(c.usage),process.exit(0));let l=await t.runPluginCliCommand(n(),a.pluginId,i);l!==0&&await w({code:"plugin_command_failed",command:t.pluginCommandLabel(a,i),exitCode:l,token:null}),process.exit(l)}async function w(e){let[{appendCliErrorLogEntry:n},{commandPathLabel:r}]=await Promise.all([import("./bb-chunks/cli-error-log-PHJFENHA.js"),import("./bb-chunks/commander-errors-KICBMATT.js")]);n({at:new Date().toISOString(),cliVersion:u(),code:e.code,command:e.command??r(m,process.argv),exitCode:e.exitCode,threadId:process.env.BB_THREAD_ID??null,token:e.token})}async function P(e,n){e.exitCode===0&&process.exit(0);let[r,t]=await Promise.all([import("./bb-chunks/commander-errors-KICBMATT.js"),import("./bb-chunks/context-hints-MB45OW5W.js")]),o=await r.summarizeCommanderError({argv:process.argv,error:e,program:m,resolveHostId:n===null?async()=>null:t.createContextHostIdResolver(n)});r.writeCommanderErrorSummary(o,process.argv),await w({code:o.code,command:null,exitCode:e.exitCode,token:o.logToken}),process.exit(e.exitCode)}async function h(e){try{await m.parseAsync(process.argv)}catch(n){throw n instanceof d&&await P(n,e),n}}async function M(e){let n=await import("./bb-chunks/command-resolution-U7GVB5KQ.js");if(!n.hasHelpFlag(process.argv))return;let r=n.resolveInvocation(m,process.argv);if(r.unknownSubcommand===null)return;let t=`error: unknown command '${r.unknownSubcommand}'`;console.error(t),await P(new d(1,"commander.unknownCommand",t),e)}async function k(){let[{JSON_SHAPE_BY_COMMAND_PATH:e,jsonShapeHelp:n},r]=await Promise.all([import("./bb-chunks/json-shapes-TGDCNQZQ.js"),import("./bb-chunks/command-resolution-U7GVB5KQ.js")]);for(let t of Object.keys(e)){let o=r.resolveInvocation(m,["node","bb",...t.split(" ")]),a=n(t);a===null||o.path.join(" ")!==t||o.command.addHelpText("after",a)}}async function D(){let e=process.argv[2],n=v(e);if(n.length===0){await h(null);return}let[r,...t]=await Promise.all([import("./bb-chunks/context-env-6FWKR4UF.js"),...n.map(i=>i.load())]),o=A(r);m.addHelpText("after",()=>{let i=o.getContext(),c=i.projectId??"<unset>",l=i.threadId??"<unset>";return`
|
|
5
5
|
|
|
6
6
|
Current context:
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module";import { dirname as __pathDirname } from "node:path";import { fileURLToPath as __fileURLToPath } from "node:url";const require = __createRequire(import.meta.url);const __filename = __fileURLToPath(import.meta.url);const __dirname = __pathDirname(__filename);
|
|
2
|
-
function o(e,r,t){return{name:e,load:()=>r().then(t)}}var m=[o("browser",()=>import("./browser-YWW4LSQC.js"),e=>(r,t)=>e.registerBrowserCommands(r,t.getUrl)),o("status",()=>import("./status-V5WM5X7N.js"),e=>(r,t)=>e.registerStatusCommand(r,t.getUrl,t.getContext)),o("settings",()=>import("./settings-ZDANVHUG.js"),e=>(r,t)=>e.registerSettingsCommands(r,t.getUrl)),o("permissions",()=>import("./permissions-UXMMEOY7.js"),e=>(r,t)=>e.registerPermissionsCommands(r,t.getUrl)),o("schedule",()=>import("./schedule-CUTVMZ6I.js"),e=>(r,t)=>e.registerScheduleCommands(r,t.getUrl)),o("project",()=>import("./project-IPYG76GR.js"),e=>(r,t)=>e.registerProjectCommands(r,t.getUrl)),o("prompt-history",()=>import("./prompt-history-37FHCF4N.js"),e=>(r,t)=>e.registerPromptHistoryCommands(r,t.getUrl)),o("provider",()=>import("./provider-SVPSVN26.js"),e=>(r,t)=>e.registerProviderCommands(r,t.getUrl)),o("machine",()=>import("./machine-RNA5VRJ4.js"),e=>(r,t)=>e.registerMachineCommands(r,t.getUrl)),o("server",()=>import("./server-YTN2QPCV.js"),e=>(r,t)=>e.registerServerCommands(r,t.getUrl)),o("updates",()=>import("./updates-HHE6HZRW.js"),e=>(r,t)=>e.registerUpdatesCommands(r,t.getUrl)),o("terminal",()=>import("./terminal-NXRS5WZI.js"),e=>(r,t)=>e.registerTerminalCommands(r,t.getUrl)),o("thread",()=>import("./thread-
|
|
2
|
+
function o(e,r,t){return{name:e,load:()=>r().then(t)}}var m=[o("browser",()=>import("./browser-YWW4LSQC.js"),e=>(r,t)=>e.registerBrowserCommands(r,t.getUrl)),o("status",()=>import("./status-V5WM5X7N.js"),e=>(r,t)=>e.registerStatusCommand(r,t.getUrl,t.getContext)),o("settings",()=>import("./settings-ZDANVHUG.js"),e=>(r,t)=>e.registerSettingsCommands(r,t.getUrl)),o("permissions",()=>import("./permissions-UXMMEOY7.js"),e=>(r,t)=>e.registerPermissionsCommands(r,t.getUrl)),o("schedule",()=>import("./schedule-CUTVMZ6I.js"),e=>(r,t)=>e.registerScheduleCommands(r,t.getUrl)),o("project",()=>import("./project-IPYG76GR.js"),e=>(r,t)=>e.registerProjectCommands(r,t.getUrl)),o("prompt-history",()=>import("./prompt-history-37FHCF4N.js"),e=>(r,t)=>e.registerPromptHistoryCommands(r,t.getUrl)),o("provider",()=>import("./provider-SVPSVN26.js"),e=>(r,t)=>e.registerProviderCommands(r,t.getUrl)),o("machine",()=>import("./machine-RNA5VRJ4.js"),e=>(r,t)=>e.registerMachineCommands(r,t.getUrl)),o("server",()=>import("./server-YTN2QPCV.js"),e=>(r,t)=>e.registerServerCommands(r,t.getUrl)),o("updates",()=>import("./updates-HHE6HZRW.js"),e=>(r,t)=>e.registerUpdatesCommands(r,t.getUrl)),o("terminal",()=>import("./terminal-NXRS5WZI.js"),e=>(r,t)=>e.registerTerminalCommands(r,t.getUrl)),o("thread",()=>import("./thread-64XRXIWK.js"),e=>(r,t)=>e.registerThreadCommands(r,t.getUrl)),o("environment",()=>import("./environment-DKTU4W2U.js"),e=>(r,t)=>e.registerEnvironmentCommands(r,t.getUrl)),o("file",()=>import("./file-IAGKEA4Q.js"),e=>(r,t)=>e.registerFileCommands(r,t.getUrl)),o("theme",()=>import("./theme-KL6ESTKG.js"),e=>(r,t)=>e.registerThemeCommands(r,t.getUrl)),o("plugin",()=>import("./plugin-GSR7L7WW.js"),e=>(r,t)=>e.registerPluginCommands(r,t.getUrl)),o("marketplace",()=>import("./marketplace-A65SPNH3.js"),e=>(r,t)=>e.registerMarketplaceCommands(r,t.getUrl)),o("skill",()=>import("./skill-NI5AAJFF.js"),e=>(r,t)=>e.registerSkillCommands(r,t.getUrl,t.getContext)),o("guide",()=>import("./guide-EGOMFPPW.js"),e=>r=>e.registerGuideCommand(r)),o("diagnostics",()=>import("./diagnostics-WYPOAI5D.js"),e=>r=>e.registerDiagnosticsCommands(r)),o("voice",()=>import("./voice-BPMINO7T.js"),e=>(r,t)=>e.registerVoiceCommands(r,t.getUrl))];function n(e){if(e==="--version"||e==="-V")return[];let r=m.find(t=>t.name===e);return r===void 0?m:[r]}function i(e,r){return e===void 0||e.length===0||e.startsWith("-")||r.has(e)?null:e}export{m as a,n as b,i as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module";import { dirname as __pathDirname } from "node:path";import { fileURLToPath as __fileURLToPath } from "node:url";const require = __createRequire(import.meta.url);const __filename = __fileURLToPath(import.meta.url);const __dirname = __pathDirname(__filename);
|
|
2
|
-
import{a}from"./chunk-
|
|
2
|
+
import{a}from"./chunk-OGLMZGKU.js";import{a as s,j as p}from"./chunk-JW4O2URB.js";import{b as d}from"./chunk-NCQMSH7M.js";import"./chunk-WWZ7D6EQ.js";import{H as u}from"./chunk-PJLXOC6S.js";import"./chunk-VLWNZSJS.js";import{a as c}from"./chunk-AIS4D5YM.js";import"./chunk-EGI3PDJP.js";import"./chunk-GQWB2BVL.js";import"./chunk-E7J2DJY7.js";import"./chunk-BNG7SSF7.js";import"./chunk-5PWLIQO6.js";function f(e){return e.registeredArguments.map(t=>{let o=`${t.name()}${t.variadic?"...":""}`;return t.required?`<${o}>`:`[${o}]`}).join(" ")}function g(e,t){return e.commands.flatMap(o=>{if(o.name()==="help")return[];let r=[...t,o.name()],i=g(o,r);return i.length>0?i:[{aliases:o.aliases(),arguments:f(o),description:o.description(),options:o.options.filter(n=>!n.hidden).map(n=>n.flags.replace(/^-\w, /u,"")),path:r.join(" ")}]})}async function C(e){let t=new d,o={getUrl:()=>"",getContext:()=>({serverUrl:""})};for(let n of a)(await n.load())(t,o);let r=g(t,[]);if(e===void 0)return r;let i=r.filter(n=>n.path===e||n.path.startsWith(`${e} `));if(i.length===0)throw new c({code:"invalid_value",hint:`Command groups: ${a.map(n=>n.name).join(", ")}`,message:`Unknown command group '${e}'.`});return i}function b(e,t){let r=[`bb ${[e.path,...e.aliases.map(n=>`|${n}`)].join("")}`,e.arguments].filter(n=>n.length>0).join(" "),i=t&&e.options.length>0?` ${e.options.map(n=>`[${n}]`).join(" ")}`:"";return`${r}${i}
|
|
3
3
|
${e.description}`}function j(e){e.command("guide [chapter] [group]").description("Show the Moonlet system overview and CLI guide; `bb guide commands [group]` lists every core command on one page").option("--json","Print machine-readable JSON output").action(p(async(t,o,r)=>{if(t==="commands"){let n=await C(o);if(s(r,{chapter:t,commands:n}))return;let m=n.map(l=>b(l,o!==void 0));console.log(m.join(`
|
|
4
4
|
`)),o===void 0&&console.log("\nRun `bb guide commands <group>` (for example `bb guide commands thread`) to include every option. Commands contributed by plugins are listed by `bb plugin list`.");return}let i=u().render({chapter:t});if(t){if(s(r,i))return;console.log(i.content);return}s(r,{overview:i.content})||console.log(i.content)}))}export{C as buildCommandIndex,j as registerGuideCommand};
|