yapout 0.9.0 → 0.10.1
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/dist/index.js +15 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12,8 +12,7 @@ import { Command as Command17 } from "commander";
|
|
|
12
12
|
// src/commands/login.ts
|
|
13
13
|
import { Command as Command2 } from "commander";
|
|
14
14
|
import http2 from "http";
|
|
15
|
-
import {
|
|
16
|
-
import { hostname as hostname2, userInfo as userInfo2 } from "os";
|
|
15
|
+
import { hostname as hostname2 } from "os";
|
|
17
16
|
import chalk3 from "chalk";
|
|
18
17
|
import open from "open";
|
|
19
18
|
import { anyApi as anyApi3 } from "convex/server";
|
|
@@ -558,7 +557,7 @@ function requireAuth() {
|
|
|
558
557
|
}
|
|
559
558
|
|
|
560
559
|
// src/commands/serve.ts
|
|
561
|
-
var CLI_VERSION = "0.
|
|
560
|
+
var CLI_VERSION = "0.10.1";
|
|
562
561
|
var DEFAULT_PORT = 7777;
|
|
563
562
|
var PORT_RANGE = 10;
|
|
564
563
|
var HEARTBEAT_MS = 3e4;
|
|
@@ -781,7 +780,7 @@ var serveCommand = new Command("serve").description(
|
|
|
781
780
|
});
|
|
782
781
|
|
|
783
782
|
// src/commands/login.ts
|
|
784
|
-
var CLI_VERSION2 = "0.
|
|
783
|
+
var CLI_VERSION2 = "0.10.1";
|
|
785
784
|
function safeReturnTo(raw) {
|
|
786
785
|
if (!raw) return null;
|
|
787
786
|
try {
|
|
@@ -856,7 +855,15 @@ var loginCommand = new Command2("login").description("Authenticate with yapout")
|
|
|
856
855
|
console.log(chalk3.dim("Starting authentication..."));
|
|
857
856
|
const { port, data } = await startCallbackServer();
|
|
858
857
|
const appUrl = getAppUrl();
|
|
859
|
-
const
|
|
858
|
+
const identity = getOrCreateDeviceIdentity(hostname2());
|
|
859
|
+
const deviceId = identity.deviceId;
|
|
860
|
+
const authParams = new URLSearchParams({
|
|
861
|
+
port: String(port),
|
|
862
|
+
deviceId,
|
|
863
|
+
cliVersion: CLI_VERSION2,
|
|
864
|
+
hostname: hostname2()
|
|
865
|
+
});
|
|
866
|
+
const authUrl = `${appUrl}/auth/cli?${authParams.toString()}`;
|
|
860
867
|
console.log(chalk3.dim(`Opening browser...`));
|
|
861
868
|
await open(authUrl);
|
|
862
869
|
console.log(chalk3.dim("Waiting for authentication in browser..."));
|
|
@@ -880,7 +887,6 @@ var loginCommand = new Command2("login").description("Authenticate with yapout")
|
|
|
880
887
|
);
|
|
881
888
|
try {
|
|
882
889
|
const client = createConvexClient(creds.token);
|
|
883
|
-
const deviceId = createHash2("sha256").update(hostname2() + userInfo2().username).digest("hex").slice(0, 16);
|
|
884
890
|
await client.mutation(anyApi3.functions.devices.registerDevice, {
|
|
885
891
|
deviceId,
|
|
886
892
|
name: hostname2(),
|
|
@@ -4123,7 +4129,7 @@ async function startMcpServer() {
|
|
|
4123
4129
|
};
|
|
4124
4130
|
const server = new McpServer({
|
|
4125
4131
|
name: "yapout",
|
|
4126
|
-
version: "0.
|
|
4132
|
+
version: "0.10.1"
|
|
4127
4133
|
});
|
|
4128
4134
|
registerInitTool(server, ctx);
|
|
4129
4135
|
registerCompactTool(server, ctx);
|
|
@@ -4890,7 +4896,7 @@ var watchCommand = new Command11("watch").description("Watch for work and spawn
|
|
|
4890
4896
|
chalk12.green("Watcher started in background") + chalk12.dim(` (PID ${process.pid}, log: ${LOG_FILE2})`)
|
|
4891
4897
|
);
|
|
4892
4898
|
}
|
|
4893
|
-
console.log(chalk12.bold(`yapout watch v${"0.
|
|
4899
|
+
console.log(chalk12.bold(`yapout watch v${"0.10.1"}`));
|
|
4894
4900
|
console.log(
|
|
4895
4901
|
`Project: ${chalk12.green(mapping.projectName)} (${mapping.projectId})`
|
|
4896
4902
|
);
|
|
@@ -5443,7 +5449,7 @@ var handleUriCommand = new Command16("handle-uri").description("Handle a yapout:
|
|
|
5443
5449
|
|
|
5444
5450
|
// src/index.ts
|
|
5445
5451
|
var program = new Command17();
|
|
5446
|
-
program.name("yapout").description("yapout \u2014 from meeting transcript to merged PR").version("0.
|
|
5452
|
+
program.name("yapout").description("yapout \u2014 from meeting transcript to merged PR").version("0.10.1");
|
|
5447
5453
|
program.addCommand(loginCommand);
|
|
5448
5454
|
program.addCommand(logoutCommand);
|
|
5449
5455
|
program.addCommand(initCommand);
|