@dualityinstitute/blink 0.0.2 → 0.0.3

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.
Files changed (2) hide show
  1. package/dist/cli.js +3 -75
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1146,30 +1146,6 @@ var u$1 = class u2 extends V {
1146
1146
  });
1147
1147
  }
1148
1148
  };
1149
- class n extends V {
1150
- get userInputWithCursor() {
1151
- if (this.state === "submit")
1152
- return this.userInput;
1153
- const t2 = this.userInput;
1154
- if (this.cursor >= t2.length)
1155
- return `${this.userInput}\u2588`;
1156
- const r = t2.slice(0, this.cursor), s = t2.slice(this.cursor, this.cursor + 1), e = t2.slice(this.cursor + 1);
1157
- return `${r}${styleText("inverse", s)}${e}`;
1158
- }
1159
- get cursor() {
1160
- return this._cursor;
1161
- }
1162
- constructor(t2) {
1163
- super({
1164
- ...t2,
1165
- initialUserInput: t2.initialUserInput ?? t2.initialValue
1166
- }), this.on("userInput", (r) => {
1167
- this._setValue(r);
1168
- }), this.on("finalize", () => {
1169
- this.value || (this.value = t2.defaultValue), this.value === undefined && (this.value = "");
1170
- });
1171
- }
1172
- }
1173
1149
 
1174
1150
  // node_modules/@clack/prompts/dist/index.mjs
1175
1151
  import { styleText as styleText2, stripVTControlCharacters } from "util";
@@ -1290,44 +1266,6 @@ var SELECT_INSTRUCTIONS = [
1290
1266
  `${styleText2("dim", "Enter:")} confirm`
1291
1267
  ];
1292
1268
  var i = `${styleText2("gray", S_BAR)} `;
1293
- var text = (e) => new n({
1294
- validate: e.validate,
1295
- placeholder: e.placeholder,
1296
- defaultValue: e.defaultValue,
1297
- initialValue: e.initialValue,
1298
- output: e.output,
1299
- signal: e.signal,
1300
- input: e.input,
1301
- render() {
1302
- const i2 = e?.withGuide ?? settings.withGuide, s = `${`${i2 ? `${styleText2("gray", S_BAR)}
1303
- ` : ""}${symbol(this.state)} `}${e.message}
1304
- `, c2 = e.placeholder && e.placeholder.length > 0 ? styleText2("inverse", e.placeholder[0]) + styleText2("dim", e.placeholder.slice(1)) : styleText2(["inverse", "hidden"], "_"), o2 = this.userInput ? this.userInputWithCursor : c2, l = this.value ?? "";
1305
- switch (this.state) {
1306
- case "error": {
1307
- const n2 = this.error ? ` ${styleText2("yellow", this.error)}` : "", r2 = i2 ? `${styleText2("yellow", S_BAR)} ` : "", d = i2 ? styleText2("yellow", S_BAR_END) : "";
1308
- return `${s.trim()}
1309
- ${r2}${o2}
1310
- ${d}${n2}
1311
- `;
1312
- }
1313
- case "submit": {
1314
- const n2 = l ? ` ${styleText2("dim", l)}` : "", r2 = i2 ? styleText2("gray", S_BAR) : "";
1315
- return `${s}${r2}${n2}`;
1316
- }
1317
- case "cancel": {
1318
- const n2 = l ? ` ${styleText2(["strikethrough", "dim"], l)}` : "", r2 = i2 ? styleText2("gray", S_BAR) : "";
1319
- return `${s}${r2}${n2}${l.trim() ? `
1320
- ${r2}` : ""}`;
1321
- }
1322
- default: {
1323
- const n2 = i2 ? `${styleText2("cyan", S_BAR)} ` : "", r2 = i2 ? styleText2("cyan", S_BAR_END) : "";
1324
- return `${s}${n2}${o2}
1325
- ${r2}
1326
- `;
1327
- }
1328
- }
1329
- }
1330
- }).prompt();
1331
1269
 
1332
1270
  // src/cli.ts
1333
1271
  import * as fs3 from "fs";
@@ -10356,8 +10294,8 @@ function ko_default() {
10356
10294
  };
10357
10295
  }
10358
10296
  // node_modules/zod/v4/locales/lt.js
10359
- var capitalizeFirstCharacter = (text2) => {
10360
- return text2.charAt(0).toUpperCase() + text2.slice(1);
10297
+ var capitalizeFirstCharacter = (text) => {
10298
+ return text.charAt(0).toUpperCase() + text.slice(1);
10361
10299
  };
10362
10300
  function getUnitTypeFromNumber(number2) {
10363
10301
  const abs = Math.abs(number2);
@@ -20361,17 +20299,7 @@ async function selectCredentials(args, current) {
20361
20299
  };
20362
20300
  }
20363
20301
  intro("Blink Cloud setup");
20364
- let apiUrl = explicitUrl;
20365
- if (apiUrl === undefined) {
20366
- const result = await text({
20367
- message: "Blink Cloud URL",
20368
- initialValue: current.apiUrl,
20369
- validate: (value) => validationMessage(() => normalizeApiUrl(value ?? ""))
20370
- });
20371
- if (isCancel(result) || typeof result !== "string")
20372
- return cancelSetup();
20373
- apiUrl = result;
20374
- }
20302
+ const apiUrl = explicitUrl ?? current.apiUrl;
20375
20303
  let accessToken = explicitToken;
20376
20304
  if (accessToken === undefined) {
20377
20305
  const result = await password({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dualityinstitute/blink",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "macOS screenshot and meeting copilot powered by Blink Cloud",
5
5
  "type": "module",
6
6
  "main": "dist/electron/main.js",