@hasna/files 0.1.4 → 0.1.5

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.
@@ -0,0 +1,4 @@
1
+ /**
2
+ * PostgreSQL migrations for open-files cloud sync.
3
+ */
4
+ export declare const PG_MIGRATIONS: string[];
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export { getDb, DB_PATH } from "./db/database.js";
2
+ export { PG_MIGRATIONS } from "./db/pg-migrations.js";
2
3
  export { getCurrentMachine, listMachines, getMachine, upsertMachine } from "./db/machines.js";
3
4
  export { createSource, getSource, listSources, updateSource, deleteSource, markSourceIndexed } from "./db/sources.js";
4
5
  export { upsertFile, getFile, listFiles, searchFiles as searchFilesDb, markFileDeleted, deleteFile, getFileByPath, refreshAllFts } from "./db/files.js";
package/dist/mcp/index.js CHANGED
@@ -40027,7 +40027,7 @@ var init_dist_es9 = __esm(() => {
40027
40027
  var require_package2 = __commonJS((exports, module) => {
40028
40028
  module.exports = {
40029
40029
  name: "@hasna/files",
40030
- version: "0.1.4",
40030
+ version: "0.1.5",
40031
40031
  description: "Agent-first file management \u2014 index local folders and S3 buckets, tag, search, and retrieve files via CLI + MCP",
40032
40032
  type: "module",
40033
40033
  main: "dist/index.js",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hasna/files",
3
- "version": "0.1.4",
4
- "description": "Agent-first file management index local folders and S3 buckets, tag, search, and retrieve files via CLI + MCP",
3
+ "version": "0.1.5",
4
+ "description": "Agent-first file management \u2014 index local folders and S3 buckets, tag, search, and retrieve files via CLI + MCP",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -33,7 +33,8 @@
33
33
  "test": "bun test",
34
34
  "dev:cli": "bun run src/cli/index.tsx",
35
35
  "dev:mcp": "bun run src/mcp/index.ts",
36
- "dev:serve": "bun run src/server/index.ts"
36
+ "dev:serve": "bun run src/server/index.ts",
37
+ "postinstall": "mkdir -p $HOME/.hasna/files 2>/dev/null || true"
37
38
  },
38
39
  "keywords": [
39
40
  "files",
@@ -75,4 +76,4 @@
75
76
  "bun-types": "latest",
76
77
  "typescript": "^5.8.2"
77
78
  }
78
- }
79
+ }