@hasna/todos 0.11.39 → 0.11.40
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/package.json +2 -2
- package/dist/cli/commands/cloud-commands.d.ts +0 -3
- package/dist/cli/commands/cloud-commands.d.ts.map +0 -1
- package/dist/cli/commands/remote-commands.d.ts +0 -3
- package/dist/cli/commands/remote-commands.d.ts.map +0 -1
- package/dist/cli/remote-index.d.ts +0 -3
- package/dist/cli/remote-index.d.ts.map +0 -1
- package/dist/db/pg-migrate.d.ts +0 -14
- package/dist/db/pg-migrate.d.ts.map +0 -1
- package/dist/db/pg-migrations.d.ts +0 -8
- package/dist/db/pg-migrations.d.ts.map +0 -1
- package/dist/lib/cloud-migration.d.ts +0 -53
- package/dist/lib/cloud-migration.d.ts.map +0 -1
- package/dist/mcp/tools/cloud.d.ts +0 -12
- package/dist/mcp/tools/cloud.d.ts.map +0 -1
- package/dist/remote-cli/remote-index.js +0 -3054
- package/dist/remote.d.ts +0 -5
- package/dist/remote.d.ts.map +0 -1
- package/dist/remote.js +0 -770
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hasna/todos",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.40",
|
|
4
4
|
"description": "Universal task management for AI coding agents - CLI + MCP server + interactive TUI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"README.md"
|
|
44
44
|
],
|
|
45
45
|
"scripts": {
|
|
46
|
-
"build": "cd dashboard && bun run build && cd .. && bun build src/cli/index.tsx --outdir dist/cli --target bun --external ink --external react --external chalk --external @modelcontextprotocol/sdk && bun build src/mcp/index.ts --outdir dist/mcp --target bun --external @modelcontextprotocol/sdk && bun build src/server/index.ts --outdir dist/server --target bun && bun build src/sdk/index.ts --outdir dist/sdk --target bun && bun build src/index.ts src/mcp.ts src/registry.ts src/contracts.ts src/storage.ts --outdir dist --target bun && tsc --emitDeclarationOnly --outDir dist",
|
|
46
|
+
"build": "rm -rf dist dashboard/dist && cd dashboard && bun run build && cd .. && bun build src/cli/index.tsx --outdir dist/cli --target bun --external ink --external react --external chalk --external @modelcontextprotocol/sdk && bun build src/mcp/index.ts --outdir dist/mcp --target bun --external @modelcontextprotocol/sdk && bun build src/server/index.ts --outdir dist/server --target bun && bun build src/sdk/index.ts --outdir dist/sdk --target bun && bun build src/index.ts src/mcp.ts src/registry.ts src/contracts.ts src/storage.ts --outdir dist --target bun && tsc --emitDeclarationOnly --outDir dist",
|
|
47
47
|
"build:dashboard": "cd dashboard && bun run build",
|
|
48
48
|
"typecheck": "tsc --noEmit",
|
|
49
49
|
"test": "bun test",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cloud-commands.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/cloud-commands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGzC,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,QA6ZrD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"remote-commands.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/remote-commands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAqEzC,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA2S7D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"remote-index.d.ts","sourceRoot":"","sources":["../../src/cli/remote-index.ts"],"names":[],"mappings":""}
|
package/dist/db/pg-migrate.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export interface PgMigrationResult {
|
|
2
|
-
applied: number[];
|
|
3
|
-
alreadyApplied: number[];
|
|
4
|
-
errors: string[];
|
|
5
|
-
totalMigrations: number;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Apply all pending PostgreSQL migrations to the given database.
|
|
9
|
-
*
|
|
10
|
-
* @param connectionString - PostgreSQL connection string
|
|
11
|
-
* @returns Summary of which migrations were applied / skipped / errored.
|
|
12
|
-
*/
|
|
13
|
-
export declare function applyPgMigrations(connectionString: string): Promise<PgMigrationResult>;
|
|
14
|
-
//# sourceMappingURL=pg-migrate.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pg-migrate.d.ts","sourceRoot":"","sources":["../../src/db/pg-migrate.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;CACzB;AAED;;;;;GAKG;AACH,wBAAsB,iBAAiB,CACrC,gBAAgB,EAAE,MAAM,GACvB,OAAO,CAAC,iBAAiB,CAAC,CAuD5B"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* PostgreSQL migrations for open-todos cloud sync.
|
|
3
|
-
*
|
|
4
|
-
* Equivalent of the SQLite migrations in database.ts, translated for PostgreSQL.
|
|
5
|
-
* Each element is a standalone SQL string that must be executed in order.
|
|
6
|
-
*/
|
|
7
|
-
export declare const PG_MIGRATIONS: string[];
|
|
8
|
-
//# sourceMappingURL=pg-migrations.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pg-migrations.d.ts","sourceRoot":"","sources":["../../src/db/pg-migrations.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,aAAa,EAAE,MAAM,EAyrBjC,CAAC"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import type { Database } from "bun:sqlite";
|
|
2
|
-
export declare const LOCAL_TO_CLOUD_TABLES: readonly ["projects", "task_lists", "plans", "agents", "sessions", "tasks", "task_tags", "task_dependencies", "task_comments", "task_history", "task_templates", "template_tasks", "template_versions", "dispatches", "dispatch_logs", "task_checkpoints", "task_heartbeats", "task_files", "task_commits", "task_checklists", "task_relationships", "project_sources", "project_agent_roles", "handoffs", "context_snapshots", "task_traces", "cycles"];
|
|
3
|
-
export type LocalToCloudTable = typeof LOCAL_TO_CLOUD_TABLES[number];
|
|
4
|
-
export type LocalToCloudConflictStrategy = "skip" | "upsert" | "fail";
|
|
5
|
-
export interface CreateLocalCloudExportOptions {
|
|
6
|
-
db?: Database;
|
|
7
|
-
tables?: readonly LocalToCloudTable[];
|
|
8
|
-
includeEmptyTables?: boolean;
|
|
9
|
-
generatedAt?: string;
|
|
10
|
-
}
|
|
11
|
-
export interface LocalCloudExportManifest {
|
|
12
|
-
schemaVersion: 1;
|
|
13
|
-
kind: "hasna.todos.local-sqlite.export";
|
|
14
|
-
package: {
|
|
15
|
-
packageName: "@hasna/todos";
|
|
16
|
-
version: string;
|
|
17
|
-
};
|
|
18
|
-
generatedAt: string;
|
|
19
|
-
mode: "copy-only";
|
|
20
|
-
safety: {
|
|
21
|
-
deletesLocalData: false;
|
|
22
|
-
mutatesLocalData: false;
|
|
23
|
-
localRemainsSource: true;
|
|
24
|
-
};
|
|
25
|
-
tables: Record<string, {
|
|
26
|
-
count: number;
|
|
27
|
-
rows: Record<string, unknown>[];
|
|
28
|
-
}>;
|
|
29
|
-
counts: Record<string, number>;
|
|
30
|
-
totals: {
|
|
31
|
-
tables: number;
|
|
32
|
-
rows: number;
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
export interface PushLocalCloudExportOptions extends CreateLocalCloudExportOptions {
|
|
36
|
-
apiUrl?: string;
|
|
37
|
-
apiKey?: string;
|
|
38
|
-
dryRun?: boolean;
|
|
39
|
-
idempotencyKey?: string;
|
|
40
|
-
conflictStrategy?: LocalToCloudConflictStrategy;
|
|
41
|
-
fetchImpl?: typeof fetch;
|
|
42
|
-
}
|
|
43
|
-
export interface LocalCloudMigrationResult {
|
|
44
|
-
dryRun: boolean;
|
|
45
|
-
endpoint: string | null;
|
|
46
|
-
idempotencyKey: string;
|
|
47
|
-
conflictStrategy: LocalToCloudConflictStrategy;
|
|
48
|
-
manifest: LocalCloudExportManifest;
|
|
49
|
-
response: unknown | null;
|
|
50
|
-
}
|
|
51
|
-
export declare function createLocalCloudExport(options?: CreateLocalCloudExportOptions): LocalCloudExportManifest;
|
|
52
|
-
export declare function pushLocalCloudExport(options?: PushLocalCloudExportOptions): Promise<LocalCloudMigrationResult>;
|
|
53
|
-
//# sourceMappingURL=cloud-migration.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cloud-migration.d.ts","sourceRoot":"","sources":["../../src/lib/cloud-migration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAK3C,eAAO,MAAM,qBAAqB,0bA4BxB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,OAAO,qBAAqB,CAAC,MAAM,CAAC,CAAC;AACrE,MAAM,MAAM,4BAA4B,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;AAEtE,MAAM,WAAW,6BAA6B;IAC5C,EAAE,CAAC,EAAE,QAAQ,CAAC;IACd,MAAM,CAAC,EAAE,SAAS,iBAAiB,EAAE,CAAC;IACtC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,wBAAwB;IACvC,aAAa,EAAE,CAAC,CAAC;IACjB,IAAI,EAAE,iCAAiC,CAAC;IACxC,OAAO,EAAE;QACP,WAAW,EAAE,cAAc,CAAC;QAC5B,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,WAAW,CAAC;IAClB,MAAM,EAAE;QACN,gBAAgB,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
|
4
|
-
formatError: (e: unknown) => string;
|
|
5
|
-
};
|
|
6
|
-
/**
|
|
7
|
-
* Register enhanced cloud sync tools that stamp machine_id and synced_at.
|
|
8
|
-
* Replaces the generic @hasna/cloud registerCloudTools.
|
|
9
|
-
*/
|
|
10
|
-
export declare function registerCloudSyncTools(server: McpServer, { shouldRegisterTool, formatError }: Helpers): void;
|
|
11
|
-
export {};
|
|
12
|
-
//# sourceMappingURL=cloud.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cloud.d.ts","sourceRoot":"","sources":["../../../src/mcp/tools/cloud.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAKzE,KAAK,OAAO,GAAG;IACb,kBAAkB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;IAC9C,WAAW,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,MAAM,CAAC;CACrC,CAAC;AAyCF;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,SAAS,EAAE,EAAE,kBAAkB,EAAE,WAAW,EAAE,EAAE,OAAO,GAAG,IAAI,CAgX5G"}
|