plaud-notes-to-notion 1.2.2 → 1.2.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/CHANGELOG.md +4 -0
- package/README.md +87 -48
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +2 -1
- package/dist/constants.js.map +1 -1
- package/dist/secrets.js +9 -18
- package/dist/secrets.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.2.4
|
|
4
|
+
|
|
5
|
+
- Rewrite the README and package description for any Plaud + Notion user; document the Notion schema, `scrub`, `logout` and the remaining CLI flags.
|
|
6
|
+
|
|
3
7
|
## 1.2.2
|
|
4
8
|
|
|
5
9
|
- Use high effort for Claude participant labeling, retaining automatic tool choice and thinking headroom.
|
package/README.md
CHANGED
|
@@ -1,37 +1,54 @@
|
|
|
1
1
|
# Plaud Notes to Notion
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
(
|
|
5
|
-
recording
|
|
6
|
-
|
|
7
|
-
Zap's rows. Every 5 minutes it also copies **Summary** title/participant edits
|
|
3
|
+
A small macOS background service (LaunchAgent) that copies finished
|
|
4
|
+
[Plaud](https://www.plaud.ai/) recordings into a Notion database. For each
|
|
5
|
+
recording it writes two rows, one `Summary` and one `Transcript`. Every 5
|
|
6
|
+
minutes it also copies title and participant edits you make on a **Summary** row
|
|
8
7
|
onto the matching **Transcript** row.
|
|
9
8
|
|
|
10
|
-
|
|
9
|
+
Before anything leaves your Mac, Social Security numbers and payment-card
|
|
10
|
+
details are removed from the summary, transcript, and title. Participant names
|
|
11
|
+
are filled in by a language model (Anthropic Claude by default, or OpenAI).
|
|
12
|
+
|
|
13
|
+
No runtime dependencies beyond Node.js 20 or later.
|
|
11
14
|
|
|
12
15
|
## What it does (per profile)
|
|
13
16
|
|
|
14
|
-
| Step |
|
|
15
|
-
| --- | --- |
|
|
16
|
-
| Poll Plaud every **30 s** (deep 30-day scan every 10 min) |
|
|
17
|
-
| `Recorded` = recording start, to the minute, true UTC |
|
|
18
|
-
| **SSN redaction** (summary, transcript, title) |
|
|
19
|
-
| **Card redaction** (summary, transcript, title) |
|
|
20
|
-
|
|
|
21
|
-
|
|
|
22
|
-
|
|
|
23
|
-
| Create **
|
|
24
|
-
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
17
|
+
| Step | Notes |
|
|
18
|
+
| --- | --- |
|
|
19
|
+
| Poll Plaud every **30 s** (deep 30-day scan every 10 min) | Writes only once Plaud has **both** the auto summary and the transcript. Recordings still being processed are re-checked every poll for 48 h, then on deep scans. |
|
|
20
|
+
| `Recorded` = recording start, to the minute, as a true UTC instant | Uses the recording's start time from Plaud, not its upload time. |
|
|
21
|
+
| **SSN redaction** (summary, transcript, title) | Written and spoken digits, including answers given in the next speaker's line. |
|
|
22
|
+
| **Card redaction** (summary, transcript, title) | Credit/debit card numbers (full, or partial: "ending in", "begins with", "last four of the card", "the 0000 card"), security code (CVV/CVC) and expiration date, written or spoken. Runs before SSN redaction so a card's last four is never labelled an SSN. A full number or 4-digit partial found anywhere in a recording is removed everywhere in it. |
|
|
23
|
+
| Clean up Plaud's markdown | Removes the `PLAUD NOTE` header, image embeds, `---` rules and blank lines; pairs quotes as `“…”`; splits `> **Label:** text` callouts. |
|
|
24
|
+
| **Participants** via an LLM, schema-checked JSON | The model sees the summary, the start of the transcript (names often only appear there), and the database's existing Participant spellings, so a person is spelled the same way every time. The profile owner and `Speaker N` labels are never listed. |
|
|
25
|
+
| Create the **Summary** row | Page body is the cleaned summary, written with Notion's markdown API. The title is Plaud's own title without its date. |
|
|
26
|
+
| Create the **Transcript** row | The full transcript as plain text, so `*`, `_` or `#` in speech never turn into formatting. |
|
|
27
|
+
| Summary → Transcript sync every **5 min** | Pairs rows by `Recorded` minute and skips ambiguous minutes. A full 90-day reconcile runs once a day. |
|
|
28
|
+
|
|
29
|
+
Reliability: per-profile state (`~/.plaud-notes-to-notion/state/<profile>.json`)
|
|
30
|
+
so a crash never duplicates or loses a row; the participant call is retried 6
|
|
31
|
+
times, then the rows are written without participants; an expired sign-in raises
|
|
32
|
+
a macOS notification (at most every 6 h).
|
|
33
|
+
|
|
34
|
+
## Notion database
|
|
35
|
+
|
|
36
|
+
Each profile writes to one Notion database (data source) with these properties:
|
|
37
|
+
|
|
38
|
+
| Property | Type |
|
|
39
|
+
| --- | --- |
|
|
40
|
+
| `Meeting` | title |
|
|
41
|
+
| `Recorded` | date |
|
|
42
|
+
| `Type` | select or multi-select, with options `Summary` and `Transcript` |
|
|
43
|
+
| `Participants` | select or multi-select |
|
|
44
|
+
|
|
45
|
+
`doctor` checks the schema and names any property that is missing or has the
|
|
46
|
+
wrong type.
|
|
31
47
|
|
|
32
48
|
## Profiles
|
|
33
49
|
|
|
34
|
-
`~/.plaud-notes-to-notion/config.json
|
|
50
|
+
`~/.plaud-notes-to-notion/config.json`. A profile is one Plaud account writing
|
|
51
|
+
to one Notion database; profiles differ only in *who* and *where*:
|
|
35
52
|
|
|
36
53
|
```json
|
|
37
54
|
{
|
|
@@ -39,56 +56,73 @@ Plaud's own title; recordings still generating are re-checked every poll (up to
|
|
|
39
56
|
"syncSeconds": 300,
|
|
40
57
|
"llmModel": "claude-haiku-5-5",
|
|
41
58
|
"profiles": {
|
|
42
|
-
"
|
|
43
|
-
"
|
|
59
|
+
"alex": { "enabled": true, "owner": "Alex Example", "notionDataSourceId": "<data source id>", "startAfter": "2026-01-01T00:00:00Z" },
|
|
60
|
+
"morgan": { "enabled": false, "owner": "Morgan Example", "notionDataSourceId": "<data source id>", "startAfter": "2026-01-01T00:00:00Z" }
|
|
44
61
|
}
|
|
45
62
|
}
|
|
46
63
|
```
|
|
47
64
|
|
|
48
|
-
- `
|
|
65
|
+
- `owner` — the person whose Plaud this is. They are left out of Participants.
|
|
66
|
+
- `notionDataSourceId` — the database's data source id (a `collection://…` id or plain id).
|
|
67
|
+
- `startAfter` — only recordings **uploaded** after this instant are written. If another tool was already copying recordings into the same database, set this to the moment you turned that tool off so nothing is written twice.
|
|
49
68
|
- `ingest` / `syncTranscripts` (default `true`) — switch either half off.
|
|
50
|
-
- `credentials` — use another profile's Keychain secrets (
|
|
69
|
+
- `credentials` — use another profile's Keychain secrets (for example a test profile that writes to a test database with the same Plaud sign-in).
|
|
70
|
+
- `pollSeconds` (10–3600) and `syncSeconds` (60–86400) set the two loop intervals.
|
|
51
71
|
- The daemon re-reads the file when it changes; turning a profile on needs no restart.
|
|
52
72
|
|
|
53
73
|
### LLM (participant labeling)
|
|
54
74
|
|
|
55
75
|
`llmModel` picks the provider: `claude-*` → Anthropic Messages API (key
|
|
56
76
|
`anthropic`), anything else → OpenAI Responses API (key `openai`). Default is
|
|
57
|
-
`claude-haiku-5-5`.
|
|
77
|
+
`claude-haiku-5-5`. `anthropicBaseUrl` and `openaiBaseUrl` override the API
|
|
78
|
+
endpoints.
|
|
58
79
|
|
|
59
80
|
| Want | `config.json` | Key needed |
|
|
60
81
|
| --- | --- | --- |
|
|
61
82
|
| Claude Haiku (default) | omit `llmModel`, or `"llmModel": "claude-haiku-5-5"` | `set-secret anthropic` |
|
|
62
|
-
|
|
|
83
|
+
| OpenAI | e.g. `"llmModel": "gpt-6-luna", "llmEffort": "high"` | `set-secret openai` |
|
|
63
84
|
|
|
64
|
-
`llmEffort` only applies to OpenAI. Claude requests
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
85
|
+
`llmEffort` only applies to OpenAI. Claude requests use high effort, automatic
|
|
86
|
+
tool choice so the model can think before returning Participants, and an
|
|
87
|
+
8,192-token output limit. The daemon picks up an `llmModel` change on its next
|
|
88
|
+
loop (no restart). If the selected model's key is missing, that profile pauses
|
|
89
|
+
(no ingest or sync) until the key is saved; `doctor` names the `set-secret`
|
|
90
|
+
command. `ANTHROPIC_API_KEY` or `OPENAI_API_KEY` in the environment is used
|
|
91
|
+
before the Keychain key.
|
|
68
92
|
|
|
69
|
-
## Setup (
|
|
93
|
+
## Setup (macOS, logged-in GUI session)
|
|
70
94
|
|
|
71
95
|
```bash
|
|
72
96
|
npm install -g plaud-notes-to-notion # or build from a checkout: npm ci && npm run build
|
|
73
|
-
plaud-notes-to-notion login --profile
|
|
74
|
-
plaud-notes-to-notion set-secret notion --profile
|
|
75
|
-
plaud-notes-to-notion set-secret anthropic
|
|
76
|
-
plaud-notes-to-notion set-secret openai
|
|
77
|
-
plaud-notes-to-notion doctor --profile
|
|
97
|
+
plaud-notes-to-notion login --profile alex # opens Plaud → sign in → Authorize
|
|
98
|
+
plaud-notes-to-notion set-secret notion --profile alex # Notion internal integration secret (paste, hidden)
|
|
99
|
+
plaud-notes-to-notion set-secret anthropic # Anthropic API key (shared; the default model)
|
|
100
|
+
plaud-notes-to-notion set-secret openai # OpenAI API key (shared; only if llmModel is not claude-*)
|
|
101
|
+
plaud-notes-to-notion doctor --profile alex
|
|
78
102
|
sh "$(npm root -g)/plaud-notes-to-notion/examples/install-launchagent.sh"
|
|
79
103
|
```
|
|
80
104
|
|
|
81
|
-
The Notion integration needs **Read / Update / Insert** on
|
|
82
|
-
|
|
83
|
-
`plaud-notes-to-notion` (accounts `plaud:<profile>`, `notion:<profile>`,
|
|
84
|
-
profile-specific `anthropic:<profile>` /
|
|
105
|
+
The Notion integration needs **Read / Update / Insert** on the database
|
|
106
|
+
(••• → Connections). On macOS, secrets live only in the Keychain service
|
|
107
|
+
`plaud-notes-to-notion` (accounts `plaud:<profile>`, `notion:<profile>`,
|
|
108
|
+
`anthropic`, `openai`; a profile-specific `anthropic:<profile>` /
|
|
109
|
+
`openai:<profile>` wins over the shared one). `set-secret` reads the value from
|
|
110
|
+
hidden input, or copies an existing Keychain item with
|
|
111
|
+
`--from-keychain <service>/<account>`. `login --no-browser` prints the sign-in
|
|
112
|
+
link instead of opening it.
|
|
113
|
+
|
|
114
|
+
The install script writes `~/Library/LaunchAgents/com.plaud-notes-to-notion.plist`
|
|
115
|
+
for the current user and loads it; it runs `plaud-notes-to-notion run`.
|
|
85
116
|
|
|
86
117
|
## Everyday commands
|
|
87
118
|
|
|
88
119
|
```bash
|
|
89
|
-
plaud-notes-to-notion status
|
|
90
|
-
plaud-notes-to-notion once --profile
|
|
91
|
-
plaud-notes-to-notion sync --profile
|
|
120
|
+
plaud-notes-to-notion status # last poll / sync / write per profile
|
|
121
|
+
plaud-notes-to-notion once --profile alex --dry-run # show what would be written, write nothing (--deep: 30-day scan)
|
|
122
|
+
plaud-notes-to-notion sync --profile alex --dry-run # show Transcript fixes, change nothing (--full: 90-day reconcile)
|
|
123
|
+
plaud-notes-to-notion scrub --profile alex # find SSNs and card details in rows already in Notion
|
|
124
|
+
plaud-notes-to-notion scrub --profile alex --apply # remove them
|
|
125
|
+
plaud-notes-to-notion logout --profile alex # forget that profile's Plaud sign-in
|
|
92
126
|
tail -f ~/Library/Logs/plaud-notes-to-notion.log
|
|
93
127
|
```
|
|
94
128
|
|
|
@@ -101,6 +135,8 @@ npm test && npm run typecheck && npm run build
|
|
|
101
135
|
|
|
102
136
|
Tests use explicitly fictional people, calls and all-zero SSNs; payment-card numbers are standard synthetic test values. Never commit tokens, real transcripts or database ids.
|
|
103
137
|
|
|
138
|
+
`PLAUD_NOTES_HOME` points config, state, logs and a file-based secret store at
|
|
139
|
+
another directory (used by tests).
|
|
104
140
|
|
|
105
141
|
### Privacy gates
|
|
106
142
|
|
|
@@ -112,7 +148,10 @@ gitleaks git --log-opts=--all --config .gitleaks.toml --redact=100 --no-banner .
|
|
|
112
148
|
npm run build && npm run scan:package
|
|
113
149
|
```
|
|
114
150
|
|
|
115
|
-
|
|
151
|
+
Before a pull request is merged, `python3 .security/local-gate.py <PR number>`
|
|
152
|
+
runs Gitleaks, the production `npm audit`, offline Semgrep and the tests on the
|
|
153
|
+
exact PR head and records the result as the `local-gate` status. Push and
|
|
154
|
+
pull-request CI also scans full fetched history and package contents.
|
|
116
155
|
`prepublishOnly` rebuilds and scans the exact npm file list before publication.
|
|
117
156
|
Use home-derived paths and local config for real owners and destinations.
|
|
118
157
|
After a rewritten history, discard old clones and re-clone; merging old history
|
package/dist/constants.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** Product constants. No secrets. */
|
|
2
2
|
export declare const PACKAGE_NAME = "plaud-notes-to-notion";
|
|
3
|
-
export declare const PACKAGE_VERSION
|
|
3
|
+
export declare const PACKAGE_VERSION: string;
|
|
4
4
|
/** macOS Keychain service. One service, named accounts per profile. */
|
|
5
5
|
export declare const KEYCHAIN_SERVICE = "plaud-notes-to-notion";
|
|
6
6
|
/** Plaud OAuth token-set JSON for a profile: `plaud:<profile>`. */
|
package/dist/constants.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { readFileSync } from "node:fs";
|
|
1
2
|
/** Product constants. No secrets. */
|
|
2
3
|
export const PACKAGE_NAME = "plaud-notes-to-notion";
|
|
3
|
-
export const PACKAGE_VERSION = "
|
|
4
|
+
export const PACKAGE_VERSION = JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf8")).version;
|
|
4
5
|
/** macOS Keychain service. One service, named accounts per profile. */
|
|
5
6
|
export const KEYCHAIN_SERVICE = "plaud-notes-to-notion";
|
|
6
7
|
/** Plaud OAuth token-set JSON for a profile: `plaud:<profile>`. */
|
package/dist/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,MAAM,CAAC,MAAM,YAAY,GAAG,uBAAuB,CAAC;AACpD,MAAM,CAAC,MAAM,eAAe,GAAG,
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,qCAAqC;AAErC,MAAM,CAAC,MAAM,Y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qEAAqE;AACrE,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAAa,EAAU,EAAE,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC"}
|
package/dist/secrets.js
CHANGED
|
@@ -9,7 +9,9 @@ function stripSecurityPassword(stdout) {
|
|
|
9
9
|
}
|
|
10
10
|
/** Quote for `security -i` so the secret is on stdin, not `ps` argv. */
|
|
11
11
|
export function quoteSecurityArg(value) {
|
|
12
|
-
|
|
12
|
+
if (!value || /[\r\n\0]/.test(value))
|
|
13
|
+
throw new Error(KEYCHAIN_WRITE_FAILED);
|
|
14
|
+
return '"' + value.replace(/\\/g, "\\\\").replace(/"/g, '\\"') + '"';
|
|
13
15
|
}
|
|
14
16
|
export async function defaultSecurityRun(bin, args, stdin) {
|
|
15
17
|
return new Promise((resolve, reject) => {
|
|
@@ -48,28 +50,17 @@ export async function defaultSecurityRun(bin, args, stdin) {
|
|
|
48
50
|
* `-U` updates an existing item. GUI Terminal.app required — non-GUI write fails.
|
|
49
51
|
*/
|
|
50
52
|
export async function writeKeychainPassword(options) {
|
|
51
|
-
if (options.value.includes("\n") || options.value.includes("\r")) {
|
|
52
|
-
throw new Error(KEYCHAIN_WRITE_FAILED);
|
|
53
|
-
}
|
|
54
53
|
const securityBin = options.securityBin || "/usr/bin/security";
|
|
55
54
|
const run = options.securityRunImpl || defaultSecurityRun;
|
|
56
|
-
const
|
|
55
|
+
const line = `add-generic-password -U -s ${quoteSecurityArg(options.service)} -a ${quoteSecurityArg(options.account)} -w ${quoteSecurityArg(options.value)}\n`;
|
|
56
|
+
if (Buffer.byteLength(line, "utf8") >= 4095)
|
|
57
|
+
throw new Error(KEYCHAIN_WRITE_FAILED);
|
|
57
58
|
try {
|
|
58
|
-
await run(securityBin, ["-i"],
|
|
59
|
+
await run(securityBin, ["-i"], line);
|
|
59
60
|
}
|
|
60
61
|
catch {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
catch {
|
|
65
|
-
/* nothing to replace */
|
|
66
|
-
}
|
|
67
|
-
try {
|
|
68
|
-
await run(securityBin, ["-i"], addLine(false));
|
|
69
|
-
}
|
|
70
|
-
catch {
|
|
71
|
-
throw new Error(KEYCHAIN_WRITE_FAILED);
|
|
72
|
-
}
|
|
62
|
+
// Preserve the old credential on failure; never delete it to retry an unproven write.
|
|
63
|
+
throw new Error(KEYCHAIN_WRITE_FAILED);
|
|
73
64
|
}
|
|
74
65
|
let readBack;
|
|
75
66
|
try {
|
package/dist/secrets.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secrets.js","sourceRoot":"","sources":["../src/secrets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAQzC,MAAM,CAAC,MAAM,qBAAqB,GAChC,yIAAyI,CAAC;AAE5I,SAAS,qBAAqB,CAAC,MAAc;IAC3C,OAAO,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;AACnC,CAAC;AAED,wEAAwE;AACxE,MAAM,UAAU,gBAAgB,CAAC,KAAa;IAC5C,
|
|
1
|
+
{"version":3,"file":"secrets.js","sourceRoot":"","sources":["../src/secrets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CA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E,CAAC;IACnC,CAAC;IACD,OAAO,IAAI,eAAe,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC;AAC/C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "plaud-notes-to-notion",
|
|
3
|
-
"version": "1.2.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.2.4",
|
|
4
|
+
"description": "macOS LaunchAgent that copies finished Plaud recordings into a Notion database as Summary and Transcript rows, with SSN and payment-card redaction, LLM participant labels, and Summary-to-Transcript title/participant sync.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/cli.js",
|
|
7
7
|
"bin": {
|