@charlie.act7/gemini-notebook-mcp 2.3.2 → 2.3.4
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 +21 -21
- package/README.md +2 -0
- package/dist/browser/browser-cli.d.ts +7 -0
- package/dist/browser/browser-cli.d.ts.map +1 -0
- package/dist/browser/browser-cli.js +73 -0
- package/dist/browser/browser-cli.js.map +1 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +12 -0
- package/dist/cli.js.map +1 -0
- package/docs/configuration.md +0 -0
- package/docs/implementation-plan.md +28 -0
- package/docs/project-status.md +26 -10
- package/docs/releasing.md +76 -0
- package/docs/tools.md +0 -0
- package/docs/troubleshooting.md +0 -0
- package/docs/usage-guide.md +0 -0
- package/package.json +3 -2
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 Please Prompto!
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Please Prompto!
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -475,6 +475,7 @@ Source layout:
|
|
|
475
475
|
- [`docs/usage-guide.md`](./docs/usage-guide.md) — end-to-end walkthroughs.
|
|
476
476
|
- [`docs/implementation-plan.md`](./docs/implementation-plan.md) — staged security, protocol, and feature roadmap.
|
|
477
477
|
- [`docs/project-status.md`](./docs/project-status.md) — delivered versions, current release state, and remaining work.
|
|
478
|
+
- [`docs/releasing.md`](./docs/releasing.md) — tokenless npm trusted-publishing setup and release procedure.
|
|
478
479
|
|
|
479
480
|
---
|
|
480
481
|
|
|
@@ -493,3 +494,4 @@ v2 changes the following defaults — adjust if you depended on v1 behaviour:
|
|
|
493
494
|
## License
|
|
494
495
|
|
|
495
496
|
MIT. See [LICENSE](./LICENSE).
|
|
497
|
+
- Browser provisioning: `browser install --json` instala el Chromium hermético de Patchright y `browser status --json` informa su estado. Chrome estable sigue siendo el navegador preferido; Chromium se usa como fallback. La instalación no se realiza automáticamente.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare function resolvePatchrightBin(manifest: {
|
|
2
|
+
bin?: string | Record<string, string>;
|
|
3
|
+
}, packageDir: string): string;
|
|
4
|
+
export declare function patchrightNodeModulesRoot(): string;
|
|
5
|
+
export declare function isPathInside(root: string, candidate: string): boolean;
|
|
6
|
+
export declare function runBrowserCli(args: string[]): Promise<void>;
|
|
7
|
+
//# sourceMappingURL=browser-cli.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browser-cli.d.ts","sourceRoot":"","sources":["../../src/browser/browser-cli.ts"],"names":[],"mappings":"AASA,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAE,EACnD,UAAU,EAAE,MAAM,GACjB,MAAM,CAgBR;AAED,wBAAgB,yBAAyB,IAAI,MAAM,CAElD;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAKrE;AA0CD,wBAAsB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAMjE"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { createRequire } from "node:module";
|
|
2
|
+
import { existsSync } from "node:fs";
|
|
3
|
+
import { dirname, isAbsolute, relative, resolve } from "node:path";
|
|
4
|
+
import { realpathSync } from "node:fs";
|
|
5
|
+
import { spawn } from "node:child_process";
|
|
6
|
+
import { chromium } from "patchright";
|
|
7
|
+
const require = createRequire(import.meta.url);
|
|
8
|
+
export function resolvePatchrightBin(manifest, packageDir) {
|
|
9
|
+
const bin = typeof manifest.bin === "string"
|
|
10
|
+
? manifest.bin
|
|
11
|
+
: (manifest.bin?.["patchright"] ?? Object.values(manifest.bin ?? {})[0]);
|
|
12
|
+
if (!bin || isAbsolute(bin) || bin.includes(".."))
|
|
13
|
+
throw new Error("Patchright no expone un bin seguro.");
|
|
14
|
+
const cli = resolve(packageDir, bin);
|
|
15
|
+
if (!relative(packageDir, cli) ||
|
|
16
|
+
relative(packageDir, cli).startsWith("..") ||
|
|
17
|
+
!existsSync(cli)) {
|
|
18
|
+
throw new Error("El bin de Patchright no existe dentro de su paquete.");
|
|
19
|
+
}
|
|
20
|
+
return cli;
|
|
21
|
+
}
|
|
22
|
+
export function patchrightNodeModulesRoot() {
|
|
23
|
+
return resolve(dirname(require.resolve("patchright/package.json")), "..");
|
|
24
|
+
}
|
|
25
|
+
export function isPathInside(root, candidate) {
|
|
26
|
+
const realRoot = realpathSync.native(root);
|
|
27
|
+
const realCandidate = realpathSync.native(candidate);
|
|
28
|
+
const suffix = relative(realRoot, realCandidate);
|
|
29
|
+
return suffix !== "" && !isAbsolute(suffix) && !suffix.startsWith("..");
|
|
30
|
+
}
|
|
31
|
+
function patchrightCli() {
|
|
32
|
+
const packageFile = require.resolve("patchright/package.json");
|
|
33
|
+
const packageDir = dirname(packageFile);
|
|
34
|
+
const manifest = require(packageFile);
|
|
35
|
+
return resolvePatchrightBin(manifest, packageDir);
|
|
36
|
+
}
|
|
37
|
+
function status() {
|
|
38
|
+
const executablePath = chromium.executablePath();
|
|
39
|
+
const installed = Boolean(executablePath && existsSync(executablePath));
|
|
40
|
+
const hermetic = !installed || isPathInside(patchrightNodeModulesRoot(), executablePath);
|
|
41
|
+
return {
|
|
42
|
+
browser: "chromium",
|
|
43
|
+
installed: installed && hermetic,
|
|
44
|
+
hermetic,
|
|
45
|
+
executablePath: installed && hermetic ? executablePath : null,
|
|
46
|
+
patchrightVersion: require("patchright/package.json").version,
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
async function install() {
|
|
50
|
+
const cli = patchrightCli();
|
|
51
|
+
await new Promise((resolvePromise, reject) => {
|
|
52
|
+
const child = spawn(process.execPath, [cli, "install", "chromium"], {
|
|
53
|
+
stdio: ["inherit", "pipe", "pipe"],
|
|
54
|
+
env: { ...process.env, PLAYWRIGHT_BROWSERS_PATH: "0" },
|
|
55
|
+
});
|
|
56
|
+
child.stdout?.on("data", (chunk) => process.stderr.write(chunk));
|
|
57
|
+
child.stderr?.on("data", (chunk) => process.stderr.write(chunk));
|
|
58
|
+
child.once("error", reject);
|
|
59
|
+
child.once("exit", (code) => code === 0 ? resolvePromise() : reject(new Error(`Patchright terminó con código ${code}`)));
|
|
60
|
+
});
|
|
61
|
+
const result = status();
|
|
62
|
+
if (!result.installed || !result.executablePath)
|
|
63
|
+
throw new Error("Chromium no quedó instalado en el entorno hermético.");
|
|
64
|
+
return result;
|
|
65
|
+
}
|
|
66
|
+
export async function runBrowserCli(args) {
|
|
67
|
+
if ((args[0] !== "status" && args[0] !== "install") || args[1] !== "--json") {
|
|
68
|
+
throw new Error("Uso: browser status --json | browser install --json");
|
|
69
|
+
}
|
|
70
|
+
const result = args[0] === "install" ? await install() : status();
|
|
71
|
+
process.stdout.write(`${JSON.stringify(result)}\n`);
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=browser-cli.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browser-cli.js","sourceRoot":"","sources":["../../src/browser/browser-cli.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aA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CAAC,KAAK,UAAU,aAAa,CAAC,IAAc;IAChD,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,QAAQ,EAAE,CAAC;QAC5E,MAAM,IAAI,KAAK,CAAC,qDAAqD,CAAC,CAAC;IACzE,CAAC;IACD,MAAM,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,MAAM,OAAO,EAAE,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAClE,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACtD,CAAC"}
|
package/dist/cli.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":""}
|
package/dist/cli.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
process.env.PLAYWRIGHT_BROWSERS_PATH = "0";
|
|
3
|
+
const args = process.argv.slice(2);
|
|
4
|
+
if (args[0] === "browser") {
|
|
5
|
+
const { runBrowserCli } = await import("./browser/browser-cli.js");
|
|
6
|
+
await runBrowserCli(args.slice(1));
|
|
7
|
+
}
|
|
8
|
+
else {
|
|
9
|
+
await import("./index.js");
|
|
10
|
+
}
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=cli.js.map
|
package/dist/cli.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAEA,OAAO,CAAC,GAAG,CAAC,wBAAwB,GAAG,GAAG,CAAC;AAE3C,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AACnC,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,SAAS,EAAE,CAAC;IAC1B,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,MAAM,CAAC,0BAA0B,CAAC,CAAC;IACnE,MAAM,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;AACrC,CAAC;KAAM,CAAC;IACN,MAAM,MAAM,CAAC,YAAY,CAAC,CAAC;AAC7B,CAAC"}
|
package/docs/configuration.md
CHANGED
|
File without changes
|
|
@@ -163,6 +163,34 @@ Delivered in this release:
|
|
|
163
163
|
- Added deterministic concurrency and duplicate-candidate regression tests without
|
|
164
164
|
requiring new unverified browser selectors.
|
|
165
165
|
|
|
166
|
+
## 2.3.3 — Trusted npm publication
|
|
167
|
+
|
|
168
|
+
Status: implemented and published. The first OIDC release exposed a Bash `errexit`
|
|
169
|
+
interaction in the registry propagation loop; the poll now handles an unavailable
|
|
170
|
+
version as a retryable state.
|
|
171
|
+
|
|
172
|
+
Scope:
|
|
173
|
+
|
|
174
|
+
- Publish stable versions from a non-prerelease GitHub Release through npm trusted
|
|
175
|
+
publishing and GitHub OIDC, without an `NPM_TOKEN` secret.
|
|
176
|
+
- Require the release tag to match `package.json`, the package/repository metadata to
|
|
177
|
+
match the current repository, and the release commit to belong to the default
|
|
178
|
+
branch.
|
|
179
|
+
- Run the complete project check, safe MCP preflight, and local package smoke test
|
|
180
|
+
before publication.
|
|
181
|
+
- Make workflow reruns idempotent when npm already contains the immutable version.
|
|
182
|
+
- Wait for registry consistency, inspect the remote tarball, install it from npm, and
|
|
183
|
+
smoke-test MCP startup, runtime version, and tool discovery.
|
|
184
|
+
|
|
185
|
+
Acceptance criteria:
|
|
186
|
+
|
|
187
|
+
- Invalid tags, prerelease versions, private/restricted packages, and repository
|
|
188
|
+
mismatches fail before publication.
|
|
189
|
+
- The workflow has only `contents: read` and `id-token: write`, and contains no npm
|
|
190
|
+
token secret.
|
|
191
|
+
- npm shows provenance for the published version.
|
|
192
|
+
- The installed registry package passes `package:smoke` after publication.
|
|
193
|
+
|
|
166
194
|
## Release discipline
|
|
167
195
|
|
|
168
196
|
For each release:
|
package/docs/project-status.md
CHANGED
|
@@ -10,9 +10,8 @@ and still-pending work.
|
|
|
10
10
|
|
|
11
11
|
| Surface | Version | State |
|
|
12
12
|
| --- | --- | --- |
|
|
13
|
-
| GitHub `main` | 2.3.
|
|
14
|
-
| npm registry | 2.3.
|
|
15
|
-
| npm release candidate | 2.3.2 | Merged and validated; publication pending |
|
|
13
|
+
| GitHub `main` | 2.3.3 | Release implementation merged through PR #19 (`fe7373e`) |
|
|
14
|
+
| npm registry | 2.3.3 | Published under `latest` with OIDC provenance |
|
|
16
15
|
|
|
17
16
|
## Completed work
|
|
18
17
|
|
|
@@ -117,11 +116,29 @@ Version 2.3.1 is complete: the implementation is merged, CI and the authenticate
|
|
|
117
116
|
read-only browser suite pass, npm publication is live, and the remote tarball has been
|
|
118
117
|
verified. No release-specific activity remains open.
|
|
119
118
|
|
|
120
|
-
##
|
|
119
|
+
## 2.3.2 completion status
|
|
121
120
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
121
|
+
Version 2.3.2 is complete: the implementation is merged, CI and CodeQL pass, npm
|
|
122
|
+
`latest` resolves to 2.3.2, and the remote 177-entry tarball exposes valid SHA-512
|
|
123
|
+
integrity metadata. No release-specific activity remains open.
|
|
124
|
+
|
|
125
|
+
## 2.3.3 completion status
|
|
126
|
+
|
|
127
|
+
Version 2.3.3 was published from GitHub Release `v2.3.3` through npm trusted
|
|
128
|
+
publishing/OIDC without an `NPM_TOKEN`. npm exposes SHA-512 integrity and SLSA
|
|
129
|
+
provenance for the package. The publish operation succeeded on the first automated
|
|
130
|
+
run; its post-publication polling step exposed a Bash `errexit` interaction and has
|
|
131
|
+
been corrected so an initially unavailable registry version is retried as intended.
|
|
132
|
+
|
|
133
|
+
Validation completed for 2.3.3:
|
|
134
|
+
|
|
135
|
+
- `npm run check`: 53/53 tests passed; format, lint, and TypeScript build passed.
|
|
136
|
+
- `npm run test:live:preflight`: passed as version 2.3.3.
|
|
137
|
+
- `npm audit --json`: zero known vulnerabilities.
|
|
138
|
+
- `npm run package:smoke`: passed with version 2.3.3 and 31 tools.
|
|
139
|
+
- `npm pack --dry-run --json`: valid local 2.3.3 tarball with 178 entries.
|
|
140
|
+
- GitHub CI and CodeQL passed before PR #19 was merged.
|
|
141
|
+
- npm `latest` resolves to 2.3.3 and exposes SHA-512 integrity plus SLSA provenance.
|
|
125
142
|
|
|
126
143
|
## Remaining product roadmap
|
|
127
144
|
|
|
@@ -174,8 +191,7 @@ verified. No release-specific activity remains open.
|
|
|
174
191
|
|
|
175
192
|
### Release operations
|
|
176
193
|
|
|
177
|
-
-
|
|
178
|
-
|
|
179
|
-
publication.
|
|
194
|
+
- Monitor the next release's corrected post-publication registry install and MCP
|
|
195
|
+
smoke verification end to end.
|
|
180
196
|
- Remove merged remote branches after each release and keep `main` as the only
|
|
181
197
|
long-lived branch unless a maintenance branch is explicitly required.
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# Releasing to npm
|
|
2
|
+
|
|
3
|
+
The npm package is published from a GitHub Release by `.github/workflows/publish.yml`.
|
|
4
|
+
The workflow uses npm trusted publishing (OIDC), so it does not store or receive an
|
|
5
|
+
`NPM_TOKEN` secret. npm also records provenance for the published package.
|
|
6
|
+
|
|
7
|
+
## One-time trusted publisher setup
|
|
8
|
+
|
|
9
|
+
An npm package owner must configure the publisher before creating the first automated
|
|
10
|
+
release:
|
|
11
|
+
|
|
12
|
+
1. Open the package settings for `@charlie.act7/gemini-notebook-mcp` on npm.
|
|
13
|
+
2. Under **Trusted Publisher**, select **GitHub Actions**.
|
|
14
|
+
3. Enter these exact values:
|
|
15
|
+
- Organization or user: `CharlieCardenasToledo`
|
|
16
|
+
- Repository: `gemini-notebook-mcp`
|
|
17
|
+
- Workflow filename: `publish.yml`
|
|
18
|
+
- Environment: leave empty
|
|
19
|
+
4. Save the trusted publisher.
|
|
20
|
+
5. After one successful OIDC publication, configure package access so ordinary npm
|
|
21
|
+
tokens cannot publish this package.
|
|
22
|
+
|
|
23
|
+
The workflow filename is case-sensitive. It must be configured as the filename only,
|
|
24
|
+
not `.github/workflows/publish.yml`.
|
|
25
|
+
|
|
26
|
+
## Release gates
|
|
27
|
+
|
|
28
|
+
The workflow publishes only a non-prerelease GitHub Release and verifies all of the
|
|
29
|
+
following before calling `npm publish`:
|
|
30
|
+
|
|
31
|
+
- the tag is exactly `v<package.json version>`;
|
|
32
|
+
- the package version is a stable `x.y.z` version;
|
|
33
|
+
- the package is public and its repository matches the current GitHub repository;
|
|
34
|
+
- the checked-out release commit is an ancestor of the default branch;
|
|
35
|
+
- formatting, lint, build, tests, MCP preflight, and local package smoke checks pass;
|
|
36
|
+
- the npm registry is reachable.
|
|
37
|
+
|
|
38
|
+
No npm token is provided to the job. `id-token: write` is limited to the publication
|
|
39
|
+
workflow so npm can exchange GitHub's short-lived OIDC identity for publication
|
|
40
|
+
authorization.
|
|
41
|
+
|
|
42
|
+
## Creating a release
|
|
43
|
+
|
|
44
|
+
Prepare the version, changelog, tests, and documentation in one pull request. After
|
|
45
|
+
that pull request is merged and all required checks pass:
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
git switch main
|
|
49
|
+
git pull --ff-only
|
|
50
|
+
gh release create v2.3.3 --target main --generate-notes
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Replace `2.3.3` with the version in `package.json`. Publishing the GitHub Release
|
|
54
|
+
starts the npm workflow. Do not create the tag or release from an unmerged branch.
|
|
55
|
+
|
|
56
|
+
The job is safe to rerun. If the exact package version already exists, it skips
|
|
57
|
+
`npm publish` and continues with registry verification.
|
|
58
|
+
|
|
59
|
+
## Post-publication verification
|
|
60
|
+
|
|
61
|
+
The workflow waits for registry consistency, inspects the remote tarball, installs it
|
|
62
|
+
into a clean temporary prefix, starts its compiled MCP server, and verifies the
|
|
63
|
+
runtime version and discovered tools.
|
|
64
|
+
|
|
65
|
+
Useful manual checks are:
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
npm view @charlie.act7/gemini-notebook-mcp version
|
|
69
|
+
npm view @charlie.act7/gemini-notebook-mcp@2.3.3 dist.integrity dist.attestations
|
|
70
|
+
npm pack @charlie.act7/gemini-notebook-mcp@2.3.3 --dry-run --json
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
If the workflow fails before publication, correct the repository and rerun it. If it
|
|
74
|
+
fails after npm accepted the immutable version, do not bump or republish solely to
|
|
75
|
+
rerun verification; rerun the same workflow, which will detect and verify the
|
|
76
|
+
existing version.
|
package/docs/tools.md
CHANGED
|
File without changes
|
package/docs/troubleshooting.md
CHANGED
|
File without changes
|
package/docs/usage-guide.md
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "2.3.
|
|
6
|
+
"version": "2.3.4",
|
|
7
7
|
"description": "MCP server for Google Gemini Notebook (formerly NotebookLM) — chat, source ingestion, audio overviews, citations, stdio + Streamable-HTTP transports.",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"bin": {
|
|
10
|
-
"gemini-notebook-mcp": "dist/
|
|
10
|
+
"gemini-notebook-mcp": "dist/cli.js"
|
|
11
11
|
},
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsc",
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"pretest:live:preflight": "npm run build",
|
|
31
31
|
"test:live:preflight": "node scripts/live-readonly-smoke.mjs --preflight-only",
|
|
32
32
|
"package:smoke": "node scripts/package-smoke.mjs",
|
|
33
|
+
"release:check": "node scripts/release-check.mjs",
|
|
33
34
|
"check": "npm run format:check && npm run lint && npm run build && npm test"
|
|
34
35
|
},
|
|
35
36
|
"keywords": [
|