@pulsarinteractive/geniustasker 0.0.0-stage → 0.1.0-beta.10
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/CHANGELOG.md +80 -0
- package/CONTRIBUTING.md +72 -0
- package/LICENSE +21 -0
- package/LICENSES/Apache-2.0.txt +202 -0
- package/README.md +76 -2
- package/SECURITY.md +14 -0
- package/THIRD_PARTY_NOTICES.md +15 -0
- package/bin/geniustasker.mjs +6 -0
- package/docs/ARCHITECTURE.md +144 -0
- package/docs/CHATGPT.md +86 -0
- package/docs/CLI.md +444 -0
- package/docs/DOCUMENTATION_SYNC.md +144 -0
- package/docs/INTEGRATIONS.md +62 -0
- package/docs/LIMITS.md +62 -0
- package/docs/MEMORY.md +38 -0
- package/docs/OPENAI.md +21 -0
- package/docs/OPENAI_PUBLICATION.md +22 -0
- package/docs/PLANNING.md +79 -0
- package/docs/PROJECT_FILTERS.md +77 -0
- package/docs/RELEASING.md +23 -0
- package/docs/TESTING.md +52 -0
- package/docs/WORKFLOWS.md +37 -0
- package/examples/codex.toml +3 -0
- package/examples/mcp.json +8 -0
- package/mcp.json +10 -0
- package/package.json +72 -4
- package/plugin.json +24 -0
- package/remote/tool-catalog.json +1374 -0
- package/remote/workflows.json +67 -0
- package/skills/geniustasker/SKILL.md +148 -0
- package/skills/geniustasker/agents/openai.yaml +4 -0
- package/skills/geniustasker/references/collaboration.md +70 -0
- package/skills/geniustasker/references/incremental-reads.md +16 -0
- package/skills/geniustasker/references/profiles.md +22 -0
- package/skills/geniustasker/references/project-reads.md +43 -0
- package/skills/geniustasker-documentation/SKILL.md +39 -0
- package/skills/geniustasker-documentation/agents/openai.yaml +4 -0
- package/skills/geniustasker-documentation/references/structure.md +29 -0
- package/skills/geniustasker-graph/SKILL.md +31 -0
- package/skills/geniustasker-graph/agents/openai.yaml +4 -0
- package/skills/geniustasker-media/SKILL.md +33 -0
- package/skills/geniustasker-media/agents/openai.yaml +4 -0
- package/skills/geniustasker-memory/SKILL.md +120 -0
- package/skills/geniustasker-memory/agents/openai.yaml +4 -0
- package/skills/geniustasker-memory/references/knowledge-workflows.md +57 -0
- package/skills/geniustasker-planning/SKILL.md +28 -0
- package/skills/geniustasker-planning/agents/openai.yaml +4 -0
- package/src/changes.mjs +139 -0
- package/src/cli.mjs +511 -0
- package/src/client.mjs +264 -0
- package/src/command-catalog.mjs +569 -0
- package/src/commands.mjs +277 -0
- package/src/documentation-graph.mjs +251 -0
- package/src/documentation-store.mjs +589 -0
- package/src/documentation-sync.mjs +517 -0
- package/src/documentation.mjs +136 -0
- package/src/errors.mjs +65 -0
- package/src/knowledge.mjs +109 -0
- package/src/login.mjs +258 -0
- package/src/mcp.mjs +327 -0
- package/src/media.mjs +307 -0
- package/src/presentation.d.mts +1 -0
- package/src/presentation.mjs +12 -0
- package/src/profiles.mjs +154 -0
- package/src/read-cache.mjs +111 -0
- package/src/store.mjs +141 -0
- package/src/transport.mjs +201 -0
- package/src/workflows.mjs +9 -0
package/docs/CHATGPT.md
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
# Connect GeniusTasker to ChatGPT
|
|
2
|
+
|
|
3
|
+
Use the hosted MCP connector to work with GeniusTasker from ChatGPT. Your computer does not need to run the CLI. Access still requires an admitted GeniusTasker account.
|
|
4
|
+
|
|
5
|
+
## Connect your account
|
|
6
|
+
|
|
7
|
+
1. In ChatGPT on the web, open **Plugins → Add → Add custom MCP server**.
|
|
8
|
+
2. Name it **GeniusTasker** and enter this server URL:
|
|
9
|
+
|
|
10
|
+
```text
|
|
11
|
+
https://api-geniustasker.pulsarinteractive.cloud/api/agents/mcp
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
3. Select **OAuth**. In **Advanced OAuth settings**, choose a registered/provided client and enter **`geniustasker-chatgpt`**. The token endpoint authentication method is **none**: this is a public client protected by PKCE; there is no client secret to paste.
|
|
15
|
+
4. Review the warning, create the plugin, and sign in to GeniusTasker on its own consent page. Choose the permissions and resources you intend to share, then approve.
|
|
16
|
+
5. Install/select the resulting plugin in ChatGPT. Start a conversation and select it with **@GeniusTasker**.
|
|
17
|
+
|
|
18
|
+
The authorization server is discovered at `https://api-geniustasker.pulsarinteractive.cloud/api/agents/chatgpt`. If your ChatGPT interface requests explicit endpoints, use `/api/agents/oauth/authorize` and `/api/agents/oauth/token` on that same API host. The registered callback is exactly `https://chatgpt.com/connector_platform_oauth_redirect`; issuer identification protects the return. Do not substitute another callback or disable authentication.
|
|
19
|
+
|
|
20
|
+
## Working with your data
|
|
21
|
+
|
|
22
|
+
Read current records before changing them. ChatGPT can discover allowed actions, prepare a change, and execute the approved command. Keep the exact command when retrying an uncertain response: a repeated operation ID recovers the original result instead of applying the same edit twice. After a revision conflict, reread the record and confirm the replacement intent.
|
|
23
|
+
|
|
24
|
+
Use **read-only permissions** if you only want summaries. Write access does not grant administration, billing, permission management or access to another person's private data. Existing account limits apply to ChatGPT and the CLI together; connecting another tool does not create a fresh quota.
|
|
25
|
+
|
|
26
|
+
Disconnecting the plugin in ChatGPT removes its use there. Also revoke its dedicated connection from GeniusTasker's agent settings to invalidate its delegated sessions. Reconnecting requires consent again. This connector never needs your OpenAI API key.
|
|
27
|
+
|
|
28
|
+
## Language and shared limits
|
|
29
|
+
|
|
30
|
+
Ask in your preferred language. The assistant should explain results and errors in that language while preserving existing record text, IDs and API field values. The consent screen supports French and English; ChatGPT’s supported locale hint selects the screen language, with the browser language as fallback. Confirm dates and timezones when they are ambiguous.
|
|
31
|
+
|
|
32
|
+
CLI, local MCP and hosted ChatGPT use the verified account’s current subscription and shared request/write counters. New connections, profiles or refreshed tokens do not grant a new budget. Protocol discovery and command preparation also count as requests; a tool operation can involve more than one request. Resource capacity and Coach access remain enforced by the same domain commands. A rate-limit response includes retry guidance: wait rather than switching tools or starting an automatic retry loop.
|
|
33
|
+
|
|
34
|
+
## Examples
|
|
35
|
+
|
|
36
|
+
- “Use GeniusTasker to show my current project tasks, then propose priorities.”
|
|
37
|
+
- “Move this task to next week after showing me the exact change.”
|
|
38
|
+
- “Find the release notes in Memory and the related Graph references.”
|
|
39
|
+
|
|
40
|
+
## Scope and troubleshooting
|
|
41
|
+
|
|
42
|
+
- If access is denied, check the account's admission, selected permissions, resource membership and subscription. The connector cannot bypass these checks.
|
|
43
|
+
- If a quota is reached, respect the returned retry time. Do not loop or create extra connections to evade limits.
|
|
44
|
+
- If a record changed, read the new revision instead of overwriting it blindly.
|
|
45
|
+
- Local file comparison, uploads from your computer and repository documentation mirroring remain CLI workflows.
|
|
46
|
+
- The public tool catalogue is in [`remote/tool-catalog.json`](../remote/tool-catalog.json). Tools are described separately from private backend implementation.
|
|
47
|
+
|
|
48
|
+
A custom connection is separate from an OpenAI directory listing. See [official publication](OPENAI_PUBLICATION.md). The CLI and local MCP remain supported independently.
|
|
49
|
+
|
|
50
|
+
## If the connection only allows reading
|
|
51
|
+
|
|
52
|
+
1. Open this app’s settings in ChatGPT and choose **Refresh tools** when available.
|
|
53
|
+
2. Choose **Reconnect** for the connected account. Check that the correct account
|
|
54
|
+
appears on the product consent screen.
|
|
55
|
+
3. The requested permissions are selected by default. Keep the ones you want,
|
|
56
|
+
including editing, then authorize. Explicitly restricted connections stay
|
|
57
|
+
restricted; old grants are never silently expanded.
|
|
58
|
+
4. Ask the assistant to read its **identity** and **capabilities** again. Confirm
|
|
59
|
+
that the required permissions and write commands appear before requesting an edit.
|
|
60
|
+
|
|
61
|
+
A new conversation may be needed after the tool catalogue changes. A CLI login
|
|
62
|
+
is a separate connection and does not update ChatGPT’s permissions.
|
|
63
|
+
|
|
64
|
+
## Guides available to the assistant
|
|
65
|
+
|
|
66
|
+
The connector includes a `tasker_workflow` tool. Ask it for the relevant guide
|
|
67
|
+
before an unfamiliar operation. These are reviewed instructions served directly
|
|
68
|
+
by the connector; custom ChatGPT connections do not automatically install the
|
|
69
|
+
skill files from this repository.
|
|
70
|
+
|
|
71
|
+
See [supported workflows](WORKFLOWS.md) for examples and boundaries, and
|
|
72
|
+
[CLI setup](CLI.md) for a terminal or local MCP connection. The local CLI can also
|
|
73
|
+
show a guide without downloading account data:
|
|
74
|
+
|
|
75
|
+
```sh
|
|
76
|
+
geniustasker workflow show --topic mutations --json
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
## See changes in the application
|
|
80
|
+
|
|
81
|
+
An accepted connector command changes the same data used by the application.
|
|
82
|
+
The open application’s normal realtime subscription receives a version hint and
|
|
83
|
+
loads the canonical change. When reconnecting after a network interruption, the
|
|
84
|
+
application catches up through its existing sync system. A server receipt and a
|
|
85
|
+
screen update are different observations: the assistant should verify the changed
|
|
86
|
+
record, and should not claim to have seen your screen unless it actually did.
|
package/docs/CLI.md
ADDED
|
@@ -0,0 +1,444 @@
|
|
|
1
|
+
# GeniusTasker CLI and MCP reference
|
|
2
|
+
|
|
3
|
+
Connect your own AI tools to your projects: read progress, work on tickets,
|
|
4
|
+
comment, ask questions and keep a useful handoff. Your account and project
|
|
5
|
+
permissions remain the limit. GeniusTasker does not run your agent or bill its
|
|
6
|
+
external model tokens.
|
|
7
|
+
|
|
8
|
+
## Install and connect
|
|
9
|
+
|
|
10
|
+
Requires Node.js 22.13 or newer. Install the beta:
|
|
11
|
+
|
|
12
|
+
```sh
|
|
13
|
+
npm install -g @pulsarinteractive/geniustasker@beta
|
|
14
|
+
geniustasker auth login
|
|
15
|
+
geniustasker whoami --json
|
|
16
|
+
geniustasker projects list --json
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Login opens your browser. Sign in to GeniusTasker, choose projects, independent memories and
|
|
20
|
+
permissions, then approve the connection. The CLI receives a one-use code with
|
|
21
|
+
PKCE; it never asks for your password. The consent page does not load the app tutorial. Decline there or use Ctrl-C to stop.
|
|
22
|
+
If the browser cannot open, use the link printed in your terminal.
|
|
23
|
+
|
|
24
|
+
**This beta defaults to the development environment.** Your account must be
|
|
25
|
+
admitted to the beta; installing the package does not grant access. Production
|
|
26
|
+
agent access is closed. Use `--environment production` only when that rollout is
|
|
27
|
+
announced. No subscription purchase is performed by the CLI.
|
|
28
|
+
|
|
29
|
+
For a remote machine, use `geniustasker auth login --flow device --no-browser`.
|
|
30
|
+
For Chrome specifically, use `--browser chrome`. `--context work` creates a
|
|
31
|
+
separate local session for an independent terminal; it does not grant extra quota.
|
|
32
|
+
For the official CLI, the browser preselects all current and future resources
|
|
33
|
+
and every requested permission, including writes. Review the visible selection
|
|
34
|
+
and approve it, or uncheck “All” to choose individual projects and memories and
|
|
35
|
+
remove any permissions you do not need. Opening the page grants nothing, and
|
|
36
|
+
existing connections keep their approved permissions.
|
|
37
|
+
|
|
38
|
+
To narrow the permissions offered by the browser, pass `--scope`, for example:
|
|
39
|
+
|
|
40
|
+
```sh
|
|
41
|
+
geniustasker auth login --context work --scope 'projects:read tasks:read tasks:write comments:write goals:read goals:write'
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
The browser still requires you to confirm the selected access.
|
|
45
|
+
Revoke a session using `geniustasker auth logout --context work` or Account →
|
|
46
|
+
Agent connections in the app. Do not put tokens in commands or MCP configuration.
|
|
47
|
+
|
|
48
|
+
## Local MCP
|
|
49
|
+
|
|
50
|
+
Authenticate with `geniustasker auth login --context work` outside the MCP process first. Configure a client capable of
|
|
51
|
+
launching stdio servers with this entry (adjust environment/context as needed):
|
|
52
|
+
|
|
53
|
+
```json
|
|
54
|
+
{
|
|
55
|
+
"mcpServers": {
|
|
56
|
+
"geniustasker": {
|
|
57
|
+
"command": "npx",
|
|
58
|
+
"args": ["-y", "@pulsarinteractive/geniustasker@0.1.0-beta.10", "mcp", "--context", "work"]
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
No token belongs in that configuration. The server uses the official MCP SDK
|
|
65
|
+
and offers `tasker_identity`, `tasker_capabilities`, `tasker_projects` and
|
|
66
|
+
`tasker_memories`, `tasker_resources`, plus `tasker_prepare_command`, `tasker_execute_command`,
|
|
67
|
+
`tasker_retry_command` and `tasker_inspect_operation`. Profile tools are
|
|
68
|
+
`tasker_profiles`, `tasker_create_profile`, `tasker_restrict_profile` and
|
|
69
|
+
`tasker_select_profile`. `tasker_question_answers` reads human responses.
|
|
70
|
+
`tasker_changes` and `tasker_watch` support resumable changes and bounded waits.
|
|
71
|
+
Only MCP JSON-RPC is written to stdout. This is a local
|
|
72
|
+
stdio integration, not a hosted MCP service or a marketplace-approved plugin.
|
|
73
|
+
The bundled `skills/geniustasker/` folder can be copied into the skill directory
|
|
74
|
+
supported by your chosen agent. Specific clients may use a different config
|
|
75
|
+
format; their integration guides and release validation remain separate work.
|
|
76
|
+
|
|
77
|
+
## Paging and failures
|
|
78
|
+
|
|
79
|
+
Commands read one bounded page. Continue with `--after` when `nextAfter` is
|
|
80
|
+
non-null, even for an empty filtered project page. Resource continuation also
|
|
81
|
+
requires `--epoch` and `--checkpoint` from the first page. A context change
|
|
82
|
+
requires restarting the read. `omittedIds` means oversized legacy records were
|
|
83
|
+
excluded. Tasks support `--archive active|archived|all`.
|
|
84
|
+
|
|
85
|
+
`--json` gives one versioned result on stdout. Login displays readable progress
|
|
86
|
+
by default; with `--json`, its progress uses versioned envelopes on stderr.
|
|
87
|
+
Error envelopes also use stderr and do not contain credentials. Exit codes: 2 usage, 3 authentication,
|
|
88
|
+
4 permission, 5 conflict, 6 rate limit, 7 temporary failure, 1 other failure.
|
|
89
|
+
Honor `retryAfterSeconds`; there is no hidden retry loop or subscription upgrade.
|
|
90
|
+
|
|
91
|
+
### Incremental reads and bounded waits
|
|
92
|
+
|
|
93
|
+
Complete a resource inventory first. Its final page supplies `changeCursor`;
|
|
94
|
+
intermediate pages supply null. Keep this cursor with the same account, scope,
|
|
95
|
+
collection and archive view. For example, with the actual returned cursor:
|
|
96
|
+
|
|
97
|
+
```sh
|
|
98
|
+
geniustasker changes list --environment development --context work --scope project:ID --collection tasks --cursor CURSOR --json
|
|
99
|
+
geniustasker changes watch --environment development --context work --scope project:ID --collection tasks --cursor CURSOR --wait-seconds 30 --json
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
Apply all items and removal markers before retaining `nextCursor`. Follow
|
|
103
|
+
`hasMore` even if items is empty. These are current projections of changed IDs,
|
|
104
|
+
not a historical snapshot; duplicate IDs are possible and record revisions can
|
|
105
|
+
be newer than the page checkpoint. Apply newer/equal revisions idempotently and
|
|
106
|
+
never replace a newer cached row with an older one. Omissions remain incomplete
|
|
107
|
+
evidence. On `restart_read`, replace the collection from a fresh inventory.
|
|
108
|
+
Retained-history deletion also demands a full read to protect private audit IDs.
|
|
109
|
+
|
|
110
|
+
Watch returns `reason: changes|timeout`, a page (possibly null on timeout), the
|
|
111
|
+
number of completed polls and a continuation. It waits at most 60 seconds,
|
|
112
|
+
polling no faster than five seconds. Every poll uses the account's normal quota
|
|
113
|
+
and live permissions. Ctrl-C or MCP cancellation interrupts it; errors stop it
|
|
114
|
+
without blind retries. There is no daemon or automatic background agent. A
|
|
115
|
+
Free monthly budget refusal preserves `retryable: false` and its `resetAt` time.
|
|
116
|
+
|
|
117
|
+
## Account rate limits
|
|
118
|
+
|
|
119
|
+
Identity and capabilities expose the current server `rateLimits`. All CLI/MCP
|
|
120
|
+
contexts and agent profiles on the same account share them. Free allows 30
|
|
121
|
+
requests per 60 seconds, Starter 120, Pro 300; within those totals, write requests
|
|
122
|
+
are limited to 5, 20 and 60 respectively. These native Cloudflare limits are
|
|
123
|
+
approximate and location-local, not billing meters. A command can change several
|
|
124
|
+
entities; the rate unit is a request, not an entity or a physical SQL write.
|
|
125
|
+
|
|
126
|
+
Starter/Pro have no monthly agent credit/write-request cutoff. Free has 5,000
|
|
127
|
+
monthly credits (read request 1, write request 5) and 500 write requests, resetting
|
|
128
|
+
at the next UTC month. Every poll/replay consumes the applicable request limits.
|
|
129
|
+
On a temporary 429, honor `retryAfterSeconds` (currently a conservative 60 seconds)
|
|
130
|
+
before resuming. The CLI reports the error without automatically retrying writes;
|
|
131
|
+
keep the same journaled operation ID, issuedAt and content. Do not switch tokens,
|
|
132
|
+
profiles or contexts to evade the account limit. A write-only throttle leaves
|
|
133
|
+
reads available within their request/Free-credit budget.
|
|
134
|
+
|
|
135
|
+
## Credential storage and recovery
|
|
136
|
+
|
|
137
|
+
Credentials live in `~/.geniustasker/<context>.json`, outside repositories.
|
|
138
|
+
On POSIX systems the directory is 0700 and files are 0600, with file ownership,
|
|
139
|
+
symlink and hard-link checks. This protects against other OS users; it is not a
|
|
140
|
+
keychain and does not isolate processes running as you. Windows ACL and native
|
|
141
|
+
keychain integration have not been validated in this preview.
|
|
142
|
+
|
|
143
|
+
Refresh is serialized across processes and writes are atomic. An uncertainty
|
|
144
|
+
marker is saved before rotation: after a lost response, run logout then login
|
|
145
|
+
instead of replaying a one-use refresh token. Logout revokes the session family
|
|
146
|
+
on the server before removing credentials; on failure it keeps them for retry.
|
|
147
|
+
The account's Agents page can revoke a session or whole connection at any time.
|
|
148
|
+
|
|
149
|
+
A killed process can leave an empty `<context>.json.lock` directory. Stop every
|
|
150
|
+
CLI/MCP process using that context before removing only that empty lock
|
|
151
|
+
directory. Never remove a live client's lock. Then run logout/login if renewal
|
|
152
|
+
was interrupted. `doctor` exposes no credential values.
|
|
153
|
+
|
|
154
|
+
For an isolated local backend, `--origin http://127.0.0.1:PORT --allow-local`
|
|
155
|
+
explicitly enables loopback HTTP. Hosted credentials are origin-bound and cannot
|
|
156
|
+
be sent there. Redirects on credential-bearing API requests are refused.
|
|
157
|
+
|
|
158
|
+
Protocol references: [OAuth device authorization](https://www.rfc-editor.org/rfc/rfc8628),
|
|
159
|
+
[OAuth token revocation](https://www.rfc-editor.org/rfc/rfc7009),
|
|
160
|
+
[OAuth metadata](https://www.rfc-editor.org/rfc/rfc8414), and the
|
|
161
|
+
[official MCP TypeScript SDK](https://github.com/modelcontextprotocol/typescript-sdk).
|
|
162
|
+
|
|
163
|
+
## Prepare, execute and recover writes
|
|
164
|
+
|
|
165
|
+
Request the relevant permissions when connecting, for example:
|
|
166
|
+
|
|
167
|
+
```sh
|
|
168
|
+
geniustasker auth login --context work --environment development --scope 'projects:read tasks:read tasks:write comments:write goals:read goals:write' --browser chrome
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
The person chooses the effective grant. A project administrator must also enable
|
|
172
|
+
agent contributions. Discover capabilities and read the project instructions.
|
|
173
|
+
`commands describe --json` describes fields and the draft/request JSON schemas
|
|
174
|
+
from the product contract. It does not grant access or prove server activation.
|
|
175
|
+
|
|
176
|
+
Save a draft in a private JSON file (replace IDs/epoch with current reads):
|
|
177
|
+
|
|
178
|
+
```json
|
|
179
|
+
{
|
|
180
|
+
"scope": "project:PROJECT_ID",
|
|
181
|
+
"epoch": "EPOCH_FROM_READ",
|
|
182
|
+
"id": "NEW_RECORD_UUID",
|
|
183
|
+
"expectedRevision": null,
|
|
184
|
+
"kind": "task.create",
|
|
185
|
+
"data": { "title": "Prepare the next release" }
|
|
186
|
+
}
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
Then use the same context/environment for the whole workflow:
|
|
190
|
+
|
|
191
|
+
```sh
|
|
192
|
+
geniustasker commands prepare --file draft.json --context work --environment development --json
|
|
193
|
+
geniustasker commands retry --operation OPERATION_ID --context work --environment development --json
|
|
194
|
+
geniustasker commands inspect --operation OPERATION_ID --context work --environment development --json
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
Prepare saves a stable UUID/timestamp and sends nothing. Retry executes that
|
|
198
|
+
saved operation, whether still prepared or uncertain. Alternatively,
|
|
199
|
+
`commands execute --file request.json` accepts a complete request containing
|
|
200
|
+
`operationId` and `issuedAt` and journals it before sending. Never regenerate
|
|
201
|
+
those values to recover a timeout. Execution errors retain the operation ID.
|
|
202
|
+
|
|
203
|
+
The journal lives in `~/.geniustasker/operations/<context>/` with private file
|
|
204
|
+
permissions. It contains project text and receipts, never credentials. It is
|
|
205
|
+
bound to the original connection, profile, session and API environment. A new
|
|
206
|
+
login cannot silently replay an old session's operation. Inspection is local
|
|
207
|
+
evidence, not a live permission check. A confirmed retry is labeled
|
|
208
|
+
`local_receipt`; a newly obtained receipt is labeled `server`.
|
|
209
|
+
|
|
210
|
+
After a revision conflict, reread the affected records and prepare a new edit.
|
|
211
|
+
A pending or lost result requires an identical retry. No write is automatically
|
|
212
|
+
retried. Journal locks serialize different processes. If a process is killed,
|
|
213
|
+
stop all clients before removing that operation's empty `.json.lock` directory.
|
|
214
|
+
Keep its JSON request and retry it; do not erase uncertain operations. Journal
|
|
215
|
+
retention/cleanup automation remains pending. Logout removes credentials but
|
|
216
|
+
retains these records so the outcome can still be inspected.
|
|
217
|
+
|
|
218
|
+
Commands cover tasks, dependencies, archive/restore, ticket creation/planning,
|
|
219
|
+
comments and goals. `ticket.plan` uses the project ID/root revision and per-task
|
|
220
|
+
numeric `expectedVersion`; `ticket.create` requires a UUID record ID. Comments
|
|
221
|
+
use a text string and mentions array. An agent can edit/delete only comments
|
|
222
|
+
authored by its profile. Server receipts expose changed IDs/revisions, not
|
|
223
|
+
record bodies; read them separately if your grant permits it.
|
|
224
|
+
|
|
225
|
+
Local validation includes separate processes sharing one write, immutable retry
|
|
226
|
+
after lost responses, strict inputs, receipt validation and an official MCP
|
|
227
|
+
client communicating through stdio to actual Worker/SQLite domain services.
|
|
228
|
+
Compatibility with each agent host requires its own connection test.
|
|
229
|
+
|
|
230
|
+
## Custom project tags
|
|
231
|
+
|
|
232
|
+
Tags belong to one project and have stable IDs. Discover `tags` through
|
|
233
|
+
capabilities, then read that collection before creating or assigning a label.
|
|
234
|
+
Names and colours are project choices; there are no mandatory release labels.
|
|
235
|
+
|
|
236
|
+
When advertised by the connected service, `tag.create`, `tag.update` and
|
|
237
|
+
`tag.delete` use the same prepared-command journal as task edits. Creating a tag
|
|
238
|
+
requires a new ID and `expectedRevision: null`. Updates/deletion require its
|
|
239
|
+
current revision. Editable fields are `name` (2–14 characters), `textColor` and
|
|
240
|
+
`backgroundColor` (integer colours). The connection needs `tasks:write` and its
|
|
241
|
+
account must administer the target project. Delegation never grants that role.
|
|
242
|
+
|
|
243
|
+
Assign tag **IDs**, not names, through the task's `tags` field. When adding a tag,
|
|
244
|
+
preserve the task's other selected IDs. Renaming a tag preserves those links.
|
|
245
|
+
Deleting a label does not delete its tasks: historical IDs may remain on them,
|
|
246
|
+
while newly assigned IDs must refer to live tags in the same project. A filter
|
|
247
|
+
that depends on a missing tag must not silently become an unfiltered task view.
|
|
248
|
+
|
|
249
|
+
## Agent profiles and terminal identity
|
|
250
|
+
|
|
251
|
+
The initial profile works without configuration. Use independent named contexts
|
|
252
|
+
for independent terminals or accounts; a context shared by two processes is one
|
|
253
|
+
session, so selecting its profile affects both. Profile names are for attribution,
|
|
254
|
+
not extra memberships, API budgets or permission grants.
|
|
255
|
+
|
|
256
|
+
```sh
|
|
257
|
+
geniustasker profiles list --context work --environment development --json
|
|
258
|
+
geniustasker profiles create --file profile.json --context work --environment development --json
|
|
259
|
+
geniustasker profiles select --profile PROFILE_ID --context work --environment development --json
|
|
260
|
+
geniustasker whoami --context work --environment development --json
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
`profile.json` contains `id` (one UUID chosen once and retained), `name`, and
|
|
264
|
+
`grant` with `allResources`, `resourceIds`, `permissions`, following `whoami`'s
|
|
265
|
+
grant shape. Use actual project scopes from the API. Creation never switches the
|
|
266
|
+
terminal automatically. The new grant must fit both the current profile and the
|
|
267
|
+
connection. After a lost creation reply, list profiles and reconcile that UUID;
|
|
268
|
+
retrying it cannot allocate a second profile. Do not replace its UUID blindly.
|
|
269
|
+
|
|
270
|
+
`profiles restrict --file restriction.json` changes only the current profile.
|
|
271
|
+
The file must include its `profileId`, current `expectedRevision`, `name`, and
|
|
272
|
+
narrower/equal `grant`. It cannot undo a previous restriction or edit another
|
|
273
|
+
profile. After a lost reply, read `whoami` to see the saved revision and grant
|
|
274
|
+
before preparing another edit. The explicit profile ID prevents a saved draft
|
|
275
|
+
from editing another profile when a process changed the shared context.
|
|
276
|
+
|
|
277
|
+
Selection lists only eligible profiles in the same connection, then checks the
|
|
278
|
+
source and destination revisions while atomically rotating both credentials.
|
|
279
|
+
It never extends the session's absolute lifetime. The previous access token stops
|
|
280
|
+
working, so a request in flight cannot silently become the selected profile.
|
|
281
|
+
A restricted profile cannot switch back to the broader Default profile. Broader
|
|
282
|
+
rights need a human decision in the app or a fresh human-approved connection.
|
|
283
|
+
Saved task-operation journals stay bound to their original profile and cannot be
|
|
284
|
+
adopted by a different one. Reconcile pending work before selecting another.
|
|
285
|
+
|
|
286
|
+
A definite `profile_selection_conflict` or `profile_selection_denied` preserves
|
|
287
|
+
the previous usable credentials; read the profile list again. An unknown rotation
|
|
288
|
+
outcome requires logout/login, just like an unknown refresh. Credentials never
|
|
289
|
+
appear in selection results, CLI output, MCP tool results or package artifacts.
|
|
290
|
+
|
|
291
|
+
## Ask a human on a ticket
|
|
292
|
+
|
|
293
|
+
Request `questions:write` explicitly when connecting; an existing comments grant
|
|
294
|
+
alone cannot publish a question. Questions reuse the project's vote feature and
|
|
295
|
+
its human access rules. Agent contributions and project votes must both be enabled.
|
|
296
|
+
The contract offers fourteen write commands and thirteen MCP tools in this preview.
|
|
297
|
+
|
|
298
|
+
Prepare `question.create` with a new retained question UUID, current scope epoch,
|
|
299
|
+
null expected revision and this `data` shape (replace IDs and deadline):
|
|
300
|
+
|
|
301
|
+
```json
|
|
302
|
+
{
|
|
303
|
+
"task": "TICKET_ID",
|
|
304
|
+
"question": "Which checks should I run before the release review?",
|
|
305
|
+
"description": "I have finished the implementation and need your acceptance criteria.",
|
|
306
|
+
"answerKind": "Text",
|
|
307
|
+
"eligibleUsers": ["HUMAN_USER_ID"],
|
|
308
|
+
"closesAt": "2026-10-05T16:00:00Z"
|
|
309
|
+
}
|
|
310
|
+
```
|
|
311
|
+
|
|
312
|
+
An explicit audience and future deadline are required for agent questions. `Text`
|
|
313
|
+
accepts named answers of up to 2,000 UTF-16 code units and at most 50 recipients.
|
|
314
|
+
`YesNo` provides the two canonical options. `Choices` requires 2–12 distinct
|
|
315
|
+
options, with `selection: "Single"` or `"Multiple"`; choices can be anonymous.
|
|
316
|
+
An agent cannot submit a human ballot. A reply does not expand API permissions
|
|
317
|
+
or grant authority for unrelated external actions.
|
|
318
|
+
|
|
319
|
+
Use the usual prepare/retry journal for creating and closing questions. Read
|
|
320
|
+
`resources list --scope project:ID --collection questions --json` to find their
|
|
321
|
+
current revisions, then:
|
|
322
|
+
|
|
323
|
+
```sh
|
|
324
|
+
geniustasker questions answers --scope project:ID --question QUESTION_ID --context work --environment development --json
|
|
325
|
+
```
|
|
326
|
+
|
|
327
|
+
MCP provides `tasker_question_answers`. Follow `nextAfter` with the original
|
|
328
|
+
`epoch` and `checkpoint`; restart after a changed snapshot. Named answers are
|
|
329
|
+
paged ten at a time. Anonymous questions expose no respondents or running totals;
|
|
330
|
+
after closing they expose only totals. A changing private ballot does not alter
|
|
331
|
+
an open anonymous question's public checkpoint.
|
|
332
|
+
|
|
333
|
+
`question.close` takes the question's current revision and empty `data`. A
|
|
334
|
+
profile can close only questions it created. It cannot answer on behalf of its
|
|
335
|
+
owner, impersonate another profile, or use a poll result as new authorization.
|
|
336
|
+
|
|
337
|
+
## Work updates and handoffs
|
|
338
|
+
|
|
339
|
+
Prepare `task.report` through the normal command journal with the current task
|
|
340
|
+
revision and `tasks:write`. `phase` is `Working`, `NeedsInformation` or
|
|
341
|
+
`NeedsReview`; `summary` is required, `nextSteps` is required for both waiting
|
|
342
|
+
phases, and `evidence` is an array of up to eight `{label, url}` HTTPS links.
|
|
343
|
+
`mentions` is optional. The ticket must be open, unarchived and agent-enabled.
|
|
344
|
+
|
|
345
|
+
The result is one task transition and one attributed, immutable discussion
|
|
346
|
+
receipt. Read `workPhase`/`lastWorkReport` on the task and `workReport` on its
|
|
347
|
+
comment. Completing/reopening a ticket clears its current phase. A report is
|
|
348
|
+
progress information, not approval or proof independently verified by Tasker.
|
|
349
|
+
Correct published reports with a new report; never rewrite an older receipt.
|
|
350
|
+
|
|
351
|
+
## Ask for approval of one precise action
|
|
352
|
+
|
|
353
|
+
Connect with `approvals:write` explicitly, alongside the read grants needed to
|
|
354
|
+
review the task and its discussion. Discover the commands through capabilities.
|
|
355
|
+
Prepare `approval.request` with a retained request UUID, expectedRevision null and:
|
|
356
|
+
|
|
357
|
+
```json
|
|
358
|
+
{
|
|
359
|
+
"task": "TASK_ID",
|
|
360
|
+
"taskRevision": "CURRENT_TASK_REVISION",
|
|
361
|
+
"title": "Publish the reviewed preview",
|
|
362
|
+
"summary": "Publish build one to the private preview environment.",
|
|
363
|
+
"actionJson": "{\"build\":\"one\",\"environment\":\"preview\"}",
|
|
364
|
+
"approver": "HUMAN_MEMBER_ID",
|
|
365
|
+
"expiresAt": "A_FUTURE_ISO_TIMESTAMP"
|
|
366
|
+
}
|
|
367
|
+
```
|
|
368
|
+
|
|
369
|
+
The deadline is one minute to seven days ahead. The approver must be a current
|
|
370
|
+
human member with ticket editing rights; the requesting account needs those
|
|
371
|
+
rights too. Read `comments` for the request's `approval` object and revision.
|
|
372
|
+
The designated human reviews the request in the app. No CLI or MCP command can
|
|
373
|
+
approve on their behalf. A question answer, comment or work report is not an
|
|
374
|
+
approval. Do not store credentials in the action JSON or summary.
|
|
375
|
+
|
|
376
|
+
When Approved, prepare `approval.consume` on that comment with its current
|
|
377
|
+
expectedRevision and data `{ "requestVersion": "ORIGINAL_REQUEST_REVISION",
|
|
378
|
+
"actionJson": "THE_EXACT_REVIEWED_ACTION_JSON" }`. Only its original profile can
|
|
379
|
+
consume; the task and access must still match. Reuse prepare/retry/inspect for
|
|
380
|
+
network uncertainty. A terminal request cannot authorize a second operation.
|
|
381
|
+
`approval.cancel` uses current expectedRevision and `{ "requestVersion": "..." }`
|
|
382
|
+
when the request is no longer needed, including stale or expired requests.
|
|
383
|
+
|
|
384
|
+
Tasker records authorization and never runs the external action. Use the request
|
|
385
|
+
ID as an idempotency key where the external system supports it. After a crash or
|
|
386
|
+
an uncertain external result, inspect that system before acting again. Replaying
|
|
387
|
+
a successful consumption receipt does not authorize repeating its side effect.
|
|
388
|
+
|
|
389
|
+
## Package boundary
|
|
390
|
+
|
|
391
|
+
Only the CLI/MCP source, its generated public command catalog, bundled agent skill
|
|
392
|
+
and the selected guide/plugin files are distributed. Application source, infrastructure configuration,
|
|
393
|
+
private product documents, test identities and credentials are excluded. No
|
|
394
|
+
installation script runs and no background daemon or telemetry is installed.
|
|
395
|
+
The standalone client and skills are distributed under the MIT license.
|
|
396
|
+
Third-party components retain their original licenses.
|
|
397
|
+
|
|
398
|
+
## Independent memories
|
|
399
|
+
|
|
400
|
+
A memory is an account resource (`memory:ID`), not a project attachment. The agent
|
|
401
|
+
chooses which project and memory to use independently, within the user's grants.
|
|
402
|
+
Use a small index first, then fetch only the page you need:
|
|
403
|
+
|
|
404
|
+
```sh
|
|
405
|
+
geniustasker memories list --json
|
|
406
|
+
geniustasker resources list --scope memory:ID --collection pageIndex --json
|
|
407
|
+
geniustasker resources list --scope memory:ID --collection pages --path brand/identity --json
|
|
408
|
+
```
|
|
409
|
+
|
|
410
|
+
Memory pages contain Markdown blocks with stable IDs, a path, tags and optional
|
|
411
|
+
source provenance. Preserve IDs when editing; do not relabel a proposal as a
|
|
412
|
+
verified fact. `pages --id ID` also reads one page. A targeted read has no change
|
|
413
|
+
cursor; obtain one from a complete collection inventory when watching updates.
|
|
414
|
+
Commands `memory.create/update/delete` and `memory.page.create/update/delete`
|
|
415
|
+
require `memory:write`. For a new space, choose one UUID v4 for its root ID, scope
|
|
416
|
+
suffix and initial epoch, then use the returned epoch/revision for later writes.
|
|
417
|
+
All edits use the same local command journal and optimistic revision checks as
|
|
418
|
+
project commands. Never copy private source files into this npm package.
|
|
419
|
+
|
|
420
|
+
## Page access and visual Graph levels
|
|
421
|
+
|
|
422
|
+
A memory can define `contentRoles` (stable IDs and display names). Membership
|
|
423
|
+
assignments are managed in the application. Page `visibility` is `inherit`,
|
|
424
|
+
`restricted`, or `private`; `readRoles` selects defined roles for a restricted
|
|
425
|
+
page. Restrictions apply through parent folders and to attached files. Content
|
|
426
|
+
roles never grant editing rights. Only memory administrators can change page
|
|
427
|
+
restrictions or move existing pages between parents. Never change sharing as a
|
|
428
|
+
workaround for denied reads.
|
|
429
|
+
|
|
430
|
+
Resources, search, references and media reads enforce current page access.
|
|
431
|
+
After permission changes, discard cached results and restart incremental reads
|
|
432
|
+
when `reset_required` is returned. An offline copy cannot establish current
|
|
433
|
+
access. Keep Graph nodes and their own notes when a linked page is unavailable.
|
|
434
|
+
|
|
435
|
+
Nodes accept `imageAssetId` for an image uploaded to the same memory and
|
|
436
|
+
`detailLevel`: `auto`, `overview`, `identity`, or `detail`. The node `kind` is its content type. Overview shows products, projects and brands;
|
|
437
|
+
Identities shows characters, people and entities (never places or scenes). Details
|
|
438
|
+
shows every type and supports type/status filters. Prefer `auto`; an explicit
|
|
439
|
+
`overview` can highlight another type there. Display level is not authorization.
|
|
440
|
+
Upload only approved imagery. Attaching a private image to a shared Graph makes
|
|
441
|
+
it visible to that Graph's readers and requires the user's authorization.
|
|
442
|
+
Read the full current record before editing and preserve its revision.
|
|
443
|
+
|
|
444
|
+
For project-owned reusable task selections, see [Shared project filters](PROJECT_FILTERS.md).
|