@hasna/todos 0.11.36 → 0.11.38
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 +16 -1
- package/dist/cli/helpers.d.ts +2 -1
- package/dist/cli/helpers.d.ts.map +1 -1
- package/dist/cli/index.js +694 -158
- package/dist/index.js +18 -17
- package/dist/lib/package-version.d.ts +2 -0
- package/dist/lib/package-version.d.ts.map +1 -0
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +585 -79
- package/dist/mcp/token-utils.d.ts +15 -0
- package/dist/mcp/token-utils.d.ts.map +1 -0
- package/dist/mcp/tools/task-adv-tools.d.ts.map +1 -1
- package/dist/mcp/tools/task-crud.d.ts.map +1 -1
- package/dist/mcp/tools/task-meta-tools.d.ts.map +1 -1
- package/dist/mcp/tools/task-project-tools.d.ts.map +1 -1
- package/dist/mcp/tools/task-workflow-tools.d.ts.map +1 -1
- package/dist/sdk/client.d.ts +30 -8
- package/dist/sdk/client.d.ts.map +1 -1
- package/dist/sdk/types.d.ts +6 -0
- package/dist/sdk/types.d.ts.map +1 -1
- package/dist/server/index.js +118 -56
- package/dist/server/routes.d.ts +3 -3
- package/dist/server/routes.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -23,7 +23,14 @@ todos --help
|
|
|
23
23
|
todos-mcp
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
The MCP server defaults to the token-saving `TODOS_PROFILE=minimal` profile.
|
|
27
|
+
Use `TODOS_PROFILE=standard` for broader task/project/resource tools, or
|
|
28
|
+
`TODOS_PROFILE=full` when you explicitly need every tool. You can add groups
|
|
29
|
+
with `TODOS_TOOL_GROUPS=cloud,templates`.
|
|
30
|
+
|
|
31
|
+
High-volume tools return compact payloads by default. Pass `detail: "full"` to
|
|
32
|
+
MCP calls such as `get_task`, `get_status`, `get_context`, `bootstrap`, and
|
|
33
|
+
`task_context` when you need full data.
|
|
27
34
|
|
|
28
35
|
## REST API
|
|
29
36
|
|
|
@@ -43,6 +50,14 @@ todos-serve --host 0.0.0.0
|
|
|
43
50
|
Pass the generated key from your app as `x-api-key` or set `TODOS_API_KEY` for
|
|
44
51
|
the SDK client.
|
|
45
52
|
|
|
53
|
+
Agent callers can trim REST responses with field selectors:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
curl "http://localhost:19427/api/tasks?fields=id,title,status,priority"
|
|
57
|
+
curl "http://localhost:19427/api/tasks/<id>?fields=id,title,status"
|
|
58
|
+
curl "http://localhost:19427/api/tasks/<id>/history?limit=20"
|
|
59
|
+
```
|
|
60
|
+
|
|
46
61
|
## Cloud Sync
|
|
47
62
|
|
|
48
63
|
This package supports cloud sync via `@hasna/cloud`:
|
package/dist/cli/helpers.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Command } from "commander";
|
|
2
|
+
import { getPackageVersion } from "../lib/package-version.js";
|
|
2
3
|
import type { Project, Task } from "../types/index.js";
|
|
3
|
-
export
|
|
4
|
+
export { getPackageVersion };
|
|
4
5
|
export declare function handleError(e: unknown): never;
|
|
5
6
|
export declare function setProgramRef(p: Command): void;
|
|
6
7
|
export declare function resolveTaskId(partialId: string): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/cli/helpers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/cli/helpers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEvD,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAE7B,wBAAgB,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,KAAK,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