@dypt/cli 0.1.16 → 0.1.17
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 +15 -0
- package/dist/index.js +53 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -34,6 +34,21 @@ dypt task list
|
|
|
34
34
|
dypt task list --limit 10
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
+
Result filters such as `--priority`, `--status`, and `--tag` describe the task
|
|
38
|
+
returned by the list. Branch filters describe one ancestor-or-self anchor and
|
|
39
|
+
include that anchor's descendants. All supplied `--branch-*` predicates must
|
|
40
|
+
match the same anchor:
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
dypt task list --priority high --branch-tag project
|
|
44
|
+
dypt task list --branch-priority high --branch-tag project --branch-tag client --branch-tag-mode all
|
|
45
|
+
dypt task list --scope Work --branch-deadline-to 2026-08-31 --show-path
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Branch filtering is query-time ancestry matching. It does not copy tags,
|
|
49
|
+
priority, status, deadlines, or time estimates onto descendants. Run
|
|
50
|
+
`dypt task list --help` for the branch priority, deadline, and tag flags.
|
|
51
|
+
|
|
37
52
|
### Create a task
|
|
38
53
|
|
|
39
54
|
Create a new task:
|
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import { Argument, Command, Option } from "commander";
|
|
|
9
9
|
// package.json
|
|
10
10
|
var package_default = {
|
|
11
11
|
name: "@dypt/cli",
|
|
12
|
-
version: "0.1.
|
|
12
|
+
version: "0.1.17",
|
|
13
13
|
description: "Command-line interface for dypt task management",
|
|
14
14
|
license: "SEE LICENSE IN LICENSE",
|
|
15
15
|
homepage: "https://dypt.app",
|
|
@@ -780,13 +780,20 @@ async function getAgentStatus(input) {
|
|
|
780
780
|
|
|
781
781
|
// src/commands/agent/install.ts
|
|
782
782
|
function resolveSource2(input) {
|
|
783
|
-
|
|
783
|
+
const source = input.source ?? "github-release";
|
|
784
|
+
if (input.path && source !== "local") {
|
|
785
|
+
throw new Error("Use --path only with --source local.");
|
|
786
|
+
}
|
|
787
|
+
if (input.version && source !== "github-release") {
|
|
788
|
+
throw new Error("Use --version only with --source github-release.");
|
|
789
|
+
}
|
|
790
|
+
if (source === "local") {
|
|
784
791
|
if (!input.path) {
|
|
785
792
|
throw new Error("Use --path <local-toolkit-path> with --source local.");
|
|
786
793
|
}
|
|
787
794
|
return { type: "local", path: input.path };
|
|
788
795
|
}
|
|
789
|
-
if (
|
|
796
|
+
if (source === "github-main") {
|
|
790
797
|
return { type: "github-main" };
|
|
791
798
|
}
|
|
792
799
|
return {
|
|
@@ -1138,7 +1145,12 @@ async function runTaskList(input, deps) {
|
|
|
1138
1145
|
limit: input.limit ?? "50",
|
|
1139
1146
|
cursor: input.cursor,
|
|
1140
1147
|
tag: input.tag,
|
|
1141
|
-
tagMode: input.tagMode
|
|
1148
|
+
tagMode: input.tagMode,
|
|
1149
|
+
branchPriority: input.branchPriority,
|
|
1150
|
+
branchDeadlineFrom: input.branchDeadlineFrom,
|
|
1151
|
+
branchDeadlineTo: input.branchDeadlineTo,
|
|
1152
|
+
branchTag: input.branchTag,
|
|
1153
|
+
branchTagMode: input.branchTagMode
|
|
1142
1154
|
});
|
|
1143
1155
|
if (input.json) {
|
|
1144
1156
|
deps.printJson(result);
|
|
@@ -2570,6 +2582,7 @@ async function confirmAction(message, deps = {}) {
|
|
|
2570
2582
|
var cliVersion = package_default.version;
|
|
2571
2583
|
var taskStatusChoices = ["not started", "in progress", "completed"];
|
|
2572
2584
|
var taskPriorityChoices = ["low", "mid", "medium", "high"];
|
|
2585
|
+
var nullableTaskPriorityChoices = ["none", ...taskPriorityChoices];
|
|
2573
2586
|
var agentTargetChoices = ["codex", "claude"];
|
|
2574
2587
|
var agentSourceChoices = ["github-release", "github-main", "local"];
|
|
2575
2588
|
var tagColourChoices = [
|
|
@@ -2608,6 +2621,9 @@ function normalizePriority(priority) {
|
|
|
2608
2621
|
}
|
|
2609
2622
|
throw new Error(`Unsupported priority: ${priority}`);
|
|
2610
2623
|
}
|
|
2624
|
+
function normalizeNullablePriority(priority) {
|
|
2625
|
+
return priority === "none" ? null : normalizePriority(priority);
|
|
2626
|
+
}
|
|
2611
2627
|
function normalizeStatus(status) {
|
|
2612
2628
|
if (!status) return void 0;
|
|
2613
2629
|
if (status === "not started" || status === "in progress" || status === "completed") {
|
|
@@ -2778,7 +2794,7 @@ async function promptLine(prompt) {
|
|
|
2778
2794
|
}
|
|
2779
2795
|
function buildCli() {
|
|
2780
2796
|
const program = new Command();
|
|
2781
|
-
program.name("dypt").version(cliVersion, "-V, --version");
|
|
2797
|
+
program.name("dypt").version(cliVersion, "-V, --version").enablePositionalOptions();
|
|
2782
2798
|
const addGroupHelpAction = (command) => {
|
|
2783
2799
|
command.action(() => {
|
|
2784
2800
|
command.outputHelp();
|
|
@@ -3083,6 +3099,20 @@ function buildCli() {
|
|
|
3083
3099
|
(value, values = []) => [...values, value]
|
|
3084
3100
|
).addOption(
|
|
3085
3101
|
new Option("--tag-mode <mode>", "match any or all selected tags").choices(["any", "all"]).default("any")
|
|
3102
|
+
).addOption(
|
|
3103
|
+
new Option(
|
|
3104
|
+
"--branch-priority <priority>",
|
|
3105
|
+
"require the same ancestor-or-self anchor to have this priority"
|
|
3106
|
+
).choices([...nullableTaskPriorityChoices])
|
|
3107
|
+
).option("--branch-deadline-from <iso>", "inclusive anchor deadline start").option("--branch-deadline-to <iso>", "inclusive anchor deadline end").option(
|
|
3108
|
+
"--branch-tag <name>",
|
|
3109
|
+
"require a tag on the same ancestor-or-self anchor; repeatable",
|
|
3110
|
+
(value, values = []) => [...values, value]
|
|
3111
|
+
).addOption(
|
|
3112
|
+
new Option(
|
|
3113
|
+
"--branch-tag-mode <mode>",
|
|
3114
|
+
"match any or all branch tags on that anchor"
|
|
3115
|
+
).choices(["any", "all"]).default("any")
|
|
3086
3116
|
).option("--limit <n>", "page size (1-100, default: 50)").option("--cursor <id>", "cursor task id for pagination").option("--json", "print JSON output").addHelpText(
|
|
3087
3117
|
"after",
|
|
3088
3118
|
[
|
|
@@ -3121,6 +3151,11 @@ function buildCli() {
|
|
|
3121
3151
|
cursor: options.cursor,
|
|
3122
3152
|
tag: options.tag,
|
|
3123
3153
|
tagMode: options.tagMode,
|
|
3154
|
+
branchPriority: options.branchPriority,
|
|
3155
|
+
branchDeadlineFrom: options.branchDeadlineFrom,
|
|
3156
|
+
branchDeadlineTo: options.branchDeadlineTo,
|
|
3157
|
+
branchTag: options.branchTag,
|
|
3158
|
+
branchTagMode: options.branchTagMode,
|
|
3124
3159
|
json: Boolean(options.json)
|
|
3125
3160
|
},
|
|
3126
3161
|
{
|
|
@@ -3164,6 +3199,19 @@ function buildCli() {
|
|
|
3164
3199
|
showPath: input.showPath,
|
|
3165
3200
|
tagNames: input.tag,
|
|
3166
3201
|
tagMode: input.tagMode === "all" ? "all" : "any",
|
|
3202
|
+
branchPriority: normalizeNullablePriority(
|
|
3203
|
+
input.branchPriority
|
|
3204
|
+
),
|
|
3205
|
+
branchDeadlineFrom: parseDateOption(
|
|
3206
|
+
input.branchDeadlineFrom,
|
|
3207
|
+
"start"
|
|
3208
|
+
),
|
|
3209
|
+
branchDeadlineTo: parseDateOption(
|
|
3210
|
+
input.branchDeadlineTo,
|
|
3211
|
+
"end"
|
|
3212
|
+
),
|
|
3213
|
+
branchTagNames: input.branchTag,
|
|
3214
|
+
branchTagMode: input.branchTagMode === "all" ? "all" : "any",
|
|
3167
3215
|
limit: parseIntegerOption(input.limit, "limit", 1, 100),
|
|
3168
3216
|
cursor: input.cursor ? {
|
|
3169
3217
|
id: parseIntegerOption(input.cursor, "cursor", 1)
|