@openchamber/web 1.13.4 → 1.13.6
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/bin/cli-output.js +2 -0
- package/bin/cli-output.test.js +36 -0
- package/bin/cli.test.js +12 -0
- package/bin/lib/cli-http.js +1 -0
- package/bin/lib/cli-network.js +1 -0
- package/bin/lib/cli-paths.js +2 -0
- package/bin/lib/commands-tunnel.js +6 -2
- package/dist/assets/{DiagramView-BAoYIAGR.js → DiagramView-C_f1Il8p.js} +1 -1
- package/dist/assets/{MarkdownRendererImpl-B0NE4mIY.js → MarkdownRendererImpl-BR0DXO9F.js} +3 -3
- package/dist/assets/{MultiRunWindow-BT4kt6aB.js → MultiRunWindow-WBqBXcts.js} +1 -1
- package/dist/assets/NewWorktreeDialog-D7l2VA7o.js +167 -0
- package/dist/assets/{OnboardingScreen-CbJOPUxm.js → OnboardingScreen-ChaxLu9k.js} +1 -1
- package/dist/assets/{SessionSwitcherDropdown-BbUzUNEi.js → SessionSwitcherDropdown-xaYa-FIx.js} +1 -1
- package/dist/assets/{SettingsWindow-CSb8eo8p.js → SettingsWindow-D5aAKCEM.js} +1 -1
- package/dist/assets/{TerminalView-ME5MOz7S.js → TerminalView-D8GzsMZF.js} +1 -1
- package/dist/assets/{es-Bk-yR0w-.js → es-D0PPWgfL.js} +1 -1
- package/dist/assets/{fr-f1ibV7QU.js → fr-4AxG2GNC.js} +1 -1
- package/dist/assets/index-DJHN0H4h.js +3 -0
- package/dist/assets/{index-B82A6jBD.css → index-DxqTiFfR.css} +1 -1
- package/dist/assets/{ja-D9mS3zWP.js → ja-BPVJtPU2.js} +1 -1
- package/dist/assets/{ko-Cpl1IA3D.js → ko-BJHERh2a.js} +1 -1
- package/dist/assets/{main-D6eC2bnV.js → main-CLkcy9_q.js} +2 -2
- package/dist/assets/main-DUn82Iwq.js +214 -0
- package/dist/assets/miniChat-Ag1CYNF5.js +2 -0
- package/dist/assets/mobile-DtojUfiY.js +2 -0
- package/dist/assets/{pl-CYke_fxL.js → pl-CH00wT_K.js} +1 -1
- package/dist/assets/{pt-BR-Clb6Z8up.js → pt-BR-1tfKEfvN.js} +1 -1
- package/dist/assets/{renderElectronMiniChatApp-3vxeddJO.js → renderElectronMiniChatApp-BTsP-lHc.js} +2 -2
- package/dist/assets/{renderMobileApp-BrvLHYCY.js → renderMobileApp-CSEgabkw.js} +3 -3
- package/dist/assets/{uk-CXn8cxXa.js → uk-BkeRI8D4.js} +1 -1
- package/dist/assets/{useAppFontEffects-b7bqtGFf.js → useAppFontEffects-BPhei6aO.js} +107 -107
- package/dist/assets/{zh-CN-BRwwlEdG.js → zh-CN-DtROWolc.js} +1 -1
- package/dist/assets/{zh-TW-D5pg5Z8l.js → zh-TW-CDqNEP6z.js} +1 -1
- package/dist/index.html +3 -3
- package/dist/mini-chat.html +3 -3
- package/dist/mobile.html +3 -3
- package/package.json +1 -1
- package/server/lib/git/routes.test.js +4 -4
- package/server/lib/github/routes.js +1 -0
- package/server/lib/package-manager.js +1 -1
- package/server/lib/package-manager.test.js +8 -1
- package/server/lib/quota/providers/google/index.js +14 -6
- package/server/lib/quota/providers/index.js +3 -3
- package/server/lib/quota/providers/index.test.js +17 -0
- package/server/lib/tunnels/providers/ngrok.js +1 -1
- package/dist/assets/NewWorktreeDialog-Bx-zQyBp.js +0 -167
- package/dist/assets/index-BsXkdBYx.js +0 -3
- package/dist/assets/main-fsOGbLGZ.js +0 -214
- package/dist/assets/miniChat-DKGU29GZ.js +0 -2
- package/dist/assets/mobile-YHQHMYWC.js +0 -2
package/dist/index.html
CHANGED
|
@@ -515,12 +515,12 @@
|
|
|
515
515
|
pointer-events: none;
|
|
516
516
|
}
|
|
517
517
|
</style>
|
|
518
|
-
<script type="module" crossorigin src="/assets/main-
|
|
518
|
+
<script type="module" crossorigin src="/assets/main-CLkcy9_q.js"></script>
|
|
519
519
|
<link rel="modulepreload" crossorigin href="/assets/vendor-.bun-By2L9XvG.js">
|
|
520
|
-
<link rel="modulepreload" crossorigin href="/assets/index-
|
|
520
|
+
<link rel="modulepreload" crossorigin href="/assets/index-DJHN0H4h.js">
|
|
521
521
|
<link rel="modulepreload" crossorigin href="/assets/mobileLayoutPreference-Dio-WWkI.js">
|
|
522
522
|
<link rel="stylesheet" crossorigin href="/assets/vendor--Dwc_TRgJ.css">
|
|
523
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
523
|
+
<link rel="stylesheet" crossorigin href="/assets/index-DxqTiFfR.css">
|
|
524
524
|
</head>
|
|
525
525
|
<body class="h-full bg-background text-foreground">
|
|
526
526
|
<div id="root" class="h-full">
|
package/dist/mini-chat.html
CHANGED
|
@@ -74,11 +74,11 @@
|
|
|
74
74
|
}
|
|
75
75
|
</style>
|
|
76
76
|
|
|
77
|
-
<script type="module" crossorigin src="/assets/miniChat-
|
|
77
|
+
<script type="module" crossorigin src="/assets/miniChat-Ag1CYNF5.js"></script>
|
|
78
78
|
<link rel="modulepreload" crossorigin href="/assets/vendor-.bun-By2L9XvG.js">
|
|
79
|
-
<link rel="modulepreload" crossorigin href="/assets/index-
|
|
79
|
+
<link rel="modulepreload" crossorigin href="/assets/index-DJHN0H4h.js">
|
|
80
80
|
<link rel="stylesheet" crossorigin href="/assets/vendor--Dwc_TRgJ.css">
|
|
81
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
81
|
+
<link rel="stylesheet" crossorigin href="/assets/index-DxqTiFfR.css">
|
|
82
82
|
</head>
|
|
83
83
|
<body class="h-full bg-background text-foreground">
|
|
84
84
|
<div id="root" class="h-full">
|
package/dist/mobile.html
CHANGED
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover" />
|
|
6
6
|
<title>OpenChamber Mobile</title>
|
|
7
|
-
<script type="module" crossorigin src="/assets/mobile-
|
|
7
|
+
<script type="module" crossorigin src="/assets/mobile-DtojUfiY.js"></script>
|
|
8
8
|
<link rel="modulepreload" crossorigin href="/assets/vendor-.bun-By2L9XvG.js">
|
|
9
|
-
<link rel="modulepreload" crossorigin href="/assets/index-
|
|
9
|
+
<link rel="modulepreload" crossorigin href="/assets/index-DJHN0H4h.js">
|
|
10
10
|
<link rel="stylesheet" crossorigin href="/assets/vendor--Dwc_TRgJ.css">
|
|
11
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
11
|
+
<link rel="stylesheet" crossorigin href="/assets/index-DxqTiFfR.css">
|
|
12
12
|
</head>
|
|
13
13
|
<body class="h-full bg-background text-foreground">
|
|
14
14
|
<div id="root" class="h-full"></div>
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { beforeEach, describe, expect, it,
|
|
1
|
+
import { beforeEach, describe, expect, it, vi } from 'vitest';
|
|
2
2
|
|
|
3
3
|
const gitLibraries = {
|
|
4
|
-
stageFiles:
|
|
5
|
-
unstageFiles:
|
|
4
|
+
stageFiles: vi.fn(),
|
|
5
|
+
unstageFiles: vi.fn(),
|
|
6
6
|
};
|
|
7
7
|
|
|
8
|
-
mock
|
|
8
|
+
vi.mock('./index.js', () => ({
|
|
9
9
|
stageFiles: gitLibraries.stageFiles,
|
|
10
10
|
unstageFiles: gitLibraries.unstageFiles,
|
|
11
11
|
}));
|
|
@@ -982,6 +982,7 @@ export function registerGitHubRoutes(app) {
|
|
|
982
982
|
if (upstream) {
|
|
983
983
|
try {
|
|
984
984
|
const { getRemotes } = await import('../git/index.js');
|
|
985
|
+
const { resolveGitHubRepoFromDirectory } = await import('./index.js');
|
|
985
986
|
const remotes = await getRemotes(directory);
|
|
986
987
|
for (const r of remotes) {
|
|
987
988
|
if (r?.name) {
|
|
@@ -621,7 +621,7 @@ export function getUpdateCommand(pm = detectPackageManager()) {
|
|
|
621
621
|
/**
|
|
622
622
|
* Get current installed version from package.json
|
|
623
623
|
*/
|
|
624
|
-
function getCurrentVersion() {
|
|
624
|
+
export function getCurrentVersion() {
|
|
625
625
|
try {
|
|
626
626
|
const pkgPath = path.resolve(__dirname, '..', '..', 'package.json');
|
|
627
627
|
const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf8'));
|
|
@@ -6,7 +6,7 @@ vi.mock('node:child_process', () => ({
|
|
|
6
6
|
spawnSync: vi.fn(() => ({ status: 0, stdout: '/usr/local/bin', stderr: '' })),
|
|
7
7
|
}));
|
|
8
8
|
|
|
9
|
-
const { checkForUpdates } = await import('./package-manager.js');
|
|
9
|
+
const { checkForUpdates, getCurrentVersion } = await import('./package-manager.js');
|
|
10
10
|
|
|
11
11
|
/** Helper: create a fetch mock that routes by URL pattern */
|
|
12
12
|
function createFetchMock() {
|
|
@@ -244,3 +244,10 @@ describe('checkForUpdates', () => {
|
|
|
244
244
|
expect(result.available).toBe(false);
|
|
245
245
|
});
|
|
246
246
|
});
|
|
247
|
+
|
|
248
|
+
describe('getCurrentVersion', () => {
|
|
249
|
+
it('is exported for the CLI update command', () => {
|
|
250
|
+
expect(typeof getCurrentVersion).toBe('function');
|
|
251
|
+
expect(getCurrentVersion()).toMatch(/^\d+\.\d+\.\d+|unknown$/);
|
|
252
|
+
});
|
|
253
|
+
});
|
|
@@ -11,12 +11,20 @@ import {
|
|
|
11
11
|
fetchGoogleModels
|
|
12
12
|
} from './api.js';
|
|
13
13
|
|
|
14
|
+
export { resolveGoogleAuthSources } from './auth.js';
|
|
15
|
+
|
|
16
|
+
export const providerId = 'google';
|
|
17
|
+
export const providerName = 'Google';
|
|
18
|
+
export const aliases = ['google', 'google.oauth'];
|
|
19
|
+
|
|
20
|
+
export const isConfigured = () => resolveGoogleAuthSources().length > 0;
|
|
21
|
+
|
|
14
22
|
export const fetchGoogleQuota = async () => {
|
|
15
23
|
const authSources = resolveGoogleAuthSources();
|
|
16
24
|
if (!authSources.length) {
|
|
17
25
|
return buildResult({
|
|
18
|
-
providerId
|
|
19
|
-
providerName
|
|
26
|
+
providerId,
|
|
27
|
+
providerName,
|
|
20
28
|
ok: false,
|
|
21
29
|
configured: false,
|
|
22
30
|
error: 'Not configured'
|
|
@@ -76,8 +84,8 @@ export const fetchGoogleQuota = async () => {
|
|
|
76
84
|
|
|
77
85
|
if (!Object.keys(models).length) {
|
|
78
86
|
return buildResult({
|
|
79
|
-
providerId
|
|
80
|
-
providerName
|
|
87
|
+
providerId,
|
|
88
|
+
providerName,
|
|
81
89
|
ok: false,
|
|
82
90
|
configured: true,
|
|
83
91
|
error: sourceErrors[0] ?? 'Failed to fetch models'
|
|
@@ -85,8 +93,8 @@ export const fetchGoogleQuota = async () => {
|
|
|
85
93
|
}
|
|
86
94
|
|
|
87
95
|
return buildResult({
|
|
88
|
-
providerId
|
|
89
|
-
providerName
|
|
96
|
+
providerId,
|
|
97
|
+
providerName,
|
|
90
98
|
ok: true,
|
|
91
99
|
configured: true,
|
|
92
100
|
usage: {
|
|
@@ -43,9 +43,9 @@ const registry = {
|
|
|
43
43
|
fetchQuota: cursor.fetchQuota
|
|
44
44
|
},
|
|
45
45
|
google: {
|
|
46
|
-
providerId:
|
|
47
|
-
providerName:
|
|
48
|
-
isConfigured:
|
|
46
|
+
providerId: google.providerId,
|
|
47
|
+
providerName: google.providerName,
|
|
48
|
+
isConfigured: google.isConfigured,
|
|
49
49
|
fetchQuota: google.fetchGoogleQuota
|
|
50
50
|
},
|
|
51
51
|
'zai-coding-plan': {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { describe, expect, it } from 'vitest';
|
|
2
|
+
|
|
3
|
+
import * as google from './google/index.js';
|
|
4
|
+
import { listConfiguredQuotaProviders } from './index.js';
|
|
5
|
+
|
|
6
|
+
describe('quota provider registry', () => {
|
|
7
|
+
it('exposes google provider configuration helpers through the provider module', () => {
|
|
8
|
+
expect(google.providerId).toBe('google');
|
|
9
|
+
expect(google.providerName).toBe('Google');
|
|
10
|
+
expect(typeof google.isConfigured).toBe('function');
|
|
11
|
+
expect(typeof google.resolveGoogleAuthSources).toBe('function');
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
it('can list configured providers without missing provider exports', () => {
|
|
15
|
+
expect(() => listConfiguredQuotaProviders()).not.toThrow();
|
|
16
|
+
});
|
|
17
|
+
});
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from '../types.js';
|
|
14
14
|
import { getTunnelDependencyInstallInfo } from '../install-help.js';
|
|
15
15
|
|
|
16
|
-
const ngrokTunnelProviderCapabilities = {
|
|
16
|
+
export const ngrokTunnelProviderCapabilities = {
|
|
17
17
|
provider: TUNNEL_PROVIDER_NGROK,
|
|
18
18
|
defaults: {
|
|
19
19
|
mode: TUNNEL_MODE_QUICK,
|