@codeam/shared 2.63.1 → 2.65.0
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.mts +107 -1
- package/dist/index.d.ts +107 -1
- package/dist/index.js +39 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +31 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2590,6 +2590,26 @@ var HEADROOM_USAGE_COMMAND = "headroom_usage";
|
|
|
2590
2590
|
// src/types/agent-switch.ts
|
|
2591
2591
|
var SWITCH_AGENT_COMMAND = "switch_agent";
|
|
2592
2592
|
|
|
2593
|
+
// src/types/agent-squad.ts
|
|
2594
|
+
var HANDOFF_FENCE_TAG = "codeam-handoff";
|
|
2595
|
+
var SQUAD_CONFIGURE_COMMAND = "squad_configure";
|
|
2596
|
+
var SQUAD_STATS_COMMAND = "squad_stats";
|
|
2597
|
+
var SQUAD_HOP_BUDGET_DEFAULT = 3;
|
|
2598
|
+
var SQUAD_HOP_BUDGET_MIN = 1;
|
|
2599
|
+
var SQUAD_HOP_BUDGET_MAX = 10;
|
|
2600
|
+
function clampHopBudget(value) {
|
|
2601
|
+
if (typeof value !== "number" || !Number.isFinite(value)) return SQUAD_HOP_BUDGET_DEFAULT;
|
|
2602
|
+
return Math.min(SQUAD_HOP_BUDGET_MAX, Math.max(SQUAD_HOP_BUDGET_MIN, Math.round(value)));
|
|
2603
|
+
}
|
|
2604
|
+
var SQUAD_SPECIALTIES = {
|
|
2605
|
+
claude: "deep reasoning, refactors, and multi-step architecture work",
|
|
2606
|
+
codex: "fast, focused implementation and test fixing",
|
|
2607
|
+
cursor: "multi-file edits and codebase-wide changes",
|
|
2608
|
+
gemini: "large-context analysis across big files and logs",
|
|
2609
|
+
kimi: "long-context code reading and summarization",
|
|
2610
|
+
opencode: "general implementation tasks"
|
|
2611
|
+
};
|
|
2612
|
+
|
|
2593
2613
|
// src/headroom/manifest.ts
|
|
2594
2614
|
var HEADROOM_PROXY_PORT = 8787;
|
|
2595
2615
|
var HEADROOM_BACKEND_ENV = {
|
|
@@ -2725,6 +2745,9 @@ var USER_EVENTS = {
|
|
|
2725
2745
|
// the backend re-publishes them on the per-user SSE bus (mirrored in repo A).
|
|
2726
2746
|
SWITCH_AGENT_PROGRESS: "switch_agent_progress",
|
|
2727
2747
|
SWITCH_AGENT_STATUS: "switch_agent_status",
|
|
2748
|
+
// Agent Squad — the CLI posts these to /api/agent-switch/events; PRO-gated.
|
|
2749
|
+
HANDOFF_PROPOSED: "handoff_proposed",
|
|
2750
|
+
HANDOFF_RESOLVED: "handoff_resolved",
|
|
2728
2751
|
// VCS / PR Command Center — the backend publishes this after an agent finishes
|
|
2729
2752
|
// reviewing a PR (verdict + comment count + findings), driving the mobile
|
|
2730
2753
|
// completion screen + push. Mirrored in repo A's app-shared events.ts.
|
|
@@ -2801,6 +2824,7 @@ export {
|
|
|
2801
2824
|
GUARDRAIL_CATEGORY_META,
|
|
2802
2825
|
GUARDRAIL_CONFIGURE_COMMAND,
|
|
2803
2826
|
GUARDRAIL_DISPOSITIONS,
|
|
2827
|
+
HANDOFF_FENCE_TAG,
|
|
2804
2828
|
HEADROOM_BACKEND_ENV,
|
|
2805
2829
|
HEADROOM_EXTRAS_BY_SURFACE,
|
|
2806
2830
|
HEADROOM_MODELS,
|
|
@@ -2832,6 +2856,12 @@ export {
|
|
|
2832
2856
|
REVIEWER_PROMPT,
|
|
2833
2857
|
SKILL_REGISTRY,
|
|
2834
2858
|
SPECIFIER_PROMPT,
|
|
2859
|
+
SQUAD_CONFIGURE_COMMAND,
|
|
2860
|
+
SQUAD_HOP_BUDGET_DEFAULT,
|
|
2861
|
+
SQUAD_HOP_BUDGET_MAX,
|
|
2862
|
+
SQUAD_HOP_BUDGET_MIN,
|
|
2863
|
+
SQUAD_SPECIALTIES,
|
|
2864
|
+
SQUAD_STATS_COMMAND,
|
|
2835
2865
|
SSE_SOCKET_TIMEOUT_MS,
|
|
2836
2866
|
STACK_TO_RECOMMENDED,
|
|
2837
2867
|
SWITCH_AGENT_COMMAND,
|
|
@@ -2839,6 +2869,7 @@ export {
|
|
|
2839
2869
|
UNKNOWN_MODEL_PRICING,
|
|
2840
2870
|
UPCOMING_INTEGRATION_IDS,
|
|
2841
2871
|
USER_EVENTS,
|
|
2872
|
+
clampHopBudget,
|
|
2842
2873
|
classifyStack,
|
|
2843
2874
|
detectedIntegrationsFromDeps,
|
|
2844
2875
|
getAgent,
|