hazo_files 1.5.2 → 1.6.0

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,10 @@
1
+ -- hazo_files schema — migration 004: actor tracking
2
+ -- Adds changed_by column to track who performed each mutation.
3
+ --
4
+ -- SQLite version (commented):
5
+ -- ALTER TABLE hazo_files ADD COLUMN changed_by TEXT;
6
+ -- CREATE INDEX IF NOT EXISTS idx_hazo_files_changed_by ON hazo_files (changed_by);
7
+
8
+ -- PostgreSQL version (active):
9
+ ALTER TABLE hazo_files ADD COLUMN IF NOT EXISTS changed_by UUID;
10
+ CREATE INDEX IF NOT EXISTS idx_hazo_files_changed_by ON hazo_files (changed_by);
@@ -0,0 +1,10 @@
1
+ -- hazo_files schema — migration 005: URL import provenance
2
+ -- Adds source_url column to track where a file was imported from.
3
+ --
4
+ -- SQLite version (commented):
5
+ -- ALTER TABLE hazo_files ADD COLUMN source_url TEXT;
6
+ -- CREATE INDEX IF NOT EXISTS idx_hazo_files_source_url ON hazo_files (source_url);
7
+
8
+ -- PostgreSQL version (active):
9
+ ALTER TABLE hazo_files ADD COLUMN IF NOT EXISTS source_url TEXT;
10
+ CREATE INDEX IF NOT EXISTS idx_hazo_files_source_url ON hazo_files (source_url);
@@ -0,0 +1,20 @@
1
+ -- hazo_files schema — migration 006: per-scope quota tracking
2
+ -- Opt-in table. A scope without a row has no quota and uploads succeed (fail-open).
3
+ --
4
+ -- SQLite version (commented):
5
+ -- CREATE TABLE IF NOT EXISTS hazo_file_quotas (
6
+ -- scope_id TEXT PRIMARY KEY,
7
+ -- byte_limit INTEGER NOT NULL,
8
+ -- byte_used INTEGER NOT NULL DEFAULT 0,
9
+ -- updated_at TEXT NOT NULL DEFAULT (datetime('now'))
10
+ -- );
11
+ -- CREATE INDEX IF NOT EXISTS idx_hazo_file_quotas_used ON hazo_file_quotas (byte_used);
12
+
13
+ -- PostgreSQL version (active):
14
+ CREATE TABLE IF NOT EXISTS hazo_file_quotas (
15
+ scope_id UUID PRIMARY KEY,
16
+ byte_limit BIGINT NOT NULL,
17
+ byte_used BIGINT NOT NULL DEFAULT 0,
18
+ updated_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
19
+ );
20
+ CREATE INDEX IF NOT EXISTS idx_hazo_file_quotas_used ON hazo_file_quotas (byte_used);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hazo_files",
3
- "version": "1.5.2",
3
+ "version": "1.6.0",
4
4
  "description": "File management including integration to cloud files",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -94,6 +94,7 @@
94
94
  "@types/react-dom": "^18.3.0",
95
95
  "dropbox": "^10.34.0",
96
96
  "googleapis": "^140.0.1",
97
+ "hazo_jobs": "^0.8.0",
97
98
  "hazo_llm_api": "^1.2.7",
98
99
  "jsdom": "^28.1.0",
99
100
  "react": "^18.2.0",
@@ -112,8 +113,10 @@
112
113
  "googleapis": "^140.0.0",
113
114
  "hazo_connect": "^2.6.0",
114
115
  "hazo_debug": "^2.0.0",
116
+ "hazo_jobs": "^0.8.0",
115
117
  "hazo_llm_api": "^1.2.0",
116
118
  "hazo_logs": "^1.0.13",
119
+ "hazo_secure": "^0.5.0",
117
120
  "react": "^18.0.0",
118
121
  "react-dom": "^18.0.0",
119
122
  "server-only": ">=0.0.1",
@@ -151,6 +154,12 @@
151
154
  "server-only": {
152
155
  "optional": true
153
156
  },
157
+ "hazo_jobs": {
158
+ "optional": true
159
+ },
160
+ "hazo_secure": {
161
+ "optional": true
162
+ },
154
163
  "sonner": {
155
164
  "optional": true
156
165
  },