@codetreker/daynight 0.26.0 → 0.29.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/README.md +128 -17
- package/dist/api/client.d.ts +7 -2
- package/dist/api/client.js +46 -18
- package/dist/api/client.js.map +1 -1
- package/dist/api/index.d.ts +1 -0
- package/dist/api/index.js +1 -0
- package/dist/api/index.js.map +1 -1
- package/dist/api/json.js +27 -6
- package/dist/api/json.js.map +1 -1
- package/dist/api/parse.d.ts +4 -6
- package/dist/api/parse.js +51 -93
- package/dist/api/parse.js.map +1 -1
- package/dist/api/resource-path.d.ts +1 -0
- package/dist/api/resource-path.js +8 -0
- package/dist/api/resource-path.js.map +1 -0
- package/dist/api/task-properties.d.ts +7 -0
- package/dist/api/task-properties.js +81 -0
- package/dist/api/task-properties.js.map +1 -0
- package/dist/api/types.d.ts +95 -6
- package/dist/api/validation.d.ts +15 -0
- package/dist/api/validation.js +43 -0
- package/dist/api/validation.js.map +1 -0
- package/dist/cli/schema.d.ts +3 -0
- package/dist/cli/schema.js +14 -4
- package/dist/cli/schema.js.map +1 -1
- package/dist/commands/completion/bash.d.ts +1 -1
- package/dist/commands/completion/bash.js +6 -3
- package/dist/commands/completion/bash.js.map +1 -1
- package/dist/commands/completion/zsh.d.ts +1 -1
- package/dist/commands/completion/zsh.js +7 -7
- package/dist/commands/completion/zsh.js.map +1 -1
- package/dist/commands/skill/skills/using-daynight/SKILL.md +52 -162
- package/dist/commands/skill/skills/using-daynight/references/authorization.md +36 -0
- package/dist/commands/skill/skills/using-daynight/references/autopilot-managed-task.md +77 -193
- package/dist/commands/skill/skills/using-daynight/references/create-task.md +31 -186
- package/dist/commands/skill/skills/using-daynight/references/final-acceptance.md +25 -0
- package/dist/commands/skill/skills/using-daynight/references/goal.md +46 -243
- package/dist/commands/skill/skills/using-daynight/references/handbook.md +38 -294
- package/dist/commands/skill/skills/using-daynight/references/handoff.md +33 -91
- package/dist/commands/skill/skills/using-daynight/references/project-management.md +24 -0
- package/dist/commands/skill/skills/using-daynight/references/run-task.md +18 -59
- package/dist/commands/skill/skills/using-daynight/references/setup.md +16 -0
- package/dist/commands/skill/skills/using-daynight/references/task-content.md +80 -177
- package/dist/commands/skill/skills/using-daynight/references/task-execution.md +34 -126
- package/dist/commands/skill/skills/using-daynight/references/task-management.md +162 -0
- package/dist/commands/skill/skills/using-daynight/references/write-safety.md +34 -0
- package/dist/commands/task/command.js +12 -14
- package/dist/commands/task/command.js.map +1 -1
- package/dist/commands/task/definition.js +32 -13
- package/dist/commands/task/definition.js.map +1 -1
- package/dist/commands/task/property.d.ts +6 -0
- package/dist/commands/task/property.js +51 -0
- package/dist/commands/task/property.js.map +1 -0
- package/dist/commands/task/rendering.d.ts +4 -1
- package/dist/commands/task/rendering.js +35 -9
- package/dist/commands/task/rendering.js.map +1 -1
- package/dist/commands/worker/control.js +10 -6
- package/dist/commands/worker/control.js.map +1 -1
- package/dist/commands/worker/coordinator.d.ts +3 -1
- package/dist/commands/worker/coordinator.js +28 -17
- package/dist/commands/worker/coordinator.js.map +1 -1
- package/dist/commands/worker/herdr/command.d.ts +11 -2
- package/dist/commands/worker/herdr/command.js +23 -8
- package/dist/commands/worker/herdr/command.js.map +1 -1
- package/dist/commands/worker/herdr/instance.d.ts +5 -1
- package/dist/commands/worker/herdr/instance.js +30 -0
- package/dist/commands/worker/herdr/instance.js.map +1 -1
- package/dist/commands/worker/herdr/preflight.js +4 -6
- package/dist/commands/worker/herdr/preflight.js.map +1 -1
- package/dist/commands/worker/herdr/version-probe.d.ts +13 -0
- package/dist/commands/worker/herdr/version-probe.js +21 -0
- package/dist/commands/worker/herdr/version-probe.js.map +1 -0
- package/dist/commands/worker/herdr.js +2 -6
- package/dist/commands/worker/herdr.js.map +1 -1
- package/dist/commands/worker/index.d.ts +2 -0
- package/dist/commands/worker/index.js +1 -1
- package/dist/commands/worker/index.js.map +1 -1
- package/dist/commands/worker/remote.d.ts +3 -1
- package/dist/commands/worker/remote.js +11 -6
- package/dist/commands/worker/remote.js.map +1 -1
- package/dist/commands/worker/reporter.d.ts +14 -0
- package/dist/commands/worker/reporter.js +174 -0
- package/dist/commands/worker/reporter.js.map +1 -0
- package/dist/commands/worker/runtime.d.ts +2 -0
- package/dist/commands/worker/runtime.js +14 -1
- package/dist/commands/worker/runtime.js.map +1 -1
- package/dist/commands/worker/telemetry.d.ts +22 -0
- package/dist/commands/worker/telemetry.js +265 -0
- package/dist/commands/worker/telemetry.js.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
# Task management
|
|
2
|
+
|
|
3
|
+
Covers query scope, metadata, lifecycle, and dependency semantics.
|
|
4
|
+
See [authorization and scope](authorization.md) for operational permissions.
|
|
5
|
+
Follow [write safety](write-safety.md) for all writes.
|
|
6
|
+
Consult the relevant `--help` for arguments and field-clearing syntax.
|
|
7
|
+
|
|
8
|
+
## Task queries
|
|
9
|
+
|
|
10
|
+
| Read operation | Scope and limits |
|
|
11
|
+
| --- | --- |
|
|
12
|
+
| `task ready` | One capped page of candidate `todo` tasks whose direct prerequisites are all complete, ordered by creation, not relevance. An empty page does not rule out in-progress or blocked work. |
|
|
13
|
+
| `task list` | Traverse all matching pages. Excludes `done` by default; explicitly include completed tasks when checking for duplicates or inspecting history. |
|
|
14
|
+
| `task show` | A single task's full description, metadata, and exact version. Read it before operating on the selected task. |
|
|
15
|
+
| `task properties <task-id>` | The selected task's complete current property object and exact task version. |
|
|
16
|
+
| `task properties --schema` | The authenticated service's property definitions; no project or Git repository is required. |
|
|
17
|
+
| `task graph <task-id>` | The target's full bidirectionally connected component of ordinary dependencies, plus one layer of external prerequisites for those tasks. Includes all statuses without recursively expanding external tasks. |
|
|
18
|
+
|
|
19
|
+
Human-readable lists are summaries; JSON lists omit only `description`.
|
|
20
|
+
Ready results, task details, and write results that return tasks contain complete tasks.
|
|
21
|
+
Dependency graphs provide compact relationship context without full descriptions, PR properties, or versions and cannot replace task details. `--depends-only --json` returns only `id`, the full `dependsOn` set, and its `externalDependsOn` subset.
|
|
22
|
+
Graph nodes retain complete dependency references, which may point outside the graph; read the relevant tasks or their dependency graphs when those paths need assessment.
|
|
23
|
+
Reaching the graph limit fails the command rather than returning a truncated graph.
|
|
24
|
+
A candidate page or a single task cannot replace complete relationship verification.
|
|
25
|
+
|
|
26
|
+
Lists group tasks into in-progress, ready todo, blocked todo, and, when explicitly included, done.
|
|
27
|
+
These groups are not relevance rankings. See command help for filter syntax.
|
|
28
|
+
|
|
29
|
+
## Metadata
|
|
30
|
+
|
|
31
|
+
`task update` cannot change status.
|
|
32
|
+
A supplied description fully replaces that field; retain content that must remain and omit unrelated fields.
|
|
33
|
+
Property values use the [property commands](#properties), independently of metadata updates.
|
|
34
|
+
See the [task content standard](task-content.md) for organizing descriptions and attachments.
|
|
35
|
+
|
|
36
|
+
| Field | Semantics and limits |
|
|
37
|
+
| --- | --- |
|
|
38
|
+
| `allowAgents` | Permission for automatic selection. False for new tasks and cannot be enabled during creation. Enable only after an explicit [handoff](handoff.md) review. Omitting it from an update preserves its value. |
|
|
39
|
+
| `requiredPlatform` | `null`, `windows`, `linux`, or `macos`; null means unrestricted. Can be specified during creation or updates and cleared during updates. |
|
|
40
|
+
|
|
41
|
+
Actual changes to either field are prohibited while `in_progress`.
|
|
42
|
+
Same-value requests preserve the version and timestamps, but stale versions still conflict.
|
|
43
|
+
Status operations and other metadata operations preserve these fields.
|
|
44
|
+
|
|
45
|
+
List and ready support filtering by automatic-execution permission and platform compatibility.
|
|
46
|
+
The service combines filters before pagination or candidate limits.
|
|
47
|
+
Platform compatibility includes unrestricted and exact-match tasks without changing dependency readiness.
|
|
48
|
+
Preserve filters across pages; do not locally filter a capped, unfiltered ready page.
|
|
49
|
+
|
|
50
|
+
Ordinary execution explicitly targeted by the user is not restricted by automatic-selection permission or platform compatibility, but must still satisfy dependency, input, and authorization requirements.
|
|
51
|
+
Automatic execution must use the actual runtime platform and recheck full task eligibility before starting.
|
|
52
|
+
Query arguments do not prove the actual environment; a Linux runtime in WSL is Linux.
|
|
53
|
+
|
|
54
|
+
## Properties
|
|
55
|
+
|
|
56
|
+
Use `task properties <task-id>` to read current values and `task properties --schema` to inspect the service's definitions.
|
|
57
|
+
`task show` also contains properties. Schema discovery works without project discovery; property value operations use the selected task's project.
|
|
58
|
+
|
|
59
|
+
`task set-property <task-id> <property> <value>` replaces one complete value.
|
|
60
|
+
`task remove-property <task-id> <property>` removes that property record, so reads omit its key.
|
|
61
|
+
Setting `pullRequests` to `[]` retains an explicit empty array; it is different from removal.
|
|
62
|
+
A missing key, JSON null and an empty array are distinct, and the service definition decides whether null is allowed.
|
|
63
|
+
|
|
64
|
+
Names are complete, case-sensitive literal property names. A dot does not select a nested object path.
|
|
65
|
+
The service owns the property catalog, public writability and all value validation; a generic command does not create custom properties or bypass a read-only property.
|
|
66
|
+
The CLI forwards the value argument unchanged. Use JSON for structured values; a string property also accepts raw text under the service's parsing rule.
|
|
67
|
+
Use the command's `--` argument terminator when a positional value begins with a dash; keep options before the terminator.
|
|
68
|
+
|
|
69
|
+
To save PR references, provide the complete ordered JSON array of `{"url":"...","title":"..."}` objects as `pullRequests`, retaining every still-needed entry.
|
|
70
|
+
`task create` and `task update` do not accept property-specific PR options.
|
|
71
|
+
Use `--if-version` with the task version read for the decision; a conflict or uncertain result follows [write safety](write-safety.md), without automatic replay.
|
|
72
|
+
The CLI's default pre-submit property read does not protect a decision made from older material.
|
|
73
|
+
A same-value set or already-absent removal with the current version changes no stored fields; a stale version still conflicts.
|
|
74
|
+
|
|
75
|
+
Read commands support JSON output. Property reads and successful writes return the current property resource with task/project IDs, version and all properties.
|
|
76
|
+
Unknown attributes, malformed values, read-only writes and illegal stored property values are service `400 invalid_input` failures; database/internal faults remain `500 internal_error`.
|
|
77
|
+
Do not replace either failure with empty properties or silently drop a key.
|
|
78
|
+
|
|
79
|
+
## Status and timing
|
|
80
|
+
|
|
81
|
+
New tasks are `todo`, have no approval status, and do not execute automatically.
|
|
82
|
+
Use `task set-status` to set `todo`, `in_progress`, or `done`.
|
|
83
|
+
Ordinary operations carry no claim; completion of a worker assignment must use [original-claim completion](autopilot-managed-task.md#complete-the-original-claim).
|
|
84
|
+
If either path is rejected, do not fall back to the other.
|
|
85
|
+
|
|
86
|
+
All direct prerequisites must be done before entering `in_progress` or `done`.
|
|
87
|
+
A completed prerequisite cannot be reopened while a direct successor is `in_progress` or `done`; successors are not modified automatically.
|
|
88
|
+
|
|
89
|
+
| Transition | Timing result |
|
|
90
|
+
| --- | --- |
|
|
91
|
+
| Enter `in_progress` | Start a new execution interval and clear the completion time. |
|
|
92
|
+
| Return to `todo` | Clear the start and completion times. |
|
|
93
|
+
| `in_progress` -> `done` | Preserve the nullable start time and record the completion time. |
|
|
94
|
+
| `todo` -> `done` | Record only the completion time; elapsed time is unknown. |
|
|
95
|
+
|
|
96
|
+
An actual status change increments the version once; a same-status operation with the current version changes no fields.
|
|
97
|
+
Metadata updates and same-status operations preserve timing.
|
|
98
|
+
Ordinary status changes have no process ownership, release, withdrawal, stop, or lease semantics.
|
|
99
|
+
|
|
100
|
+
## Dependency classification
|
|
101
|
+
|
|
102
|
+
`dependsOn` is the set D of all direct prerequisites, and `externalDependsOn` is its external subset E; ordinary dependencies are D minus E.
|
|
103
|
+
These are normalized UUID sets without duplicates or ordering semantics.
|
|
104
|
+
|
|
105
|
+
Ordinary dependencies belong to the same task chain; external dependencies are verified cross-chain prerequisites within the same project, not cross-project references.
|
|
106
|
+
Both kinds block starting and completion and participate in cycle and access checks.
|
|
107
|
+
Verify actual content and ownership; do not infer classification from done status, similar titles, graph roots, or connected components.
|
|
108
|
+
|
|
109
|
+
### CLI relationship replacement
|
|
110
|
+
|
|
111
|
+
`--depends-on` supplies the ordinary set, and `--external-depends-on` supplies the external set.
|
|
112
|
+
Supplying either option replaces all relationships and their classification: supplying only the ordinary option clears the external subset; supplying only the external option retains only those external relationships.
|
|
113
|
+
This is not an append operation.
|
|
114
|
+
|
|
115
|
+
Before editing, read the full D/E sets, compute D minus E, and declare every relationship that must remain with its intended classification.
|
|
116
|
+
Duplicate UUIDs, including equivalent UUIDs repeated across options, fail.
|
|
117
|
+
Omitting both options preserves relationships; the dependency-clearing option empties both sets and cannot be combined with dependency declarations.
|
|
118
|
+
After writing, [verify dependency changes](#verify-dependency-changes) across the complete relationships.
|
|
119
|
+
|
|
120
|
+
Partial updates through direct API patches differ from CLI semantics; do not infer that the CLI preserves undeclared relationships.
|
|
121
|
+
Omit all dependency options when updating only other metadata.
|
|
122
|
+
|
|
123
|
+
### Dependency reduction
|
|
124
|
+
|
|
125
|
+
Before creating tasks, registering a Goal breakdown, or changing dependencies, read the relevant dependency paths and retain only necessary direct prerequisites.
|
|
126
|
+
In `A -> B -> C`, arrows point from prerequisites to successors; C declares only B, not A again.
|
|
127
|
+
|
|
128
|
+
An ordinary edge is redundant only when another path consisting entirely of ordinary edges supplies the same prerequisite; an external edge may be supplied by an alternative path containing either kind of edge.
|
|
129
|
+
Preserve classification and check that all necessary paths still exist after reduction.
|
|
130
|
+
Source references do not require extra execution dependencies; this rule does not authorize cleaning up unrelated existing relationships.
|
|
131
|
+
|
|
132
|
+
### Verify dependency changes
|
|
133
|
+
|
|
134
|
+
After creating, replacing, or clearing dependencies, you must call `task graph` to read back the actual dependency graphs of the tasks involved, for example:
|
|
135
|
+
|
|
136
|
+
```bash
|
|
137
|
+
daynight task graph <task-id> --depends-only --json
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
Compare the D/E sets and classification with expectations, check that required prerequisite paths are complete, and check for direct edges removable under the reduction rules.
|
|
141
|
+
Disconnecting relationships may split the graph into multiple components; read each component starting from the tasks involved, not just the portion still connected to one starting task after the change.
|
|
142
|
+
Also read any paths outside the graph that require verification; an absent node does not prove that a dependency is missing or that no redundancy exists.
|
|
143
|
+
|
|
144
|
+
Do not report dependency checks as passed if graph reads fail or required paths remain unverified.
|
|
145
|
+
If missing or redundant relationships are found, reread task details, decide on changes, and verify again only within the authorized scope.
|
|
146
|
+
Consult `daynight task graph --help` for command arguments.
|
|
147
|
+
|
|
148
|
+
## Task deletion
|
|
149
|
+
|
|
150
|
+
`task delete` soft-deletes a task, removing it from ordinary lists, dependency graphs, ready results, and detail access while retaining stored data, its own prerequisite references, and attachments.
|
|
151
|
+
Deletion is independent of status and is not completion.
|
|
152
|
+
|
|
153
|
+
Deletion is strict by default: it is rejected if any undeleted task has a dependency pointing to the target.
|
|
154
|
+
When `--remove-depends` is explicitly authorized, the same transaction deletes the target and removes other tasks' ordinary and external dependencies on it, including references added before the transaction; this may make successors ready.
|
|
155
|
+
Tasks whose relationships change increment their versions while preserving status, timing, worker ownership, and other fields.
|
|
156
|
+
|
|
157
|
+
Deletion is always prohibited while the target has an active worker claim.
|
|
158
|
+
Reconsider deletion only after the stopped worker is released through an authorized management workflow; status changes cannot replace release.
|
|
159
|
+
|
|
160
|
+
Successful deletion returns neither a task resource nor a count of removed references.
|
|
161
|
+
If the response is uncertain, read the task: `410 task_deleted` confirms deletion; if the task still exists, decide again; permission or transport failures leave the outcome unconfirmed.
|
|
162
|
+
Do not equate inaccessibility or absence with deletion, and do not automatically replay deletion.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Write safety
|
|
2
|
+
|
|
3
|
+
Applies to creation, metadata updates, property setting and removal, status changes, deletion, and attachment operations.
|
|
4
|
+
See the corresponding `--help` for command syntax.
|
|
5
|
+
|
|
6
|
+
## Decisions and versions
|
|
7
|
+
|
|
8
|
+
Before modifying or deleting a task, read the complete task, preserve the exact `version` used for the decision, and submit it through `--if-version`.
|
|
9
|
+
The version is a complete int64 decimal integer; do not round it.
|
|
10
|
+
The CLI's default pre-submission read only fetches the latest version and cannot protect an earlier decision.
|
|
11
|
+
|
|
12
|
+
On a version conflict, reread and reassess current content, dependencies, and authorization; do not merely substitute the new version and replay the operation.
|
|
13
|
+
Requests for the same status or value still check the version. `in_progress` is not an executor lock or renewable lease and does not prove that this session owns the work.
|
|
14
|
+
|
|
15
|
+
## Uncertain results
|
|
16
|
+
|
|
17
|
+
A timeout, cancellation, or lost response may occur after a change takes effect; cancellation does not prove rollback.
|
|
18
|
+
Before further writes, read actual fields or attachment content to reconcile; do not automatically retry writes.
|
|
19
|
+
|
|
20
|
+
When a creation result is uncertain, confirm it using complete fields, resource identity, and operation context; a matching title or one empty query is insufficient.
|
|
21
|
+
Preserve confirmed IDs and resume missing operations on the original resources, avoiding duplicate tasks or task chains.
|
|
22
|
+
|
|
23
|
+
If verification is impossible, report the actual error and unconfirmed items without claiming success.
|
|
24
|
+
Even if the expected value is readable, an unconfirmed response does not establish that this operation caused the change.
|
|
25
|
+
See [task management](task-management.md#task-deletion) and [managed task execution](autopilot-managed-task.md#complete-the-original-claim) for reconciliation specific to deletion and worker completion.
|
|
26
|
+
|
|
27
|
+
## Attachments and multi-step operations
|
|
28
|
+
|
|
29
|
+
Attachment writes do not change the task version, status, or update time; a task version cannot protect attachments or freeze cross-task references.
|
|
30
|
+
Reread required mutable content before handoff and execution; do not merely compare inventories or timestamps.
|
|
31
|
+
|
|
32
|
+
Creation, uploads, description updates, and status changes are independent writes, with no cross-operation rollback.
|
|
33
|
+
Multiple files may also succeed only partially; verify file bytes and metadata separately.
|
|
34
|
+
Reassess affected decisions when sources change.
|
|
@@ -40,13 +40,18 @@ export const runTaskCommand = async (args, context, dependencies = defaultDepend
|
|
|
40
40
|
await runTaskAttachmentCommand(command, context, dependencies);
|
|
41
41
|
return;
|
|
42
42
|
}
|
|
43
|
+
if (["properties", "set-property", "remove-property"].includes(command.command.name)) {
|
|
44
|
+
const { runTaskPropertyCommand } = await import("./property.js");
|
|
45
|
+
await runTaskPropertyCommand(command, context, dependencies);
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
43
48
|
const help = `${command.path.join(" ")} --help`;
|
|
44
49
|
const name = command.command.name;
|
|
45
50
|
const setsStatus = name === "set-status";
|
|
46
51
|
const rawClaimId = command.options.get("--claim-id");
|
|
47
52
|
if (rawClaimId !== undefined && command.values[1] !== "done")
|
|
48
53
|
throw new UsageError("--claim-id is only valid when setting done.", help);
|
|
49
|
-
const targetsTask = name === "show" || name === "update" || setsStatus || name === "delete";
|
|
54
|
+
const targetsTask = name === "show" || name === "update" || setsStatus || name === "delete" || name === "graph";
|
|
50
55
|
const title = command.options.get("--title");
|
|
51
56
|
const description = command.options.get("--description");
|
|
52
57
|
const status = command.options.get("--status");
|
|
@@ -64,14 +69,6 @@ export const runTaskCommand = async (args, context, dependencies = defaultDepend
|
|
|
64
69
|
const dependsOn = command.options.get("--depends-on");
|
|
65
70
|
const externalDependsOn = command.options.get("--external-depends-on");
|
|
66
71
|
const clearDependencies = command.options.has("--clear-dependencies");
|
|
67
|
-
const pullRequestUrls = command.options.get("--pull-request-url");
|
|
68
|
-
const pullRequestTitles = command.options.get("--pull-request-title");
|
|
69
|
-
const clearPullRequests = command.options.has("--clear-pull-requests");
|
|
70
|
-
if (clearPullRequests && (pullRequestUrls !== undefined || pullRequestTitles !== undefined))
|
|
71
|
-
throw new UsageError("--clear-pull-requests conflicts with --pull-request-url and --pull-request-title.", help);
|
|
72
|
-
if (pullRequestUrls?.length !== pullRequestTitles?.length)
|
|
73
|
-
throw new UsageError("Provide the same number of --pull-request-url and --pull-request-title values.", help);
|
|
74
|
-
const properties = clearPullRequests ? { pullRequests: [] } : pullRequestUrls === undefined ? undefined : { pullRequests: pullRequestUrls.map((url, index) => ({ url, title: pullRequestTitles[index] })) };
|
|
75
72
|
const limitArgument = command.options.get("--limit");
|
|
76
73
|
const readyLimit = limitArgument === undefined ? 10 : Number(limitArgument);
|
|
77
74
|
if (limitArgument !== undefined && (!/^[0-9]+$/.test(limitArgument) || !Number.isInteger(readyLimit) || readyLimit < 1 || readyLimit > 100))
|
|
@@ -87,10 +84,9 @@ export const runTaskCommand = async (args, context, dependencies = defaultDepend
|
|
|
87
84
|
...(title === undefined ? {} : { title }),
|
|
88
85
|
...(description === undefined ? {} : { description }),
|
|
89
86
|
...dependencyFields,
|
|
90
|
-
...(properties === undefined ? {} : { properties }),
|
|
91
87
|
};
|
|
92
88
|
if (name === "update" && Object.keys(changes).length === 0)
|
|
93
|
-
throw new UsageError("Task update requires a title, description, automatic-execution permission, platform requirement,
|
|
89
|
+
throw new UsageError("Task update requires a title, description, automatic-execution permission, platform requirement, or dependency change.", help);
|
|
94
90
|
const rawProjectId = command.options.get("--project");
|
|
95
91
|
let projectId;
|
|
96
92
|
let taskId;
|
|
@@ -135,10 +131,10 @@ export const runTaskCommand = async (args, context, dependencies = defaultDepend
|
|
|
135
131
|
project = await dependencies.resolveProject({ serverUrl, operation, api, workingDirectory: context.workingDirectory() });
|
|
136
132
|
}
|
|
137
133
|
operation.check();
|
|
138
|
-
const { renderTask, renderTaskGraph, renderTaskJson, renderTaskList, renderTaskListJson, renderTaskSummaryList } = await import("./rendering.js");
|
|
134
|
+
const { renderTask, renderTaskGraph, renderTaskGraphDependencies, renderTaskJson, renderTaskList, renderTaskListJson, renderTaskSummaryList } = await import("./rendering.js");
|
|
139
135
|
operation.check();
|
|
140
136
|
if (command.command.name === "create") {
|
|
141
|
-
const input = { title: title, ...(description === undefined ? {} : { description }), ...platformFields, ...dependencyFields
|
|
137
|
+
const input = { title: title, ...(description === undefined ? {} : { description }), ...platformFields, ...dependencyFields };
|
|
142
138
|
const task = await api.createTask(project.id, input);
|
|
143
139
|
operation.check();
|
|
144
140
|
return `Task created.\n${renderTask(task)}`;
|
|
@@ -157,8 +153,10 @@ export const runTaskCommand = async (args, context, dependencies = defaultDepend
|
|
|
157
153
|
return command.options.has("--json") ? renderTaskJson(tasks) : tasks.length === 0 ? "No ready tasks.\n" : renderTaskList(tasks);
|
|
158
154
|
}
|
|
159
155
|
if (command.command.name === "graph") {
|
|
160
|
-
const graph = await api.getTaskGraph(project.id);
|
|
156
|
+
const graph = await api.getTaskGraph(project.id, taskId);
|
|
161
157
|
operation.check();
|
|
158
|
+
if (command.options.has("--depends-only"))
|
|
159
|
+
return renderTaskGraphDependencies(graph, command.options.has("--json"));
|
|
162
160
|
return command.options.has("--json") ? renderTaskJson(graph) : renderTaskGraph(graph);
|
|
163
161
|
}
|
|
164
162
|
if (command.command.name === "show") {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.js","sourceRoot":"","sources":["../../../src/commands/task/command.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAGhE,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAOjD,MAAM,mBAAmB,GAA4B;IACnD,gBAAgB,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,CAAC,CAAC,MAAM,MAAM,CAAC,sBAAsB,CAAC,CAAC,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC;IACrG,cAAc,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,CAAC,CAAC,MAAM,MAAM,CAAC,2BAA2B,CAAC,CAAC,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC;CACvG,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,IAAU,EAAU,EAAE,CAAC,IAAI,CAAC,MAAM,KAAK,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,KAAK,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAEjI,MAAM,mBAAmB,GAAG,KAAK,EAC/B,QAAuC,EACvC,QAAuC,EACvC,KAAc,EACd,IAAY,EACuD,EAAE;IACrE,IAAI,KAAK,IAAI,CAAC,QAAQ,KAAK,SAAS,IAAI,QAAQ,KAAK,SAAS,CAAC;QAAE,MAAM,IAAI,UAAU,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 const requiredPlatformOption = { names: ["--required-platform"], description: "R
|
|
|
14
14
|
const compatiblePlatformOption = { names: ["--compatible-platform"], description: "Include unrestricted tasks and tasks requiring this execution platform", value: { name: "platform", kind: "text", choices: platformChoices } };
|
|
15
15
|
const versionOption = { names: ["--if-version"], description: "Use this expected task version without reading a newer version", value: { name: "version", kind: "text" } };
|
|
16
16
|
const claimOption = { names: ["--claim-id"], description: "Complete this active worker claim; valid only with done", value: { name: "claim-id", kind: "text" } };
|
|
17
|
-
const pullRequestOptions = [
|
|
18
|
-
{ names: ["--pull-request-url"], description: "PR URL text; repeat for the complete list", value: { name: "text", kind: "text", allowEmpty: true }, repeatable: true },
|
|
19
|
-
{ names: ["--pull-request-title"], description: "PR title text; pair by position with each URL", value: { name: "text", kind: "text", allowEmpty: true }, repeatable: true },
|
|
20
|
-
];
|
|
21
17
|
const taskArgument = { name: "task-id", description: "Task UUID" };
|
|
22
18
|
export const taskDefinition = {
|
|
23
19
|
name: "task",
|
|
@@ -25,9 +21,9 @@ export const taskDefinition = {
|
|
|
25
21
|
commands: [
|
|
26
22
|
{
|
|
27
23
|
name: "create",
|
|
28
|
-
description: "Create a todo task with optional dependencies
|
|
29
|
-
options: [{ ...titleOption, required: true }, descriptionOption, requiredPlatformOption, dependencyOption, externalDependencyOption,
|
|
30
|
-
details: `New tasks start in todo with automatic execution disabled. Creating a task does not start execution. Without --required-platform, execution has no platform restriction. Omitting both dependency options creates a task with no prerequisites.\n${dependencyDetails}
|
|
24
|
+
description: "Create a todo task with optional dependencies",
|
|
25
|
+
options: [{ ...titleOption, required: true }, descriptionOption, requiredPlatformOption, dependencyOption, externalDependencyOption, projectOption, helpOption],
|
|
26
|
+
details: `New tasks start in todo with automatic execution disabled. Creating a task does not start execution. Without --required-platform, execution has no platform restriction. Omitting both dependency options creates a task with no prerequisites.\n${dependencyDetails}`,
|
|
31
27
|
},
|
|
32
28
|
{
|
|
33
29
|
name: "list",
|
|
@@ -47,18 +43,39 @@ export const taskDefinition = {
|
|
|
47
43
|
arguments: [taskArgument],
|
|
48
44
|
options: [projectOption, jsonOption, helpOption],
|
|
49
45
|
},
|
|
46
|
+
{
|
|
47
|
+
name: "properties",
|
|
48
|
+
description: "Read task properties or server-defined property schemas",
|
|
49
|
+
arguments: [{ ...taskArgument, optional: true }],
|
|
50
|
+
options: [{ names: ["--schema"], description: "Read server-defined property schemas and write permissions" }, projectOption, jsonOption, helpOption],
|
|
51
|
+
details: "Provide a task ID to read its current property values, or --schema to read the server's definitions without project discovery. The task ID and --schema are mutually exclusive; --project cannot be supplied with --schema. Missing property keys remain absent. --json preserves the complete property resource or schema directory.",
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
name: "set-property",
|
|
55
|
+
description: "Set one task property using server-side value parsing and validation",
|
|
56
|
+
arguments: [taskArgument, { name: "property", description: "Literal property name" }, { name: "value", description: "Raw JSON or string value text", allowEmpty: true }],
|
|
57
|
+
allowOptionsTerminator: true,
|
|
58
|
+
options: [versionOption, projectOption, helpOption],
|
|
59
|
+
details: "Replace one complete property value and preserve every other property. The server interprets JSON and accepts direct text when the property requires a string; the CLI forwards the value unchanged. Property names are literal, not object paths. Use -- before dash-prefixed text or negative JSON numbers, placing options before the terminator. Without --if-version, read the current property resource's version before submitting. Conflicts and mutations are not retried.",
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
name: "remove-property",
|
|
63
|
+
description: "Remove one task property and omit its key from later reads",
|
|
64
|
+
arguments: [taskArgument, { name: "property", description: "Literal property name" }],
|
|
65
|
+
allowOptionsTerminator: true,
|
|
66
|
+
options: [versionOption, projectOption, helpOption],
|
|
67
|
+
details: "Delete the property record, preserving other properties. An absent key differs from an explicitly empty array or JSON null. Unknown or read-only property names are rejected by the server. Without --if-version, read the current property resource's version before submitting. Conflicts and mutations are not retried.",
|
|
68
|
+
},
|
|
50
69
|
{
|
|
51
70
|
name: "update",
|
|
52
|
-
description: "Atomically update task fields
|
|
71
|
+
description: "Atomically update task fields and dependencies",
|
|
53
72
|
arguments: [taskArgument],
|
|
54
73
|
options: [titleOption, descriptionOption, allowAgentsOption, requiredPlatformOption,
|
|
55
74
|
{ names: ["--clear-required-platform"], description: "Remove the execution-platform requirement" }, dependencyOption, externalDependencyOption,
|
|
56
75
|
{ names: ["--clear-dependencies"], description: "Clear the complete dependency set" },
|
|
57
|
-
...pullRequestOptions,
|
|
58
|
-
{ names: ["--clear-pull-requests"], description: "Clear the complete PR reference list" },
|
|
59
76
|
versionOption,
|
|
60
77
|
projectOption, helpOption],
|
|
61
|
-
details: `Provide at least one changed field. --allow-agents changes the automatic-execution permission independently of status. --required-platform sets the execution-platform requirement; --clear-required-platform removes it and conflicts with --required-platform. Omitting both platform options preserves the requirement. Actual permission or platform changes are locked during in_progress; exact-version same-value updates keep version and timestamps. Use daynight task set-status to change status.\n${dependencyDetails}\nOmitting both dependency options preserves all dependencies and classifications. --clear-dependencies clears both sets and conflicts with either dependency option.\
|
|
78
|
+
details: `Provide at least one changed field. --allow-agents changes the automatic-execution permission independently of status. --required-platform sets the execution-platform requirement; --clear-required-platform removes it and conflicts with --required-platform. Omitting both platform options preserves the requirement. Actual permission or platform changes are locked during in_progress; exact-version same-value updates keep version and timestamps. Use daynight task set-status to change status.\n${dependencyDetails}\nOmitting both dependency options preserves all dependencies and classifications. --clear-dependencies clears both sets and conflicts with either dependency option.\nWithout --if-version, read the current version before submitting the update. Conflicts are not retried.`,
|
|
62
79
|
},
|
|
63
80
|
{
|
|
64
81
|
name: "set-status",
|
|
@@ -76,8 +93,10 @@ export const taskDefinition = {
|
|
|
76
93
|
},
|
|
77
94
|
{
|
|
78
95
|
name: "graph",
|
|
79
|
-
description: "Show
|
|
80
|
-
|
|
96
|
+
description: "Show a task's complete chain and direct external prerequisites",
|
|
97
|
+
arguments: [taskArgument],
|
|
98
|
+
options: [{ names: ["--depends-only"], description: "Print only task IDs and complete dependency sets" }, projectOption, jsonOption, helpOption],
|
|
99
|
+
details: "Include every task connected through ordinary dependencies, in either direction and in every status, plus the chain members' direct external prerequisites. Do not expand those external tasks or include external dependents.\n--depends-only preserves the same task set and prints only id, dependsOn and externalDependsOn with complete UUIDs and dependency references, including references outside the returned task set. With --json, print an array containing only those three fields; otherwise print three labeled lines per task.",
|
|
81
100
|
},
|
|
82
101
|
{
|
|
83
102
|
name: "attachment",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../src/commands/task/definition.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,GAAkB,EAAE,KAAK,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;AAC7G,MAAM,aAAa,GAAkB,EAAE,KAAK,EAAE,CAAC,WAAW,CAAC,EAAE,WAAW,EAAE,2CAA2C,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC;AACrK,MAAM,UAAU,GAAkB,EAAE,KAAK,EAAE,CAAC,QAAQ,CAAC,EAAE,WAAW,EAAE,8CAA8C,EAAE,CAAC;AACrH,MAAM,cAAc,GAAkB,EAAE,KAAK,EAAE,CAAC,QAAQ,CAAC,EAAE,WAAW,EAAE,8CAA8C,EAAE,CAAC;AACzH,MAAM,WAAW,GAAkB,EAAE,KAAK,EAAE,CAAC,SAAS,CAAC,EAAE,WAAW,EAAE,YAAY,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC;AAC7H,MAAM,iBAAiB,GAAkB,EAAE,KAAK,EAAE,CAAC,eAAe,CAAC,EAAE,WAAW,EAAE,4CAA4C,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,CAAC;AACjM,MAAM,gBAAgB,GAAkB,EAAE,KAAK,EAAE,C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AAE,4EAA4E;iBACtF;gBACD;oBACE,IAAI,EAAE,MAAM;oBACZ,WAAW,EAAE,iDAAiD;oBAC9D,SAAS,EAAE,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE,WAAW,EAAE,mCAAmC,EAAE,CAAC;oBACtG,OAAO,EAAE,CAAC,aAAa,EAAE,UAAU,CAAC;oBACpC,sBAAsB,EAAE,IAAI;oBAC5B,OAAO,EAAE,uMAAuM;iBACjN;gBACD;oBACE,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,qDAAqD;oBAClE,SAAS,EAAE,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE,WAAW,EAAE,mCAAmC,EAAE,CAAC;oBACtG,OAAO,EAAE,CAAC,aAAa,EAAE,UAAU,CAAC;oBACpC,sBAAsB,EAAE,IAAI;oBAC5B,OAAO,EAAE,6HAA6H;iBACvI;aACF;YACD,OAAO,EAAE,CAAC,UAAU,CAAC;YACrB,OAAO,EAAE,iNAAiN;SAC3N;KACF;IACD,OAAO,EAAE,CAAC,UAAU,CAAC;IACrB,OAAO,EAAE,qUAAqU;CAC/U,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { CliContext } from "../../cli/context.js";
|
|
2
|
+
import type { ParsedCommand } from "../../cli/schema.js";
|
|
3
|
+
import type { TaskCommandDependencies } from "./command.js";
|
|
4
|
+
export declare const runTaskPropertyCommand: (command: Extract<ParsedCommand, {
|
|
5
|
+
readonly kind: "run";
|
|
6
|
+
}>, context: CliContext, dependencies: TaskCommandDependencies) => Promise<void>;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { parseVersionArgument, stringifyApiJson } from "../../api/json.js";
|
|
2
|
+
import { canonicalId } from "../../api/parse.js";
|
|
3
|
+
import { UsageError } from "../../cli/context.js";
|
|
4
|
+
import { renderTaskPropertyResource, renderTaskPropertySchema } from "./rendering.js";
|
|
5
|
+
export const runTaskPropertyCommand = async (command, context, dependencies) => {
|
|
6
|
+
const help = `${command.path.join(" ")} --help`;
|
|
7
|
+
const name = command.command.name;
|
|
8
|
+
const schema = command.options.has("--schema");
|
|
9
|
+
const rawProject = command.options.get("--project");
|
|
10
|
+
if (name === "properties" && (schema === (command.values.length > 0) || schema && rawProject !== undefined))
|
|
11
|
+
throw new UsageError("Use either a task ID or --schema; --schema does not accept --project.", help);
|
|
12
|
+
const projectId = rawProject === undefined ? undefined : canonicalId(rawProject);
|
|
13
|
+
if (projectId === null)
|
|
14
|
+
throw new UsageError("project-id must be a hyphenated UUID.", help);
|
|
15
|
+
const taskId = schema ? undefined : canonicalId(command.values[0]);
|
|
16
|
+
if (taskId === null)
|
|
17
|
+
throw new UsageError("task-id must be a hyphenated UUID.", help);
|
|
18
|
+
const rawVersion = command.options.get("--if-version");
|
|
19
|
+
let expectedVersion;
|
|
20
|
+
if (rawVersion !== undefined) {
|
|
21
|
+
try {
|
|
22
|
+
expectedVersion = parseVersionArgument(rawVersion);
|
|
23
|
+
}
|
|
24
|
+
catch (cause) {
|
|
25
|
+
throw new UsageError(cause instanceof Error ? cause.message : String(cause), help);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
await dependencies.runServerCommand(context, async ({ api, operation, serverUrl }) => {
|
|
29
|
+
operation.check();
|
|
30
|
+
if (schema) {
|
|
31
|
+
const result = await api.getTaskPropertySchema();
|
|
32
|
+
operation.check();
|
|
33
|
+
return command.options.has("--json") ? `${stringifyApiJson(result)}\n` : renderTaskPropertySchema(result);
|
|
34
|
+
}
|
|
35
|
+
const project = projectId === undefined ? (await dependencies.resolveProject({ serverUrl, operation, api, workingDirectory: context.workingDirectory() })).id : projectId;
|
|
36
|
+
operation.check();
|
|
37
|
+
if (name === "properties") {
|
|
38
|
+
const result = await api.getTaskProperties(project, taskId);
|
|
39
|
+
operation.check();
|
|
40
|
+
return command.options.has("--json") ? `${stringifyApiJson(result)}\n` : renderTaskPropertyResource(result);
|
|
41
|
+
}
|
|
42
|
+
const version = expectedVersion === undefined ? (await api.getTaskProperties(project, taskId)).version : expectedVersion;
|
|
43
|
+
operation.check();
|
|
44
|
+
const result = name === "set-property"
|
|
45
|
+
? await api.setTaskProperty(project, taskId, command.values[1], { version, valueText: command.values[2] })
|
|
46
|
+
: await api.removeTaskProperty(project, taskId, command.values[1], { version });
|
|
47
|
+
operation.check();
|
|
48
|
+
return `${name === "set-property" ? "Task property set." : "Task property removed."}\n${renderTaskPropertyResource(result)}`;
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
//# sourceMappingURL=property.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"property.js","sourceRoot":"","sources":["../../../src/commands/task/property.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAGlD,OAAO,EAAE,0BAA0B,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAEtF,MAAM,CAAC,MAAM,sBAAsB,GAAG,KAAK,EACzC,OAAyD,EACzD,OAAmB,EACnB,YAAqC,EACtB,EAAE;IACjB,MAAM,IAAI,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC;IAChD,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC;IAClC,MAAM,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IAC/C,MAAM,UAAU,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,CAAuB,CAAC;IAC1E,IAAI,IAAI,KAAK,YAAY,IAAI,CAAC,MAAM,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,MAAM,IAAI,UAAU,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EAAE,CAAC;YAC7G,CAAC,CAAC,MAAM,GAAG,CAAC,kBAAkB,CAAC,OAAO,EAAE,MAAO,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,CAAE,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC;QACpF,SAAS,CAAC,KAAK,EAAE,CAAC;QAClB,OAAO,GAAG,IAAI,KAAK,cAAc,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,wBAAwB,KAAK,0BAA0B,CAAC,MAAM,CAAC,EAAE,CAAC;IAC/H,CAAC,CAAC,CAAC;AACL,CAAC,CAAC"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import type { Task, TaskGraph } from "../../api/types.js";
|
|
1
|
+
import type { Task, TaskGraph, TaskPropertyResource, TaskPropertySchema } from "../../api/types.js";
|
|
2
2
|
export declare const renderTask: (task: Task) => string;
|
|
3
3
|
export declare const renderTaskList: (tasks: readonly Task[]) => string;
|
|
4
4
|
export declare const renderTaskSummaryList: (tasks: readonly Task[]) => string;
|
|
5
5
|
export declare const renderTaskGraph: (graph: TaskGraph) => string;
|
|
6
|
+
export declare const renderTaskGraphDependencies: (graph: TaskGraph, json: boolean) => string;
|
|
6
7
|
export declare const renderTaskJson: (value: Task | readonly Task[] | TaskGraph) => string;
|
|
7
8
|
export declare const renderTaskListJson: (tasks: readonly Task[]) => string;
|
|
9
|
+
export declare const renderTaskPropertyResource: (resource: TaskPropertyResource) => string;
|
|
10
|
+
export declare const renderTaskPropertySchema: (catalog: TaskPropertySchema) => string;
|
|
@@ -6,12 +6,9 @@ const taskIdentity = (task) => [
|
|
|
6
6
|
`Project: ${terminalText(task.projectId)}`,
|
|
7
7
|
`Title: ${terminalText(task.title)}`,
|
|
8
8
|
];
|
|
9
|
-
const
|
|
10
|
-
`
|
|
11
|
-
...task.properties.
|
|
12
|
-
` ${index + 1}. Title: ${terminalText(pullRequest.title)}`,
|
|
13
|
-
` URL: ${terminalText(pullRequest.url)}`,
|
|
14
|
-
]),
|
|
9
|
+
const taskProperties = (task) => [
|
|
10
|
+
`Properties: ${Object.keys(task.properties).length}`,
|
|
11
|
+
...Object.entries(task.properties).sort(([left], [right]) => left.localeCompare(right)).map(([name, value]) => ` ${terminalText(name)}: ${terminalText(stringifyApiJson(value))}`),
|
|
15
12
|
];
|
|
16
13
|
const taskDependencies = (task) => [
|
|
17
14
|
`Ready: ${task.ready}`,
|
|
@@ -22,7 +19,7 @@ const taskDependencies = (task) => [
|
|
|
22
19
|
export const renderTask = (task) => [
|
|
23
20
|
...taskIdentity(task),
|
|
24
21
|
`Description: ${terminalText(task.description)}`,
|
|
25
|
-
...
|
|
22
|
+
...taskProperties(task),
|
|
26
23
|
`Status: ${terminalText(task.status)}`,
|
|
27
24
|
`Automatic execution: ${task.allowAgents}`,
|
|
28
25
|
`Required platform: ${task.requiredPlatform === null ? "any" : task.requiredPlatform}`,
|
|
@@ -35,7 +32,7 @@ export const renderTask = (task) => [
|
|
|
35
32
|
export const renderTaskList = (tasks) => tasks.length === 0 ? "No tasks.\n" : tasks.map(renderTask).join("\n");
|
|
36
33
|
export const renderTaskSummaryList = (tasks) => tasks.length === 0 ? "No tasks.\n" : tasks.map((task) => [
|
|
37
34
|
...taskIdentity(task),
|
|
38
|
-
...
|
|
35
|
+
...taskProperties(task),
|
|
39
36
|
`Status: ${terminalText(task.status)}`,
|
|
40
37
|
`Automatic execution: ${task.allowAgents}`,
|
|
41
38
|
`Required platform: ${task.requiredPlatform === null ? "any" : task.requiredPlatform}`,
|
|
@@ -69,8 +66,37 @@ export const renderTaskGraph = (graph) => [
|
|
|
69
66
|
`Ready: ${graph.summary.ready}`,
|
|
70
67
|
`Blocked: ${graph.summary.blocked}`,
|
|
71
68
|
"",
|
|
72
|
-
graph.tasks.
|
|
69
|
+
graph.tasks.map(renderGraphTask).join("\n"),
|
|
73
70
|
].join("\n");
|
|
71
|
+
export const renderTaskGraphDependencies = (graph, json) => {
|
|
72
|
+
const tasks = graph.tasks.map(({ id, dependsOn, externalDependsOn }) => ({ id, dependsOn, externalDependsOn }));
|
|
73
|
+
return json ? `${stringifyApiJson(tasks)}\n` : tasks.map((task) => [
|
|
74
|
+
`ID: ${terminalText(task.id)}`,
|
|
75
|
+
`Depends on: ${identifiers(task.dependsOn)}`,
|
|
76
|
+
`External dependencies: ${identifiers(task.externalDependsOn)}`,
|
|
77
|
+
"",
|
|
78
|
+
].join("\n")).join("\n");
|
|
79
|
+
};
|
|
74
80
|
export const renderTaskJson = (value) => `${stringifyApiJson(value)}\n`;
|
|
75
81
|
export const renderTaskListJson = (tasks) => `${stringifyApiJson(tasks.map(({ description: _description, ...task }) => task))}\n`;
|
|
82
|
+
export const renderTaskPropertyResource = (resource) => {
|
|
83
|
+
const entries = Object.entries(resource.properties).sort(([left], [right]) => left < right ? -1 : left > right ? 1 : 0);
|
|
84
|
+
return [
|
|
85
|
+
`Task: ${terminalText(resource.taskId)}`,
|
|
86
|
+
`Project: ${terminalText(resource.projectId)}`,
|
|
87
|
+
`Version: ${resource.version}`,
|
|
88
|
+
`Properties (${entries.length}):${entries.length === 0 ? " {}" : ""}`,
|
|
89
|
+
...entries.map(([name, value]) => ` ${terminalText(name)}: ${terminalText(stringifyApiJson(value))}`),
|
|
90
|
+
"",
|
|
91
|
+
].join("\n");
|
|
92
|
+
};
|
|
93
|
+
export const renderTaskPropertySchema = (catalog) => Object.entries(catalog.properties)
|
|
94
|
+
.sort(([left], [right]) => left < right ? -1 : left > right ? 1 : 0)
|
|
95
|
+
.map(([name, definition]) => [
|
|
96
|
+
`Property: ${terminalText(name)}`,
|
|
97
|
+
`Description: ${terminalText(definition.description)}`,
|
|
98
|
+
`Read only: ${definition.readOnly}`,
|
|
99
|
+
`Schema: ${terminalText(stringifyApiJson(definition.schema))}`,
|
|
100
|
+
"",
|
|
101
|
+
].join("\n")).join("\n");
|
|
76
102
|
//# sourceMappingURL=rendering.js.map
|