taskchef 4.1.1 → 4.1.2

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taskchef",
3
- "version": "4.1.1",
3
+ "version": "4.1.2",
4
4
  "description": "Dispatch work from a data-only workspace to visible Codex project tasks.",
5
5
  "author": {
6
6
  "name": "Favo Yang",
package/README.md CHANGED
@@ -253,17 +253,17 @@ taskchef project list --workspace <workspace>
253
253
  taskchef project remove payments --workspace <workspace>
254
254
  ```
255
255
 
256
- Human-readable project listings show one parent row per project. Configured
257
- GitHub repositories appear beneath it as indented tree rows, with repeated kind
258
- and path cells left blank. A project without a configured repository has only
259
- its parent row, containing `-` in the repository column:
256
+ Human-readable project listings show one parent row per project. The first
257
+ configured GitHub repository appears on that row; additional repositories
258
+ appear beneath it as indented tree rows, aligned with the repository column and
259
+ with repeated kind and path cells left blank. A project without a configured
260
+ repository has only its parent row, containing `-` in the repository column:
260
261
 
261
262
  ```text
262
- NAME KIND GITHUB REPOSITORY PATH
263
- notes folder - /workspace/notes
264
- payments git - /workspace/payments
265
- ├─ repository https://github.com/example/payments-api
266
- └─ repository https://github.com/example/payments-sdk
263
+ NAME KIND GITHUB REPOSITORY PATH
264
+ notes folder - /workspace/notes
265
+ payments git https://github.com/example/payments-api /workspace/payments
266
+ └─ https://github.com/example/payments-sdk
267
267
  ```
268
268
 
269
269
  Import projects as a JSON array from a file or standard input:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taskchef",
3
- "version": "4.1.1",
3
+ "version": "4.1.2",
4
4
  "description": "A non-blocking interactive dispatcher for visible Codex tasks.",
5
5
  "license": "MIT",
6
6
  "author": "Favo Yang",
package/src/cli.js CHANGED
@@ -104,20 +104,20 @@ function table(headers, rows) {
104
104
  }
105
105
 
106
106
  function projectRows(projects) {
107
- return projects.flatMap((project) => [
108
- [
107
+ return projects.flatMap((project) => {
108
+ const [primaryRepository = null, ...additionalRepositories] = project.githubRepos;
109
+ return [[
109
110
  project.name,
110
111
  project.isGitRepository ? "git" : "folder",
111
- null,
112
+ primaryRepository,
112
113
  project.path,
113
- ],
114
- ...project.githubRepos.map((repository, index) => [
115
- ` ${index === project.githubRepos.length - 1 ? "└─" : "├─"} repository`,
114
+ ], ...additionalRepositories.map((repository, index) => [
115
+ ` ${index === additionalRepositories.length - 1 ? "└─" : "├─"}`,
116
116
  BLANK_TABLE_CELL,
117
117
  repository,
118
118
  BLANK_TABLE_CELL,
119
- ]),
120
- ]);
119
+ ])];
120
+ });
121
121
  }
122
122
 
123
123
  function sortTasksByCreatedAt(tasks, ascending) {