@bitefoundry/notion 0.1.4 → 0.2.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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 BiteFoundry
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
@@ -21,7 +21,7 @@
21
21
 
22
22
  | Pillar | Capabilities |
23
23
  | :--- | :--- |
24
- | **Minimal-Chrome TUI** | Authentic Notion editorial aesthetic (`notion` / `nt`): 1-line **Breadcrumb Bar**, collapsible **Workspace Sidebar (`[`)** with Favorites & nested tree, **Centered (~88 col) / Full Width (`w`) Page Canvas**, 10 canonical Notion pill colors, live interactive **`to_do` checkboxes (`Space`/`x`)** & **`toggle` blocks**, **Database Table (`1`) / Board Kanban (`2`) / List (`3`) views**, **Comments Peek Drawer (`C`)**, **Quick Find (`Ctrl+K`)**, **Multi-Workspace Switcher (`Ctrl+S`)**, and **5 curated palettes** (`Clean Dark`, `Warm Paper`, `Tokyo Night`, `Catppuccin`, `Nord`). |
24
+ | **Minimal-Chrome TUI** | Authentic Notion editorial aesthetic (`notion`): 1-line **Breadcrumb Bar**, collapsible **Workspace Sidebar (`[`)** with Favorites & nested tree, **Centered (~88 col) / Full Width (`w`) Page Canvas**, 10 canonical Notion pill colors, live interactive **`to_do` checkboxes (`Space`/`x`)** & **`toggle` blocks**, **Database Table (`1`) / Board Kanban (`2`) / List (`3`) views**, **Comments Peek Drawer (`C`)**, **Quick Find (`Ctrl+K`)**, **Multi-Workspace Switcher (`Ctrl+S`)**, and **5 curated palettes** (`Clean Dark`, `Warm Paper`, `Tokyo Night`, `Catppuccin`, `Nord`). |
25
25
  | **High-Res Terminal Images** | Native inline image previews for Notion-hosted & external media via **Kitty Graphics**, **iTerm2**, **Sixel**, and **24-bit Truecolor Half-Block (`▀`)** fallback (`v` HD modal & `notion download`). |
26
26
  | **Local SQLite FTS5 + IPC Daemon** | Workspace-scoped SQLite WAL + FTS5 cache (`pages`, `databases`, `blocks`, `comments`, `pages_fts`) with automatic `<3`-char Korean/CJK `LIKE` fallback, plus single-instance background sync IPC daemon (`notion daemon start`). |
27
27
  | **4-in-1 Agent Interface** | Same binary powers the **Interactive TUI**, scriptable **`--json` CLI**, local **HTTP JSON API** (`notion serve`, `:8791`), and **stdio MCP server** (`notion mcp`, **19 typed tools** with `confirm: true` archive guard). |
@@ -30,8 +30,10 @@
30
30
 
31
31
  ## Quick Start
32
32
 
33
+ Upgrading from 0.1.x? Change `nt` to `notion` in shell scripts and set the MCP server’s `command` to `notion`.
34
+
33
35
  ```bash
34
- # 1. Install globally (links `notion` and `nt` native binaries)
36
+ # 1. Install globally (installs the native `notion` command)
35
37
  npm i -g @bitefoundry/notion
36
38
 
37
39
  # 2. Authenticate — Internal Integration Token (30-second setup) or Public OAuth 2.0
@@ -41,7 +43,7 @@ notion login --oauth --client-id "$NOTION_CLIENT_ID" --client-secret "$NOTION_CL
41
43
 
42
44
  # 3. Sync your workspace & launch the Notion-native TUI
43
45
  notion sync
44
- notion # alias: nt
46
+ notion
45
47
  ```
46
48
 
47
49
  ---
@@ -127,10 +129,10 @@ Full tool catalog and argument schemas: **[docs/MCP.md](docs/MCP.md)** · npm pa
127
129
  | :--- | :--- | :--- | :--- |
