@cursor/july 0.1.4 → 0.1.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/dist/docs/404.html +1 -1
- package/dist/docs/ab.html +2 -2
- package/dist/docs/assets/{app.DF-Yx4OP.js → app.DabPG-io.js} +1 -1
- package/dist/docs/assets/chunks/@localSearchIndexroot.QwK5BtEH.js +1 -0
- package/dist/docs/assets/chunks/{VPLocalSearchBox.DSeJSudL.js → VPLocalSearchBox.jmyr0bU0.js} +1 -1
- package/dist/docs/assets/chunks/{theme.DZVLTXOC.js → theme.DysN9-VN.js} +2 -2
- package/dist/docs/building-with-agents.html +2 -2
- package/dist/docs/concepts.html +2 -2
- package/dist/docs/deployment.html +2 -2
- package/dist/docs/evals.html +2 -2
- package/dist/docs/guides/agent-to-agent.html +2 -2
- package/dist/docs/guides/cloud-runtime.html +2 -2
- package/dist/docs/guides/github.html +2 -2
- package/dist/docs/guides/human-in-the-loop.html +2 -2
- package/dist/docs/guides/slack.html +2 -2
- package/dist/docs/guides/webhooks.html +2 -2
- package/dist/docs/hillclimbing.html +2 -2
- package/dist/docs/index.html +2 -2
- package/dist/docs/quickstart.html +2 -2
- package/dist/docs/reference/agent-config.html +2 -2
- package/dist/docs/reference/channels.html +2 -2
- package/dist/docs/reference/cli.html +2 -2
- package/dist/docs/reference/connections.html +2 -2
- package/dist/docs/reference/hooks.html +2 -2
- package/dist/docs/reference/http-api.html +2 -2
- package/dist/docs/reference/instructions.html +2 -2
- package/dist/docs/reference/playground.html +2 -2
- package/dist/docs/reference/project-layout.html +2 -2
- package/dist/docs/reference/schedules.html +2 -2
- package/dist/docs/reference/sessions.html +2 -2
- package/dist/docs/reference/skills.html +2 -2
- package/dist/docs/reference/subagents.html +2 -2
- package/dist/docs/reference/tools.html +2 -2
- package/dist/docs/scaffolding-agents.html +2 -2
- package/dist/docs/storage.html +2 -2
- package/dist/docs/troubleshooting.html +2 -2
- package/dist/internal/cli-deploy.d.ts.map +1 -1
- package/dist/internal/cli-deploy.js +5 -2
- package/dist/internal/cursor-event-relay.d.ts +4 -1
- package/dist/internal/cursor-event-relay.d.ts.map +1 -1
- package/dist/internal/cursor-event-relay.js +6 -0
- package/dist/internal/cursor-relay-core.d.ts +36 -1
- package/dist/internal/cursor-relay-core.d.ts.map +1 -1
- package/dist/internal/cursor-relay-core.js +89 -8
- package/dist/internal/cursor-slack-relay.d.ts +2 -2
- package/dist/internal/cursor-slack-relay.d.ts.map +1 -1
- package/dist/internal/cursor-slack-relay.js +4 -0
- package/dist/playground/assets/{index-Ct_Usdm8.css → index-BEauYlII.css} +1 -1
- package/dist/playground/assets/{index-Dsyb-Vaj.js → index-BtM0wEGg.js} +94 -94
- package/dist/playground/index.html +2 -2
- package/package.json +1 -1
- package/src/internal/cli-deploy.ts +5 -2
- package/src/internal/cursor-event-relay.ts +10 -1
- package/src/internal/cursor-relay-core.ts +115 -9
- package/src/internal/cursor-slack-relay.ts +6 -2
- package/dist/docs/assets/chunks/@localSearchIndexroot.0XrheBv2.js +0 -1
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
<link rel="preload stylesheet" href="/docs/assets/style.Bj-IXa5W.css" as="style">
|
|
10
10
|
<link rel="preload stylesheet" href="/docs/vp-icons.css" as="style">
|
|
11
11
|
|
|
12
|
-
<script type="module" src="/docs/assets/app.
|
|
12
|
+
<script type="module" src="/docs/assets/app.DabPG-io.js"></script>
|
|
13
13
|
<link rel="preload" href="/docs/assets/inter-roman-latin.Di8DUHzh.woff2" as="font" type="font/woff2" crossorigin="">
|
|
14
|
-
<link rel="modulepreload" href="/docs/assets/chunks/theme.
|
|
14
|
+
<link rel="modulepreload" href="/docs/assets/chunks/theme.DysN9-VN.js">
|
|
15
15
|
<link rel="modulepreload" href="/docs/assets/chunks/framework.CAZyNGu9.js">
|
|
16
16
|
<link rel="modulepreload" href="/docs/assets/reference_connections.md.zaEYCLHT.lean.js">
|
|
17
17
|
<script id="check-dark-mode">(()=>{const e=localStorage.getItem("vitepress-theme-appearance")||"auto",a=window.matchMedia("(prefers-color-scheme: dark)").matches;(!e||e==="auto"?a:e==="dark")&&document.documentElement.classList.add("dark")})();</script>
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
<link rel="preload stylesheet" href="/docs/assets/style.Bj-IXa5W.css" as="style">
|
|
10
10
|
<link rel="preload stylesheet" href="/docs/vp-icons.css" as="style">
|
|
11
11
|
|
|
12
|
-
<script type="module" src="/docs/assets/app.
|
|
12
|
+
<script type="module" src="/docs/assets/app.DabPG-io.js"></script>
|
|
13
13
|
<link rel="preload" href="/docs/assets/inter-roman-latin.Di8DUHzh.woff2" as="font" type="font/woff2" crossorigin="">
|
|
14
|
-
<link rel="modulepreload" href="/docs/assets/chunks/theme.
|
|
14
|
+
<link rel="modulepreload" href="/docs/assets/chunks/theme.DysN9-VN.js">
|
|
15
15
|
<link rel="modulepreload" href="/docs/assets/chunks/framework.CAZyNGu9.js">
|
|
16
16
|
<link rel="modulepreload" href="/docs/assets/reference_hooks.md.DyLVfE1O.lean.js">
|
|
17
17
|
<script id="check-dark-mode">(()=>{const e=localStorage.getItem("vitepress-theme-appearance")||"auto",a=window.matchMedia("(prefers-color-scheme: dark)").matches;(!e||e==="auto"?a:e==="dark")&&document.documentElement.classList.add("dark")})();</script>
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
<link rel="preload stylesheet" href="/docs/assets/style.Bj-IXa5W.css" as="style">
|
|
10
10
|
<link rel="preload stylesheet" href="/docs/vp-icons.css" as="style">
|
|
11
11
|
|
|
12
|
-
<script type="module" src="/docs/assets/app.
|
|
12
|
+
<script type="module" src="/docs/assets/app.DabPG-io.js"></script>
|
|
13
13
|
<link rel="preload" href="/docs/assets/inter-roman-latin.Di8DUHzh.woff2" as="font" type="font/woff2" crossorigin="">
|
|
14
|
-
<link rel="modulepreload" href="/docs/assets/chunks/theme.
|
|
14
|
+
<link rel="modulepreload" href="/docs/assets/chunks/theme.DysN9-VN.js">
|
|
15
15
|
<link rel="modulepreload" href="/docs/assets/chunks/framework.CAZyNGu9.js">
|
|
16
16
|
<link rel="modulepreload" href="/docs/assets/reference_http-api.md.Dx_nmDG6.lean.js">
|
|
17
17
|
<script id="check-dark-mode">(()=>{const e=localStorage.getItem("vitepress-theme-appearance")||"auto",a=window.matchMedia("(prefers-color-scheme: dark)").matches;(!e||e==="auto"?a:e==="dark")&&document.documentElement.classList.add("dark")})();</script>
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
<link rel="preload stylesheet" href="/docs/assets/style.Bj-IXa5W.css" as="style">
|
|
10
10
|
<link rel="preload stylesheet" href="/docs/vp-icons.css" as="style">
|
|
11
11
|
|
|
12
|
-
<script type="module" src="/docs/assets/app.
|
|
12
|
+
<script type="module" src="/docs/assets/app.DabPG-io.js"></script>
|
|
13
13
|
<link rel="preload" href="/docs/assets/inter-roman-latin.Di8DUHzh.woff2" as="font" type="font/woff2" crossorigin="">
|
|
14
|
-
<link rel="modulepreload" href="/docs/assets/chunks/theme.
|
|
14
|
+
<link rel="modulepreload" href="/docs/assets/chunks/theme.DysN9-VN.js">
|
|
15
15
|
<link rel="modulepreload" href="/docs/assets/chunks/framework.CAZyNGu9.js">
|
|
16
16
|
<link rel="modulepreload" href="/docs/assets/reference_instructions.md.CgoV-YEb.lean.js">
|
|
17
17
|
<script id="check-dark-mode">(()=>{const e=localStorage.getItem("vitepress-theme-appearance")||"auto",a=window.matchMedia("(prefers-color-scheme: dark)").matches;(!e||e==="auto"?a:e==="dark")&&document.documentElement.classList.add("dark")})();</script>
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
<link rel="preload stylesheet" href="/docs/assets/style.Bj-IXa5W.css" as="style">
|
|
10
10
|
<link rel="preload stylesheet" href="/docs/vp-icons.css" as="style">
|
|
11
11
|
|
|
12
|
-
<script type="module" src="/docs/assets/app.
|
|
12
|
+
<script type="module" src="/docs/assets/app.DabPG-io.js"></script>
|
|
13
13
|
<link rel="preload" href="/docs/assets/inter-roman-latin.Di8DUHzh.woff2" as="font" type="font/woff2" crossorigin="">
|
|
14
|
-
<link rel="modulepreload" href="/docs/assets/chunks/theme.
|
|
14
|
+
<link rel="modulepreload" href="/docs/assets/chunks/theme.DysN9-VN.js">
|
|
15
15
|
<link rel="modulepreload" href="/docs/assets/chunks/framework.CAZyNGu9.js">
|
|
16
16
|
<link rel="modulepreload" href="/docs/assets/reference_playground.md.CPZhfYaO.lean.js">
|
|
17
17
|
<script id="check-dark-mode">(()=>{const e=localStorage.getItem("vitepress-theme-appearance")||"auto",a=window.matchMedia("(prefers-color-scheme: dark)").matches;(!e||e==="auto"?a:e==="dark")&&document.documentElement.classList.add("dark")})();</script>
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
<link rel="preload stylesheet" href="/docs/assets/style.Bj-IXa5W.css" as="style">
|
|
10
10
|
<link rel="preload stylesheet" href="/docs/vp-icons.css" as="style">
|
|
11
11
|
|
|
12
|
-
<script type="module" src="/docs/assets/app.
|
|
12
|
+
<script type="module" src="/docs/assets/app.DabPG-io.js"></script>
|
|
13
13
|
<link rel="preload" href="/docs/assets/inter-roman-latin.Di8DUHzh.woff2" as="font" type="font/woff2" crossorigin="">
|
|
14
|
-
<link rel="modulepreload" href="/docs/assets/chunks/theme.
|
|
14
|
+
<link rel="modulepreload" href="/docs/assets/chunks/theme.DysN9-VN.js">
|
|
15
15
|
<link rel="modulepreload" href="/docs/assets/chunks/framework.CAZyNGu9.js">
|
|
16
16
|
<link rel="modulepreload" href="/docs/assets/reference_project-layout.md.Bd_CKtNS.lean.js">
|
|
17
17
|
<script id="check-dark-mode">(()=>{const e=localStorage.getItem("vitepress-theme-appearance")||"auto",a=window.matchMedia("(prefers-color-scheme: dark)").matches;(!e||e==="auto"?a:e==="dark")&&document.documentElement.classList.add("dark")})();</script>
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
<link rel="preload stylesheet" href="/docs/assets/style.Bj-IXa5W.css" as="style">
|
|
10
10
|
<link rel="preload stylesheet" href="/docs/vp-icons.css" as="style">
|
|
11
11
|
|
|
12
|
-
<script type="module" src="/docs/assets/app.
|
|
12
|
+
<script type="module" src="/docs/assets/app.DabPG-io.js"></script>
|
|
13
13
|
<link rel="preload" href="/docs/assets/inter-roman-latin.Di8DUHzh.woff2" as="font" type="font/woff2" crossorigin="">
|
|
14
|
-
<link rel="modulepreload" href="/docs/assets/chunks/theme.
|
|
14
|
+
<link rel="modulepreload" href="/docs/assets/chunks/theme.DysN9-VN.js">
|
|
15
15
|
<link rel="modulepreload" href="/docs/assets/chunks/framework.CAZyNGu9.js">
|
|
16
16
|
<link rel="modulepreload" href="/docs/assets/reference_schedules.md.w_F2mXB6.lean.js">
|
|
17
17
|
<script id="check-dark-mode">(()=>{const e=localStorage.getItem("vitepress-theme-appearance")||"auto",a=window.matchMedia("(prefers-color-scheme: dark)").matches;(!e||e==="auto"?a:e==="dark")&&document.documentElement.classList.add("dark")})();</script>
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
<link rel="preload stylesheet" href="/docs/assets/style.Bj-IXa5W.css" as="style">
|
|
10
10
|
<link rel="preload stylesheet" href="/docs/vp-icons.css" as="style">
|
|
11
11
|
|
|
12
|
-
<script type="module" src="/docs/assets/app.
|
|
12
|
+
<script type="module" src="/docs/assets/app.DabPG-io.js"></script>
|
|
13
13
|
<link rel="preload" href="/docs/assets/inter-roman-latin.Di8DUHzh.woff2" as="font" type="font/woff2" crossorigin="">
|
|
14
|
-
<link rel="modulepreload" href="/docs/assets/chunks/theme.
|
|
14
|
+
<link rel="modulepreload" href="/docs/assets/chunks/theme.DysN9-VN.js">
|
|
15
15
|
<link rel="modulepreload" href="/docs/assets/chunks/framework.CAZyNGu9.js">
|
|
16
16
|
<link rel="modulepreload" href="/docs/assets/reference_sessions.md.DdjWabnN.lean.js">
|
|
17
17
|
<script id="check-dark-mode">(()=>{const e=localStorage.getItem("vitepress-theme-appearance")||"auto",a=window.matchMedia("(prefers-color-scheme: dark)").matches;(!e||e==="auto"?a:e==="dark")&&document.documentElement.classList.add("dark")})();</script>
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
<link rel="preload stylesheet" href="/docs/assets/style.Bj-IXa5W.css" as="style">
|
|
10
10
|
<link rel="preload stylesheet" href="/docs/vp-icons.css" as="style">
|
|
11
11
|
|
|
12
|
-
<script type="module" src="/docs/assets/app.
|
|
12
|
+
<script type="module" src="/docs/assets/app.DabPG-io.js"></script>
|
|
13
13
|
<link rel="preload" href="/docs/assets/inter-roman-latin.Di8DUHzh.woff2" as="font" type="font/woff2" crossorigin="">
|
|
14
|
-
<link rel="modulepreload" href="/docs/assets/chunks/theme.
|
|
14
|
+
<link rel="modulepreload" href="/docs/assets/chunks/theme.DysN9-VN.js">
|
|
15
15
|
<link rel="modulepreload" href="/docs/assets/chunks/framework.CAZyNGu9.js">
|
|
16
16
|
<link rel="modulepreload" href="/docs/assets/reference_skills.md.B_jHN7JL.lean.js">
|
|
17
17
|
<script id="check-dark-mode">(()=>{const e=localStorage.getItem("vitepress-theme-appearance")||"auto",a=window.matchMedia("(prefers-color-scheme: dark)").matches;(!e||e==="auto"?a:e==="dark")&&document.documentElement.classList.add("dark")})();</script>
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
<link rel="preload stylesheet" href="/docs/assets/style.Bj-IXa5W.css" as="style">
|
|
10
10
|
<link rel="preload stylesheet" href="/docs/vp-icons.css" as="style">
|
|
11
11
|
|
|
12
|
-
<script type="module" src="/docs/assets/app.
|
|
12
|
+
<script type="module" src="/docs/assets/app.DabPG-io.js"></script>
|
|
13
13
|
<link rel="preload" href="/docs/assets/inter-roman-latin.Di8DUHzh.woff2" as="font" type="font/woff2" crossorigin="">
|
|
14
|
-
<link rel="modulepreload" href="/docs/assets/chunks/theme.
|
|
14
|
+
<link rel="modulepreload" href="/docs/assets/chunks/theme.DysN9-VN.js">
|
|
15
15
|
<link rel="modulepreload" href="/docs/assets/chunks/framework.CAZyNGu9.js">
|
|
16
16
|
<link rel="modulepreload" href="/docs/assets/reference_subagents.md.zWAMNfi1.lean.js">
|
|
17
17
|
<script id="check-dark-mode">(()=>{const e=localStorage.getItem("vitepress-theme-appearance")||"auto",a=window.matchMedia("(prefers-color-scheme: dark)").matches;(!e||e==="auto"?a:e==="dark")&&document.documentElement.classList.add("dark")})();</script>
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
<link rel="preload stylesheet" href="/docs/assets/style.Bj-IXa5W.css" as="style">
|
|
10
10
|
<link rel="preload stylesheet" href="/docs/vp-icons.css" as="style">
|
|
11
11
|
|
|
12
|
-
<script type="module" src="/docs/assets/app.
|
|
12
|
+
<script type="module" src="/docs/assets/app.DabPG-io.js"></script>
|
|
13
13
|
<link rel="preload" href="/docs/assets/inter-roman-latin.Di8DUHzh.woff2" as="font" type="font/woff2" crossorigin="">
|
|
14
|
-
<link rel="modulepreload" href="/docs/assets/chunks/theme.
|
|
14
|
+
<link rel="modulepreload" href="/docs/assets/chunks/theme.DysN9-VN.js">
|
|
15
15
|
<link rel="modulepreload" href="/docs/assets/chunks/framework.CAZyNGu9.js">
|
|
16
16
|
<link rel="modulepreload" href="/docs/assets/reference_tools.md.CqgJroI0.lean.js">
|
|
17
17
|
<script id="check-dark-mode">(()=>{const e=localStorage.getItem("vitepress-theme-appearance")||"auto",a=window.matchMedia("(prefers-color-scheme: dark)").matches;(!e||e==="auto"?a:e==="dark")&&document.documentElement.classList.add("dark")})();</script>
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
<link rel="preload stylesheet" href="/docs/assets/style.Bj-IXa5W.css" as="style">
|
|
10
10
|
<link rel="preload stylesheet" href="/docs/vp-icons.css" as="style">
|
|
11
11
|
|
|
12
|
-
<script type="module" src="/docs/assets/app.
|
|
12
|
+
<script type="module" src="/docs/assets/app.DabPG-io.js"></script>
|
|
13
13
|
<link rel="preload" href="/docs/assets/inter-roman-latin.Di8DUHzh.woff2" as="font" type="font/woff2" crossorigin="">
|
|
14
|
-
<link rel="modulepreload" href="/docs/assets/chunks/theme.
|
|
14
|
+
<link rel="modulepreload" href="/docs/assets/chunks/theme.DysN9-VN.js">
|
|
15
15
|
<link rel="modulepreload" href="/docs/assets/chunks/framework.CAZyNGu9.js">
|
|
16
16
|
<link rel="modulepreload" href="/docs/assets/scaffolding-agents.md.C3pTrmoE.lean.js">
|
|
17
17
|
<script id="check-dark-mode">(()=>{const e=localStorage.getItem("vitepress-theme-appearance")||"auto",a=window.matchMedia("(prefers-color-scheme: dark)").matches;(!e||e==="auto"?a:e==="dark")&&document.documentElement.classList.add("dark")})();</script>
|
package/dist/docs/storage.html
CHANGED
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
<link rel="preload stylesheet" href="/docs/assets/style.Bj-IXa5W.css" as="style">
|
|
10
10
|
<link rel="preload stylesheet" href="/docs/vp-icons.css" as="style">
|
|
11
11
|
|
|
12
|
-
<script type="module" src="/docs/assets/app.
|
|
12
|
+
<script type="module" src="/docs/assets/app.DabPG-io.js"></script>
|
|
13
13
|
<link rel="preload" href="/docs/assets/inter-roman-latin.Di8DUHzh.woff2" as="font" type="font/woff2" crossorigin="">
|
|
14
|
-
<link rel="modulepreload" href="/docs/assets/chunks/theme.
|
|
14
|
+
<link rel="modulepreload" href="/docs/assets/chunks/theme.DysN9-VN.js">
|
|
15
15
|
<link rel="modulepreload" href="/docs/assets/chunks/framework.CAZyNGu9.js">
|
|
16
16
|
<link rel="modulepreload" href="/docs/assets/storage.md.CVnInNiN.lean.js">
|
|
17
17
|
<script id="check-dark-mode">(()=>{const e=localStorage.getItem("vitepress-theme-appearance")||"auto",a=window.matchMedia("(prefers-color-scheme: dark)").matches;(!e||e==="auto"?a:e==="dark")&&document.documentElement.classList.add("dark")})();</script>
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
<link rel="preload stylesheet" href="/docs/assets/style.Bj-IXa5W.css" as="style">
|
|
10
10
|
<link rel="preload stylesheet" href="/docs/vp-icons.css" as="style">
|
|
11
11
|
|
|
12
|
-
<script type="module" src="/docs/assets/app.
|
|
12
|
+
<script type="module" src="/docs/assets/app.DabPG-io.js"></script>
|
|
13
13
|
<link rel="preload" href="/docs/assets/inter-roman-latin.Di8DUHzh.woff2" as="font" type="font/woff2" crossorigin="">
|
|
14
|
-
<link rel="modulepreload" href="/docs/assets/chunks/theme.
|
|
14
|
+
<link rel="modulepreload" href="/docs/assets/chunks/theme.DysN9-VN.js">
|
|
15
15
|
<link rel="modulepreload" href="/docs/assets/chunks/framework.CAZyNGu9.js">
|
|
16
16
|
<link rel="modulepreload" href="/docs/assets/troubleshooting.md.DkovjS7h.lean.js">
|
|
17
17
|
<script id="check-dark-mode">(()=>{const e=localStorage.getItem("vitepress-theme-appearance")||"auto",a=window.matchMedia("(prefers-color-scheme: dark)").matches;(!e||e==="auto"?a:e==="dark")&&document.documentElement.classList.add("dark")})();</script>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli-deploy.d.ts","sourceRoot":"","sources":["../../src/internal/cli-deploy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAUH,OAAO,EACL,sBAAsB,EAYvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,KAAK,SAAS,EAAwB,MAAM,oBAAoB,CAAC;AAC1E,OAAO,EACL,KAAK,aAAa,EAInB,MAAM,gBAAgB,CAAC;AAWxB,8EAA8E;AAC9E,MAAM,MAAM,YAAY,GAAG,aAAa,CAAC;AAEzC;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG,CAChC,MAAM,EAAE,SAAS,YAAY,EAAE,KAC5B,OAAO,CAAC,YAAY,EAAE,GAAG,IAAI,CAAC,CAAC;AAEpC,MAAM,WAAW,gBAAgB;IAC/B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,6DAA6D;IAC7D,IAAI,CAAC,EAAE,MAAM,CAAC;I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E,gBAAgB,GACxB,OAAO,CAAC,MAAM,CAAC,CAgEjB;AAED,wBAAsB,cAAc,CAClC,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,OAAO,EAAE,gBAAgB,GACxB,OAAO,CAAC,MAAM,CAAC,CAkCjB;AAED,wBAAsB,eAAe,CACnC,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,OAAO,EAAE,gBAAgB,GACxB,OAAO,CAAC,MAAM,CAAC,CA4BjB"}
|
|
@@ -463,7 +463,8 @@ function deployOne(ctx, options, target, extras) {
|
|
|
463
463
|
` generation: ${detail.generation}\n` +
|
|
464
464
|
` kind: ${detail.deploymentKind}\n` +
|
|
465
465
|
` alias: ${aliasUrl}\n` +
|
|
466
|
-
` playground: ${
|
|
466
|
+
` playground: ${aliasUrl}/playground (sign in with the alias token)\n` +
|
|
467
|
+
` or: ${CLI} playground --prod --slug ${slug} --team ${ctx.teamId}\n`);
|
|
467
468
|
return 0;
|
|
468
469
|
});
|
|
469
470
|
}
|
|
@@ -563,6 +564,7 @@ export function cmdDeploymentStatus(slug, options) {
|
|
|
563
564
|
` generation: ${detail.generation}`,
|
|
564
565
|
` kind: ${detail.deploymentKind}`,
|
|
565
566
|
` alias: ${aliasUrl}`,
|
|
567
|
+
` playground: ${aliasUrl}/playground`,
|
|
566
568
|
];
|
|
567
569
|
if (detail.gitRepoUrl !== null && detail.gitRepoUrl !== undefined) {
|
|
568
570
|
lines.push(` repo: ${detail.gitRepoUrl} @ ${(_b = detail.gitRef) !== null && _b !== void 0 ? _b : ""}`);
|
|
@@ -983,7 +985,8 @@ function pollUntil(ctx, slug, terminal) {
|
|
|
983
985
|
function aliasTokenBlock(aliasToken) {
|
|
984
986
|
return (`\n Alias token (shown ONCE — save it now, it cannot be retrieved again):\n\n` +
|
|
985
987
|
` ${aliasToken}\n\n` +
|
|
986
|
-
` Send it as the X-Agent-Alias-Token header on requests to the alias URL
|
|
988
|
+
` Send it as the X-Agent-Alias-Token header on requests to the alias URL,\n` +
|
|
989
|
+
` or paste it into the hosted playground (<alias>/playground) sign-in gate.\n` +
|
|
987
990
|
` Lost tokens: \`${CLI} rotate-token <slug>\` mints a replacement.\n\n`);
|
|
988
991
|
}
|
|
989
992
|
function renderApiError(error, err) {
|
|
@@ -52,7 +52,10 @@ export interface CursorEventRelayOptions {
|
|
|
52
52
|
repos: readonly string[];
|
|
53
53
|
events: readonly string[];
|
|
54
54
|
stateDir: string;
|
|
55
|
-
/**
|
|
55
|
+
/**
|
|
56
|
+
* Called for each matching event; failures retry a bounded number of
|
|
57
|
+
* times, then log and skip.
|
|
58
|
+
*/
|
|
56
59
|
dispatch: (event: CursorScmEvent) => Promise<void>;
|
|
57
60
|
logger: (line: string) => void;
|
|
58
61
|
/** Test seam. Defaults to global fetch. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cursor-event-relay.d.ts","sourceRoot":"","sources":["../../src/internal/cursor-event-relay.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAGL,gBAAgB,EACjB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,gBAAgB,EAAE,CAAC;AAE5B,8EAA8E;AAC9E,MAAM,MAAM,wBAAwB,GAAG;IACrC,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,mEAAmE;AACnE,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAA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AAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,GAAG,MAAM,CAgBT;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE;IAChD,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,wBAAwB,CAAC;CACxC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAoE1B;AAED;;;GAGG;AACH,qBAAa,gBAAgB;IAUf,OAAO,CAAC,QAAQ,CAAC,OAAO;IATpC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAkC;IACvD;;;;OAIG;IACH,OAAO,CAAC,eAAe,CAAqB;IAC5C,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAqB;IAExD,YAA6B,OAAO,EAAE,uBAAuB,EAwD5D;IAED;;;;;OAKG;IACH,OAAO,CAAC,cAAc;IAatB,KAAK,IAAI,IAAI,CAEZ;IAEK,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAE1B;CACF"}
|
|
@@ -129,6 +129,12 @@ export class CursorEventRelay {
|
|
|
129
129
|
events: [...this.options.events],
|
|
130
130
|
})),
|
|
131
131
|
}),
|
|
132
|
+
// Empty subscriptions drop this consumer's registration on clean stop
|
|
133
|
+
// instead of leaving it to lapse by TTL.
|
|
134
|
+
buildDeregistrationBody: (consumerId) => ({
|
|
135
|
+
consumerId,
|
|
136
|
+
subscriptions: [],
|
|
137
|
+
}),
|
|
132
138
|
applyRegistrationResponse: (json) => {
|
|
133
139
|
var _a, _b;
|
|
134
140
|
const result = json;
|
|
@@ -34,6 +34,14 @@ export interface RelayAdapter<TEvent extends {
|
|
|
34
34
|
readonly pollPath: string;
|
|
35
35
|
/** The registration request body for this consumer id. */
|
|
36
36
|
buildRegistrationBody(consumerId: string): unknown;
|
|
37
|
+
/**
|
|
38
|
+
* The empty-scope registration body used to deregister this consumer on a
|
|
39
|
+
* clean stop. When present, `stop()` best-effort PUTs it so the consumer's
|
|
40
|
+
* registration does not linger as a ghost until its server-side TTL (a
|
|
41
|
+
* ghost with this host's agent names makes name routing ambiguous for a
|
|
42
|
+
* redeployed sibling until it expires).
|
|
43
|
+
*/
|
|
44
|
+
buildDeregistrationBody?(consumerId: string): unknown;
|
|
37
45
|
/**
|
|
38
46
|
* Apply the (ok) registration response: update the accepted-scope filter
|
|
39
47
|
* and return the human-readable outcome lines to log. The core logs them
|
|
@@ -47,7 +55,10 @@ export interface RelayAdapter<TEvent extends {
|
|
|
47
55
|
* the offset but are not dispatched.
|
|
48
56
|
*/
|
|
49
57
|
shouldDispatch(event: TEvent): boolean;
|
|
50
|
-
/**
|
|
58
|
+
/**
|
|
59
|
+
* Handle one matching event. Failures retry a bounded number of times
|
|
60
|
+
* ({@link DISPATCH_ATTEMPTS}), then log and skip.
|
|
61
|
+
*/
|
|
51
62
|
dispatch(event: TEvent): Promise<void>;
|
|
52
63
|
}
|
|
53
64
|
export interface CursorRelayCoreOptions<TEvent extends {
|
|
@@ -76,6 +87,14 @@ export declare class CursorRelayCore<TEvent extends {
|
|
|
76
87
|
private consumerId;
|
|
77
88
|
/** undefined until the first registration, so a clean first success logs. */
|
|
78
89
|
private lastRegistrationLog;
|
|
90
|
+
/** Whether any registration succeeded (gates the stop-time deregister). */
|
|
91
|
+
private registeredOnce;
|
|
92
|
+
/**
|
|
93
|
+
* The in-flight heartbeat re-registration, if any. `stop()` awaits it
|
|
94
|
+
* before deregistering so a just-sent heartbeat cannot land after the
|
|
95
|
+
* deregistration PUT and resurrect the registration for a full TTL.
|
|
96
|
+
*/
|
|
97
|
+
private heartbeatPromise;
|
|
79
98
|
constructor(options: CursorRelayCoreOptions<TEvent>);
|
|
80
99
|
start(): void;
|
|
81
100
|
/**
|
|
@@ -92,6 +111,14 @@ export declare class CursorRelayCore<TEvent extends {
|
|
|
92
111
|
*/
|
|
93
112
|
resolveConsumerId(): Promise<string>;
|
|
94
113
|
stop(): Promise<void>;
|
|
114
|
+
/**
|
|
115
|
+
* Best-effort empty-scope PUT on clean stop, so this consumer's
|
|
116
|
+
* registration is dropped immediately instead of lingering until its
|
|
117
|
+
* server-side TTL. A ghost registration keeps this host's agent names
|
|
118
|
+
* live and makes name routing ambiguous for a redeployed sibling with a
|
|
119
|
+
* fresh consumer id. Failures only log — the TTL still cleans up.
|
|
120
|
+
*/
|
|
121
|
+
private deregister;
|
|
95
122
|
private log;
|
|
96
123
|
private request;
|
|
97
124
|
/** Retry registration with backoff until it succeeds or the relay stops. */
|
|
@@ -105,6 +132,14 @@ export declare class CursorRelayCore<TEvent extends {
|
|
|
105
132
|
/** Log registration outcome lines only when they change (heartbeat-quiet). */
|
|
106
133
|
private logRegistrationOutcome;
|
|
107
134
|
private consumeLoop;
|
|
135
|
+
/**
|
|
136
|
+
* Dispatch one event with a small bounded retry before the offset advances
|
|
137
|
+
* past it. Transient local failures (e.g. a connection reset while POSTing
|
|
138
|
+
* to the channel) used to drop the event outright; a poison event still
|
|
139
|
+
* only costs {@link DISPATCH_ATTEMPTS} tries and is then skipped, keeping
|
|
140
|
+
* at-least-once semantics without a retry loop.
|
|
141
|
+
*/
|
|
142
|
+
private dispatchWithRetry;
|
|
108
143
|
/** Log the failure, sleep, and return the backoff for the NEXT failure. */
|
|
109
144
|
private backoffAfterHttpFailure;
|
|
110
145
|
private sleep;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cursor-relay-core.d.ts","sourceRoot":"","sources":["../../src/internal/cursor-relay-core.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;
|
|
1
|
+
{"version":3,"file":"cursor-relay-core.d.ts","sourceRoot":"","sources":["../../src/internal/cursor-relay-core.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AA6BH,8DAA8D;AAC9D,qBAAa,gBAAgB;I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;IAgBrC,OAAO,CAAC,KAAK;IAkBb,OAAO,CAAC,OAAO;CAKhB"}
|
|
@@ -29,6 +29,11 @@ const DEFAULT_IDLE_POLL_DELAY_MS = 250;
|
|
|
29
29
|
const MIN_BACKOFF_MS = 1000;
|
|
30
30
|
const MAX_BACKOFF_MS = 30000;
|
|
31
31
|
const AUTH_FAILURE_BACKOFF_MS = 60000;
|
|
32
|
+
/** Attempts per event before the offset advances past it. */
|
|
33
|
+
const DISPATCH_ATTEMPTS = 3;
|
|
34
|
+
const DISPATCH_RETRY_DELAYS_MS = [250, 1000];
|
|
35
|
+
/** Budget for the best-effort deregistration PUT during stop(). */
|
|
36
|
+
const DEREGISTER_TIMEOUT_MS = 1500;
|
|
32
37
|
/** Durable offset snapshot under `<stateDir>/offset.json`. */
|
|
33
38
|
export class RelayOffsetStore {
|
|
34
39
|
constructor(stateDir) {
|
|
@@ -93,6 +98,8 @@ export class CursorRelayCore {
|
|
|
93
98
|
this.options = options;
|
|
94
99
|
this.running = false;
|
|
95
100
|
this.consumerId = "";
|
|
101
|
+
/** Whether any registration succeeded (gates the stop-time deregister). */
|
|
102
|
+
this.registeredOnce = false;
|
|
96
103
|
this.offsetStore = new RelayOffsetStore(options.stateDir);
|
|
97
104
|
this.fetchImpl = (_a = options.fetchImpl) !== null && _a !== void 0 ? _a : fetch;
|
|
98
105
|
}
|
|
@@ -116,7 +123,7 @@ export class CursorRelayCore {
|
|
|
116
123
|
if (!registered)
|
|
117
124
|
return;
|
|
118
125
|
this.registerTimer = setInterval(() => {
|
|
119
|
-
|
|
126
|
+
this.heartbeatPromise = this.registerOnce();
|
|
120
127
|
}, DEFAULT_REGISTER_INTERVAL_MS);
|
|
121
128
|
(_b = (_a = this.registerTimer).unref) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
122
129
|
yield this.consumeLoop();
|
|
@@ -160,7 +167,7 @@ export class CursorRelayCore {
|
|
|
160
167
|
}
|
|
161
168
|
stop() {
|
|
162
169
|
return __awaiter(this, void 0, void 0, function* () {
|
|
163
|
-
var _a, _b;
|
|
170
|
+
var _a, _b, _c;
|
|
164
171
|
if (!this.running)
|
|
165
172
|
return;
|
|
166
173
|
this.running = false;
|
|
@@ -180,6 +187,55 @@ export class CursorRelayCore {
|
|
|
180
187
|
(_a = timer.unref) === null || _a === void 0 ? void 0 : _a.call(timer);
|
|
181
188
|
}),
|
|
182
189
|
]);
|
|
190
|
+
// A heartbeat re-registration may be in flight (its fetch was just
|
|
191
|
+
// aborted); let it settle so it cannot land after the deregistration.
|
|
192
|
+
yield (_c = this.heartbeatPromise) === null || _c === void 0 ? void 0 : _c.catch(() => { });
|
|
193
|
+
yield this.deregister();
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* Best-effort empty-scope PUT on clean stop, so this consumer's
|
|
198
|
+
* registration is dropped immediately instead of lingering until its
|
|
199
|
+
* server-side TTL. A ghost registration keeps this host's agent names
|
|
200
|
+
* live and makes name routing ambiguous for a redeployed sibling with a
|
|
201
|
+
* fresh consumer id. Failures only log — the TTL still cleans up.
|
|
202
|
+
*/
|
|
203
|
+
deregister() {
|
|
204
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
205
|
+
var _a;
|
|
206
|
+
const adapter = this.options.adapter;
|
|
207
|
+
if (adapter.buildDeregistrationBody === undefined ||
|
|
208
|
+
!this.registeredOnce ||
|
|
209
|
+
this.consumerId === "") {
|
|
210
|
+
return;
|
|
211
|
+
}
|
|
212
|
+
const url = `${this.options.baseUrl.replace(/\/+$/, "")}${adapter.subscribePath}`;
|
|
213
|
+
const controller = new AbortController();
|
|
214
|
+
const timer = setTimeout(() => controller.abort(), DEREGISTER_TIMEOUT_MS);
|
|
215
|
+
(_a = timer.unref) === null || _a === void 0 ? void 0 : _a.call(timer);
|
|
216
|
+
try {
|
|
217
|
+
const response = yield this.fetchImpl(url, {
|
|
218
|
+
method: "PUT",
|
|
219
|
+
headers: {
|
|
220
|
+
authorization: `Bearer ${this.options.apiKey}`,
|
|
221
|
+
"content-type": "application/json",
|
|
222
|
+
},
|
|
223
|
+
body: JSON.stringify(adapter.buildDeregistrationBody(this.consumerId)),
|
|
224
|
+
signal: controller.signal,
|
|
225
|
+
});
|
|
226
|
+
if (response.ok) {
|
|
227
|
+
this.log("deregistered on shutdown");
|
|
228
|
+
}
|
|
229
|
+
else {
|
|
230
|
+
this.log(`deregistration failed: ${response.status} (registration lapses by TTL)`);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
catch (error) {
|
|
234
|
+
this.log(`deregistration failed: ${describeRelayError(error)} (registration lapses by TTL)`);
|
|
235
|
+
}
|
|
236
|
+
finally {
|
|
237
|
+
clearTimeout(timer);
|
|
238
|
+
}
|
|
183
239
|
});
|
|
184
240
|
}
|
|
185
241
|
log(line) {
|
|
@@ -225,6 +281,7 @@ export class CursorRelayCore {
|
|
|
225
281
|
}
|
|
226
282
|
const json = (yield response.json());
|
|
227
283
|
this.logRegistrationOutcome(this.options.adapter.applyRegistrationResponse(json));
|
|
284
|
+
this.registeredOnce = true;
|
|
228
285
|
return true;
|
|
229
286
|
}
|
|
230
287
|
catch (error) {
|
|
@@ -298,12 +355,7 @@ export class CursorRelayCore {
|
|
|
298
355
|
if (compareStreamOffsets(event.offset, offset) <= 0)
|
|
299
356
|
continue;
|
|
300
357
|
if (this.options.adapter.shouldDispatch(event)) {
|
|
301
|
-
|
|
302
|
-
yield this.options.adapter.dispatch(event);
|
|
303
|
-
}
|
|
304
|
-
catch (error) {
|
|
305
|
-
this.log(`dispatch failed at offset ${event.offset}: ${describeRelayError(error)}`);
|
|
306
|
-
}
|
|
358
|
+
yield this.dispatchWithRetry(event);
|
|
307
359
|
}
|
|
308
360
|
offset = event.offset;
|
|
309
361
|
}
|
|
@@ -328,6 +380,35 @@ export class CursorRelayCore {
|
|
|
328
380
|
}
|
|
329
381
|
});
|
|
330
382
|
}
|
|
383
|
+
/**
|
|
384
|
+
* Dispatch one event with a small bounded retry before the offset advances
|
|
385
|
+
* past it. Transient local failures (e.g. a connection reset while POSTing
|
|
386
|
+
* to the channel) used to drop the event outright; a poison event still
|
|
387
|
+
* only costs {@link DISPATCH_ATTEMPTS} tries and is then skipped, keeping
|
|
388
|
+
* at-least-once semantics without a retry loop.
|
|
389
|
+
*/
|
|
390
|
+
dispatchWithRetry(event) {
|
|
391
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
392
|
+
for (let attempt = 1; attempt <= DISPATCH_ATTEMPTS; attempt++) {
|
|
393
|
+
if (attempt > 1 && !this.running) {
|
|
394
|
+
this.log(`dispatch abandoned at offset ${event.offset}: relay stopping`);
|
|
395
|
+
return;
|
|
396
|
+
}
|
|
397
|
+
try {
|
|
398
|
+
yield this.options.adapter.dispatch(event);
|
|
399
|
+
return;
|
|
400
|
+
}
|
|
401
|
+
catch (error) {
|
|
402
|
+
if (attempt === DISPATCH_ATTEMPTS) {
|
|
403
|
+
this.log(`dispatch failed at offset ${event.offset} after ${attempt} attempts: ${describeRelayError(error)}`);
|
|
404
|
+
return;
|
|
405
|
+
}
|
|
406
|
+
this.log(`dispatch attempt ${attempt} failed at offset ${event.offset}: ${describeRelayError(error)}; retrying`);
|
|
407
|
+
yield this.sleep(DISPATCH_RETRY_DELAYS_MS[Math.min(attempt - 1, DISPATCH_RETRY_DELAYS_MS.length - 1)]);
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
});
|
|
411
|
+
}
|
|
331
412
|
/** Log the failure, sleep, and return the backoff for the NEXT failure. */
|
|
332
413
|
backoffAfterHttpFailure(response, backoffMs) {
|
|
333
414
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -27,8 +27,8 @@ export interface CursorSlackRelayOptions {
|
|
|
27
27
|
agents: readonly CursorSlackAgentRegistration[];
|
|
28
28
|
stateDir: string;
|
|
29
29
|
/**
|
|
30
|
-
* Called for each event addressed to this consumer's agents; failures
|
|
31
|
-
*
|
|
30
|
+
* Called for each event addressed to this consumer's agents; failures
|
|
31
|
+
* retry a bounded number of times, then log and skip.
|
|
32
32
|
*/
|
|
33
33
|
dispatch: (envelope: CursorSlackRelayEvent) => Promise<void>;
|
|
34
34
|
logger: (line: string) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cursor-slack-relay.d.ts","sourceRoot":"","sources":["../../src/internal/cursor-slack-relay.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAO/E,sEAAsE;AACtE,MAAM,WAAW,4BAA4B;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAYD,kFAAkF;AAClF,MAAM,MAAM,qBAAqB,GAAG,mBAAmB,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAE7E,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,SAAS,4BAA4B,EAAE,CAAC;IAChD,QAAQ,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,QAAQ,EAAE,CAAC,QAAQ,EAAE,qBAAqB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7D,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,2CAA2C;IAC3C,SAAS,CAAC,EAAE,OAAO,KAAK,CAAC;IACzB,wDAAwD;IACxD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,+DAA+D;AAC/D,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE;IAClD,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE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IAAI,CAAyC;IAC9D;;;;OAIG;IACH,OAAO,CAAC,gBAAgB,CAAqB;IAC7C,OAAO,CAAC,UAAU,CAAM;IAExB,YAA6B,OAAO,EAAE,uBAAuB,EAqE5D;IAED;;;OAGG;IACG,iBAAiB,IAAI,OAAO,CAAC,MAAM,CAAC,CAGzC;IAED;;;OAGG;IACH,OAAO,CAAC,cAAc;IAOtB,KAAK,IAAI,IAAI,CAEZ;IAEK,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAE1B;CACF"}
|
|
@@ -106,6 +106,10 @@ export class CursorSlackRelay {
|
|
|
106
106
|
})),
|
|
107
107
|
};
|
|
108
108
|
},
|
|
109
|
+
// Empty agents drop this consumer's registration on clean stop, so a
|
|
110
|
+
// redeployed sibling's identical agent names never tie with this
|
|
111
|
+
// host's ghost until the server-side TTL lapses.
|
|
112
|
+
buildDeregistrationBody: (consumerId) => ({ consumerId, agents: [] }),
|
|
109
113
|
applyRegistrationResponse: (json) => {
|
|
110
114
|
var _a, _b, _c;
|
|
111
115
|
const result = json;
|