@comchatx/cx-board-tasks 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +4 -2
- package/README.zh-CN.md +5 -0
- package/package.json +50 -4
- package/skills/cx-board-tasks/SKILL.md +56 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 ComChatX
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
The to-do and question module of cx's board, installed beside `@comchatx/cx-board`.
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
With it, a file cx writes on the board can carry a kind: a finding or a change the seller reads, a proposal the seller agrees to, a choice or an input the seller answers. The seller dismisses what they will not answer, and sends every answer to cx at once, as one message, with Send to cx.
|
|
4
|
+
|
|
5
|
+
The package holds one skill, which tells cx what an entry's front matter holds and how the seller's answers come back. ComChatX draws the module's cards while both packages are installed.
|
package/README.zh-CN.md
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,52 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comchatx/cx-board-tasks",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "The to-do and question module of cx's board: proposals, choices and inputs the seller answers there.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "ComChatX",
|
|
7
|
+
"homepage": "https://github.com/comchatx/cx-board-tasks#readme",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/comchatx/cx-board-tasks.git"
|
|
11
|
+
},
|
|
12
|
+
"bugs": "https://github.com/comchatx/cx-board-tasks/issues",
|
|
13
|
+
"keywords": [
|
|
14
|
+
"pi-package"
|
|
15
|
+
],
|
|
16
|
+
"type": "module",
|
|
17
|
+
"pi": {
|
|
18
|
+
"skills": [
|
|
19
|
+
"./skills"
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"skills",
|
|
24
|
+
"README.zh-CN.md"
|
|
25
|
+
],
|
|
26
|
+
"scripts": {
|
|
27
|
+
"typecheck": "tsc --noEmit",
|
|
28
|
+
"test": "vitest run"
|
|
29
|
+
},
|
|
30
|
+
"comchatx": {
|
|
31
|
+
"about": "在对话旁设一块看板,cx 把发现、改动、建议和问题留在上面。",
|
|
32
|
+
"mark": {
|
|
33
|
+
"line": "clipboard"
|
|
34
|
+
},
|
|
35
|
+
"section": "extensions",
|
|
36
|
+
"order": 111,
|
|
37
|
+
"skills": {
|
|
38
|
+
"cx-board-tasks": {
|
|
39
|
+
"about": {
|
|
40
|
+
"en": "Tells cx where the board is and what an entry holds.",
|
|
41
|
+
"zh": "告诉 cx 看板在哪里、每一条写什么。"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"@earendil-works/pi-coding-agent": "1.4.0",
|
|
48
|
+
"@types/node": "26.2.0",
|
|
49
|
+
"typescript": "7.0.2",
|
|
50
|
+
"vitest": "4.1.11"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cx-board-tasks
|
|
3
|
+
description: The to-do and question module of the seller's board, where you leave what you found, changed, propose and ask, as entries the seller answers. Use when you leave the seller an entry with a kind, and when the seller's message answers entries on the board.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
This module draws on the board the `cx-board` skill describes. Without it every file is read as a heading and words; with it an entry's front matter gives it a kind, and the seller answers what asks.
|
|
7
|
+
|
|
8
|
+
## An entry
|
|
9
|
+
|
|
10
|
+
An entry is a file on the board, under `todo/`, named as the `cx-board` skill says. It opens with front matter, then your words for the seller, drawn as your answers in the chat are:
|
|
11
|
+
|
|
12
|
+
```markdown
|
|
13
|
+
---
|
|
14
|
+
kind: proposal
|
|
15
|
+
title: Lower the price of the blue kettle to $24.99
|
|
16
|
+
at: 2026-10-27T02:14:00Z
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
Your words.
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
- `kind` is one of five:
|
|
23
|
+
- `finding`: something you found. The seller reads it.
|
|
24
|
+
- `change`: a change you already made. The seller reads it.
|
|
25
|
+
- `proposal`: something you would do, and have not done. The seller may agree.
|
|
26
|
+
- `choice`: a question with options. Add `options:`, then one `- option` line each, at most twelve, each one line.
|
|
27
|
+
- `input`: a question the seller answers in words. Add `hint:`, one line shown in the empty field.
|
|
28
|
+
- `title` is the one line the seller reads first.
|
|
29
|
+
- `at` is when you wrote it, in ISO 8601 with its offset.
|
|
30
|
+
|
|
31
|
+
A file without these three, or with another kind, is drawn as the base draws one: its heading or its name, and its words.
|
|
32
|
+
|
|
33
|
+
A question that has to wait for the seller's answer can be written as a `choice` or an `input` entry on the board: you end your turn and go on, and the answer comes back to you as a message in the chat.
|
|
34
|
+
|
|
35
|
+
## The page's names
|
|
36
|
+
|
|
37
|
+
Call the board's parts by the names the seller sees, in the seller's language: 待处理 / To do, 已处理 / Done, 已读 / Mark as read, 忽略 / Dismiss, 交给 cx / Send to cx.
|
|
38
|
+
|
|
39
|
+
## What the seller does with an entry
|
|
40
|
+
|
|
41
|
+
- **已读 / Mark as read**, on a finding or a change: the file moves to `done/`. You are not told.
|
|
42
|
+
- **忽略 / Dismiss**, on a proposal, a choice or an input: the file moves to `done/`. You are not told. A dismissed proposal is not agreed, and nothing is done for it.
|
|
43
|
+
- **An answer**: the seller agrees to a proposal, picks an option or types into an input, and sends the answers with 交给 cx / Send to cx. The files move to `done/`.
|
|
44
|
+
|
|
45
|
+
A file moved to `done/` keeps every line you wrote and gains `done` (`read`, `dismissed` or `answered`), `doneAt` and, when one went, `answer`. Nothing on the board is deleted.
|
|
46
|
+
|
|
47
|
+
## The seller's answers
|
|
48
|
+
|
|
49
|
+
Answers come to you as one message from the seller. Each entry answered is a marker naming its file and the time of the version answered, then the seller's words for it:
|
|
50
|
+
|
|
51
|
+
```text
|
|
52
|
+
<board file="20261027-021400-lower-kettle-price.md" modified="1761531240000">Lower the price of the blue kettle to $24.99</board>
|
|
53
|
+
Go ahead.
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
The words inside the marker are the entry's title. The words under it are the seller's: 同意 / Go ahead. for a proposal, the option's own words for a choice, and what was typed for an input. Read the entry's file under `done/` for what you wrote. A message sent while you are working waits until your turn ends.
|