@openthink/team 0.0.7 → 0.0.9
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.js +35 -14
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1929,6 +1929,20 @@ repos: []
|
|
|
1929
1929
|
# ${id}
|
|
1930
1930
|
|
|
1931
1931
|
<!-- Canonical design doc for this project. Tickets reference this project via \`project: ${id}\` in their frontmatter. The role-pipeline auto-loads this README into the spawned agent's context, so anything authoritative about the project's architecture, scope, naming, or defaults belongs here. -->
|
|
1932
|
+
|
|
1933
|
+
## Tickets
|
|
1934
|
+
|
|
1935
|
+
For the live ticket list, run:
|
|
1936
|
+
|
|
1937
|
+
\`\`\`sh
|
|
1938
|
+
oteam project show ${id} --tickets
|
|
1939
|
+
\`\`\`
|
|
1940
|
+
|
|
1941
|
+
Tickets are not stored inside this folder \u2014 they live in \`<vault>/tickets/<state>/\` and reference this project via frontmatter \`project: ${id}\`.
|
|
1942
|
+
|
|
1943
|
+
### Notable shipped milestones (drift expected)
|
|
1944
|
+
|
|
1945
|
+
<!-- Hand-maintained narrative entries for shipped work worth calling out. The \`oteam project show ${id} --tickets\` command above is the canonical source of truth for the ticket list \u2014 keep entries here to short, durable highlights, and accept that this subsection will drift. -->
|
|
1932
1946
|
`;
|
|
1933
1947
|
}
|
|
1934
1948
|
|
|
@@ -2867,8 +2881,9 @@ async function assignTicket(opts) {
|
|
|
2867
2881
|
sessionId: randomUUID(),
|
|
2868
2882
|
startedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
2869
2883
|
} : null;
|
|
2870
|
-
const
|
|
2871
|
-
if (!
|
|
2884
|
+
const wantsKitty = !opts.workInline && isMacOS();
|
|
2885
|
+
if (!wantsKitty) {
|
|
2886
|
+
process.stdout.write(inlineStartLine(ticket.id) + "\n");
|
|
2872
2887
|
runInline(
|
|
2873
2888
|
claudePath,
|
|
2874
2889
|
ticketPath,
|
|
@@ -2880,24 +2895,22 @@ async function assignTicket(opts) {
|
|
|
2880
2895
|
);
|
|
2881
2896
|
return;
|
|
2882
2897
|
}
|
|
2898
|
+
const kittyPath = findKittyBinary();
|
|
2899
|
+
if (!kittyPath) {
|
|
2900
|
+
process.stderr.write(
|
|
2901
|
+
"oteam assign: kitty not installed (or not on PATH); pass --inline to run in this terminal\n"
|
|
2902
|
+
);
|
|
2903
|
+
process.exit(1);
|
|
2904
|
+
}
|
|
2883
2905
|
const monitored = opts.monitoredOrgs ?? readMonitoredOrgsFromEnv();
|
|
2884
2906
|
const preferring = preferredKittyContext(ticket.repo, monitored);
|
|
2885
2907
|
const socket = findKittySocket(kittyPath, preferring);
|
|
2886
2908
|
if (!socket) {
|
|
2887
2909
|
process.stderr.write(
|
|
2888
|
-
`oteam assign: no kitty socket reachable (preferring "${preferring}");
|
|
2910
|
+
`oteam assign: no kitty socket reachable (preferring "${preferring}"); pass --inline to run in this terminal
|
|
2889
2911
|
`
|
|
2890
2912
|
);
|
|
2891
|
-
|
|
2892
|
-
claudePath,
|
|
2893
|
-
ticketPath,
|
|
2894
|
-
resolvedVault.path,
|
|
2895
|
-
systemPrompt,
|
|
2896
|
-
workspace,
|
|
2897
|
-
model,
|
|
2898
|
-
telemetry
|
|
2899
|
-
);
|
|
2900
|
-
return;
|
|
2913
|
+
process.exit(1);
|
|
2901
2914
|
}
|
|
2902
2915
|
const cwd = workspace?.path ?? dirname2(ticketPath);
|
|
2903
2916
|
const title = `Vault \xB7 ${basename5(ticketPath)}`;
|
|
@@ -2934,6 +2947,14 @@ async function assignTicket(opts) {
|
|
|
2934
2947
|
`kitty @ launch exited ${result.exitCode}: ${result.stderr || "(no stderr)"}`
|
|
2935
2948
|
);
|
|
2936
2949
|
}
|
|
2950
|
+
process.stdout.write(kittySpawnLine(ticket.id, workspace?.path ?? null) + "\n");
|
|
2951
|
+
}
|
|
2952
|
+
function kittySpawnLine(ticketId, workspacePath) {
|
|
2953
|
+
const suffix = workspacePath ? ` (worktree at ${workspacePath})` : "";
|
|
2954
|
+
return `oteam assign: spawned kitty window for ${ticketId}${suffix}`;
|
|
2955
|
+
}
|
|
2956
|
+
function inlineStartLine(ticketId) {
|
|
2957
|
+
return `oteam assign: running inline for ${ticketId}; agent starting\u2026`;
|
|
2937
2958
|
}
|
|
2938
2959
|
function buildTelemetryTail(input) {
|
|
2939
2960
|
const oteam = `'${shellEscape(input.oteamPath)}'`;
|
|
@@ -3051,7 +3072,7 @@ function readMonitoredOrgsFromEnv() {
|
|
|
3051
3072
|
// package.json
|
|
3052
3073
|
var package_default = {
|
|
3053
3074
|
name: "@openthink/team",
|
|
3054
|
-
version: "0.0.
|
|
3075
|
+
version: "0.0.9",
|
|
3055
3076
|
type: "module",
|
|
3056
3077
|
description: "Source-agnostic vault-driven role pipeline for spawning Claude agents against tickets",
|
|
3057
3078
|
bin: {
|