@dualityinstitute/blink 0.0.4 → 0.0.5
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/README.md +21 -23
- package/dist/cli.js +7 -12
- package/dist/electron/main.js +162 -5736
- package/dist/electron/preload.cjs +0 -4
- package/dist/electron/renderer/popup.html +0 -1
- package/dist/electron/renderer/popup.js +7 -19
- package/package.json +1 -1
- package/dist/electron/fsevents-1bczt1x4.node +0 -0
package/README.md
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
# Blink
|
|
2
2
|
|
|
3
|
-
Blink is a macOS menu-bar meeting copilot. Monitor
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
floating popup.
|
|
3
|
+
Blink is a macOS menu-bar meeting copilot. Monitor privately stages captured
|
|
4
|
+
screenshots, and Meeting adds the live transcript, until you explicitly Ask.
|
|
5
|
+
Blink Cloud streams every answer into a floating popup.
|
|
7
6
|
|
|
8
|
-
-
|
|
7
|
+
- Global capture hotkeys that stage screenshots for the next Ask
|
|
9
8
|
- Live `Them`/`You` Meeting transcript and private screenshot context
|
|
10
|
-
- Explicit Ask button and
|
|
9
|
+
- Explicit Ask button and `⇧⌘Return` submission
|
|
11
10
|
- Presenter notes that remain local to the Mac
|
|
12
11
|
- Privacy mode for excluding Blink windows from supported screen capture
|
|
13
12
|
- One-command Bun installation with an interactive terminal setup
|
|
@@ -51,19 +50,20 @@ the app bundle, gateway health, and token.
|
|
|
51
50
|
|
|
52
51
|
## Monitor
|
|
53
52
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
conversation. Two global capture shortcuts are
|
|
57
|
-
Meeting is on:
|
|
53
|
+
Monitor stages screenshots for an explicit Ask. Nothing is sent until you
|
|
54
|
+
submit, so one Ask can carry several captures at once, and every Monitor Ask
|
|
55
|
+
receives a fresh server-side conversation. Two global capture shortcuts are
|
|
56
|
+
registered while Monitor or Meeting is on:
|
|
58
57
|
|
|
59
58
|
| Capture | Shortcut |
|
|
60
59
|
|---|---|
|
|
61
60
|
| Select a region | `⇧⌘2` |
|
|
62
61
|
| Whole main display | `⇧⌘1` |
|
|
63
62
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
63
|
+
Captures are staged privately under `~/.blink/captures/` in both modes and are
|
|
64
|
+
never answered automatically. Select **Ask** or press `⇧⌘Return` to submit every
|
|
65
|
+
staged screenshot in one request; with Meeting active the current transcript is
|
|
66
|
+
included as well.
|
|
67
67
|
|
|
68
68
|
The first capture asks for **Screen & System Audio Recording** permission under
|
|
69
69
|
the signed **Blink** app identity.
|
|
@@ -78,7 +78,7 @@ and it stops following new speech until you return to the bottom. Captures made
|
|
|
78
78
|
global shortcuts are retained in a private staging directory. The popup shows
|
|
79
79
|
which transcript and screenshot context is ready.
|
|
80
80
|
|
|
81
|
-
Select **Ask** or press
|
|
81
|
+
Select **Ask** or press `⇧⌘Return` to submit one snapshot containing the
|
|
82
82
|
available transcript and staged screenshots. Subsequent Asks reuse the same
|
|
83
83
|
Meeting conversation. A failed Ask retains its context for retry; after a
|
|
84
84
|
successful Ask, only the screenshots included in that submission are removed.
|
|
@@ -106,7 +106,7 @@ times each session matched.
|
|
|
106
106
|
|
|
107
107
|
## Answer lifecycle and cancellation
|
|
108
108
|
|
|
109
|
-
- Monitor
|
|
109
|
+
- Monitor Asks are always fresh and independent.
|
|
110
110
|
- Starting Meeting resets that access identity's Meeting conversation.
|
|
111
111
|
- Every Ask during the active Meeting continues that conversation.
|
|
112
112
|
- **Stop** cancels the active request both locally and at the gateway.
|
|
@@ -117,7 +117,7 @@ Subscribe at [duality.institute/blink](https://duality.institute/blink). After
|
|
|
117
117
|
Stripe Checkout the claim page shows your access token exactly once; paste it
|
|
118
118
|
into `bunx @dualityinstitute/blink@latest install`.
|
|
119
119
|
|
|
120
|
-
Every Monitor
|
|
120
|
+
Every Monitor Ask and every Meeting Ask counts as one answer against
|
|
121
121
|
your monthly limit. The popup shows `used / limit` for the current period, and
|
|
122
122
|
`blink doctor` prints the same together with the account email and status.
|
|
123
123
|
Cancelled or failed answers are not counted. When the limit is reached, or the
|
|
@@ -136,17 +136,16 @@ Cloud.
|
|
|
136
136
|
|
|
137
137
|
Blink Cloud receives:
|
|
138
138
|
|
|
139
|
-
- A new watched-directory PNG while Monitor is on
|
|
140
139
|
- The current two-minute transcript and staged screenshots only when Ask is used
|
|
141
140
|
- The bearer access token needed to authorize and isolate the request
|
|
142
141
|
|
|
143
142
|
The desktop stores the access token in `~/.blink/config.json`. Answer metadata
|
|
144
143
|
and text are appended locally to `~/.blink/answers.jsonl`, and meeting
|
|
145
144
|
transcripts to `~/.blink/transcripts/`. Presenter Notes stay
|
|
146
|
-
local in `~/.blink/presenter.md` and are never submitted.
|
|
147
|
-
|
|
145
|
+
local in `~/.blink/presenter.md` and are never submitted. Captures are staged
|
|
146
|
+
under `~/.blink/captures/` and cleared when Monitor and Meeting are both off.
|
|
148
147
|
|
|
149
|
-
Blink Cloud does not retain your content: a Monitor
|
|
148
|
+
Blink Cloud does not retain your content: a Monitor Ask's conversation is
|
|
150
149
|
deleted as soon as the answer is returned, and a Meeting conversation is deleted
|
|
151
150
|
when you turn Meeting off (or after two hours without an Ask). Only usage counts
|
|
152
151
|
and token totals are kept for billing.
|
|
@@ -157,10 +156,9 @@ and token totals are kept for billing.
|
|
|
157
156
|
|---|---|---|
|
|
158
157
|
| `apiUrl` | Blink Cloud | Gateway base URL; override only for a self-hosted or local gateway |
|
|
159
158
|
| `accessToken` | Empty | Bearer token issued for Blink Cloud |
|
|
160
|
-
| `screenshotDir` | `~/blinkDir/` | Watched PNG directory |
|
|
161
159
|
| `hideFromCapture` | `true` | Enables privacy mode |
|
|
162
160
|
| `showTranscript` | `true` | Shows the live transcript panel during a meeting |
|
|
163
161
|
|
|
164
162
|
Blink materializes new defaults without deleting unrelated settings from an
|
|
165
|
-
existing config file. The obsolete `sessionMode
|
|
166
|
-
removed automatically.
|
|
163
|
+
existing config file. The obsolete `sessionMode`, `hotkeyPreset`, and
|
|
164
|
+
`screenshotDir` keys are removed automatically.
|
package/dist/cli.js
CHANGED
|
@@ -19865,7 +19865,7 @@ function date4(params) {
|
|
|
19865
19865
|
var OptionalPrompt = exports_external.preprocess((value) => value === null || value === "" ? undefined : value, exports_external.string().trim().min(1).max(4000).optional());
|
|
19866
19866
|
var MonitorRequestSchema = exports_external.object({
|
|
19867
19867
|
kind: exports_external.literal("monitor"),
|
|
19868
|
-
|
|
19868
|
+
images: exports_external.array(exports_external.instanceof(File)).min(1).readonly(),
|
|
19869
19869
|
prompt: OptionalPrompt
|
|
19870
19870
|
});
|
|
19871
19871
|
var MeetingRequestSchema = exports_external.object({
|
|
@@ -19968,7 +19968,12 @@ var DEFAULTS = {
|
|
|
19968
19968
|
monitorPrompt: "",
|
|
19969
19969
|
meetingPrompt: ""
|
|
19970
19970
|
};
|
|
19971
|
-
var OBSOLETE_KEYS = [
|
|
19971
|
+
var OBSOLETE_KEYS = [
|
|
19972
|
+
"sessionMode",
|
|
19973
|
+
"hotkeyPreset",
|
|
19974
|
+
"saveTranscript",
|
|
19975
|
+
"screenshotDir"
|
|
19976
|
+
];
|
|
19972
19977
|
var RawConfigSchema = exports_external.record(exports_external.string(), exports_external.unknown());
|
|
19973
19978
|
var HttpUrlSchema = exports_external.url().refine((value) => {
|
|
19974
19979
|
const protocol = new URL(value).protocol;
|
|
@@ -19984,9 +19989,6 @@ function getBlinkHome() {
|
|
|
19984
19989
|
function getConfigPath() {
|
|
19985
19990
|
return path.join(getBlinkHome(), "config.json");
|
|
19986
19991
|
}
|
|
19987
|
-
function expandTilde(filePath) {
|
|
19988
|
-
return filePath.startsWith("~") ? path.join(os.homedir(), filePath.slice(1)) : filePath;
|
|
19989
|
-
}
|
|
19990
19992
|
function parseHttpUrl(value) {
|
|
19991
19993
|
const parsed = HttpUrlSchema.safeParse(value);
|
|
19992
19994
|
if (!parsed.success)
|
|
@@ -20039,13 +20041,6 @@ function loadConfig() {
|
|
|
20039
20041
|
throw new ConfigFileError("accessToken must be a string");
|
|
20040
20042
|
merged.accessToken = token.data;
|
|
20041
20043
|
}
|
|
20042
|
-
if (user["screenshotDir"] !== undefined) {
|
|
20043
|
-
const directory = exports_external.string().safeParse(user["screenshotDir"]);
|
|
20044
|
-
if (!directory.success) {
|
|
20045
|
-
throw new ConfigFileError("screenshotDir must be a string");
|
|
20046
|
-
}
|
|
20047
|
-
merged.screenshotDir = expandTilde(directory.data);
|
|
20048
|
-
}
|
|
20049
20044
|
if (user["hideFromCapture"] !== undefined) {
|
|
20050
20045
|
merged.hideFromCapture = user["hideFromCapture"] === true;
|
|
20051
20046
|
}
|