128
130
  | [`@bitefoundry/teams`](https://www.npmjs.com/package/@bitefoundry/teams) | `teams` | Microsoft Teams (Chats, Channels, Meetings & Threads) | TUI · CLI · HTTP · MCP |
129
131
  | [`@bitefoundry/outlook`](https://www.npmjs.com/package/@bitefoundry/outlook) | `outlook` | Microsoft Outlook (Mail, Calendar & Contacts) | TUI · CLI · HTTP · MCP |
130
- | [`@bitefoundry/onenote`](https://www.npmjs.com/package/@bitefoundry/onenote) | `onenote`, `note` | Microsoft OneNote (Notebooks, Sections & Pages) | TUI · CLI · HTTP · MCP |
131
- | [`@bitefoundry/sharepoint`](https://www.npmjs.com/package/@bitefoundry/sharepoint) | `sharepoint`, `sp`, `onedrive`, `od` | Microsoft SharePoint & OneDrive (Sites, Libraries & Lists) | TUI · CLI · HTTP · MCP |
132
- | [`@bitefoundry/atlassian`](https://www.npmjs.com/package/@bitefoundry/atlassian) | `atlassian`, `jira`, `confluence`, `conf` | Atlassian Jira (Kanban, Sprints, JQL) & Confluence Wiki | TUI · CLI · HTTP · MCP |
133
- | **`@bitefoundry/notion`** | `notion`, `nt` | Notion (Editorial Pages, Interactive Blocks & Databases) | TUI · CLI · HTTP · MCP |
132
+ | [`@bitefoundry/onenote`](https://www.npmjs.com/package/@bitefoundry/onenote) | `onenote` | Microsoft OneNote (Notebooks, Sections & Pages) | TUI · CLI · HTTP · MCP |
133
+ | [`@bitefoundry/sharepoint`](https://www.npmjs.com/package/@bitefoundry/sharepoint) | `sharepoint`, `bitefoundry-onedrive` | Microsoft SharePoint & OneDrive (Sites, Libraries & Lists) | TUI · CLI · HTTP · MCP |
134
+ | [`@bitefoundry/atlassian`](https://www.npmjs.com/package/@bitefoundry/atlassian) | `atlassian`, `confluence`, `conf` | Atlassian Jira (Kanban, Sprints, JQL) & Confluence Wiki | TUI · CLI · HTTP · MCP |
135
+ | **`@bitefoundry/notion`** | `notion` | Notion (Editorial Pages, Interactive Blocks & Databases) | TUI · CLI · HTTP · MCP |
134
136
 
135
137
  ---
136
138
 
package/docs/NPM.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # `@bitefoundry/notion` 6-Platform npm Distribution
2
2
 
3
- `@bitefoundry/notion` distributes prebuilt native Rust binaries via npm `optionalDependencies`, installing both `notion` and `nt` commands with zero Node.js runtime overhead after `postinstall` hardlinking.
3
+ `@bitefoundry/notion` distributes prebuilt native Rust binaries via npm `optionalDependencies`, installing the `notion` command with zero Node.js runtime overhead after `postinstall` hardlinking.
4
4
 
5
5
  ## Platform Packages
6
6
 
@@ -18,4 +18,4 @@
18
18
  - `node scripts/sync-version.mjs --check`: verifies `Cargo.toml`, root `package.json`, and all 6 `npm/notion-*/package.json` manifests match version `0.1.0`.
19
19
  - `node scripts/verify-glibc.mjs --self-test`: verifies the GLIBC <= 2.28 ELF symbol checker used in GitHub Actions Linux releases.
20
20
  - `node scripts/build-npm.mjs [--target <triple>] [--all]`: stages Cargo release binaries into `npm/notion-*/bin/`.
21
- - `scripts/postinstall.mjs`: links `notion` and `nt` directly to the native binary on Unix/Windows while guarding against mutating a git development checkout.
21
+ - `scripts/postinstall.mjs`: links `notion` directly to the native binary on Unix/Windows while guarding against mutating a git development checkout.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitefoundry/notion",
3
- "version": "0.1.4",
3
+ "version": "0.2.0",
4
4
  "description": "Notion terminal client & AI agent toolkit — Pages, Blocks, Databases (Table/Board/List), Comments & Multi-Workspace (CLI, TUI, HTTP API, MCP)",
5
5
  "repository": {
6
6
  "type": "git",
@@ -8,12 +8,10 @@
8
8
  },
9
9
  "license": "MIT",
10
10
  "bin": {
11
- "notion": "bin/notion.js",
12
- "nt": "bin/nt.js"
11
+ "notion": "bin/notion.js"
13
12
  },
14
13
  "files": [
15
14
  "bin/notion.js",
16
- "bin/nt.js",
17
15
  "scripts/postinstall.mjs",
18
16
  "docs/NPM.md",
19
17
  "docs/API.md",
@@ -28,7 +26,6 @@
28
26
  "notion",
29
27
  "notion-cli",
30
28
  "notion-tui",
31
- "nt",
32
29
  "knowledge-base",
33
30
  "kanban",
34
31
  "database",
@@ -43,11 +40,11 @@
43
40
  "build:npm": "node scripts/build-npm.mjs"
44
41
  },
45
42
  "optionalDependencies": {
46
- "@bitefoundry/notion-win32-x64": "0.1.4",
47
- "@bitefoundry/notion-win32-arm64": "0.1.4",
48
- "@bitefoundry/notion-darwin-x64": "0.1.4",
49
- "@bitefoundry/notion-darwin-arm64": "0.1.4",
50
- "@bitefoundry/notion-linux-x64": "0.1.4",
51
- "@bitefoundry/notion-linux-arm64": "0.1.4"
43
+ "@bitefoundry/notion-win32-x64": "0.2.0",
44
+ "@bitefoundry/notion-win32-arm64": "0.2.0",
45
+ "@bitefoundry/notion-darwin-x64": "0.2.0",
46
+ "@bitefoundry/notion-darwin-arm64": "0.2.0",
47
+ "@bitefoundry/notion-linux-x64": "0.2.0",
48
+ "@bitefoundry/notion-linux-arm64": "0.2.0"
52
49
  }
53
50
  }
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  // Zero-Node-Process npm native binary linker.
3
3
  //
4
- // On Unix (linux/darwin): replaces installed `bin/notion.js` and `bin/nt.js` with
4
+ // On Unix (linux/darwin): replaces installed `bin/notion.js` with
5
5
  // hardlinks/symlinks directly to `@bitefoundry/notion-<platform>-<arch>/bin/notion` so npm's
6
6
  // bin symlink execve's the native Rust binary directly (0ms Node startup, 0MB Node RSS).
7
7
  //
8
- // On Windows (win32): creates NTFS hardlinks (fallback copy) `bin/notion.exe` & `bin/nt.exe`
9
- // and rewrites npm's `.bin/{notion,nt}[.cmd|.ps1]` shims when present to invoke
8
+ // On Windows (win32): creates NTFS hardlinks (fallback copy) `bin/notion.exe`
9
+ // and rewrites npm's `.bin/notion[.cmd|.ps1]` shims when present to invoke
10
10
  // the native executable directly without spawning `node.exe`.
11
11
 
12
12
  import fs from 'node:fs';
@@ -14,7 +14,7 @@ import path from 'node:path';
14
14
  import { createRequire } from 'node:module';
15
15
  import { fileURLToPath } from 'node:url';
16
16
 
17
- const BIN_NAMES = ['notion', 'nt'];
17
+ const BIN_NAMES = ['notion'];
18
18
  const PKG_ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
19
19
 
20
20
  function linkOrCopyFile(source, destination) {
package/bin/nt.js DELETED
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env node
2
- 'use strict';
3
-
4
- require('./notion.js');