claude-code-infinite 1.0.18 → 1.0.19

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.
@@ -0,0 +1,16 @@
1
+ /**
2
+ * The link to polychat's usage dashboard (`/usage`) for the environment this
3
+ * ccc talks to, shown by `/memtree` and `/memtree-view`.
4
+ *
5
+ * Derived from the MemTree base URL, so production, staging and local each
6
+ * link their own dashboard. The page authenticates with polychat's browser
7
+ * session, not the MemTree key, so the line says the browser must be signed in
8
+ * to the same account.
9
+ */
10
+ export declare const USAGE_PATH = "/usage";
11
+ /** Label on the usage link line, in the style of `• MemTree`. */
12
+ export declare const USAGE_LABEL = "\u2022 Usage";
13
+ export declare const USAGE_SIGN_IN_NOTE = "needs your browser signed in to polychat (same account)";
14
+ /** `<base>/usage`, on the browser host for production; undefined if not http(s). */
15
+ export declare function usageDashboardUrl(baseUrl: string): string | undefined;
16
+ //# sourceMappingURL=usage-link.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usage-link.d.ts","sourceRoot":"","sources":["../src/usage-link.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,eAAO,MAAM,UAAU,WAAW,CAAC;AACnC,iEAAiE;AACjE,eAAO,MAAM,WAAW,iBAAY,CAAC;AACrC,eAAO,MAAM,kBAAkB,4DAA4D,CAAC;AAQ5F,oFAAoF;AACpF,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAUrE"}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * The link to polychat's usage dashboard (`/usage`) for the environment this
3
+ * ccc talks to, shown by `/memtree` and `/memtree-view`.
4
+ *
5
+ * Derived from the MemTree base URL, so production, staging and local each
6
+ * link their own dashboard. The page authenticates with polychat's browser
7
+ * session, not the MemTree key, so the line says the browser must be signed in
8
+ * to the same account.
9
+ */
10
+ export const USAGE_PATH = "/usage";
11
+ /** Label on the usage link line, in the style of `• MemTree`. */
12
+ export const USAGE_LABEL = "• Usage";
13
+ export const USAGE_SIGN_IN_NOTE = "needs your browser signed in to polychat (same account)";
14
+ /**
15
+ * Production's API host serves the same app as app.polychat.co, but browsers
16
+ * sign in on app (its session cookie lives there), so the dashboard links it.
17
+ */
18
+ const BROWSER_HOSTS = { "api.polychat.co": "app.polychat.co" };
19
+ /** `<base>/usage`, on the browser host for production; undefined if not http(s). */
20
+ export function usageDashboardUrl(baseUrl) {
21
+ let url;
22
+ try {
23
+ url = new URL(baseUrl);
24
+ }
25
+ catch {
26
+ return undefined;
27
+ }
28
+ if (url.protocol !== "https:" && url.protocol !== "http:")
29
+ return undefined;
30
+ url.host = BROWSER_HOSTS[url.host] ?? url.host;
31
+ return `${url.origin}${USAGE_PATH}`;
32
+ }
33
+ //# sourceMappingURL=usage-link.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usage-link.js","sourceRoot":"","sources":["../src/usage-link.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC;AACnC,iEAAiE;AACjE,MAAM,CAAC,MAAM,WAAW,GAAG,SAAS,CAAC;AACrC,MAAM,CAAC,MAAM,kBAAkB,GAAG,yDAAyD,CAAC;AAE5F;;;GAGG;AACH,MAAM,aAAa,GAA2B,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,CAAC;AAEvF,oFAAoF;AACpF,MAAM,UAAU,iBAAiB,CAAC,OAAe;IAC/C,IAAI,GAAQ,CAAC;IACb,IAAI,CAAC;QACH,GAAG,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC;IACzB,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,IAAI,GAAG,CAAC,QAAQ,KAAK,QAAQ,IAAI,GAAG,CAAC,QAAQ,KAAK,OAAO;QAAE,OAAO,SAAS,CAAC;IAC5E,GAAG,CAAC,IAAI,GAAG,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC;IAC/C,OAAO,GAAG,GAAG,CAAC,MAAM,GAAG,UAAU,EAAE,CAAC;AACtC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-code-infinite",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
4
4
  "description": "Wrapper for Claude Code CLI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",