@pulsarinteractive/geniustasker 0.1.0-beta.2 → 0.1.0-beta.4

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 CHANGED
@@ -1,5 +1,24 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-beta.4 — 2026-10-02
4
+
5
+ - Short npm overview, focused Memory guide and account usage tables.
6
+ - Explain the UUID v4 identity required for Memory creation before sending an invalid request.
7
+ - Private Memory attachments through resumable MCP/CLI uploads, bounded binary transport and explicit downloads.
8
+ - Memory full-text search, bounded Graph neighborhoods and permission-aware references.
9
+ - Graph node/edge commands and richer document metadata from the API contract.
10
+ - Seven additional MCP tools and matching CLI commands; independent node content survives unavailable references.
11
+ - Shared request size bounds for rich documents, with immutable write retries preserved.
12
+
13
+ These additions require the corresponding service capabilities.
14
+
15
+ ## 0.1.0-beta.3 — 2026-09-30
16
+
17
+ - MIT license for the client, skills and documentation; third-party license notices.
18
+ - Consistent source formatting, ESLint checks and pinned CI actions.
19
+ - Architecture, testing and contribution guides.
20
+ - Canonical Pulsar Interactive repository links.
21
+
3
22
  ## 0.1.0-beta.2 — 2026-09-30
4
23
 
5
24
  - Public standalone repository, synthetic tests and CI.
package/CONTRIBUTING.md CHANGED
@@ -1,17 +1,72 @@
1
1
  # Contributing
2
2
 
3
- Use Node.js 22.13+ and `npm ci`. Run `npm test` and `npm run check` before a change.
4
- Tests run with synthetic data. Never add real account records or credentials.
3
+ Thanks for helping improve GeniusTasker's agent integrations. This repository
4
+ contains the CLI, local MCP server, skills and integration documentation.
5
5
 
6
- Keep authentication, scope boundaries, immutable journals, bounded reads and
7
- structured errors intact. Feature availability comes from live capabilities;
8
- no CLI command may bypass service admission or permissions.
6
+ ## Development setup
9
7
 
10
- `src/command-catalog.mjs` is a reviewed public contract snapshot. It is generated
11
- upstream, not hand edited here. Contract changes arrive as a bounded client-facing
12
- snapshot; no private backend, configuration or internal generator belongs in this
13
- repository. Runtime, packaging and skill changes are maintained here.
8
+ Use Node.js 22.13 or newer and npm:
14
9
 
15
- Do not add install/postinstall hooks, credential collection, telemetry, background
16
- polling or automatic public publishing as part of an unrelated contribution.
17
- See [Releasing](docs/RELEASING.md) for the explicit release workflow.
10
+ ```sh
11
+ npm ci
12
+ npm run verify
13
+ ```
14
+
15
+ Local tests need no GeniusTasker account. They use temporary files, synthetic
16
+ identities, loopback servers and the official MCP client SDK.
17
+
18
+ ## Code conventions
19
+
20
+ - Use ECMAScript modules and explicit `node:` imports for Node built-ins.
21
+ - Format with `npm run format`; ESLint enforces recommended checks, strict
22
+ equality, unused-variable detection and braces on control statements.
23
+ - Choose names that explain the operation. Keep parsing, authentication, HTTP
24
+ transport, persistence and MCP presentation in their respective modules.
25
+ - Document exported entry points and invariants. Explain why a failure needs
26
+ special treatment; comments should not repeat the next line of code.
27
+ - Inject clocks, network calls and cancellation signals where behavior needs
28
+ deterministic tests. Avoid new global state, background daemons or polling.
29
+ - Prefer a focused helper when it clarifies responsibility. Avoid abstraction
30
+ that hides credential ownership, lock lifetime or retry decisions.
31
+
32
+ The [architecture guide](docs/ARCHITECTURE.md) describes module responsibilities
33
+ and the authentication, write and change-feed lifecycles.
34
+
35
+ ## Behavioral compatibility
36
+
37
+ CLI JSON output, exit codes, MCP tool names and command envelopes are public
38
+ interfaces. Changes must preserve existing callers or be documented as a breaking
39
+ change. Keep stdout reserved for protocol output; diagnostics belong on stderr.
40
+
41
+ Validate input at the boundary. Surface errors through `AgentError` with a stable
42
+ code and useful remediation. Never relay raw provider exceptions or credentials.
43
+ A command must preserve origin, account, profile and operation identity. An
44
+ uncertain write may only retry its saved immutable request; a revision conflict
45
+ requires rereading the resource. Access and quotas remain server-enforced.
46
+
47
+ `src/command-catalog.mjs` is a generated interface snapshot. Submit contract
48
+ updates with their generation provenance and review the client-facing diff;
49
+ do not hand-edit generated schemas. Third-party schemas also remain unchanged.
50
+
51
+ ## Tests and documentation
52
+
53
+ Add regression coverage for observable changes, including relevant failures and
54
+ cancellation. Use synthetic data; live account exports do not belong in fixtures.
55
+ Read [Testing](docs/TESTING.md) for the suite boundaries and focused commands.
56
+
57
+ Update command help, examples, skills and relevant guides when behavior changes.
58
+ Examples must run against documented capabilities, with placeholders for resource
59
+ IDs and without access tokens. Keep project and Memory permissions independent.
60
+
61
+ ## Pull requests
62
+
63
+ Describe the user-visible problem, the behavior after the change and the checks
64
+ performed. Keep unrelated changes separate. Run `npm run verify` and review the
65
+ archive inventory before proposing distribution changes. Security reports belong
66
+ in the repository's private reporting channel, as described in [Security](SECURITY.md).
67
+
68
+ ## Licensing
69
+
70
+ Contributions to the client, skills and documentation are accepted under the
71
+ [MIT license](LICENSE). Third-party material retains its original license and
72
+ must have clear provenance and notices. See [Third-party notices](THIRD_PARTY_NOTICES.md).
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Pulsar Interactive
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.
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
package/README.md CHANGED
@@ -1,16 +1,13 @@
1
- # GeniusTasker agent tools
1
+ # GeniusTasker CLI & MCP
2
2
 
