@roomi-fields/notebooklm-mcp 1.5.7 → 1.5.9
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/LICENSE +22 -22
- package/README.md +219 -219
- package/deployment/INDEX.md +0 -0
- package/deployment/PACKAGE-FILES.txt +180 -180
- package/deployment/QUICK-START.md +0 -0
- package/deployment/docs/01-INSTALL.md +21 -1
- package/deployment/docs/02-CONFIGURATION.md +0 -0
- package/deployment/docs/03-API.md +16 -10
- package/deployment/docs/04-N8N-INTEGRATION.md +0 -0
- package/deployment/docs/05-TROUBLESHOOTING.md +19 -1
- package/deployment/docs/06-NOTEBOOK-LIBRARY.md +9 -9
- package/deployment/docs/07-AUTO-DISCOVERY.md +6 -15
- package/deployment/docs/08-DOCKER.md +0 -0
- package/deployment/docs/08-WSL-USAGE.md +7 -7
- package/deployment/docs/09-MULTI-INTERFACE.md +6 -6
- package/deployment/docs/10-CONTENT-MANAGEMENT.md +15 -19
- package/deployment/docs/11-MULTI-ACCOUNT.md +1 -1
- package/deployment/docs/README.md +4 -50
- package/deployment/scripts/README.md +0 -0
- package/deployment/scripts/install.ps1 +114 -114
- package/deployment/scripts/setup-auth.ps1 +217 -217
- package/deployment/scripts/start-server.ps1 +72 -72
- package/deployment/scripts/stop-server.ps1 +51 -51
- package/deployment/scripts/test-api.ps1 +651 -651
- package/deployment/scripts/test-auth.ps1 +0 -0
- package/deployment/scripts/test-auto-discovery.ps1 +295 -295
- package/deployment/scripts/test-cors.ps1 +398 -398
- package/deployment/scripts/test-errors.ps1 +581 -581
- package/deployment/scripts/test-server.ps1 +140 -140
- package/deployment/scripts/test-sessions.ps1 +426 -426
- package/deployment/scripts/test-validation.ps1 +299 -299
- package/dist/accounts/account-manager.d.ts +0 -0
- package/dist/accounts/account-manager.d.ts.map +0 -0
- package/dist/accounts/account-manager.js +0 -0
- package/dist/accounts/account-manager.js.map +0 -0
- package/dist/accounts/auto-login-manager.d.ts +0 -0
- package/dist/accounts/auto-login-manager.d.ts.map +0 -0
- package/dist/accounts/auto-login-manager.js +0 -0
- package/dist/accounts/auto-login-manager.js.map +0 -0
- package/dist/accounts/crypto.d.ts +0 -0
- package/dist/accounts/crypto.d.ts.map +0 -0
- package/dist/accounts/crypto.js +0 -0
- package/dist/accounts/crypto.js.map +0 -0
- package/dist/accounts/index.d.ts +0 -0
- package/dist/accounts/index.d.ts.map +0 -0
- package/dist/accounts/index.js +0 -0
- package/dist/accounts/index.js.map +0 -0
- package/dist/accounts/types.d.ts +0 -0
- package/dist/accounts/types.d.ts.map +0 -0
- package/dist/accounts/types.js +0 -0
- package/dist/accounts/types.js.map +0 -0
- package/dist/auth/auth-manager.d.ts +0 -0
- package/dist/auth/auth-manager.d.ts.map +0 -0
- package/dist/auth/auth-manager.js +0 -0
- package/dist/auth/auth-manager.js.map +0 -0
- package/dist/auto-discovery/auto-discovery.d.ts +0 -0
- package/dist/auto-discovery/auto-discovery.d.ts.map +0 -0
- package/dist/auto-discovery/auto-discovery.js +0 -0
- package/dist/auto-discovery/auto-discovery.js.map +0 -0
- package/dist/cli/accounts.d.ts +0 -0
- package/dist/cli/accounts.d.ts.map +0 -0
- package/dist/cli/accounts.js +0 -0
- package/dist/cli/accounts.js.map +0 -0
- package/dist/cli/de-auth.d.ts +0 -0
- package/dist/cli/de-auth.d.ts.map +0 -0
- package/dist/cli/de-auth.js +0 -0
- package/dist/cli/de-auth.js.map +0 -0
- package/dist/cli/help.d.ts +0 -0
- package/dist/cli/help.d.ts.map +0 -0
- package/dist/cli/help.js +5 -0
- package/dist/cli/help.js.map +1 -1
- package/dist/cli/setup-auth.d.ts +0 -0
- package/dist/cli/setup-auth.d.ts.map +0 -0
- package/dist/cli/setup-auth.js +0 -0
- package/dist/cli/setup-auth.js.map +0 -0
- package/dist/config.d.ts +0 -0
- package/dist/config.d.ts.map +0 -0
- package/dist/config.js +0 -0
- package/dist/config.js.map +0 -0
- package/dist/content/content-generator.d.ts +0 -0
- package/dist/content/content-generator.d.ts.map +0 -0
- package/dist/content/content-generator.js +0 -0
- package/dist/content/content-generator.js.map +0 -0
- package/dist/content/content-manager.d.ts +8 -0
- package/dist/content/content-manager.d.ts.map +1 -1
- package/dist/content/content-manager.js +411 -67
- package/dist/content/content-manager.js.map +1 -1
- package/dist/content/content-templates.d.ts +0 -0
- package/dist/content/content-templates.d.ts.map +0 -0
- package/dist/content/content-templates.js +0 -0
- package/dist/content/content-templates.js.map +0 -0
- package/dist/content/index.d.ts +0 -0
- package/dist/content/index.d.ts.map +0 -0
- package/dist/content/index.js +0 -0
- package/dist/content/index.js.map +0 -0
- package/dist/content/types.d.ts +0 -0
- package/dist/content/types.d.ts.map +0 -0
- package/dist/content/types.js +0 -0
- package/dist/content/types.js.map +0 -0
- package/dist/errors.d.ts +0 -0
- package/dist/errors.d.ts.map +0 -0
- package/dist/errors.js +0 -0
- package/dist/errors.js.map +0 -0
- package/dist/http-wrapper.d.ts +0 -0
- package/dist/http-wrapper.d.ts.map +0 -0
- package/dist/http-wrapper.js +0 -0
- package/dist/http-wrapper.js.map +0 -0
- package/dist/i18n/en.json +0 -0
- package/dist/i18n/fr.json +0 -0
- package/dist/i18n/index.d.ts +0 -0
- package/dist/i18n/index.d.ts.map +0 -0
- package/dist/i18n/index.js +0 -0
- package/dist/i18n/index.js.map +0 -0
- package/dist/index.d.ts +0 -0
- package/dist/index.d.ts.map +0 -0
- package/dist/index.js +8 -3
- package/dist/index.js.map +1 -1
- package/dist/library/notebook-library.d.ts +0 -0
- package/dist/library/notebook-library.d.ts.map +0 -0
- package/dist/library/notebook-library.js +0 -0
- package/dist/library/notebook-library.js.map +0 -0
- package/dist/library/types.d.ts +0 -0
- package/dist/library/types.d.ts.map +0 -0
- package/dist/library/types.js +0 -0
- package/dist/library/types.js.map +0 -0
- package/dist/session/browser-session.d.ts +12 -0
- package/dist/session/browser-session.d.ts.map +1 -1
- package/dist/session/browser-session.js +156 -32
- package/dist/session/browser-session.js.map +1 -1
- package/dist/session/session-manager.d.ts +0 -0
- package/dist/session/session-manager.d.ts.map +0 -0
- package/dist/session/session-manager.js +0 -0
- package/dist/session/session-manager.js.map +0 -0
- package/dist/session/shared-context-manager.d.ts +0 -0
- package/dist/session/shared-context-manager.d.ts.map +0 -0
- package/dist/session/shared-context-manager.js +0 -0
- package/dist/session/shared-context-manager.js.map +0 -0
- package/dist/startup/startup-manager.d.ts +0 -0
- package/dist/startup/startup-manager.d.ts.map +0 -0
- package/dist/startup/startup-manager.js +0 -0
- package/dist/startup/startup-manager.js.map +0 -0
- package/dist/stdio-http-proxy.d.ts +0 -0
- package/dist/stdio-http-proxy.d.ts.map +0 -0
- package/dist/stdio-http-proxy.js +7 -2
- package/dist/stdio-http-proxy.js.map +1 -1
- package/dist/tools/index.d.ts +0 -0
- package/dist/tools/index.d.ts.map +0 -0
- package/dist/tools/index.js +0 -0
- package/dist/tools/index.js.map +0 -0
- package/dist/types.d.ts +0 -0
- package/dist/types.d.ts.map +0 -0
- package/dist/types.js +0 -0
- package/dist/types.js.map +0 -0
- package/dist/utils/citation-extractor.d.ts +0 -0
- package/dist/utils/citation-extractor.d.ts.map +0 -0
- package/dist/utils/citation-extractor.js +67 -67
- package/dist/utils/citation-extractor.js.map +0 -0
- package/dist/utils/cleanup-manager.d.ts +0 -0
- package/dist/utils/cleanup-manager.d.ts.map +0 -0
- package/dist/utils/cleanup-manager.js +0 -0
- package/dist/utils/cleanup-manager.js.map +0 -0
- package/dist/utils/logger.d.ts +0 -0
- package/dist/utils/logger.d.ts.map +0 -0
- package/dist/utils/logger.js +0 -0
- package/dist/utils/logger.js.map +0 -0
- package/dist/utils/page-utils.d.ts +5 -0
- package/dist/utils/page-utils.d.ts.map +1 -1
- package/dist/utils/page-utils.js +73 -15
- package/dist/utils/page-utils.js.map +1 -1
- package/dist/utils/stealth-utils.d.ts +0 -0
- package/dist/utils/stealth-utils.d.ts.map +0 -0
- package/dist/utils/stealth-utils.js +0 -0
- package/dist/utils/stealth-utils.js.map +0 -0
- package/docs/ADDING_A_LANGUAGE.md +0 -0
- package/docs/ARCHITECTURE_MIGRATION_STUDY.md +0 -0
- package/docs/CHROME_PROFILE_LIMITATION.md +0 -0
- package/docs/MULTI_ACCOUNT_SYSTEM.md +0 -0
- package/package.json +5 -2
- package/scripts/archive/add-and-activate-notebook.ps1 +4 -4
- package/scripts/archive/add-new-notebook.ps1 +4 -4
- package/scripts/archive/add-rom1pey.ps1 +2 -2
- package/scripts/archive/add-rpmonster.ps1 +2 -2
- package/scripts/archive/add-source-debug.ps1 +1 -1
- package/scripts/archive/add-source-e2e.ps1 +1 -1
- package/scripts/archive/add-source-visible.ps1 +1 -1
- package/scripts/archive/add-test-notebook.ps1 +1 -1
- package/scripts/archive/add-test-source.ps1 +1 -1
- package/scripts/archive/capture-screen.ps1 +1 -1
- package/scripts/archive/change-language.mjs +4 -3
- package/scripts/archive/change-language.ts +5 -3
- package/scripts/archive/check-account.ps1 +0 -0
- package/scripts/archive/check-notebook-2.ps1 +0 -0
- package/scripts/archive/check-test-notebook.ps1 +0 -0
- package/scripts/archive/create-notebook-auto.ps1 +0 -0
- package/scripts/archive/create-notebook.ps1 +2 -2
- package/scripts/archive/create-rom1pey-notebook.ps1 +2 -2
- package/scripts/archive/create-rom1pey.ps1 +2 -2
- package/scripts/archive/create-test-notebook-fresh.ps1 +0 -0
- package/scripts/archive/create-test-notebook.ps1 +0 -0
- package/scripts/archive/debug-add-source-auto.ps1 +0 -0
- package/scripts/archive/debug-add-source.ps1 +0 -0
- package/scripts/archive/debug-add-text-source.ps1 +4 -4
- package/scripts/archive/debug-home.ps1 +0 -0
- package/scripts/archive/debug-selectors.ps1 +1 -1
- package/scripts/archive/debug-sources-panel.ps1 +0 -0
- package/scripts/archive/debug-ui.ps1 +0 -0
- package/scripts/archive/discover-home.ps1 +2 -2
- package/scripts/archive/kill-automation-chrome.ps1 +0 -0
- package/scripts/archive/list-my-notebooks.ps1 +0 -0
- package/scripts/archive/navigate-home-visible.ps1 +1 -1
- package/scripts/archive/navigate-home.ps1 +1 -1
- package/scripts/archive/run-e2e-english.ps1 +3 -3
- package/scripts/archive/run-e2e-rom1pey-v2.ps1 +4 -4
- package/scripts/archive/run-e2e-rom1pey.ps1 +4 -4
- package/scripts/archive/setup-english-test.ps1 +6 -6
- package/scripts/archive/setup-test-notebook.ps1 +1 -1
- package/scripts/archive/simple-add-source.ps1 +1 -1
- package/scripts/archive/t10.ps1 +1 -1
- package/scripts/archive/t20.ps1 +1 -1
- package/scripts/archive/t30.ps1 +1 -1
- package/scripts/archive/t31.ps1 +1 -1
- package/scripts/archive/t32.ps1 +1 -1
- package/scripts/archive/t39.ps1 +0 -0
- package/scripts/archive/t40.ps1 +0 -0
- package/scripts/archive/t53.ps1 +1 -1
- package/scripts/archive/t54.ps1 +0 -0
- package/scripts/archive/t55.ps1 +0 -0
- package/scripts/archive/t9.ps1 +0 -0
- package/scripts/archive/test-access.ps1 +1 -1
- package/scripts/archive/test-add-delete-source.ps1 +4 -4
- package/scripts/archive/test-add-source-visible.ps1 +1 -1
- package/scripts/archive/test-add-source.ps1 +1 -1
- package/scripts/archive/test-add-text-debug.ps1 +2 -2
- package/scripts/archive/test-add-text-source.ps1 +0 -0
- package/scripts/archive/test-add-url-source.ps1 +0 -0
- package/scripts/archive/test-ask-ascii.ps1 +0 -0
- package/scripts/archive/test-ask-cnv.ps1 +0 -0
- package/scripts/archive/test-ask-headed.ps1 +1 -1
- package/scripts/archive/test-ask-ifs.ps1 +0 -0
- package/scripts/archive/test-ask-now.ps1 +0 -0
- package/scripts/archive/test-ask-real.ps1 +0 -0
- package/scripts/archive/test-ask-visible.ps1 +0 -0
- package/scripts/archive/test-create-notebook.ps1 +0 -0
- package/scripts/archive/test-create-then-add.ps1 +0 -0
- package/scripts/archive/test-delete-source.ps1 +4 -4
- package/scripts/archive/test-e2e-notebook.ps1 +2 -2
- package/scripts/archive/test-english-notebook.ps1 +4 -4
- package/scripts/archive/test-english.ps1 +1 -1
- package/scripts/archive/test-full-custom-instructions.ps1 +1 -1
- package/scripts/archive/test-full-infographic.ps1 +1 -1
- package/scripts/archive/test-full-language.ps1 +1 -1
- package/scripts/archive/test-full-presentation.ps1 +1 -1
- package/scripts/archive/test-full-report.ps1 +1 -1
- package/scripts/archive/test-full-source-selection.ps1 +1 -1
- package/scripts/archive/test-full-video-brief.ps1 +1 -1
- package/scripts/archive/test-full-video-explainer.ps1 +1 -1
- package/scripts/archive/test-full-video-styles.ps1 +1 -1
- package/scripts/archive/test-generate-report.ps1 +0 -0
- package/scripts/archive/test-generate-study-guide.ps1 +0 -0
- package/scripts/archive/test-headed-ask.ps1 +1 -1
- package/scripts/archive/test-headed-now.ps1 +2 -2
- package/scripts/archive/test-headed.ps1 +2 -2
- package/scripts/archive/test-hello.ps1 +1 -1
- package/scripts/archive/test-i18n-studio.ps1 +0 -0
- package/scripts/archive/test-i18n.ps1 +0 -0
- package/scripts/archive/test-manual-headed.ps1 +1 -1
- package/scripts/archive/test-mathieu-quota.ps1 +1 -1
- package/scripts/archive/test-notebook-1.ps1 +0 -0
- package/scripts/archive/test-notebook-2-sources.ps1 +0 -0
- package/scripts/archive/test-notebook1.ps1 +0 -0
- package/scripts/archive/test-personal-notebook.ps1 +1 -1
- package/scripts/archive/test-rate-limit.ps1 +1 -1
- package/scripts/archive/test-real-ask.ps1 +1 -1
- package/scripts/archive/test-real-ask2.ps1 +1 -1
- package/scripts/archive/test-rom1pey.ps1 +1 -1
- package/scripts/archive/test-rotation-complete.ps1 +1 -1
- package/scripts/archive/test-rotation.ps1 +2 -2
- package/scripts/archive/test-show-browser.ps1 +1 -1
- package/scripts/archive/test-update-notebook.ps1 +1 -1
- package/scripts/archive/verify-language-slow.ps1 +1 -1
- package/scripts/archive/verify-language.ps1 +1 -1
- package/scripts/check-server.ps1 +0 -0
- package/scripts/docker-entrypoint.sh +25 -25
- package/scripts/doctor.mjs +257 -0
- package/scripts/mcp-proxy-hidden.ps1 +0 -0
- package/scripts/mcp-wsl-helper.sh +146 -146
- package/scripts/start-server-hidden.vbs +13 -10
- package/scripts/start-server.ps1 +1 -1
- package/scripts/start-vnc.sh +0 -0
- package/scripts/stop-server.bat +0 -0
- package/scripts/stop-server.ps1 +0 -0
- package/scripts/switch-account-language.sh +87 -128
- package/scripts/test-account.ps1 +0 -0
- package/docs/archive/auto-discovery-complet.md +0 -906
- package/scripts/add-totp.ts +0 -110
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
cd D:\
|
|
2
|
-
npm run accounts add "
|
|
1
|
+
cd D:\path\to\notebooklm-mcp
|
|
2
|
+
npm run accounts add "agent-secondary@example.com" 'your-password' "your-totp-secret"
|
|
@@ -2,7 +2,7 @@ $body = @{
|
|
|
2
2
|
source_type = "text"
|
|
3
3
|
title = "Test Source"
|
|
4
4
|
text = "Test document for E2E."
|
|
5
|
-
notebook_url = "https://notebooklm.google.com/notebook/
|
|
5
|
+
notebook_url = "https://notebooklm.google.com/notebook/00000000-0000-0000-0000-000000000108"
|
|
6
6
|
show_browser = $true
|
|
7
7
|
} | ConvertTo-Json
|
|
8
8
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Add source to test notebook with proper cleanup
|
|
2
|
-
$testNotebookUrl = "https://notebooklm.google.com/notebook/
|
|
2
|
+
$testNotebookUrl = "https://notebooklm.google.com/notebook/00000000-0000-0000-0000-000000000108"
|
|
3
3
|
|
|
4
4
|
Write-Host "Adding text source to test notebook..." -ForegroundColor Cyan
|
|
5
5
|
|
|
@@ -2,7 +2,7 @@ $body = @{
|
|
|
2
2
|
source_type = "text"
|
|
3
3
|
title = "E2E Test Source"
|
|
4
4
|
text = "# E2E Test`n`nTest document for E2E testing. Contains info about NotebookLM MCP Server.`n`n## Features`n- REST API`n- Browser automation`n- Multi-account"
|
|
5
|
-
notebook_url = "https://notebooklm.google.com/notebook/
|
|
5
|
+
notebook_url = "https://notebooklm.google.com/notebook/00000000-0000-0000-0000-000000000108"
|
|
6
6
|
show_browser = $true
|
|
7
7
|
} | ConvertTo-Json
|
|
8
8
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Add test notebook to library (no browser needed)
|
|
2
|
-
$testNotebookUrl = "https://notebooklm.google.com/notebook/
|
|
2
|
+
$testNotebookUrl = "https://notebooklm.google.com/notebook/00000000-0000-0000-0000-000000000108"
|
|
3
3
|
|
|
4
4
|
$addBody = @{
|
|
5
5
|
url = $testNotebookUrl
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Add source to test notebook with proper cleanup
|
|
2
|
-
$testNotebookUrl = "https://notebooklm.google.com/notebook/
|
|
2
|
+
$testNotebookUrl = "https://notebooklm.google.com/notebook/00000000-0000-0000-0000-000000000108"
|
|
3
3
|
|
|
4
4
|
Write-Host "Adding text source to test notebook..." -ForegroundColor Cyan
|
|
5
5
|
|
|
@@ -5,7 +5,7 @@ Write-Host "Activated"
|
|
|
5
5
|
|
|
6
6
|
# The server should have taken debug screenshots - check the data folder
|
|
7
7
|
Write-Host "`nChecking for debug screenshots..."
|
|
8
|
-
$debugPath = "
|
|
8
|
+
$debugPath = "%LOCALAPPDATA%\notebooklm-mcp\Data"
|
|
9
9
|
Get-ChildItem $debugPath -Filter "*.png" | Sort-Object LastWriteTime -Descending | Select-Object -First 5 | ForEach-Object {
|
|
10
10
|
Write-Host " $($_.Name) - $($_.LastWriteTime)"
|
|
11
11
|
}
|
|
@@ -5,12 +5,13 @@ import { chromium } from 'patchright';
|
|
|
5
5
|
import path from 'path';
|
|
6
6
|
import readline from 'readline';
|
|
7
7
|
|
|
8
|
-
const ACCOUNT_ID = 'account-
|
|
9
|
-
const DATA_DIR =
|
|
8
|
+
const ACCOUNT_ID = process.env.NOTEBOOKLM_ACCOUNT_ID || 'account-0000000000001';
|
|
9
|
+
const DATA_DIR = process.env.NOTEBOOKLM_DATA_DIR
|
|
10
|
+
|| `${process.env.LOCALAPPDATA || `${process.env.HOME || ''}/AppData/Local`}\\notebooklm-mcp\\Data`;
|
|
10
11
|
const PROFILE_DIR = path.join(DATA_DIR, 'accounts', ACCOUNT_ID, 'profile');
|
|
11
12
|
|
|
12
13
|
async function changeLanguage() {
|
|
13
|
-
console.log(
|
|
14
|
+
console.log(`🌐 Opening browser with account profile ${ACCOUNT_ID}...`);
|
|
14
15
|
console.log(`📁 Profile: ${PROFILE_DIR}`);
|
|
15
16
|
|
|
16
17
|
const browser = await chromium.launchPersistentContext(PROFILE_DIR, {
|
|
@@ -4,12 +4,14 @@
|
|
|
4
4
|
import { chromium } from 'patchright';
|
|
5
5
|
import path from 'path';
|
|
6
6
|
|
|
7
|
-
const ACCOUNT_ID = 'account-
|
|
8
|
-
const DATA_DIR =
|
|
7
|
+
const ACCOUNT_ID = process.env.NOTEBOOKLM_ACCOUNT_ID || 'account-0000000000001';
|
|
8
|
+
const DATA_DIR =
|
|
9
|
+
process.env.NOTEBOOKLM_DATA_DIR ||
|
|
10
|
+
`${process.env.LOCALAPPDATA || `${process.env.HOME || ''}/AppData/Local`}\\notebooklm-mcp\\Data`;
|
|
9
11
|
const PROFILE_DIR = path.join(DATA_DIR, 'accounts', ACCOUNT_ID, 'profile');
|
|
10
12
|
|
|
11
13
|
async function changeLanguage() {
|
|
12
|
-
console.log(
|
|
14
|
+
console.log(`🌐 Opening browser with account profile ${ACCOUNT_ID}...`);
|
|
13
15
|
console.log(`📁 Profile: ${PROFILE_DIR}`);
|
|
14
16
|
|
|
15
17
|
const browser = await chromium.launchPersistentContext(PROFILE_DIR, {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
$body = @{
|
|
2
|
-
name = "e2e-
|
|
3
|
-
description = "Test notebook for
|
|
2
|
+
name = "e2e-agent-primary-test"
|
|
3
|
+
description = "Test notebook for agent-primary English E2E tests"
|
|
4
4
|
topics = @("test", "e2e", "english")
|
|
5
5
|
} | ConvertTo-Json
|
|
6
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
# Create a new notebook with the current account (
|
|
2
|
-
Write-Host "=== Creating new notebook with
|
|
1
|
+
# Create a new notebook with the current account (agent-tertiary)
|
|
2
|
+
Write-Host "=== Creating new notebook with agent-tertiary account ===" -ForegroundColor Cyan
|
|
3
3
|
|
|
4
4
|
$body = @{
|
|
5
5
|
name = "E2E-Test-Rom1pey"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
$body = @{
|
|
2
|
-
name = "e2e-
|
|
3
|
-
description = "Test notebook for
|
|
2
|
+
name = "e2e-agent-tertiary-english"
|
|
3
|
+
description = "Test notebook for agent-tertiary English E2E tests"
|
|
4
4
|
topics = @("test", "e2e", "english")
|
|
5
5
|
} | ConvertTo-Json
|
|
6
6
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
# This script tests adding a text source step by step
|
|
3
3
|
|
|
4
4
|
Write-Host "=== DEBUG: Add Text Source Step by Step ===" -ForegroundColor Cyan
|
|
5
|
-
Write-Host "Notebook:
|
|
5
|
+
Write-Host "Notebook: 00000000-0000-0000-0000-000000000109" -ForegroundColor Gray
|
|
6
6
|
|
|
7
7
|
# Step 1: Get initial source count
|
|
8
8
|
Write-Host "`n--- Step 1: Get initial source count ---" -ForegroundColor Yellow
|
|
9
|
-
$initialContent = Invoke-RestMethod -Uri "http://localhost:3000/content?notebook_url=https://notebooklm.google.com/notebook/
|
|
9
|
+
$initialContent = Invoke-RestMethod -Uri "http://localhost:3000/content?notebook_url=https://notebooklm.google.com/notebook/00000000-0000-0000-0000-000000000109" -Method GET
|
|
10
10
|
$initialCount = $initialContent.data.sources.Count
|
|
11
11
|
Write-Host "Initial source count: $initialCount" -ForegroundColor White
|
|
12
12
|
|
|
13
13
|
# Step 2: Add a text source with visible browser
|
|
14
14
|
Write-Host "`n--- Step 2: Adding text source with VISIBLE browser ---" -ForegroundColor Yellow
|
|
15
15
|
$body = @{
|
|
16
|
-
notebook_url = "https://notebooklm.google.com/notebook/
|
|
16
|
+
notebook_url = "https://notebooklm.google.com/notebook/00000000-0000-0000-0000-000000000109"
|
|
17
17
|
source_type = "text"
|
|
18
18
|
text = "Ceci est un test de debug pour verifier l'ajout de source texte. Contenu de test avec suffisamment de texte pour etre valide."
|
|
19
19
|
title = "DEBUG-SOURCE-$(Get-Date -Format 'HHmmss')"
|
|
@@ -31,7 +31,7 @@ $result | ConvertTo-Json -Depth 5
|
|
|
31
31
|
Write-Host "`n--- Step 3: Waiting 10 seconds then checking source count ---" -ForegroundColor Yellow
|
|
32
32
|
Start-Sleep -Seconds 10
|
|
33
33
|
|
|
34
|
-
$finalContent = Invoke-RestMethod -Uri "http://localhost:3000/content?notebook_url=https://notebooklm.google.com/notebook/
|
|
34
|
+
$finalContent = Invoke-RestMethod -Uri "http://localhost:3000/content?notebook_url=https://notebooklm.google.com/notebook/00000000-0000-0000-0000-000000000109" -Method GET
|
|
35
35
|
$finalCount = $finalContent.data.sources.Count
|
|
36
36
|
Write-Host "Final source count: $finalCount" -ForegroundColor White
|
|
37
37
|
|
|
File without changes
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Runs with show_browser=true so we can see what's happening
|
|
3
3
|
|
|
4
4
|
$baseUrl = "http://localhost:3000"
|
|
5
|
-
$testNotebook = "https://notebooklm.google.com/notebook/
|
|
5
|
+
$testNotebook = "https://notebooklm.google.com/notebook/00000000-0000-0000-0000-000000000108"
|
|
6
6
|
|
|
7
7
|
Write-Host "=== Debug NotebookLM Selectors ===" -ForegroundColor Cyan
|
|
8
8
|
|
|
File without changes
|
|
File without changes
|
|
@@ -5,9 +5,9 @@ Write-Host "=== Creating a fresh test notebook ===" -ForegroundColor Cyan
|
|
|
5
5
|
# We'll use POST /notebooks with just a name to create a new one
|
|
6
6
|
|
|
7
7
|
$body = @{
|
|
8
|
-
name = "e2e-
|
|
8
|
+
name = "e2e-agent-tertiary-test"
|
|
9
9
|
url = "https://notebooklm.google.com"
|
|
10
|
-
description = "E2E test notebook for
|
|
10
|
+
description = "E2E test notebook for agent-tertiary account"
|
|
11
11
|
} | ConvertTo-Json
|
|
12
12
|
|
|
13
13
|
Write-Host "`nAdding notebook entry..."
|
|
File without changes
|
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Navigate to NotebookLM home page with visible browser
|
|
2
|
-
# This will show all notebooks available to the current account (
|
|
2
|
+
# This will show all notebooks available to the current account (agent-tertiary)
|
|
3
3
|
|
|
4
4
|
Write-Host "=== Navigating to NotebookLM home ===" -ForegroundColor Cyan
|
|
5
5
|
Write-Host "Please look at the browser window to see the notebooks available" -ForegroundColor Yellow
|
|
@@ -5,7 +5,7 @@ $body = @{
|
|
|
5
5
|
notebook_url = "https://notebooklm.google.com/"
|
|
6
6
|
} | ConvertTo-Json
|
|
7
7
|
|
|
8
|
-
Write-Host "Opening NotebookLM homepage with
|
|
8
|
+
Write-Host "Opening NotebookLM homepage with agent-secondary..."
|
|
9
9
|
try {
|
|
10
10
|
$response = Invoke-RestMethod -Uri "http://localhost:3000/ask" -Method POST -ContentType "application/json" -Body $body -TimeoutSec 30
|
|
11
11
|
$response | ConvertTo-Json -Depth 5
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
# E2E Tests with English account (
|
|
2
|
-
# Using notebook:
|
|
1
|
+
# E2E Tests with English account (agent-tertiary)
|
|
2
|
+
# Using notebook: agent-tertiary-english-test
|
|
3
3
|
|
|
4
4
|
$ErrorActionPreference = "Continue"
|
|
5
5
|
|
|
6
6
|
Write-Host "========================================" -ForegroundColor Cyan
|
|
7
|
-
Write-Host " E2E Tests - English Account (
|
|
7
|
+
Write-Host " E2E Tests - English Account (agent-tertiary)" -ForegroundColor Cyan
|
|
8
8
|
Write-Host "========================================" -ForegroundColor Cyan
|
|
9
9
|
Write-Host ""
|
|
10
10
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# E2E Tests v2 - Better order: add sources first, then ask questions
|
|
2
|
-
# Notebook: e2e-
|
|
2
|
+
# Notebook: e2e-agent-tertiary-test (00000000-0000-0000-0000-000000000107)
|
|
3
3
|
|
|
4
4
|
$ErrorActionPreference = "Continue"
|
|
5
5
|
|
|
@@ -9,9 +9,9 @@ Write-Host "========================================" -ForegroundColor Cyan
|
|
|
9
9
|
Write-Host ""
|
|
10
10
|
|
|
11
11
|
# Activate the notebook
|
|
12
|
-
Write-Host "Activating e2e-
|
|
13
|
-
Invoke-RestMethod -Uri "http://localhost:3000/notebooks/e2e-
|
|
14
|
-
Write-Host "Active notebook: e2e-
|
|
12
|
+
Write-Host "Activating e2e-agent-tertiary-test notebook..."
|
|
13
|
+
Invoke-RestMethod -Uri "http://localhost:3000/notebooks/e2e-agent-tertiary-test/activate" -Method PUT -TimeoutSec 30 | Out-Null
|
|
14
|
+
Write-Host "Active notebook: e2e-agent-tertiary-test"
|
|
15
15
|
Write-Host ""
|
|
16
16
|
|
|
17
17
|
$passed = 0
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
# E2E Tests with
|
|
2
|
-
# Notebook: e2e-
|
|
1
|
+
# E2E Tests with agent-tertiary account using the notebook we just created
|
|
2
|
+
# Notebook: e2e-agent-tertiary-test (00000000-0000-0000-0000-000000000107)
|
|
3
3
|
|
|
4
4
|
$ErrorActionPreference = "Continue"
|
|
5
5
|
|
|
@@ -9,8 +9,8 @@ Write-Host "========================================" -ForegroundColor Cyan
|
|
|
9
9
|
Write-Host ""
|
|
10
10
|
|
|
11
11
|
# Activate the notebook
|
|
12
|
-
Write-Host "Activating e2e-
|
|
13
|
-
$activateResponse = Invoke-RestMethod -Uri "http://localhost:3000/notebooks/e2e-
|
|
12
|
+
Write-Host "Activating e2e-agent-tertiary-test notebook..."
|
|
13
|
+
$activateResponse = Invoke-RestMethod -Uri "http://localhost:3000/notebooks/e2e-agent-tertiary-test/activate" -Method PUT -TimeoutSec 30
|
|
14
14
|
Write-Host "Activated: $($activateResponse.success)"
|
|
15
15
|
|
|
16
16
|
# Verify active notebook
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# Step 1: Add notebook owned by
|
|
2
|
-
Write-Host "Step 1: Adding
|
|
1
|
+
# Step 1: Add notebook owned by agent-tertiary to library
|
|
2
|
+
Write-Host "Step 1: Adding agent-tertiary notebook to library..."
|
|
3
3
|
$addBody = @{
|
|
4
|
-
name = "
|
|
5
|
-
url = "https://notebooklm.google.com/notebook/
|
|
4
|
+
name = "agent-tertiary-english-test"
|
|
5
|
+
url = "https://notebooklm.google.com/notebook/00000000-0000-0000-0000-000000000110"
|
|
6
6
|
description = "Test notebook for English UI"
|
|
7
7
|
topics = @("test", "english")
|
|
8
8
|
} | ConvertTo-Json
|
|
@@ -15,9 +15,9 @@ try {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
# Step 2: Activate this notebook
|
|
18
|
-
Write-Host "`nStep 2: Activating
|
|
18
|
+
Write-Host "`nStep 2: Activating agent-tertiary notebook..."
|
|
19
19
|
try {
|
|
20
|
-
Invoke-RestMethod -Uri "http://localhost:3000/notebooks/
|
|
20
|
+
Invoke-RestMethod -Uri "http://localhost:3000/notebooks/agent-tertiary-english-test/activate" -Method PUT -TimeoutSec 10
|
|
21
21
|
Write-Host "Activated!"
|
|
22
22
|
} catch {
|
|
23
23
|
Write-Host "Activate failed: $($_.Exception.Message)"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Setup test notebook with source
|
|
2
|
-
$testNotebookUrl = "https://notebooklm.google.com/notebook/
|
|
2
|
+
$testNotebookUrl = "https://notebooklm.google.com/notebook/00000000-0000-0000-0000-000000000108"
|
|
3
3
|
|
|
4
4
|
Write-Host "=== Setting up Test Notebook ===" -ForegroundColor Cyan
|
|
5
5
|
|
|
@@ -2,7 +2,7 @@ $body = @{
|
|
|
2
2
|
source_type = "text"
|
|
3
3
|
title = "Test Source"
|
|
4
4
|
text = "Test document for E2E testing. Contains info about the server."
|
|
5
|
-
notebook_url = "https://notebooklm.google.com/notebook/
|
|
5
|
+
notebook_url = "https://notebooklm.google.com/notebook/00000000-0000-0000-0000-000000000108"
|
|
6
6
|
} | ConvertTo-Json
|
|
7
7
|
|
|
8
8
|
Write-Host "Adding source..."
|
package/scripts/archive/t10.ps1
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
$body = @{ description = "Updated at $(Get-Date)" } | ConvertTo-Json
|
|
2
|
-
Invoke-RestMethod -Uri "http://localhost:3000/notebooks/e2e-
|
|
2
|
+
Invoke-RestMethod -Uri "http://localhost:3000/notebooks/e2e-agent-tertiary-test" -Method PUT -ContentType "application/json" -Body $body
|
package/scripts/archive/t20.ps1
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
# Test 20: Reject invalid source type
|
|
2
|
-
$body = @{ notebook_url = "https://notebooklm.google.com/notebook/
|
|
2
|
+
$body = @{ notebook_url = "https://notebooklm.google.com/notebook/00000000-0000-0000-0000-000000000107"; source_type = "invalid_type" } | ConvertTo-Json
|
|
3
3
|
$response = Invoke-RestMethod -Uri "http://localhost:3000/content/sources" -Method POST -ContentType "application/json" -Body $body -TimeoutSec 10
|
|
4
4
|
if ($response.success -eq $false) { Write-Host "PASS" } else { Write-Host "FAIL" }
|
package/scripts/archive/t30.ps1
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Test 30: Reject invalid content type
|
|
2
|
-
$body = @{ notebook_url = "https://notebooklm.google.com/notebook/
|
|
2
|
+
$body = @{ notebook_url = "https://notebooklm.google.com/notebook/00000000-0000-0000-0000-000000000107"; content_type = "invalid_type" } | ConvertTo-Json
|
|
3
3
|
try {
|
|
4
4
|
$response = Invoke-RestMethod -Uri "http://localhost:3000/content/generate" -Method POST -ContentType "application/json" -Body $body -TimeoutSec 10
|
|
5
5
|
Write-Host "FAIL: Should have rejected"
|
package/scripts/archive/t31.ps1
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
$types = @("faq", "study_guide", "briefing_doc", "timeline", "table_of_contents")
|
|
3
3
|
$allPass = $true
|
|
4
4
|
foreach ($t in $types) {
|
|
5
|
-
$body = @{ notebook_url = "https://notebooklm.google.com/notebook/
|
|
5
|
+
$body = @{ notebook_url = "https://notebooklm.google.com/notebook/00000000-0000-0000-0000-000000000107"; content_type = $t } | ConvertTo-Json
|
|
6
6
|
try {
|
|
7
7
|
Invoke-RestMethod -Uri "http://localhost:3000/content/generate" -Method POST -ContentType "application/json" -Body $body -TimeoutSec 5 | Out-Null
|
|
8
8
|
$allPass = $false
|
package/scripts/archive/t32.ps1
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Test 32: Reject video_style for non-video
|
|
2
|
-
$body = @{ notebook_url = "https://notebooklm.google.com/notebook/
|
|
2
|
+
$body = @{ notebook_url = "https://notebooklm.google.com/notebook/00000000-0000-0000-0000-000000000107"; content_type = "report"; video_style = "classroom" } | ConvertTo-Json
|
|
3
3
|
try {
|
|
4
4
|
Invoke-RestMethod -Uri "http://localhost:3000/content/generate" -Method POST -ContentType "application/json" -Body $body -TimeoutSec 5 | Out-Null
|
|
5
5
|
Write-Host "FAIL"
|
package/scripts/archive/t39.ps1
CHANGED
|
File without changes
|
package/scripts/archive/t40.ps1
CHANGED
|
File without changes
|
package/scripts/archive/t53.ps1
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Test 53: Missing question - should fail
|
|
2
|
-
$body = @{ notebook_id = "e2e-
|
|
2
|
+
$body = @{ notebook_id = "e2e-agent-tertiary-test" } | ConvertTo-Json
|
|
3
3
|
try {
|
|
4
4
|
$response = Invoke-RestMethod -Uri "http://localhost:3000/ask" -Method POST -ContentType "application/json" -Body $body -TimeoutSec 10
|
|
5
5
|
Write-Host "FAIL: Should have returned error"
|
package/scripts/archive/t54.ps1
CHANGED
|
File without changes
|
package/scripts/archive/t55.ps1
CHANGED
|
File without changes
|
package/scripts/archive/t9.ps1
CHANGED
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Test access to e2e-test-notebook (which should have been created by tests)
|
|
2
|
-
Write-Host "=== Testing notebook access with
|
|
2
|
+
Write-Host "=== Testing notebook access with agent-tertiary ===" -ForegroundColor Cyan
|
|
3
3
|
|
|
4
4
|
# First activate e2e-test-notebook
|
|
5
5
|
Write-Host "`nActivating e2e-test-notebook..."
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# Complete test: Add source, verify, delete, verify
|
|
2
2
|
Write-Host "=== Complete Add/Delete Source Test ===" -ForegroundColor Cyan
|
|
3
|
-
Write-Host "Notebook:
|
|
3
|
+
Write-Host "Notebook: 00000000-0000-0000-0000-000000000109" -ForegroundColor Gray
|
|
4
4
|
|
|
5
5
|
# Step 1: Add a text source
|
|
6
6
|
Write-Host "`n--- Step 1: Adding text source ---" -ForegroundColor Yellow
|
|
7
7
|
$uniqueId = Get-Date -Format "HHmmss"
|
|
8
8
|
$body = @{
|
|
9
|
-
notebook_url = "https://notebooklm.google.com/notebook/
|
|
9
|
+
notebook_url = "https://notebooklm.google.com/notebook/00000000-0000-0000-0000-000000000109"
|
|
10
10
|
source_type = "text"
|
|
11
11
|
text = "Test source for add/delete verification. Unique ID: $uniqueId. This is test content."
|
|
12
12
|
title = "TEST-DELETE-$uniqueId"
|
|
@@ -29,7 +29,7 @@ Write-Host "`nSource added with name: $sourceName" -ForegroundColor Green
|
|
|
29
29
|
Write-Host "`n--- Step 2: Waiting 5 seconds and verifying source exists ---" -ForegroundColor Yellow
|
|
30
30
|
Start-Sleep -Seconds 5
|
|
31
31
|
|
|
32
|
-
$listResult = Invoke-RestMethod -Uri "http://localhost:3000/content?notebook_url=https://notebooklm.google.com/notebook/
|
|
32
|
+
$listResult = Invoke-RestMethod -Uri "http://localhost:3000/content?notebook_url=https://notebooklm.google.com/notebook/00000000-0000-0000-0000-000000000109" -Method GET
|
|
33
33
|
$sourceCount = $listResult.data.sources.Count
|
|
34
34
|
Write-Host "Total sources in notebook: $sourceCount" -ForegroundColor Gray
|
|
35
35
|
|
|
@@ -44,7 +44,7 @@ if ($foundSource) {
|
|
|
44
44
|
|
|
45
45
|
# Step 3: Delete the source
|
|
46
46
|
Write-Host "`n--- Step 3: Deleting source by name '$sourceName' ---" -ForegroundColor Yellow
|
|
47
|
-
$deleteUrl = "http://localhost:3000/content/sources?source_name=$([System.Web.HttpUtility]::UrlEncode($sourceName))¬ebook_url=https://notebooklm.google.com/notebook/
|
|
47
|
+
$deleteUrl = "http://localhost:3000/content/sources?source_name=$([System.Web.HttpUtility]::UrlEncode($sourceName))¬ebook_url=https://notebooklm.google.com/notebook/00000000-0000-0000-0000-000000000109&show_browser=true"
|
|
48
48
|
Write-Host "DELETE URL: $deleteUrl" -ForegroundColor Gray
|
|
49
49
|
|
|
50
50
|
try {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Test add source with visible browser
|
|
2
2
|
Write-Host "=== Testing add source with VISIBLE browser ===" -ForegroundColor Cyan
|
|
3
3
|
$body = @{
|
|
4
|
-
notebook_url = "https://notebooklm.google.com/notebook/
|
|
4
|
+
notebook_url = "https://notebooklm.google.com/notebook/00000000-0000-0000-0000-000000000109"
|
|
5
5
|
source_type = "text"
|
|
6
6
|
text = "Test content for debugging the text upload issue."
|
|
7
7
|
title = "DEBUG-TEST-SOURCE"
|
|
@@ -3,7 +3,7 @@ $body = @{
|
|
|
3
3
|
source_type = "text"
|
|
4
4
|
text = "Debug test content - testing selectors"
|
|
5
5
|
title = "Debug Test"
|
|
6
|
-
notebook_url = "https://notebooklm.google.com/notebook/
|
|
6
|
+
notebook_url = "https://notebooklm.google.com/notebook/00000000-0000-0000-0000-000000000108"
|
|
7
7
|
show_browser = $true
|
|
8
8
|
} | ConvertTo-Json
|
|
9
9
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# Test adding a text source with debug logging
|
|
2
2
|
$uniqueId = (Get-Date).ToString("HHmmss")
|
|
3
|
-
$notebookUrl = "https://notebooklm.google.com/notebook/
|
|
3
|
+
$notebookUrl = "https://notebooklm.google.com/notebook/00000000-0000-0000-0000-000000000109"
|
|
4
4
|
|
|
5
5
|
Write-Host "`n=== Testing add_source (text) with debug ===" -ForegroundColor Cyan
|
|
6
6
|
Write-Host "Notebook URL: $notebookUrl"
|
|
7
|
-
Write-Host "Expected UUID:
|
|
7
|
+
Write-Host "Expected UUID: 00000000-0000-0000-0000-000000000109`n"
|
|
8
8
|
|
|
9
9
|
$body = @{
|
|
10
10
|
notebook_url = $notebookUrl
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -14,7 +14,7 @@ Start-Sleep -Seconds 2
|
|
|
14
14
|
|
|
15
15
|
# Start server in background with headed mode
|
|
16
16
|
$env:HEADLESS = "false"
|
|
17
|
-
Start-Process -FilePath "cmd.exe" -ArgumentList "/c cd /d D:\
|
|
17
|
+
Start-Process -FilePath "cmd.exe" -ArgumentList "/c cd /d D:\path\to\notebooklm-mcp && set HEADLESS=false && node dist/http-wrapper.js" -WindowStyle Normal
|
|
18
18
|
|
|
19
19
|
Write-Host "Waiting for server to start..."
|
|
20
20
|
Start-Sleep -Seconds 5
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Test 1: Add a text source
|
|
2
2
|
Write-Host "=== STEP 1: Adding test source ===" -ForegroundColor Cyan
|
|
3
3
|
$addBody = @{
|
|
4
|
-
notebook_url = "https://notebooklm.google.com/notebook/
|
|
4
|
+
notebook_url = "https://notebooklm.google.com/notebook/00000000-0000-0000-0000-000000000109"
|
|
5
5
|
source_type = "text"
|
|
6
6
|
text = "This is a test source for deletion testing. Created at $(Get-Date)"
|
|
7
7
|
title = "DELETE-ME-TEST-SOURCE"
|
|
@@ -17,21 +17,21 @@ Start-Sleep -Seconds 10
|
|
|
17
17
|
|
|
18
18
|
# List sources to verify it was added
|
|
19
19
|
Write-Host "`n=== STEP 3: Listing sources to verify ===" -ForegroundColor Cyan
|
|
20
|
-
$listResult = Invoke-RestMethod -Uri "http://localhost:3000/content?notebook_url=https://notebooklm.google.com/notebook/
|
|
20
|
+
$listResult = Invoke-RestMethod -Uri "http://localhost:3000/content?notebook_url=https://notebooklm.google.com/notebook/00000000-0000-0000-0000-000000000109" -Method GET
|
|
21
21
|
$testSource = $listResult.data.sources | Where-Object { $_.name -like "*DELETE-ME*" }
|
|
22
22
|
Write-Host "Found test source:" -ForegroundColor Yellow
|
|
23
23
|
$testSource | ConvertTo-Json -Depth 3
|
|
24
24
|
|
|
25
25
|
# Delete the source
|
|
26
26
|
Write-Host "`n=== STEP 4: Deleting source by name ===" -ForegroundColor Cyan
|
|
27
|
-
$deleteResult = Invoke-RestMethod -Uri "http://localhost:3000/content/sources?source_name=DELETE-ME-TEST-SOURCE¬ebook_url=https://notebooklm.google.com/notebook/
|
|
27
|
+
$deleteResult = Invoke-RestMethod -Uri "http://localhost:3000/content/sources?source_name=DELETE-ME-TEST-SOURCE¬ebook_url=https://notebooklm.google.com/notebook/00000000-0000-0000-0000-000000000109" -Method DELETE
|
|
28
28
|
Write-Host "Delete result:" -ForegroundColor Yellow
|
|
29
29
|
$deleteResult | ConvertTo-Json -Depth 5
|
|
30
30
|
|
|
31
31
|
# Verify deletion
|
|
32
32
|
Write-Host "`n=== STEP 5: Verifying deletion ===" -ForegroundColor Cyan
|
|
33
33
|
Start-Sleep -Seconds 3
|
|
34
|
-
$verifyResult = Invoke-RestMethod -Uri "http://localhost:3000/content?notebook_url=https://notebooklm.google.com/notebook/
|
|
34
|
+
$verifyResult = Invoke-RestMethod -Uri "http://localhost:3000/content?notebook_url=https://notebooklm.google.com/notebook/00000000-0000-0000-0000-000000000109" -Method GET
|
|
35
35
|
$stillExists = $verifyResult.data.sources | Where-Object { $_.name -like "*DELETE-ME*" }
|
|
36
36
|
if ($stillExists) {
|
|
37
37
|
Write-Host "FAIL: Source still exists!" -ForegroundColor Red
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Test access to e2e-test-notebook with
|
|
1
|
+
# Test access to e2e-test-notebook with agent-tertiary
|
|
2
2
|
Write-Host "=== Testing e2e-test-notebook with visible browser ===" -ForegroundColor Cyan
|
|
3
3
|
|
|
4
4
|
# Activate it
|
|
@@ -17,5 +17,5 @@ try {
|
|
|
17
17
|
Write-Host "SUCCESS! Answer: $($response.data.answer.Substring(0, [Math]::Min(200, $response.data.answer.Length)))..." -ForegroundColor Green
|
|
18
18
|
} catch {
|
|
19
19
|
Write-Host "Error: $($_.Exception.Message)" -ForegroundColor Red
|
|
20
|
-
Write-Host "This notebook is probably not accessible to
|
|
20
|
+
Write-Host "This notebook is probably not accessible to agent-tertiary" -ForegroundColor Yellow
|
|
21
21
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Test with the newly created notebook (owned by
|
|
1
|
+
# Test with the newly created notebook (owned by agent-tertiary)
|
|
2
2
|
$body = @{
|
|
3
3
|
notebook_id = "english-test"
|
|
4
4
|
source_type = "url"
|
|
@@ -9,12 +9,12 @@ $body = @{
|
|
|
9
9
|
# First add the notebook
|
|
10
10
|
$addBody = @{
|
|
11
11
|
name = "english-test"
|
|
12
|
-
url = "https://notebooklm.google.com/notebook/
|
|
12
|
+
url = "https://notebooklm.google.com/notebook/00000000-0000-0000-0000-000000000110"
|
|
13
13
|
} | ConvertTo-Json
|
|
14
14
|
|
|
15
|
-
Write-Host "Adding notebook owned by
|
|
15
|
+
Write-Host "Adding notebook owned by agent-tertiary..."
|
|
16
16
|
Invoke-RestMethod -Uri "http://localhost:3000/notebooks" -Method POST -ContentType "application/json" -Body $addBody -TimeoutSec 60
|
|
17
17
|
|
|
18
|
-
Write-Host "`nTesting URL source on
|
|
18
|
+
Write-Host "`nTesting URL source on agent-tertiary's notebook..."
|
|
19
19
|
$response = Invoke-RestMethod -Uri "http://localhost:3000/content/sources" -Method POST -ContentType "application/json" -Body $body -TimeoutSec 120
|
|
20
20
|
$response | ConvertTo-Json -Depth 5
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
$body = @{
|
|
2
2
|
question = "Hello, what is this notebook about?"
|
|
3
|
-
notebook_url = "https://notebooklm.google.com/notebook/
|
|
3
|
+
notebook_url = "https://notebooklm.google.com/notebook/00000000-0000-0000-0000-000000000111"
|
|
4
4
|
} | ConvertTo-Json
|
|
5
5
|
|
|
6
6
|
$response = Invoke-RestMethod -Uri "http://localhost:3000/ask" -Method POST -ContentType "application/json" -Body $body -TimeoutSec 120
|