@lifeaitools/clauth 1.30.2 → 1.30.3

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 CHANGED
@@ -1,68 +1,68 @@
1
- {
2
- "name": "@lifeaitools/clauth",
3
- "version": "1.30.2",
4
- "description": "Hardware-bound credential vault for the LIFEAI infrastructure stack",
5
- "type": "module",
6
- "bin": {
7
- "clauth": "./cli/index.js"
8
- },
9
- "scripts": {
10
- "build": "bash scripts/build.sh",
11
- "test": "node --test cli/commands/scrub.test.js cli/api.classify.test.js test/studio-debug.test.mjs && node test-auth-verdict.mjs",
12
- "test:studio-debug": "node --test test/studio-debug.test.mjs",
13
- "test:agent-pool": "node test/agent-pool.test.mjs",
14
- "test:call-agent-10": "node test/call-agent-10-skills.test.mjs",
15
- "test:call-agent-guard": "node test/call-agent-guard.test.mjs",
16
- "test:tintin-settings": "node test/tintin-settings.test.mjs",
17
- "postinstall": "node scripts/postinstall.js",
18
- "worker:start": "node cli/index.js serve",
19
- "worker:stop": "curl -s http://127.0.0.1:52437/shutdown 2>nul || taskkill /F /IM cloudflared.exe 2>nul & exit 0",
20
- "worker:restart": "npm run worker:stop && timeout /t 3 /nobreak >nul && npm run worker:start"
21
- },
22
- "dependencies": {
23
- "@vscode/ripgrep": "^1.15.9",
24
- "chalk": "^5.3.0",
25
- "commander": "^12.1.0",
26
- "conf": "^13.0.0",
27
- "fast-glob": "^3.3.2",
28
- "inquirer": "^10.1.0",
29
- "node-fetch": "^3.3.2",
30
- "ora": "^8.1.0",
31
- "typescript": "^5.9.3"
32
- },
33
- "engines": {
34
- "node": ">=18.0.0"
35
- },
36
- "keywords": [
37
- "lifeai",
38
- "credentials",
39
- "vault",
40
- "cli",
41
- "prt"
42
- ],
43
- "author": "Dave Ladouceur <dave@life.ai>",
44
- "license": "MIT",
45
- "repository": {
46
- "type": "git",
47
- "url": "https://github.com/LIFEAI/clauth.git"
48
- },
49
- "devDependencies": {
50
- "javascript-obfuscator": "^5.3.0"
51
- },
52
- "files": [
53
- "cli/",
54
- "scripts/bin/",
55
- "scripts/bootstrap.cjs",
56
- "scripts/build.sh",
57
- "scripts/postinstall.js",
58
- "supabase/",
59
- ".clauth-skill/",
60
- "install.sh",
61
- "install.ps1",
62
- "README.md"
63
- ],
64
- "publishConfig": {
65
- "access": "public"
66
- },
67
- "homepage": "https://github.com/LIFEAI/clauth"
68
- }
1
+ {
2
+ "name": "@lifeaitools/clauth",
3
+ "version": "1.30.3",
4
+ "description": "Hardware-bound credential vault for the LIFEAI infrastructure stack",
5
+ "type": "module",
6
+ "bin": {
7
+ "clauth": "./cli/index.js"
8
+ },
9
+ "scripts": {
10
+ "build": "bash scripts/build.sh",
11
+ "test": "node --test cli/commands/scrub.test.js cli/api.classify.test.js test/studio-debug.test.mjs && node test-auth-verdict.mjs",
12
+ "test:studio-debug": "node --test test/studio-debug.test.mjs",
13
+ "test:agent-pool": "node test/agent-pool.test.mjs",
14
+ "test:call-agent-10": "node test/call-agent-10-skills.test.mjs",
15
+ "test:call-agent-guard": "node test/call-agent-guard.test.mjs",
16
+ "test:tintin-settings": "node test/tintin-settings.test.mjs",
17
+ "postinstall": "node scripts/postinstall.js",
18
+ "worker:start": "node cli/index.js serve",
19
+ "worker:stop": "curl -s http://127.0.0.1:52437/shutdown 2>nul || taskkill /F /IM cloudflared.exe 2>nul & exit 0",
20
+ "worker:restart": "npm run worker:stop && timeout /t 3 /nobreak >nul && npm run worker:start"
21
+ },
22
+ "dependencies": {
23
+ "@vscode/ripgrep": "^1.15.9",
24
+ "chalk": "^5.3.0",
25
+ "commander": "^12.1.0",
26
+ "conf": "^13.0.0",
27
+ "fast-glob": "^3.3.2",
28
+ "inquirer": "^10.1.0",
29
+ "node-fetch": "^3.3.2",
30
+ "ora": "^8.1.0",
31
+ "typescript": "^5.9.3"
32
+ },
33
+ "engines": {
34
+ "node": ">=18.0.0"
35
+ },
36
+ "keywords": [
37
+ "lifeai",
38
+ "credentials",
39
+ "vault",
40
+ "cli",
41
+ "prt"
42
+ ],
43
+ "author": "Dave Ladouceur <dave@life.ai>",
44
+ "license": "MIT",
45
+ "repository": {
46
+ "type": "git",
47
+ "url": "https://github.com/LIFEAI/clauth.git"
48
+ },
49
+ "devDependencies": {
50
+ "javascript-obfuscator": "^5.3.0"
51
+ },
52
+ "files": [
53
+ "cli/",
54
+ "scripts/bin/",
55
+ "scripts/bootstrap.cjs",
56
+ "scripts/build.sh",
57
+ "scripts/postinstall.js",
58
+ "supabase/",
59
+ ".clauth-skill/",
60
+ "install.sh",
61
+ "install.ps1",
62
+ "README.md"
63
+ ],
64
+ "publishConfig": {
65
+ "access": "public"
66
+ },
67
+ "homepage": "https://github.com/LIFEAI/clauth"
68
+ }
@@ -27,18 +27,18 @@ create table if not exists public.clauth_services (
27
27
  -- ============================================================
28
28
  -- Machine Registry (hardware fingerprints — hashed only)
29
29
  -- ============================================================
30
- create table if not exists public.clauth_machines (
31
- id uuid primary key default gen_random_uuid(),
32
- install_id text not null default 'default', -- logical vault install / owner group
33
- machine_hash text not null unique, -- SHA256(machine_id + os_install_id)
34
- label text, -- e.g. 'Dave-Desktop-Win11'
35
- hmac_seed_hash text not null, -- SHA256 of the HMAC seed stored in vault
36
- enabled boolean not null default true,
37
- fail_count integer not null default 0,
38
- locked boolean not null default false,
39
- created_at timestamptz not null default now(),
40
- last_seen timestamptz
41
- );
30
+ create table if not exists public.clauth_machines (
31
+ id uuid primary key default gen_random_uuid(),
32
+ install_id text not null default 'default', -- logical vault install / owner group
33
+ machine_hash text not null unique, -- SHA256(machine_id + os_install_id)
34
+ label text, -- e.g. 'Dave-Desktop-Win11'
35
+ hmac_seed_hash text not null, -- SHA256 of the HMAC seed stored in vault
36
+ enabled boolean not null default true,
37
+ fail_count integer not null default 0,
38
+ locked boolean not null default false,
39
+ created_at timestamptz not null default now(),
40
+ last_seen timestamptz
41
+ );
42
42
 
43
43
  -- ============================================================
44
44
  -- Audit Log
@@ -1,13 +1,13 @@
1
- -- clauth_config: key/value store for daemon configuration
2
- -- Used to persist tunnel hostname and other daemon settings
3
- CREATE TABLE IF NOT EXISTS clauth_config (
4
- key text PRIMARY KEY,
5
- value jsonb NOT NULL,
6
- updated_at timestamptz DEFAULT now()
7
- );
8
-
9
- -- RLS: only service role can access (same pattern as other clauth tables)
10
- ALTER TABLE clauth_config ENABLE ROW LEVEL SECURITY;
11
-
12
- -- Seed: no tunnel by default (user must run clauth tunnel setup)
13
- -- INSERT INTO clauth_config (key, value) VALUES ('tunnel_hostname', 'null');
1
+ -- clauth_config: key/value store for daemon configuration
2
+ -- Used to persist tunnel hostname and other daemon settings
3
+ CREATE TABLE IF NOT EXISTS clauth_config (
4
+ key text PRIMARY KEY,
5
+ value jsonb NOT NULL,
6
+ updated_at timestamptz DEFAULT now()
7
+ );
8
+
9
+ -- RLS: only service role can access (same pattern as other clauth tables)
10
+ ALTER TABLE clauth_config ENABLE ROW LEVEL SECURITY;
11
+
12
+ -- Seed: no tunnel by default (user must run clauth tunnel setup)
13
+ -- INSERT INTO clauth_config (key, value) VALUES ('tunnel_hostname', 'null');
@@ -1,39 +1,39 @@
1
- -- ============================================================
2
- -- clauth machine enrollment
3
- -- Migration: 003_machine_enrollments.sql
4
- -- ============================================================
5
-
6
- alter table public.clauth_machines
7
- add column if not exists install_id text not null default 'default';
8
-
9
- create index if not exists clauth_machines_install_id_idx
10
- on public.clauth_machines (install_id);
11
-
12
- create table if not exists public.clauth_machine_enrollments (
13
- id uuid primary key default gen_random_uuid(),
14
- install_id text not null default 'default',
15
- token_hash text not null unique,
16
- label text,
17
- created_by_machine_hash text not null references public.clauth_machines(machine_hash) on delete cascade,
18
- redeemed_by_machine_hash text references public.clauth_machines(machine_hash) on delete set null,
19
- expires_at timestamptz not null,
20
- consumed_at timestamptz,
21
- created_at timestamptz not null default now()
22
- );
23
-
24
- create index if not exists clauth_machine_enrollments_install_idx
25
- on public.clauth_machine_enrollments (install_id, expires_at);
26
-
27
- alter table public.clauth_machine_enrollments enable row level security;
28
-
29
- do $$ begin
30
- if not exists (
31
- select 1
32
- from pg_policies
33
- where policyname = 'no_anon_machine_enrollments'
34
- and tablename = 'clauth_machine_enrollments'
35
- ) then
36
- create policy "no_anon_machine_enrollments"
37
- on public.clauth_machine_enrollments for all using (false);
38
- end if;
39
- end $$;
1
+ -- ============================================================
2
+ -- clauth machine enrollment
3
+ -- Migration: 003_machine_enrollments.sql
4
+ -- ============================================================
5
+
6
+ alter table public.clauth_machines
7
+ add column if not exists install_id text not null default 'default';
8
+
9
+ create index if not exists clauth_machines_install_id_idx
10
+ on public.clauth_machines (install_id);
11
+
12
+ create table if not exists public.clauth_machine_enrollments (
13
+ id uuid primary key default gen_random_uuid(),
14
+ install_id text not null default 'default',
15
+ token_hash text not null unique,
16
+ label text,
17
+ created_by_machine_hash text not null references public.clauth_machines(machine_hash) on delete cascade,
18
+ redeemed_by_machine_hash text references public.clauth_machines(machine_hash) on delete set null,
19
+ expires_at timestamptz not null,
20
+ consumed_at timestamptz,
21
+ created_at timestamptz not null default now()
22
+ );
23
+
24
+ create index if not exists clauth_machine_enrollments_install_idx
25
+ on public.clauth_machine_enrollments (install_id, expires_at);
26
+
27
+ alter table public.clauth_machine_enrollments enable row level security;
28
+
29
+ do $$ begin
30
+ if not exists (
31
+ select 1
32
+ from pg_policies
33
+ where policyname = 'no_anon_machine_enrollments'
34
+ and tablename = 'clauth_machine_enrollments'
35
+ ) then
36
+ create policy "no_anon_machine_enrollments"
37
+ on public.clauth_machine_enrollments for all using (false);
38
+ end if;
39
+ end $$;