yapout 0.9.0 → 0.10.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/dist/index.js +13 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -558,7 +558,7 @@ function requireAuth() {
|
|
|
558
558
|
}
|
|
559
559
|
|
|
560
560
|
// src/commands/serve.ts
|
|
561
|
-
var CLI_VERSION = "0.
|
|
561
|
+
var CLI_VERSION = "0.10.0";
|
|
562
562
|
var DEFAULT_PORT = 7777;
|
|
563
563
|
var PORT_RANGE = 10;
|
|
564
564
|
var HEARTBEAT_MS = 3e4;
|
|
@@ -781,7 +781,7 @@ var serveCommand = new Command("serve").description(
|
|
|
781
781
|
});
|
|
782
782
|
|
|
783
783
|
// src/commands/login.ts
|
|
784
|
-
var CLI_VERSION2 = "0.
|
|
784
|
+
var CLI_VERSION2 = "0.10.0";
|
|
785
785
|
function safeReturnTo(raw) {
|
|
786
786
|
if (!raw) return null;
|
|
787
787
|
try {
|
|
@@ -856,7 +856,14 @@ var loginCommand = new Command2("login").description("Authenticate with yapout")
|
|
|
856
856
|
console.log(chalk3.dim("Starting authentication..."));
|
|
857
857
|
const { port, data } = await startCallbackServer();
|
|
858
858
|
const appUrl = getAppUrl();
|
|
859
|
-
const
|
|
859
|
+
const deviceId = createHash2("sha256").update(hostname2() + userInfo2().username).digest("hex").slice(0, 16);
|
|
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.0"
|
|
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.0"}`));
|
|
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.0");
|
|
5447
5453
|
program.addCommand(loginCommand);
|
|
5448
5454
|
program.addCommand(logoutCommand);
|
|
5449
5455
|
program.addCommand(initCommand);
|