@knowcode/doc-builder 1.9.29 → 1.9.31
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/assets/js/main.js +7 -0
- package/lib/core-builder.js +18 -1
- package/package.json +12 -2
- package/.claude/settings.local.json +0 -56
- package/CACHE-BUSTING-GUIDE.md +0 -82
- package/CLAUDE.md +0 -86
- package/CONTRIBUTING.md +0 -148
- package/GITHUB_SETUP.md +0 -203
- package/RELEASE-NOTES-1.7.5.md +0 -64
- package/Screenshot 2025-07-22 at 19.51.21.png +0 -0
- package/Screenshot 2025-07-26 at 17.06.49.png +0 -0
- package/add-user-clive.sql +0 -35
- package/add-user-lindsay-fixed.sql +0 -85
- package/add-user-lindsay.sql +0 -68
- package/add-user-pmorgan.sql +0 -35
- package/add-user-robbie.sql +0 -35
- package/add-wru-users.sql +0 -105
- package/debug-login.sql +0 -30
- package/doc-builder.config.js +0 -126
- package/doc-builder.config.js.backup.1753793768283 +0 -47
- package/doc-builder.config.js.backup.1753803964423 +0 -114
- package/doc-builder.config.js.backup.1753945707032 +0 -115
- package/doc-builder.config.js.backup.1754059241330 +0 -115
- package/doc-builder.config.js.backup.1754119567787 +0 -123
- package/doc-builder.config.js.backup.1754120048862 +0 -124
- package/doc-builder.config.js.backup.1754120529913 +0 -124
- package/doc-builder.config.js.backup.1754218469785 +0 -124
- package/doc-builder.config.js.backup.1754384764054 +0 -124
- package/doc-builder.config.js.backup.1754567425847 +0 -124
- package/doc-builder.config.js.backup.1754568137859 +0 -126
- package/doc-builder.config.js.backup.1754569388252 +0 -126
- package/doc-builder.config.js.backup.1754576694123 +0 -126
- package/doc-builder.config.js.backup.1755031374829 +0 -126
- package/doc-builder.config.js.backup.1755034500990 +0 -126
- package/grant-access.sql +0 -15
- package/html/11.png +0 -0
- package/html/404.html +0 -115
- package/html/README.html +0 -522
- package/html/Screenshot 2025-08-12 at 21.35.07.png +0 -0
- package/html/about-doc-builder.html +0 -491
- package/html/auth.js +0 -157
- package/html/claude-workflow-guide.html +0 -525
- package/html/css/notion-style.css +0 -2502
- package/html/documentation-index.html +0 -471
- package/html/guides/authentication-default-change.html +0 -370
- package/html/guides/authentication-guide.html +0 -509
- package/html/guides/cache-control-anti-pattern.html +0 -361
- package/html/guides/claude-workflow-guide.html +0 -1074
- package/html/guides/configuration-guide.html +0 -472
- package/html/guides/document-standards.html +0 -518
- package/html/guides/documentation-standards.html +0 -694
- package/html/guides/html-embedding-guide.html +0 -461
- package/html/guides/image-modal-guide.html +0 -515
- package/html/guides/next-steps-walkthrough.html +0 -638
- package/html/guides/phosphor-icons-guide.html +0 -584
- package/html/guides/private-directory-authentication-troubleshooting.html +0 -555
- package/html/guides/private-directory-authentication.html +0 -541
- package/html/guides/public-site-deployment.html +0 -431
- package/html/guides/search-engine-verification-guide.html +0 -542
- package/html/guides/seo-guide.html +0 -661
- package/html/guides/seo-optimization-guide.html +0 -887
- package/html/guides/supabase-auth-implementation-plan.html +0 -543
- package/html/guides/supabase-auth-integration-plan.html +0 -671
- package/html/guides/supabase-auth-setup-guide.html +0 -498
- package/html/guides/supabase-authentication-complete-guide.html +0 -866
- package/html/guides/troubleshooting-guide.html +0 -633
- package/html/guides/vercel-deployment-auth-setup.html +0 -337
- package/html/guides/windows-setup-guide.html +0 -859
- package/html/image-modal-test.html +0 -318
- package/html/index.html +0 -522
- package/html/js/auth.js +0 -157
- package/html/js/main.js +0 -1747
- package/html/launch/README.html +0 -297
- package/html/launch/bubble-plugin-specification.html +0 -933
- package/html/launch/go-to-market-strategy.html +0 -663
- package/html/launch/launch-announcements.html +0 -593
- package/html/login.html +0 -102
- package/html/logout.html +0 -18
- package/html/private/cache-control-anti-pattern.html +0 -429
- package/html/private/launch/README.html +0 -371
- package/html/private/launch/auth-cleanup-summary.html +0 -361
- package/html/private/launch/bubble-plugin-specification.html +0 -1007
- package/html/private/launch/go-to-market-strategy.html +0 -737
- package/html/private/launch/launch-announcements.html +0 -667
- package/html/private/launch/vercel-deployment-auth-setup.html +0 -417
- package/html/private/next-steps-walkthrough.html +0 -679
- package/html/private/supabase-auth-implementation-completed.html +0 -454
- package/html/private/supabase-auth-implementation-plan.html +0 -594
- package/html/private/supabase-auth-integration-plan.html +0 -704
- package/html/private/supabase-auth-setup-guide.html +0 -555
- package/html/private/test-private-doc.html +0 -302
- package/html/private/user-management-tooling.html +0 -601
- package/html/prompts/Screenshot 2025-08-02 at 08.49.55.png +0 -0
- package/html/prompts/beautiful-documentation-design.html +0 -784
- package/html/prompts/markdown-document-standards.html +0 -422
- package/html/prompts/project-rename-strategy-sasha-publish.html +0 -530
- package/html/robots.txt +0 -9
- package/html/sitemap.xml +0 -357
- package/html/test-questions/how-does-it-work%3F.html +0 -294
- package/html/test-questions/step-1%3A%20getting-started.html +0 -289
- package/html/test-questions/what-is-the-purpose.html +0 -293
- package/html/test-status.html +0 -281
- package/html/vercel-cli-setup-guide.html +0 -495
- package/html/vercel-first-time-setup-guide.html +0 -454
- package/html/vercel.json +0 -29
- package/html-static/11.png +0 -0
- package/html-static/404.html +0 -115
- package/html-static/README.html +0 -599
- package/html-static/Screenshot 2025-08-12 at 21.35.07.png +0 -0
- package/html-static/about-doc-builder.html +0 -568
- package/html-static/css/notion-style.css +0 -2502
- package/html-static/documentation-index.html +0 -548
- package/html-static/guides/authentication-default-change.html +0 -447
- package/html-static/guides/authentication-guide.html +0 -586
- package/html-static/guides/claude-workflow-guide.html +0 -1151
- package/html-static/guides/configuration-guide.html +0 -549
- package/html-static/guides/documentation-standards.html +0 -771
- package/html-static/guides/html-embedding-guide.html +0 -538
- package/html-static/guides/image-modal-guide.html +0 -592
- package/html-static/guides/phosphor-icons-guide.html +0 -661
- package/html-static/guides/private-directory-authentication-troubleshooting.html +0 -632
- package/html-static/guides/private-directory-authentication.html +0 -618
- package/html-static/guides/public-site-deployment.html +0 -508
- package/html-static/guides/search-engine-verification-guide.html +0 -619
- package/html-static/guides/seo-guide.html +0 -738
- package/html-static/guides/seo-optimization-guide.html +0 -964
- package/html-static/guides/supabase-authentication-complete-guide.html +0 -943
- package/html-static/guides/troubleshooting-guide.html +0 -710
- package/html-static/guides/windows-setup-guide.html +0 -936
- package/html-static/image-modal-test.html +0 -395
- package/html-static/index.html +0 -599
- package/html-static/js/main.js +0 -1747
- package/html-static/prompts/Screenshot 2025-08-02 at 08.49.55.png +0 -0
- package/html-static/prompts/beautiful-documentation-design.html +0 -861
- package/html-static/prompts/markdown-document-standards.html +0 -499
- package/html-static/prompts/project-rename-strategy-sasha-publish.html +0 -607
- package/html-static/robots.txt +0 -5
- package/html-static/sitemap.xml +0 -195
- package/html-static/test-questions/how-does-it-work%3F.html +0 -371
- package/html-static/test-questions/step-1%3A%20getting-started.html +0 -366
- package/html-static/test-questions/what-is-the-purpose.html +0 -370
- package/html-static/vercel-cli-setup-guide.html +0 -572
- package/html-static/vercel-first-time-setup-guide.html +0 -531
- package/manage-users.sql +0 -191
- package/migrate-to-domain-auth.sql +0 -47
- package/package/CACHE-BUSTING-GUIDE.md +0 -82
- package/package/CHANGELOG.md +0 -902
- package/package/README.md +0 -248
- package/package/assets/css/notion-style.css +0 -2211
- package/package/assets/js/auth.js +0 -67
- package/package/assets/js/main.js +0 -1565
- package/package/cli.js +0 -764
- package/package/index.js +0 -38
- package/package/knowcode-doc-builder-1.3.15.tgz +0 -0
- package/package/lib/builder.js +0 -32
- package/package/lib/config.js +0 -278
- package/package/lib/core-builder.js +0 -957
- package/package/lib/deploy.js +0 -497
- package/package/lib/dev-server.js +0 -96
- package/package/package.json +0 -34
- package/package/scripts/npx-runner.js +0 -27
- package/package/scripts/setup.js +0 -56
- package/package/test-cache-bust.sh +0 -43
- package/public-config.js +0 -22
- package/public-html/404.html +0 -115
- package/public-html/README.html +0 -149
- package/public-html/css/notion-style.css +0 -2036
- package/public-html/index.html +0 -149
- package/public-html/js/auth.js +0 -67
- package/public-html/js/main.js +0 -1485
- package/quick-test-commands.md +0 -40
- package/recordings/Screenshot 2025-07-24 at 18.22.01.png +0 -0
- package/recordings/mh-ls-22jul.txt +0 -2305
- package/screenshot.png +0 -0
- package/scripts/Screenshot 2025-07-23 at 15.39.41.png +0 -0
- package/setup-database-v2.sql +0 -53
- package/setup-database.sql +0 -41
- package/test-auth-config.js +0 -17
- package/test-cache-bust.sh +0 -43
- package/test-docs/README.md +0 -39
- package/test-html/404.html +0 -115
- package/test-html/README.html +0 -172
- package/test-html/auth.js +0 -97
- package/test-html/css/notion-style.css +0 -2036
- package/test-html/index.html +0 -172
- package/test-html/js/auth.js +0 -97
- package/test-html/js/main.js +0 -1485
- package/test-html/login.html +0 -102
- package/test-html/logout.html +0 -18
- package/update-domain.sql +0 -9
- package/user-access-view.sql +0 -49
- package/user-management/README.md +0 -301
- package/user-management/add-users.sh +0 -776
- package/user-management/create-user.js +0 -65
- package/user-management/users.txt +0 -15
- package/view-all-users.sql +0 -40
- package/wru-auth-config.js +0 -17
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
// Helper script to create users using Supabase Admin API
|
|
4
|
-
// This requires the service_role key which has admin privileges
|
|
5
|
-
|
|
6
|
-
const https = require('https');
|
|
7
|
-
const { createClient } = require('@supabase/supabase-js');
|
|
8
|
-
|
|
9
|
-
// Get arguments
|
|
10
|
-
const [,, email, projectUrl, serviceKey] = process.argv;
|
|
11
|
-
|
|
12
|
-
if (!email || !projectUrl || !serviceKey) {
|
|
13
|
-
console.error('Usage: node create-user.js <email> <project-url> <service-role-key>');
|
|
14
|
-
console.error('Example: node create-user.js user@example.com https://xxx.supabase.co YOUR_SERVICE_KEY');
|
|
15
|
-
process.exit(1);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
// Create Supabase client with service role key
|
|
19
|
-
const supabase = createClient(projectUrl, serviceKey, {
|
|
20
|
-
auth: {
|
|
21
|
-
autoRefreshToken: false,
|
|
22
|
-
persistSession: false
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
async function createUser(email) {
|
|
27
|
-
try {
|
|
28
|
-
// Create user with Admin API
|
|
29
|
-
const { data, error } = await supabase.auth.admin.createUser({
|
|
30
|
-
email: email,
|
|
31
|
-
email_confirm: true,
|
|
32
|
-
// Generate a random password (user will reset it)
|
|
33
|
-
password: Math.random().toString(36).slice(2) + Math.random().toString(36).slice(2).toUpperCase()
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
if (error) {
|
|
37
|
-
if (error.message.includes('already been registered')) {
|
|
38
|
-
console.log('User already exists');
|
|
39
|
-
return true;
|
|
40
|
-
}
|
|
41
|
-
throw error;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
console.log('User created successfully');
|
|
45
|
-
|
|
46
|
-
// Send password reset email
|
|
47
|
-
const { error: resetError } = await supabase.auth.resetPasswordForEmail(email);
|
|
48
|
-
|
|
49
|
-
if (resetError) {
|
|
50
|
-
console.error('Warning: Could not send password reset email:', resetError.message);
|
|
51
|
-
} else {
|
|
52
|
-
console.log('Password reset email sent');
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
return true;
|
|
56
|
-
} catch (error) {
|
|
57
|
-
console.error('Error creating user:', error.message);
|
|
58
|
-
return false;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
// Run the function
|
|
63
|
-
createUser(email).then(success => {
|
|
64
|
-
process.exit(success ? 0 : 1);
|
|
65
|
-
});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# Example users file for bulk user additions
|
|
2
|
-
# One email per line
|
|
3
|
-
# Lines starting with # are ignored
|
|
4
|
-
# Empty lines are ignored
|
|
5
|
-
|
|
6
|
-
# Example users:
|
|
7
|
-
john@example.com
|
|
8
|
-
jane@example.com
|
|
9
|
-
admin@mycompany.com
|
|
10
|
-
|
|
11
|
-
# Real users for WRU project:
|
|
12
|
-
# pmorgan@wru.cymru
|
|
13
|
-
# clive@hyperforma.co.uk
|
|
14
|
-
# robbie.macintosh@marbledropper.com
|
|
15
|
-
# lindsay@knowcode.tech
|
package/view-all-users.sql
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
-- =====================================================
|
|
2
|
-
-- VIEW ALL USERS WITH ACCESS
|
|
3
|
-
-- Site: https://wru-bid-analysis.vercel.app/
|
|
4
|
-
-- =====================================================
|
|
5
|
-
|
|
6
|
-
-- See everyone who has access to the WRU site
|
|
7
|
-
SELECT
|
|
8
|
-
u.email,
|
|
9
|
-
u.created_at as user_created,
|
|
10
|
-
da.created_at as access_granted,
|
|
11
|
-
CASE
|
|
12
|
-
WHEN u.last_sign_in_at IS NULL THEN '❌ Never logged in'
|
|
13
|
-
ELSE '✅ Has logged in'
|
|
14
|
-
END as login_status,
|
|
15
|
-
u.last_sign_in_at
|
|
16
|
-
FROM docbuilder_access da
|
|
17
|
-
JOIN auth.users u ON u.id = da.user_id
|
|
18
|
-
WHERE da.site_id = '4d8a53bf-dcdd-48c0-98e0-cd1451518735'
|
|
19
|
-
ORDER BY da.created_at DESC;
|
|
20
|
-
|
|
21
|
-
-- Count total users with access
|
|
22
|
-
SELECT COUNT(*) as total_users_with_access
|
|
23
|
-
FROM docbuilder_access
|
|
24
|
-
WHERE site_id = '4d8a53bf-dcdd-48c0-98e0-cd1451518735';
|
|
25
|
-
|
|
26
|
-
-- Check which of the 4 users exist in Supabase
|
|
27
|
-
SELECT
|
|
28
|
-
email,
|
|
29
|
-
CASE
|
|
30
|
-
WHEN id IS NOT NULL THEN '✅ User exists'
|
|
31
|
-
ELSE '❌ Not created yet'
|
|
32
|
-
END as status
|
|
33
|
-
FROM (
|
|
34
|
-
VALUES
|
|
35
|
-
('lindsay@knowcode.tech'),
|
|
36
|
-
('pmorgan@wru.cymru'),
|
|
37
|
-
('clive@hyperforma.co.uk'),
|
|
38
|
-
('robbie.macintosh@marbledropper.com')
|
|
39
|
-
) AS emails(email)
|
|
40
|
-
LEFT JOIN auth.users u ON u.email = emails.email;
|
package/wru-auth-config.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// doc-builder.config.js - Configuration with Supabase Authentication
|
|
2
|
-
module.exports = {
|
|
3
|
-
siteName: 'WRU Bid Analysis Documentation',
|
|
4
|
-
siteDescription: 'Analysis and documentation for WRU bidding process',
|
|
5
|
-
|
|
6
|
-
// Enable Supabase authentication
|
|
7
|
-
features: {
|
|
8
|
-
authentication: 'supabase' // This turns on auth (set to false for public)
|
|
9
|
-
},
|
|
10
|
-
|
|
11
|
-
// Supabase configuration
|
|
12
|
-
auth: {
|
|
13
|
-
supabaseUrl: 'https://xcihhnfcitjrwbynxmka.supabase.co',
|
|
14
|
-
supabaseAnonKey: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InhjaWhobmZjaXRqcndieW54bWthIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTM0Mzc2MzcsImV4cCI6MjA2OTAxMzYzN30.zvWp3JFIR8fBIiwuFF5gqOR_Kxb42baZS5fsBz60XOY',
|
|
15
|
-
siteId: '4d8a53bf-dcdd-48c0-98e0-cd1451518735'
|
|
16
|
-
}
|
|
17
|
-
};
|