taskchef 7.14.0 → 7.14.1
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/.codex-plugin/plugin.json +1 -1
- package/docs/spec.md +9 -2
- package/docs/workflows.md +7 -0
- package/package.json +1 -1
- package/skills/taskchef-executor/SKILL.md +27 -0
- package/src/dashboard/github-links.js +21 -6
- package/src/mcp.js +1 -1
package/docs/spec.md
CHANGED
|
@@ -138,6 +138,13 @@ the final link, preserving the delegate skill's immediate-return contract.
|
|
|
138
138
|
TaskChef MUST atomically close it as `interrupted` before appending the new
|
|
139
139
|
working turn; the executor MUST NOT report semantic `failed` for recovery.
|
|
140
140
|
|
|
141
|
+
Request and result summaries are the durable source for dashboard related-link
|
|
142
|
+
projection; TaskChef does not scan full Codex transcripts. When known, an
|
|
143
|
+
executor MUST preserve the selected repository as a canonical GitHub repository
|
|
144
|
+
URL and issues or pull requests as canonical URLs. A result spanning both a
|
|
145
|
+
managed child repository and its workspace/root repository MUST include both
|
|
146
|
+
pull-request URLs. Executors MUST NOT guess unresolved repository identity.
|
|
147
|
+
|
|
141
148
|
If native creation fails after recording, the dispatcher MUST call
|
|
142
149
|
`report_state` with `failed`, null thread/turn IDs, and a bounded summary.
|
|
143
150
|
A link failure MUST remain visible and retryable; the executor MUST report it
|
|
@@ -287,8 +294,8 @@ marker, or ineligible state fails.
|
|
|
287
294
|
| `threadId` | Matching non-empty ID for a linked task; null only for creation failure. |
|
|
288
295
|
| `turnId` | Current canonical Codex UUIDv7 for a linked MCP journey; null only for creation failure. Maximum 256 characters at the MCP boundary. |
|
|
289
296
|
| `status` | `working`, `needs_input`, `completed`, or `failed`. |
|
|
290
|
-
| `summary` | Omitted or null for `working`; required non-empty string of at most 2,000 characters otherwise. |
|
|
291
|
-
| `requestSummary` | Concise current request of at most 1,000 characters for `working`; optional for backward compatibility and omitted for semantic states. |
|
|
297
|
+
| `summary` | Omitted or null for `working`; required non-empty string of at most 2,000 characters otherwise. Known GitHub issues and pull requests use canonical URLs. |
|
|
298
|
+
| `requestSummary` | Concise current request of at most 1,000 characters for `working`; optional for backward compatibility and omitted for semantic states. A known selected GitHub repository uses its canonical URL. |
|
|
292
299
|
|
|
293
300
|
**Structured output:** `{ task: Task }`.
|
|
294
301
|
|
package/docs/workflows.md
CHANGED
|
@@ -120,6 +120,13 @@ The executor obtains the turn identity from an exact native read of its own
|
|
|
120
120
|
linked task. `report_state` records live turn state as a paired request/result
|
|
121
121
|
timeline.
|
|
122
122
|
|
|
123
|
+
That timeline is also the durable GitHub-link source. A working request names a
|
|
124
|
+
known selected repository with its canonical GitHub URL. A terminal result
|
|
125
|
+
keeps full issue and pull-request URLs, including separate child-repository and
|
|
126
|
+
workspace/root pull requests. The dashboard does not recover omitted links by
|
|
127
|
+
scanning the native Codex transcript, and the executor does not guess an
|
|
128
|
+
ambiguous repository.
|
|
129
|
+
|
|
123
130
|
```mermaid
|
|
124
131
|
sequenceDiagram
|
|
125
132
|
autonumber
|
package/package.json
CHANGED
|
@@ -35,6 +35,9 @@ Complete this lifecycle setup before substantive assignment work:
|
|
|
35
35
|
4. Call TaskChef `report_state` with the marked task ID, self-linked thread ID,
|
|
36
36
|
current turn ID, `status: working`, an omitted or null result summary, and a
|
|
37
37
|
concise `requestSummary` describing this turn's assignment or follow-up.
|
|
38
|
+
When the turn targets a known GitHub repository, include its canonical
|
|
39
|
+
`https://github.com/<owner>/<repository>` URL so multi-repository projects
|
|
40
|
+
retain the selected repository instead of leaving TaskChef to guess.
|
|
38
41
|
|
|
39
42
|
If the preceding TaskChef turn is still unfinished because its terminal report
|
|
40
43
|
was lost, this newer valid working report atomically records that predecessor
|
|
@@ -71,6 +74,30 @@ and unnecessary personal data. Identical lifecycle retries are safe; never
|
|
|
71
74
|
replace a same-turn report with different content or let an older turn
|
|
72
75
|
overwrite newer state.
|
|
73
76
|
|
|
77
|
+
### Preserve repository and delivery links
|
|
78
|
+
|
|
79
|
+
Treat lifecycle summaries as the durable TaskChef timeline; the dashboard does
|
|
80
|
+
not scan the full Codex transcript later. Preserve known GitHub context in that
|
|
81
|
+
timeline with canonical links:
|
|
82
|
+
|
|
83
|
+
- Use `https://github.com/<owner>/<repository>` when identifying the repository
|
|
84
|
+
selected for a turn. Derive it from established project or Git remote
|
|
85
|
+
evidence; never guess from a similarly named directory.
|
|
86
|
+
- Use the full canonical issue or pull-request URL whenever one is known. Do
|
|
87
|
+
not shorten it to bare `#123` or `PR #123` in a multi-repository project.
|
|
88
|
+
- Include every delivered pull request in the result summary. If work produces
|
|
89
|
+
both a child-repository pull request and a workspace/root pull request,
|
|
90
|
+
preserve both URLs and state which repository each belongs to.
|
|
91
|
+
- Keep references specific to the text being reported. Do not copy unrelated
|
|
92
|
+
links from earlier turns merely to make them visible.
|
|
93
|
+
- Never invent an issue, pull request, or repository link. If repository
|
|
94
|
+
identity is genuinely unresolved, describe that ambiguity without a link.
|
|
95
|
+
|
|
96
|
+
For example, a working summary may say `Update dashboard projection in
|
|
97
|
+
https://github.com/favoyang/taskchef`. A terminal summary may say `Shipped the
|
|
98
|
+
child change in https://github.com/favoyang/taskchef/pull/78 and the workspace
|
|
99
|
+
plan in https://github.com/favoyang/skills-workspace/pull/62`.
|
|
100
|
+
|
|
74
101
|
## Compatibility
|
|
75
102
|
|
|
76
103
|
Existing delegated tasks may include the former inline ownership, linking, and
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const GITHUB_REPOSITORY = /^[A-Za-z0-9](?:[A-Za-z0-9-]{0,38})\/[A-Za-z0-9._-]+$/;
|
|
2
|
-
const REFERENCE_PATTERN = /https?:\/\/(?:www\.)?github\.com\/([A-Za-z0-9](?:[A-Za-z0-9-]{0,38}))\/([A-Za-z0-9._-]+)\/(issues|pull)\/([1-9]\d*)(?![A-Za-z0-9_])|([A-Za-z0-9](?:[A-Za-z0-9-]{0,38}))\/([A-Za-z0-9._-]+)#([1-9]\d*)(?![A-Za-z0-9_])|#([1-9]\d*)(?![A-Za-z0-9_])/gi;
|
|
2
|
+
const REFERENCE_PATTERN = /https?:\/\/(?:www\.)?github\.com\/([A-Za-z0-9](?:[A-Za-z0-9-]{0,38}))\/([A-Za-z0-9._-]+)\/(issues|pull)\/([1-9]\d*)(?![A-Za-z0-9_])|([A-Za-z0-9](?:[A-Za-z0-9-]{0,38}))\/([A-Za-z0-9._-]+)#([1-9]\d*)(?![A-Za-z0-9_])|#([1-9]\d*)(?![A-Za-z0-9_])|https?:\/\/(?:www\.)?github\.com\/([A-Za-z0-9](?:[A-Za-z0-9-]{0,38}))\/([A-Za-z0-9](?:[A-Za-z0-9._-]*[A-Za-z0-9_-])?)\/?(?=$|[\s),.;:!?'"\]}>])/gi;
|
|
3
3
|
export const MAX_RELATED_GITHUB_LINKS = 20;
|
|
4
4
|
|
|
5
5
|
function canonicalRepository(owner, repository) {
|
|
@@ -28,13 +28,16 @@ function rawReferences(text) {
|
|
|
28
28
|
const start = match.index;
|
|
29
29
|
const preceding = start > 0 ? value[start - 1] : "";
|
|
30
30
|
if (match[8] && /[\w&#/]/.test(preceding)) continue;
|
|
31
|
-
if ((match[5] || match[1]) && /[\w/]/.test(preceding)) continue;
|
|
31
|
+
if ((match[5] || match[1] || match[9]) && /[\w/]/.test(preceding)) continue;
|
|
32
32
|
|
|
33
|
-
let owner = match[1] ?? match[5] ?? null;
|
|
34
|
-
let repository = match[2] ?? match[6] ?? null;
|
|
35
|
-
|
|
33
|
+
let owner = match[1] ?? match[5] ?? match[9] ?? null;
|
|
34
|
+
let repository = match[2] ?? match[6] ?? match[10] ?? null;
|
|
35
|
+
if (match[9]) repository = repository.replace(/\.git$/i, "");
|
|
36
|
+
const number = match[4] ?? match[7] ?? match[8] ?? null;
|
|
36
37
|
const pathType = match[3]?.toLowerCase();
|
|
37
|
-
const type =
|
|
38
|
+
const type = match[9]
|
|
39
|
+
? "repository"
|
|
40
|
+
: pathType === "pull" ? "pull" : pathType === "issues" ? "issue" : "generic";
|
|
38
41
|
const explicit = Boolean(owner && repository);
|
|
39
42
|
if (explicit) {
|
|
40
43
|
if (!validRepositoryName(repository)) continue;
|
|
@@ -77,6 +80,17 @@ function resolvedReference(reference, repositoryContext) {
|
|
|
77
80
|
: repositoryContext;
|
|
78
81
|
if (!repository) return null;
|
|
79
82
|
const [owner, repositoryName] = repository.split("/");
|
|
83
|
+
if (reference.type === "repository") {
|
|
84
|
+
return {
|
|
85
|
+
kind: "link",
|
|
86
|
+
number: null,
|
|
87
|
+
owner,
|
|
88
|
+
repository: repositoryName,
|
|
89
|
+
text: reference.text,
|
|
90
|
+
type: reference.type,
|
|
91
|
+
url: `https://github.com/${owner}/${repositoryName}`,
|
|
92
|
+
};
|
|
93
|
+
}
|
|
80
94
|
const path = reference.type === "pull" ? "pull" : "issues";
|
|
81
95
|
return {
|
|
82
96
|
kind: "link",
|
|
@@ -133,6 +147,7 @@ function taskTexts(task) {
|
|
|
133
147
|
}
|
|
134
148
|
|
|
135
149
|
function relatedLinkLabel(link, includeRepository, includeOwner) {
|
|
150
|
+
if (link.type === "repository") return `${link.owner}/${link.repository}`;
|
|
136
151
|
const reference = link.type === "pull"
|
|
137
152
|
? `PR #${link.number}`
|
|
138
153
|
: link.type === "issue"
|
package/src/mcp.js
CHANGED
|
@@ -225,7 +225,7 @@ export function createTaskChefMcpServer({
|
|
|
225
225
|
{
|
|
226
226
|
title: "Report TaskChef state",
|
|
227
227
|
description:
|
|
228
|
-
"Report this self-linked executor turn's lifecycle state. Use working before substantive work in a newly linked or follow-up turn, with summary omitted or null and a concise requestSummary. Before ending the same turn, report needs_input, completed, or failed with a concise semantic summary and requestSummary omitted. Exact retries are idempotent; stale or mismatched turns are rejected.",
|
|
228
|
+
"Report this self-linked executor turn's lifecycle state. Use working before substantive work in a newly linked or follow-up turn, with summary omitted or null and a concise requestSummary. Preserve known repository context and delivered issues or pull requests as canonical GitHub URLs, including both child-repository and workspace pull requests when applicable. Before ending the same turn, report needs_input, completed, or failed with a concise semantic summary and requestSummary omitted. Exact retries are idempotent; stale or mismatched turns are rejected.",
|
|
229
229
|
inputSchema: {
|
|
230
230
|
taskId: z.string().min(1),
|
|
231
231
|
threadId: z.string().min(1).nullable(),
|