cuekit 0.0.13 → 0.0.14
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/bin/cuekit.js +38 -33
- package/package.json +1 -1
package/bin/cuekit.js
CHANGED
|
@@ -108769,7 +108769,7 @@ function resolveDisplayName(name, aliases) {
|
|
|
108769
108769
|
// packages/mcp/package.json
|
|
108770
108770
|
var package_default = {
|
|
108771
108771
|
name: "@cuekit/mcp",
|
|
108772
|
-
version: "0.0.
|
|
108772
|
+
version: "0.0.11",
|
|
108773
108773
|
private: true,
|
|
108774
108774
|
type: "module",
|
|
108775
108775
|
exports: {
|
|
@@ -108780,23 +108780,12 @@ var package_default = {
|
|
|
108780
108780
|
test: "bun test"
|
|
108781
108781
|
},
|
|
108782
108782
|
dependencies: {
|
|
108783
|
-
"@cuekit/adapters": "
|
|
108784
|
-
"@cuekit/core": "
|
|
108785
|
-
"@cuekit/project-config": "
|
|
108786
|
-
"@cuekit/store": "
|
|
108783
|
+
"@cuekit/adapters": "workspace:*",
|
|
108784
|
+
"@cuekit/core": "workspace:*",
|
|
108785
|
+
"@cuekit/project-config": "workspace:*",
|
|
108786
|
+
"@cuekit/store": "workspace:*",
|
|
108787
108787
|
incur: "0.4.3",
|
|
108788
|
-
"@cuekit/agent-profiles": "
|
|
108789
|
-
},
|
|
108790
|
-
publishConfig: {
|
|
108791
|
-
access: "public"
|
|
108792
|
-
},
|
|
108793
|
-
engines: {
|
|
108794
|
-
bun: ">=1.2.0"
|
|
108795
|
-
},
|
|
108796
|
-
license: "MIT",
|
|
108797
|
-
repository: {
|
|
108798
|
-
type: "git",
|
|
108799
|
-
url: "git+https://github.com/takemo101/cuekit.git"
|
|
108788
|
+
"@cuekit/agent-profiles": "workspace:*"
|
|
108800
108789
|
}
|
|
108801
108790
|
};
|
|
108802
108791
|
|
|
@@ -110035,9 +110024,12 @@ function buildTeamAttentionItemsFromEvents(taskEvents, options = {}) {
|
|
|
110035
110024
|
return [];
|
|
110036
110025
|
const includeFullMessage = options.includeFullMessage ?? true;
|
|
110037
110026
|
const items = taskEvents.flatMap(({ task: task2, events }) => {
|
|
110038
|
-
|
|
110039
|
-
|
|
110040
|
-
|
|
110027
|
+
return events.filter((event) => ATTENTION_TYPES.has(event.type)).filter((event) => {
|
|
110028
|
+
if (task2.team_position === "coordinator" && event.type === "completed") {
|
|
110029
|
+
return false;
|
|
110030
|
+
}
|
|
110031
|
+
return true;
|
|
110032
|
+
}).map((event) => {
|
|
110041
110033
|
const type = event.type;
|
|
110042
110034
|
return {
|
|
110043
110035
|
sequence: event.sequence,
|
|
@@ -110855,6 +110847,17 @@ ${input.strategy.intent}` : undefined,
|
|
|
110855
110847
|
"Use cuekit tools to coordinate: inspect the strategy's recommended team skeleton when useful, review and adjust it before submit_team_tasks, wait with follow_new_tasks, steer when needed, get_team_result, and report a final completed event. Cuekit will not auto-submit worker/reviewer tasks from the skeleton.",
|
|
110856
110848
|
"Report progress after submitting tasks, bounded waits, and steering so the parent can see the current state and avoid appearing idle while work is still in progress.",
|
|
110857
110849
|
"When submitting team tasks, set a clear position whenever the lifecycle lane is known: worker for implementation/investigation, reviewer for review, finisher for PR/release/cleanup finishing, observer for monitoring, and coordinator only for orchestration. Unpositioned team tasks are allowed for ambiguous ad-hoc work, but they will not appear in worker/reviewer/finisher lanes.",
|
|
110850
|
+
`## Coordinator wait loop recipe
|
|
110851
|
+
|
|
110852
|
+
You must stay active until all non-coordinator tasks are terminal. Use this pattern:
|
|
110853
|
+
|
|
110854
|
+
1. submit_team_tasks for workers (position: worker)
|
|
110855
|
+
2. loop { wait_team(follow_new_tasks, timeout_ms: 60000) }
|
|
110856
|
+
- if all workers terminal \u2192 submit reviewer (position: reviewer) or finisher
|
|
110857
|
+
- if blocked/stalled \u2192 steer affected task or report blocked
|
|
110858
|
+
- if attention_items include coordinator blocked \u2192 report immediately
|
|
110859
|
+
3. After reviewer/finisher completes \u2192 get_team_result and emit final completed report
|
|
110860
|
+
4. Never exit while non-coordinator tasks are running without explicit parent direction`,
|
|
110858
110861
|
"When team status or result includes attention_items, inspect them before deciding whether to continue, submit more tasks, steer a task, or emit your final report.",
|
|
110859
110862
|
"Do not emit your final completed report while submitted worker, reviewer, or finisher tasks are still non-terminal. Wait with follow_new_tasks, inspect get_team_result, and steer idle tasks once before deciding they are unusable. If you intentionally skip, cancel, or cannot wait for any submitted non-coordinator task, explain that exception in the final report.",
|
|
110860
110863
|
"After a `position: finisher` task completes and all submitted non-coordinator tasks are terminal or explicitly accounted for, inspect the team result with get_team_result and emit your own final completed report \u2014 do not wait for parent steering. If no finisher was submitted, the coordinator remains responsible for the final durable report under the same condition."
|
|
@@ -111920,8 +111923,9 @@ async function runStartTeamStrategy(ctx, input) {
|
|
|
111920
111923
|
...role ? { role } : {},
|
|
111921
111924
|
...agent_kind ? { agent_kind } : {},
|
|
111922
111925
|
...model ? { model } : {},
|
|
111923
|
-
|
|
111924
|
-
...adapter_options ? { adapter_options } : {}
|
|
111926
|
+
timeout_ms: input.coordinator?.timeout_ms ?? null,
|
|
111927
|
+
...adapter_options ? { adapter_options } : {},
|
|
111928
|
+
metadata: { long_lived: true }
|
|
111925
111929
|
});
|
|
111926
111930
|
if (!submitted.accepted) {
|
|
111927
111931
|
return failure("coordinator_submit_failed", submitted.error.message);
|
|
@@ -112711,7 +112715,7 @@ async function runWaitTeam(ctx, input) {
|
|
|
112711
112715
|
status: aggregateTeamStatus(latest2),
|
|
112712
112716
|
mode: input.mode ?? "all",
|
|
112713
112717
|
done: false,
|
|
112714
|
-
timed_out:
|
|
112718
|
+
timed_out: true,
|
|
112715
112719
|
team_sequence: maxSeq,
|
|
112716
112720
|
scope: { team_id: team2.id, session_id: team2.session_id },
|
|
112717
112721
|
tasks: [],
|
|
@@ -112753,6 +112757,7 @@ async function runWaitTeam(ctx, input) {
|
|
|
112753
112757
|
run_summary: buildTeamRunSummary(ctx, latest),
|
|
112754
112758
|
...nextActionHint ? { next_action_hint: nextActionHint } : {},
|
|
112755
112759
|
...cleanupHint ? { cleanup_hint: cleanupHint } : {},
|
|
112760
|
+
...input.since_team_sequence !== undefined ? { team_sequence: getMaxTeamSequence(ctx.db, team2.id) ?? 0 } : {},
|
|
112756
112761
|
...wait.error ? { error: wait.error } : {}
|
|
112757
112762
|
};
|
|
112758
112763
|
}
|
|
@@ -113667,7 +113672,7 @@ init_src2();
|
|
|
113667
113672
|
// packages/cli/package.json
|
|
113668
113673
|
var package_default2 = {
|
|
113669
113674
|
name: "@cuekit/cli",
|
|
113670
|
-
version: "0.0.
|
|
113675
|
+
version: "0.0.14",
|
|
113671
113676
|
description: "cuekit \u2014 delegation substrate for coding agents",
|
|
113672
113677
|
type: "module",
|
|
113673
113678
|
exports: {
|
|
@@ -113685,15 +113690,7 @@ var package_default2 = {
|
|
|
113685
113690
|
typecheck: "tsc --noEmit",
|
|
113686
113691
|
test: "bun test"
|
|
113687
113692
|
},
|
|
113688
|
-
dependencies: {
|
|
113689
|
-
"@cuekit/adapters": "^0.0.12",
|
|
113690
|
-
"@cuekit/agent-profiles": "^0.0.12",
|
|
113691
|
-
"@cuekit/core": "^0.0.12",
|
|
113692
|
-
"@cuekit/mcp": "^0.0.12",
|
|
113693
|
-
"@cuekit/project-config": "^0.0.12",
|
|
113694
|
-
"@cuekit/store": "^0.0.12",
|
|
113695
|
-
"@cuekit/tui": "^0.0.12"
|
|
113696
|
-
},
|
|
113693
|
+
dependencies: {},
|
|
113697
113694
|
engines: {
|
|
113698
113695
|
bun: ">=1.2.0"
|
|
113699
113696
|
},
|
|
@@ -113716,6 +113713,14 @@ var package_default2 = {
|
|
|
113716
113713
|
homepage: "https://github.com/takemo101/cuekit#readme",
|
|
113717
113714
|
bugs: {
|
|
113718
113715
|
url: "https://github.com/takemo101/cuekit/issues"
|
|
113716
|
+
},
|
|
113717
|
+
optionalDependencies: {
|
|
113718
|
+
"@opentui/core-darwin-arm64": "0.2.1",
|
|
113719
|
+
"@opentui/core-darwin-x64": "0.2.1",
|
|
113720
|
+
"@opentui/core-linux-arm64": "0.2.1",
|
|
113721
|
+
"@opentui/core-linux-x64": "0.2.1",
|
|
113722
|
+
"@opentui/core-win32-arm64": "0.2.1",
|
|
113723
|
+
"@opentui/core-win32-x64": "0.2.1"
|
|
113719
113724
|
}
|
|
113720
113725
|
};
|
|
113721
113726
|
|