3
- Keep project progress, collaborators and your own AI agents in one place.
4
- This repository contains the public **CLI, local MCP server and agent skills**.
5
- The GeniusTasker application and service implementation are separate.
3
+ Manage projects, tasks and knowledge from your terminal or AI assistant.
4
+ Connect once in your browser, choose what your agent can access, and stay in control.
6
5
 
7
- [Install](#install-and-connect) · [Codex and Claude](docs/INTEGRATIONS.md) ·
8
- [CLI reference](docs/CLI.md) · [OpenAI plugin](docs/OPENAI.md) · [Releases](CHANGELOG.md)
6
+ [Get started](#get-started) · [Agent setup](https://github.com/PulsarInteractive/geniustasker-agent-tools/blob/main/docs/INTEGRATIONS.md) · [Commands](https://github.com/PulsarInteractive/geniustasker-agent-tools/blob/main/docs/CLI.md) · [Usage limits](https://github.com/PulsarInteractive/geniustasker-agent-tools/blob/main/docs/LIMITS.md)
9
7
 
10
- ## Install and connect
8
+ ## Get started
11
9
 
12
- Requires **Node.js 22.13+** and an account admitted to the development beta.
13
- Installing the client does not enable access to the service.
10
+ Requires **Node.js 22.13+** and an approved GeniusTasker account.
14
11
 
15
12
  ```sh
16
13
  npm install -g @pulsarinteractive/geniustasker@beta
@@ -18,59 +15,58 @@ geniustasker auth login --context work
18
15
  geniustasker projects list --context work --json
19
16
  ```
20
17
 
21
- A browser opens: sign in, select projects and independent memories, choose
22
- permissions, then approve. The terminal finishes automatically. No token to copy.
23
- For Chrome use `--browser chrome`; remote shells can use `--flow device --no-browser`.
24
- Production agent access is not open in this beta.
25
-
26
- ## Connect an agent
27
-
28
- After logging in with the `work` context:
29
-
30
- ```sh
31
- codex mcp add geniustasker -- npx -y @pulsarinteractive/geniustasker@0.1.0-beta.2 mcp --context work
18
+ Sign in in the browser, select your projects or memories, then approve the requested
19
+ permissions. The terminal connects automatically. No token to copy.
20
+ Installing the package does not grant application access.
21
+
22
+ ## What you can do
23
+
24
+ | Area | Features |
25
+ | ------------------- | -------------------------------------------------------------- |
26
+ | Projects & tasks | Browse work, update tickets, record progress and read comments |
27
+ | Agent collaboration | Ask for decisions, track replies and keep useful handoffs |
28
+ | Memory | Search documents and read the pages you need |
29
+ | Graph | Explore connected ideas and resolve links to Memory content |
30
+ | Files | Upload approved attachments and download selected files |
31
+ | Permissions | Choose scopes, restrict agent profiles and revoke connections |
32
+
33
+ Availability follows your account, the permissions you approve and the service's
34
+ current capabilities. [Memory & Graph guide](https://github.com/PulsarInteractive/geniustasker-agent-tools/blob/main/docs/MEMORY.md).
35
+
36
+ ## Connect your AI assistant
37
+
38
+ For a stdio MCP host, use this after signing in:
39
+
40
+ ```json
41
+ {
42
+ "mcpServers": {
43
+ "geniustasker": {
44
+ "command": "npx",
45
+ "args": ["-y", "@pulsarinteractive/geniustasker@0.1.0-beta.4", "mcp", "--context", "work"]
46
+ }
47
+ }
48
+ }
32
49
  ```
33
50
 
34
- Other stdio MCP hosts can use [examples/mcp.json](examples/mcp.json).
35
- The MCP exposes 16 tools for identity, capabilities, projects, memories, bounded
36
- reads, profiles and journaled changes. It uses the session you explicitly approved.
37
- GeniusTasker records work; your agent chooses and executes its own workflow.
38
-
39
- ## Skills
40
-
41
- - [GeniusTasker](skills/geniustasker/SKILL.md): project work, tickets and useful handoffs.
42
- - [GeniusTasker Memory](skills/geniustasker-memory/SKILL.md): independent knowledge,
43
- focused reads, stable blocks and resumable imports.
44
-
45
- Install the skill folders in your agent's supported skill directory, or use the
46
- plugin bundle described in [Integrations](docs/INTEGRATIONS.md). npm installation
47
- alone does not register skills or MCP servers in your agent host.
48
-
49
- ## Plugin readiness
50
-
51
- `plugin.json`, `mcp.json`, `skills/` and the local marketplace catalog form a
52
- portable **local plugin bundle**. This is not an approved public ChatGPT-directory
53
- plugin. The hosted HTTPS MCP/OAuth integration remains a separate milestone in
54
- [OpenAI integration](docs/OPENAI.md).
55
-
56
- ## Development
57
-
58
- ```sh
59
- npm ci
60
- npm test
61
- npm run check
62
- ```
51
+ See [Codex, Claude and skills setup](https://github.com/PulsarInteractive/geniustasker-agent-tools/blob/main/docs/INTEGRATIONS.md).
52
+ Your AI assistant uses its own model subscription; this package does not run or
53
+ bill the model. The [OpenAI integration guide](https://github.com/PulsarInteractive/geniustasker-agent-tools/blob/main/docs/OPENAI.md)
54
+ explains the available local integration and hosted integration status.
63
55
 
64
- Tests use synthetic fixtures and local mock servers. CI has no production credentials.
65
- `npm run check` checks the public file boundary, package contents and plugin schema.
66
- See [Contributing](CONTRIBUTING.md) and [Release process](docs/RELEASING.md).
56
+ ## Documentation
67
57
 
68
- ## Privacy and source boundary
58
+ | Guide | Use it for |
59
+ | -------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------- |
60
+ | [CLI reference](https://github.com/PulsarInteractive/geniustasker-agent-tools/blob/main/docs/CLI.md) | Commands, browser login, remote terminals and troubleshooting |
61
+ | [Usage limits](https://github.com/PulsarInteractive/geniustasker-agent-tools/blob/main/docs/LIMITS.md) | Plan limits, shared account quotas and safe retries |
62
+ | [Memory & Graph](https://github.com/PulsarInteractive/geniustasker-agent-tools/blob/main/docs/MEMORY.md) | Documents, links, attachments and access changes |
63
+ | [Security](https://github.com/PulsarInteractive/geniustasker-agent-tools/blob/main/SECURITY.md) | Credential handling and reporting a vulnerability |
64
+ | [Contributing](https://github.com/PulsarInteractive/geniustasker-agent-tools/blob/main/CONTRIBUTING.md) | Local development, tests and contribution guidelines |
65
+ | [Changelog](https://github.com/PulsarInteractive/geniustasker-agent-tools/blob/main/CHANGELOG.md) | Changes in each release |
69
66
 
70
- No application source, backend, account exports, infrastructure credentials or
71
- private product documents belong here. Only the agent client and its public
72
- interface contract are included. Credentials stay in the user's private local
73
- store; never paste them into an issue. See [Security](SECURITY.md).
67
+ ## License
74
68
 
75
- Source is visible; package licensing remains `UNLICENSED`. No general open-source
76
- reuse license or license to the separate GeniusTasker application is implied.
69
+ [MIT](https://github.com/PulsarInteractive/geniustasker-agent-tools/blob/main/LICENSE)
70
+ for this CLI, MCP server, skills and documentation.
71
+ [Third-party notices](https://github.com/PulsarInteractive/geniustasker-agent-tools/blob/main/THIRD_PARTY_NOTICES.md)
72
+ cover included components. The GeniusTasker application and backend are separate.
@@ -0,0 +1,15 @@
1
+ # Third-party notices
2
+
3
+ ## Agent Plugins JSON schemas
4
+
5
+ `tools/schemas/plugin.schema.json` and `tools/schemas/mcp.schema.json` are
6
+ unmodified Agent Plugins 1.0.0 JSON schemas, used for development validation.
7
+
8
+ - Project: [Agent Plugins specification](https://github.com/agentplugins/agent-plugins-spec)
9
+ - Source: [version 1.0.0 schemas](https://github.com/agentplugins/agent-plugins-spec/tree/main/schemas/1.0.0)
10
+ - License: Apache-2.0, as stated in the [upstream licensing notice](https://github.com/agentplugins/agent-plugins-spec/blob/main/LICENSE.md)
11
+ - Full license: [LICENSES/Apache-2.0.txt](LICENSES/Apache-2.0.txt)
12
+
13
+ These schemas retain their original license. The MIT license for GeniusTasker's
14
+ client does not replace their terms. npm dependencies retain the licenses
15
+ included in their respective packages.
@@ -0,0 +1,126 @@
1
+ # Client architecture
2
+
3
+ The CLI and MCP server share one delegated client. The client communicates with
4
+ the GeniusTasker service; it does not execute an agent's external workflow.
5
+ Projects and account memories are independent resources with explicit grants.
6
+
7
+ ```mermaid
8
+ flowchart LR
9
+ CLI[CLI commands] --> Client[AgentClient]
10
+ Host[Agent host] --> MCP[Local stdio MCP]
11
+ MCP --> Client
12
+ CLI --> Journal[CommandJournal]
13
+ MCP --> Journal
14
+ Journal --> Client
15
+ Client --> Store[Private context store]
16
+ Client --> HTTP[Bounded HTTP transport]
17
+ HTTP --> API[GeniusTasker API]
18
+ ```
19
+
20
+ ## Module responsibilities
21
+
22
+ | Module | Responsibility |
23
+ | --------------------- | --------------------------------------------------------------------------- |
24
+ | `cli.mjs` | Argument validation, context/environment selection, output and exit status |
25
+ | `login.mjs` | Browser PKCE consent, loopback callback validation and optional device flow |
26
+ | `store.mjs` | Private local files, atomic replacement and inter-process locking |
27
+ | `client.mjs` | Origin-bound sessions, serialized renewal, profile selection and reads |
28
+ | `transport.mjs` | Allowed origins/routes, timeouts, size limits and sanitized API failures |
29
+ | `commands.mjs` | Validated command envelopes and durable immutable operation journals |
30
+ | `profiles.mjs` | Bounded profile discovery, creation, restriction and selection |
31
+ | `changes.mjs` | Validated incremental reads and bounded, cancellable waits |
32
+ | `mcp.mjs` | Strict tool schemas and protocol-safe responses over stdio |
33
+ | `errors.mjs` | Stable errors, safe serialization and CLI exit codes |
34
+ | `command-catalog.mjs` | Generated public interface definitions and limits |
35
+
36
+ ## Authentication and renewal
37
+
38
+ 1. The user starts `auth login` outside the MCP process. Browser consent selects
39
+ resources and permissions; the CLI receives a one-use code through a validated
40
+ loopback callback and exchanges it using PKCE.
41
+ 2. Credentials are validated against the expected origin and identity before being
42
+ written. Local storage uses a dedicated context and restrictive permissions.
43
+ 3. Before renewal, the client acquires the context lock and persists a
44
+ `refreshPending` marker. Concurrent processes cannot renew the same credential
45
+ family simultaneously.
46
+ 4. A successful, validated response replaces both tokens atomically. An uncertain
47
+ response leaves the marker intact and requires reconnecting. It must not replay
48
+ a possibly consumed refresh token.
49
+ 5. Logout revokes the server session before deleting local credentials. A failed
50
+ revoke retains the local state for recovery.
51
+
52
+ Separate contexts give terminals independent consented sessions. Sharing a context
53
+ shares its identity and locks. Profile selection can narrow access; it cannot
54
+ restore a broader grant or extend the server's absolute session lifetime.
55
+
56
+ ## Writes and recovery
57
+
58
+ A domain command carries its scope, epoch, current revision, operation ID and
59
+ issue time. `prepare` validates and saves the complete request locally without
60
+ performing a domain write. The journal binds it to an origin, connection, profile
61
+ and session.
62
+
63
+ ```mermaid
64
+ stateDiagram-v2
65
+ [*] --> prepared: save validated draft
66
+ prepared --> uncertain: persist before sending
67
+ uncertain --> confirmed: validate and save receipt
68
+ uncertain --> uncertain: explicit identical retry
69
+ confirmed --> confirmed: return saved receipt
70
+ ```
71
+
72
+ A timeout or malformed receipt does not establish whether the server committed.
73
+ The operation stays uncertain. The caller can retry the same saved request; it
74
+ cannot replace the body under the same ID or replay it after an identity change.
75
+ A conflict requires a fresh read and a new operation. The journal never stores
76
+ authentication tokens.
77
+
78
+ Profile changes use a separate lifecycle: creation keeps the caller's UUID,
79
+ restriction uses a current revision, and selection rotates credentials while
80
+ holding the context lock. They are not domain-journal operations.
81
+
82
+ ## Reads and change cursors
83
+
84
+ Resource reads are bounded and permission-filtered. Callers preserve inventory
85
+ epoch/checkpoint fields while paging and follow continuation even when a page is
86
+ empty. A cursor does not grant access. Change pages validate scope, collection,
87
+ revision and shape before advancing saved state.
88
+
89
+ `watch` performs one bounded wait. It honors the server's polling interval and
90
+ cancellation; quota errors, expired history and revocation stop the wait. There is
91
+ no background subscription daemon or automatic monthly-limit retry loop.
92
+
93
+ ## Transport and extension points
94
+
95
+ Requests are confined to delegated API routes and approved origins. Redirects
96
+ are refused. Requests and responses are size-bounded; raw network exceptions
97
+ never become user-facing diagnostic text. CLI stdout and MCP stdout stay free of
98
+ logging and browser-authentication prompts.
99
+
100
+ Add a public capability by updating its generated contract, boundary validation,
101
+ client operation, CLI/MCP adapter, failure tests and user documentation together.
102
+ Prefer existing transport and storage primitives. A future remote MCP adapter is
103
+ a separate integration described in [OpenAI integration](OPENAI.md); the current
104
+ local plugin manifest must not imply that endpoint already exists.
105
+
106
+ ## Focused knowledge reads
107
+
108
+ `knowledge.mjs` validates bounded search, Graph neighborhood and reference inputs
109
+ for both CLI and MCP. It checks response scope/shape, never follows cursors
110
+ automatically and never persists linked Memory content. `truncated` is an explicit
111
+ partial graph, not evidence that omitted nodes or relations do not exist. Target
112
+ permissions remain server-owned and independent of access to the referring graph.
113
+
114
+ ## Conditional resource cache
115
+
116
+ `read-cache.mjs` keeps at most 64 responses and 8 MiB in process memory, with
117
+ 15-minute idle eviction. Exact query keys include a hashed origin/credential
118
+ realm. Every hit makes an authenticated conditional request; no cache entry can
119
+ bypass current server permissions, quotas or source versions. Servers without
120
+ validators remain compatible and receive ordinary reads.
121
+
122
+ Concurrent identical reads share one request. Generation fences prevent late
123
+ responses from repopulating a cache after account/profile changes, failures or
124
+ MCP writes. Failed validation clears cached private bodies; there is no stale
125
+ success fallback and no persistent resource cache. Returned values are cloned so
126
+ one tool call cannot mutate another caller's cached result.