@getpaseo/server 0.7.0 → 0.7.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/server/server/agent/providers/claude/model-manifest.d.ts +7 -1
- package/dist/server/server/agent/providers/claude/model-manifest.js +20 -5
- package/dist/server/web-ui/_expo/static/css/xterm-3bb1704bf6cb0876640973dc0244b4cb.css.gz +0 -0
- package/dist/server/web-ui/_expo/static/js/web/desktop-attachment-bridge-b7934233668e828047202972ebeda8fb.js.gz +0 -0
- package/dist/server/web-ui/_expo/static/js/web/desktop-attachment-store-392bffbe74474c302e5ebd58aab553d1.js.gz +0 -0
- package/dist/server/web-ui/_expo/static/js/web/{index-994ef218364a7d04983e7b98994bd866.js → index-ba2ed1dd3c74da2a44f1ba8ba5968ad3.js} +1 -1
- package/dist/server/web-ui/_expo/static/js/web/{index-994ef218364a7d04983e7b98994bd866.js.br → index-ba2ed1dd3c74da2a44f1ba8ba5968ad3.js.br} +0 -0
- package/dist/server/web-ui/_expo/static/js/web/{index-994ef218364a7d04983e7b98994bd866.js.gz → index-ba2ed1dd3c74da2a44f1ba8ba5968ad3.js.gz} +0 -0
- package/dist/server/web-ui/_expo/static/js/web/indexeddb-attachment-store-f4b116205be051c4f1ae4c8fb230ab2a.js.gz +0 -0
- package/dist/server/web-ui/_expo/static/js/web/native-file-attachment-store-34ace766d1813e802c529cc7b6f8791f.js.gz +0 -0
- package/dist/server/web-ui/index.html +1 -1
- package/dist/server/web-ui/index.html.br +0 -0
- package/dist/server/web-ui/index.html.gz +0 -0
- package/dist/server/web-ui/manifest.json.gz +0 -0
- package/dist/server/web-ui/metadata.json.gz +0 -0
- package/package.json +6 -6
|
@@ -12,11 +12,17 @@ export declare const CLAUDE_MODEL_MANIFEST: readonly [{
|
|
|
12
12
|
readonly effortLevels: readonly ["low", "medium", "high", "xhigh", "max"];
|
|
13
13
|
readonly supportsThinkingDisabled: true;
|
|
14
14
|
readonly supportsFastMode: true;
|
|
15
|
+
}, {
|
|
16
|
+
readonly id: "claude-fable-5-1";
|
|
17
|
+
readonly label: "Fable 5.1";
|
|
18
|
+
readonly description: "Fable 5.1 · Most powerful model";
|
|
19
|
+
readonly contextWindowMaxTokens: 1000000;
|
|
20
|
+
readonly effortLevels: readonly ["low", "medium", "high", "xhigh", "max"];
|
|
15
21
|
}, {
|
|
16
22
|
readonly id: "claude-fable-5";
|
|
17
23
|
readonly aliases: readonly ["claude-fable-5[1m]"];
|
|
18
24
|
readonly label: "Fable 5";
|
|
19
|
-
readonly description: "Fable 5 ·
|
|
25
|
+
readonly description: "Fable 5 · Previous release";
|
|
20
26
|
readonly minimumClaudeCodeVersion: "2.1.169";
|
|
21
27
|
readonly contextWindowMaxTokens: 1000000;
|
|
22
28
|
readonly effortLevels: readonly ["low", "medium", "high", "xhigh", "max"];
|
|
@@ -24,12 +24,19 @@ export const CLAUDE_MODEL_MANIFEST = [
|
|
|
24
24
|
supportsThinkingDisabled: true,
|
|
25
25
|
supportsFastMode: true,
|
|
26
26
|
},
|
|
27
|
+
{
|
|
28
|
+
id: "claude-fable-5-1",
|
|
29
|
+
label: "Fable 5.1",
|
|
30
|
+
description: "Fable 5.1 · Most powerful model",
|
|
31
|
+
contextWindowMaxTokens: 1000000,
|
|
32
|
+
effortLevels: CLAUDE_EFFORT_LEVELS.xhigh,
|
|
33
|
+
},
|
|
27
34
|
{
|
|
28
35
|
id: "claude-fable-5",
|
|
29
36
|
// COMPAT(claudeFable5OneMillionId): added in v0.3.0, remove after 2027-02-06 once pre-v0.3.0 app preferences are outside support.
|
|
30
37
|
aliases: ["claude-fable-5[1m]"],
|
|
31
38
|
label: "Fable 5",
|
|
32
|
-
description: "Fable 5 ·
|
|
39
|
+
description: "Fable 5 · Previous release",
|
|
33
40
|
minimumClaudeCodeVersion: "2.1.169",
|
|
34
41
|
contextWindowMaxTokens: 1000000,
|
|
35
42
|
effortLevels: CLAUDE_EFFORT_LEVELS.xhigh,
|
|
@@ -254,7 +261,7 @@ export function normalizeClaudeManifestModelId(value) {
|
|
|
254
261
|
if (singleSegmentMatch) {
|
|
255
262
|
return normalizeSingleSegmentClaudeModelId(singleSegmentMatch[1], singleSegmentMatch[2], trimmed.toLowerCase().includes("[1m]"));
|
|
256
263
|
}
|
|
257
|
-
const runtimeMatch = trimmed.match(/^(?:claude[-_ ])?(opus|sonnet|haiku)[-_ ]+(\d+)[-.](\d+)(?:\[1m\])?(?:[-_ ]+\d{8})?(?:\[1m\])?$/i);
|
|
264
|
+
const runtimeMatch = trimmed.match(/^(?:claude[-_ ])?(fable|opus|sonnet|haiku)[-_ ]+(\d+)[-.](\d+)(?:\[1m\])?(?:[-_ ]+\d{8})?(?:\[1m\])?$/i);
|
|
258
265
|
if (!runtimeMatch) {
|
|
259
266
|
return null;
|
|
260
267
|
}
|
|
@@ -281,7 +288,7 @@ export function normalizeClaudeRuntimeModelId(value) {
|
|
|
281
288
|
return normalizedModelId;
|
|
282
289
|
}
|
|
283
290
|
}
|
|
284
|
-
const runtimeMatch = trimmed.match(/claude[-_ ](opus|sonnet|haiku)[-_ ]+(\d+)[-.](\d+)(\[1m\])?/i);
|
|
291
|
+
const runtimeMatch = trimmed.match(/claude[-_ ](fable|opus|sonnet|haiku)[-_ ]+(\d+)[-.](\d+)(\[1m\])?/i);
|
|
285
292
|
if (!runtimeMatch) {
|
|
286
293
|
return null;
|
|
287
294
|
}
|
|
@@ -309,7 +316,15 @@ function normalizeSingleSegmentClaudeModelId(familyValue, major, hasOneMillionCo
|
|
|
309
316
|
function normalizeMajorMinorClaudeModelId(familyValue, major, minor, hasOneMillionContext) {
|
|
310
317
|
const family = familyValue.toLowerCase();
|
|
311
318
|
const suffix = hasOneMillionContext ? "[1m]" : "";
|
|
312
|
-
const
|
|
313
|
-
|
|
319
|
+
const candidates = [
|
|
320
|
+
`claude-${family}-${major}-${minor}${suffix}`,
|
|
321
|
+
`claude-${family}-${major}-${minor}`,
|
|
322
|
+
];
|
|
323
|
+
for (const candidate of candidates) {
|
|
324
|
+
if (isClaudeManifestModelId(candidate)) {
|
|
325
|
+
return candidate;
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
return null;
|
|
314
329
|
}
|
|
315
330
|
//# sourceMappingURL=model-manifest.js.map
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -15273,7 +15273,7 @@ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{v
|
|
|
15273
15273
|
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"decodeOfferFragmentPayload",{enumerable:!0,get:function(){return n.decodeOfferFragmentPayload}}),Object.defineProperty(e,"buildDaemonWebSocketUrl",{enumerable:!0,get:function(){return t.buildDaemonWebSocketUrl}}),Object.defineProperty(e,"deriveLabelFromEndpoint",{enumerable:!0,get:function(){return t.deriveLabelFromEndpoint}}),Object.defineProperty(e,"extractHostPortFromWebSocketUrl",{enumerable:!0,get:function(){return t.extractHostPortFromWebSocketUrl}}),Object.defineProperty(e,"normalizeHostPort",{enumerable:!0,get:function(){return t.normalizeHostPort}}),Object.defineProperty(e,"parseConnectionUri",{enumerable:!0,get:function(){return t.parseConnectionUri}}),Object.defineProperty(e,"parseHostPort",{enumerable:!0,get:function(){return t.parseHostPort}}),Object.defineProperty(e,"serializeConnectionUri",{enumerable:!0,get:function(){return t.serializeConnectionUri}}),Object.defineProperty(e,"serializeConnectionUriForStorage",{enumerable:!0,get:function(){return t.serializeConnectionUriForStorage}}),Object.defineProperty(e,"shouldUseTlsForDefaultHostedRelay",{enumerable:!0,get:function(){return t.shouldUseTlsForDefaultHostedRelay}}),e.buildRelayWebSocketUrl=function(n){return(0,t.buildRelayWebSocketUrl)(Object.assign({},n,{role:"client"}))};var t=r(d[0]),n=r(d[1])},3618,[3554,3619]);
|
|
15274
15274
|
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ConnectionOfferV2Schema",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"ConnectionOfferSchema",{enumerable:!0,get:function(){return o}}),e.decodeOfferFragmentPayload=l,e.parseConnectionOfferFromUrl=function(n){const t=f(n);if(!t)return null;const c=l(t);return o.parse(c)};var n=r(d[0]);const t=n.z.object({v:n.z.literal(2),serverId:n.z.string().min(1),daemonPublicKeyB64:n.z.string().min(1),relay:n.z.object({endpoint:n.z.string().min(1),useTls:n.z.boolean().optional()})}),o=t;function c(n){const t=n.replace(/-/g,"+").replace(/_/g,"/"),o=t.padEnd(t.length+(4-t.length%4)%4,"="),c=globalThis.atob(o),l=Uint8Array.from(c,n=>n.charCodeAt(0));return new TextDecoder("utf-8",{fatal:!0}).decode(l)}function l(n){const t=c(n);return JSON.parse(t)}const u="#offer=";function f(n){const t=n.trim();if(!t)return null;const o=t.indexOf(u);if(-1===o)return null;const c=t.slice(o+u.length).trim();return c.length>0?c:null}},3619,[3313]);
|
|
15275
15275
|
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.resolveAppVersion=function(){const e=u(t.default?.version);if(e)return e;const o=u(n.default.expoConfig?.version);if(o)return o;const f=u(n.default.manifest?.version);if(f)return f;return null};var n=e(r(d[0])),t=e(r(d[1]));function u(e){if("string"!=typeof e)return null;const n=e.trim();return 0===n.length?null:n}},3620,[1021,3621]);
|
|
15276
|
-
__d(function(e,t,r,o,i,a,n){i.exports={name:"@getpaseo/app",version:"0.7.
|
|
15276
|
+
__d(function(e,t,r,o,i,a,n){i.exports={name:"@getpaseo/app",version:"0.7.1",private:!0,main:"index.ts",scripts:{start:"npm run start:expo","start:expo":"cross-env APP_VARIANT=development expo start","reset-project":"node ./scripts/reset-project.js","eas-build-post-install":"npm --prefix ../.. run build:app-deps && npm run build:terminal-webview",android:"npm run android:development","android:development":"npm --prefix ../.. run build:client && cross-env APP_VARIANT=development expo prebuild --platform android --clean --non-interactive && cross-env APP_VARIANT=development expo run:android --variant=debug","android:production":"npm --prefix ../.. run build:client && cross-env APP_VARIANT=production expo prebuild --platform android --clean --non-interactive && cross-env APP_VARIANT=production expo run:android --variant=release","android:release":"npm run android:production","android:clear":"node -e \"require('node:fs').rmSync('android', { recursive: true, force: true })\"",ios:"npm --prefix ../.. run build:client && expo run:ios","ios:release":"npm --prefix ../.. run build:client && expo run:ios --configuration Release",web:"npm --prefix ../.. run build:client && concurrently --kill-others --names protocol,client,expo --prefix-colors yellow,blue,magenta \"npm --prefix ../.. run watch:protocol\" \"npm --prefix ../.. run watch:client\" \"npm run web:expo\"","web:expo":"expo start --web",lint:"expo lint",typecheck:"tsgo --noEmit",test:"vitest run","test:browser":"vitest run --project browser","test:e2e":"playwright test --project=browser","test:e2e:diff-performance":"cross-env PASEO_DIFF_PERF_E2E=1 playwright test --project=browser e2e/browser/diff-performance.spec.ts","test:e2e:stream-smoothness":"cross-env PASEO_AGENT_STREAM_PERF_E2E=1 playwright test --project=browser e2e/browser/agent-stream-smoothness.spec.ts","test:e2e:real":"cross-env E2E_FORK_PASEO_HOME_FROM=../../.dev/paseo-home playwright test --project=real-provider","test:e2e:relay-deployment":"npm --prefix ../.. run build:server && npm --prefix ../.. run build:daemon-web-ui && cross-env E2E_FORK_PASEO_HOME_FROM=../../.dev/paseo-home playwright test --project=relay-deployment e2e/browser/relay-deployment-reconnect.real.spec.ts","test:e2e:ui":"playwright test --ui",build:"npm run build:web","build:web":"npm --prefix ../.. run build:app-deps && expo export --platform web","profile:composer-typing":"node ./scripts/profile-composer-typing.mjs","profile:explorer-toggle":"node ./scripts/profile-explorer-toggle.mjs","profile:side-pane":"playwright test --config playwright.profile.config.ts side-pane-performance.spec.ts","profile:workspace-switching":"node ./scripts/profile-workspace-switching.mjs","profile:workspace-tabs":"node ./scripts/profile-workspace-tabs.mjs","deploy:web":"npm run build:web && wrangler pages deploy dist --project-name paseo-app --branch main","build:terminal-webview":"node ./scripts/build-terminal-webview-html.mjs","build:mermaid-runtime":"node ./src/components/markdown/fence/mermaid/build-runtime.mjs"},dependencies:{"@codemirror/commands":"6.10.4","@codemirror/language":"6.12.4","@codemirror/search":"6.7.1","@codemirror/state":"6.7.1","@codemirror/view":"6.43.6","@dnd-kit/core":"^6.3.1","@dnd-kit/sortable":"^10.0.0","@dnd-kit/utilities":"^3.2.2","@floating-ui/react-native":"^0.10.7","@getpaseo/client":"*","@getpaseo/expo-two-way-audio":"*","@getpaseo/highlight":"*","@getpaseo/plugin":"*","@getpaseo/protocol":"*","@gorhom/bottom-sheet":"^5.2.14","@gorhom/portal":"^1.0.14","@marijn/find-cluster-break":"^1.0.2","@mattermost/react-native-paste-input":"2.0.1","@react-native-async-storage/async-storage":"2.2.0","@react-native-masked-view/masked-view":"^0.3.2","@react-native/normalize-colors":"^0.81.5","@react-navigation/native":"^7.1.8","@replit/codemirror-vim":"6.3.0","@shopify/react-native-skia":"2.2.12","@tanstack/react-query":"^5.90.11","@tanstack/react-virtual":"^3.13.21","@xterm/addon-clipboard":"^0.3.0-beta.213","@xterm/addon-fit":"^0.12.0-beta.213","@xterm/addon-image":"^0.10.0-beta.213","@xterm/addon-ligatures":"^0.11.0-beta.213","@xterm/addon-search":"^0.17.0-beta.213","@xterm/addon-unicode11":"^0.10.0-beta.213","@xterm/addon-web-links":"^0.13.0-beta.213","@xterm/addon-webgl":"^0.20.0-beta.212","@xterm/xterm":"^6.1.0-beta.213",buffer:"^6.0.3",expo:"^54.0.18","expo-asset":"~12.0.12","expo-audio":"~1.0.13","expo-build-properties":"^1.0.9","expo-camera":"~17.0.10","expo-clipboard":"~8.0.7","expo-constants":"~18.0.9","expo-crypto":"^15.0.8","expo-dev-client":"^6.0.15","expo-document-picker":"~14.0.8","expo-file-system":"~19.0.17","expo-haptics":"~15.0.7","expo-image":"~3.0.10","expo-image-manipulator":"~14.0.8","expo-image-picker":"^17.0.8","expo-keep-awake":"^15.0.7","expo-linking":"~8.0.8","expo-localization":"~17.0.9","expo-notifications":"^0.32.16","expo-router":"~6.0.13","expo-sharing":"^14.0.8","expo-splash-screen":"~31.0.10","expo-sqlite":"~16.0.10","expo-system-ui":"~6.0.7","fast-deep-equal":"^3.1.3",htmlparser2:"^12.0.0",i18next:"^26.3.0","lucide-react-native":"^0.546.0","markdown-it":"^10.0.0",mermaid:"^11.16.0","mnemonic-id":"^3.2.7",qrcode:"^1.5.4",react:"19.1.0","react-dom":"19.1.0","react-i18next":"^17.0.8","react-native":"0.81.5","react-native-draggable-flatlist":"^4.0.3","react-native-edge-to-edge":"^1.7.0","react-native-gesture-handler":"~2.28.0","react-native-keyboard-controller":"1.21.12","react-native-markdown-display":"^7.0.2","react-native-nitro-modules":"0.35.5","react-native-reanimated":"~4.3.1","react-native-safe-area-context":"~5.6.0","react-native-screens":"~4.16.0","react-native-svg":"^15.14.0","react-native-uitextview":"^2.2.0","react-native-unistyles":"^3.2.4","react-native-web":"~0.21.0","react-native-webview":"^13.16.0","react-native-worklets":"~0.8.3","tiny-invariant":"^1.3.3",turndown:"^7.2.4","turndown-plugin-gfm":"^1.0.2","use-sync-external-store":"^1.6.0",yaml:"^2.8.4",zod:"^4.4.3",zustand:"^5.0.9"},devDependencies:{"@playwright/test":"^1.56.1","@testing-library/dom":"^10.4.1","@testing-library/react":"^16.3.2","@types/markdown-it":"^14.1.2","@types/node":"~22.19.0","@types/qrcode":"^1.5.6","@types/react":"~19.2.0","@types/turndown":"^5.0.6","@types/ws":"^8.18.1","@vitest/browser":"^4.1.7","@vitest/browser-playwright":"^4.1.7","@xterm/headless":"^6.1.0-beta.213",dotenv:"^17.2.3","eas-cli":"^16.24.1",esbuild:"0.28.1",eslint:"^9.25.0","eslint-config-expo":"~10.0.0","expo-gradle-jvmargs":"^1.1.2","fake-indexeddb":"^6.2.5",jsdom:"^20.0.3","material-icon-theme":"^5.32.0",playwright:"^1.56.1","serve-sim":"^0.1.40",typescript:"~5.9.2",vitest:"^4.1.6",wrangler:"^4.105.0",ws:"^8.20.0"}}},3621,[]);
|
|
15277
15277
|
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.shouldUseDesktopDaemon=function(){return(0,n.isElectronRuntime)()},e.getDesktopDaemonStatus=async function(){return p(await(0,t.invokeDesktopCommand)("desktop_daemon_status"))},e.startDesktopDaemon=async function(){return p(await(0,t.invokeDesktopCommand)("start_desktop_daemon"))},e.stopDesktopDaemon=async function(n="manual_ipc"){return p(await(0,t.invokeDesktopCommand)("stop_desktop_daemon",{reason:n}))},e.restartDesktopDaemon=async function(){return p(await(0,t.invokeDesktopCommand)("restart_desktop_daemon"))},e.getDesktopDaemonLogs=async function(){return u(await(0,t.invokeDesktopCommand)("desktop_daemon_logs"))},e.getDesktopAppLogs=async function(){const n=await(0,t.invokeDesktopCommand)("desktop_app_logs");if(!o(n))throw new Error("Unexpected desktop app logs response.");return{logPath:s(n.logPath)??"",contents:"string"==typeof n.contents?n.contents:""}},e.getCliDaemonStatus=async function(){const n=await(0,t.invokeDesktopCommand)("cli_daemon_status");if("string"!=typeof n)throw new Error("Unexpected CLI daemon status response.");return n},e.listenToLocalTransportEvents=async function(t){const l=(0,n.getDesktopHost)()?.events?.on;if("function"!=typeof l)throw new Error("Desktop events API is unavailable.");const p=await l("local-daemon-transport-event",n=>{o(n)&&t({sessionId:s(n.sessionId)??"",kind:s(n.kind)??"error",text:s(n.text),binaryBase64:s(n.binaryBase64),code:c(n.code),reason:s(n.reason),error:s(n.error)})});return"function"==typeof p?p:()=>{}},e.openLocalTransportSession=async function(n){await(0,t.invokeDesktopCommand)("open_local_daemon_transport",n)},e.sendLocalTransportMessage=async function(n){await(0,t.invokeDesktopCommand)("send_local_daemon_transport_message",Object.assign({sessionId:n.sessionId},n.text?{text:n.text}:{},n.binaryBase64?{binaryBase64:n.binaryBase64}:{}))},e.closeLocalTransportSession=async function(n){await(0,t.invokeDesktopCommand)("close_local_daemon_transport",{sessionId:n})},e.getCliInstallStatus=async function(){return k(await(0,t.invokeDesktopCommand)("get_cli_install_status"))},e.installCli=async function(){return k(await(0,t.invokeDesktopCommand)("install_cli"))},e.readLegacySkillSelection=function(){return(0,t.invokeDesktopCommand)("read_legacy_skill_selection")},e.deleteLegacySkillSelection=async function(){await(0,t.invokeDesktopCommand)("delete_legacy_skill_selection")};var n=r(d[0]),t=r(d[1]);function o(n){return"object"==typeof n&&null!==n}function s(n){return"string"==typeof n&&n.trim().length>0?n:null}function c(n){return"number"==typeof n&&Number.isFinite(n)?n:null}function l(n){const t=s(n)?.toLowerCase();switch(t){case"starting":return"starting";case"running":return"running";case"errored":case"error":return"errored";default:return"stopped"}}function p(n){if(!o(n))throw new Error("Unexpected desktop daemon status response.");return{serverId:s(n.serverId)??"",status:l(n.status),listen:s(n.listen),hostname:s(n.hostname),pid:c(n.pid),home:s(n.home)??"",version:s(n.version),desktopManaged:!0===n.desktopManaged,error:s(n.error)}}function u(n){if(!o(n))throw new Error("Unexpected desktop daemon logs response.");return{logPath:s(n.logPath)??"",contents:"string"==typeof n.contents?n.contents:""}}function k(n){if(!o(n))throw new Error("Unexpected install status response.");return{installed:!0===n.installed}}},3622,[1596,1598]);
|
|
15278
15278
|
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DaemonConnectionTestError",{enumerable:!0,get:function(){return f}}),e.buildClientConfig=T,e.connectAndProbe=h,e.connectToDaemon=async function(t,o,n=l){return h(await T(t,o?.serverId,o,n),w(t,o),n)};var t=r(d[0]),o=r(d[1]),n=r(d[2]),s=r(d[3]),c=r(d[4]);const l={getClientId:o.getOrCreateClientId,resolveAppVersion:n.resolveAppVersion,createDesktopTransportFactory:c.createDesktopDaemonTransportFactory,buildDesktopTransportUrl:c.buildDesktopDaemonTransportUrl,createClient:o=>new t.DaemonClient(o)};function p(t){if(!t.desktopTransportFactory)throw new Error("Remote SSH is only available in the desktop app.");return Object.assign({},t.base,{transportFactory:t.desktopTransportFactory,url:t.buildDesktopTransportUrl(Object.assign({transportType:"ssh",host:t.connection.host},void 0!==t.connection.sshPort?{sshPort:t.connection.sshPort}:{},void 0!==t.connection.daemonPort?{daemonPort:t.connection.daemonPort}:{}))})}function u(t){if("string"!=typeof t)return null;const o=t.trim();return o.length>0?o:null}function b(t,o){const n=t&&("transport error"===t.toLowerCase()||"transport closed"===t.toLowerCase()),s=o&&("transport error"===o.toLowerCase()||"transport closed"===o.toLowerCase()||"unable to connect"===o.toLowerCase());return n&&o&&!s?o:t||(o||"Unable to connect")}function y(t){if(!t.config.password)return!1;const o=[t.reason,t.lastError].filter(Boolean).join("\n").toLowerCase();return o.includes("401")||o.includes("4001")||o.includes("unauthorized")||o.includes("code 1006")}class f extends Error{constructor(t,o){super(t),this.name="DaemonConnectionTestError",this.reason=o.reason,this.lastError=o.lastError}}async function T(t,o,n,c=l){const u=await c.getClientId(),b=c.createDesktopTransportFactory(),y=Object.assign({clientId:u,clientType:"mobile",appVersion:c.resolveAppVersion()??void 0,suppressSendErrors:!0,reconnect:{enabled:!1}},n?.capabilities?{capabilities:n.capabilities}:{},n?.trace?{trace:n.trace}:{},"directSocket"!==t.type&&"directPipe"!==t.type||!b?{}:{transportFactory:b});if("directSocket"===t.type||"directPipe"===t.type)return Object.assign({},y,{url:c.buildDesktopTransportUrl({transportType:"directSocket"===t.type?"socket":"pipe",transportPath:t.path})});if("remoteSsh"===t.type)return p({connection:t,base:y,desktopTransportFactory:b,buildDesktopTransportUrl:c.buildDesktopTransportUrl});if("directTcp"===t.type)return Object.assign({},y,{url:(0,s.buildDaemonWebSocketUrl)(t.endpoint,{useTls:t.useTls??!1})},t.password?{password:t.password}:{});if(!o)throw new Error("serverId is required to probe a relay connection");return Object.assign({},y,{url:(0,s.buildRelayWebSocketUrl)({endpoint:t.relayEndpoint,useTls:t.useTls??(0,s.shouldUseTlsForDefaultHostedRelay)(t.relayEndpoint),serverId:o}),e2ee:{enabled:!0,daemonPublicKeyB64:t.daemonPublicKeyB64}})}function h(t,o,n=l){const s=n.createClient(t);return new Promise((n,c)=>{const l=setTimeout(()=>{s.close().catch(()=>{}),c(new f("Connection timed out",{reason:"Connection timed out",lastError:s.lastError??null}))},o);s.connect().then(()=>{clearTimeout(l);const t=s.getLastServerInfoMessage();if(!t)return s.close().catch(()=>{}),void c(new f("Missing server info message",{reason:"Missing server info message",lastError:s.lastError??null}));n({client:s,serverId:t.serverId,hostname:t.hostname})}).catch(o=>{clearTimeout(l);const n=u(o instanceof Error?o.message:String(o)),p=u(s.lastError),T=y({config:t,reason:n,lastError:p})?"Incorrect password":b(n,p);s.close().catch(()=>{}),c(new f(T,{reason:n,lastError:p}))})})}function w(t,o){return o?.timeoutMs?o.timeoutMs:"relay"===t.type?1e4:"remoteSsh"===t.type?15e3:6e3}},3623,[3534,3624,3620,3618,3625]);
|
|
15279
15279
|
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.createClientIdResolver=c,_e.getOrCreateClientId=async function(){return f.getOrCreate()};var t,e=r(d[0]),n=(t=e)&&t.__esModule?t:{default:t},o=r(d[1]),u=r(d[2]);const l="@paseo:client-id-v1",s=o.z.string().trim().min(1);function c(t){const e=t.storageKey??l;let n=null,o=null;return{async getOrCreate(){if(n)return n;if(o)return o;o=(async()=>{const o=await(0,u.readValidatedString)(t.storage,e,s);if(o)return n=o,o;const l=`cid_${t.generateUuid()}`;return await t.storage.setItem(e,l),n=l,l})();try{return await o}finally{o=null}}}}const f=c({storage:n.default,generateUuid:function(){const t=globalThis.crypto;return t&&"function"==typeof t.randomUUID?t.randomUUID().replace(/-/g,""):`${Date.now().toString(36)}${Math.random().toString(36).slice(2)}`}})},3624,[1587,3313,3394]);
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -85,6 +85,6 @@
|
|
|
85
85
|
<body>
|
|
86
86
|
<noscript>You need to enable JavaScript to run this app.</noscript>
|
|
87
87
|
<div id="root"></div>
|
|
88
|
-
<script src="/_expo/static/js/web/index-
|
|
88
|
+
<script src="/_expo/static/js/web/index-ba2ed1dd3c74da2a44f1ba8ba5968ad3.js" defer></script>
|
|
89
89
|
</body>
|
|
90
90
|
</html>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpaseo/server",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "Paseo backend server",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist/server",
|
|
@@ -72,11 +72,11 @@
|
|
|
72
72
|
"@anthropic-ai/claude-agent-sdk": "0.3.246",
|
|
73
73
|
"@anthropic-ai/sdk": "^0.104.2",
|
|
74
74
|
"@babel/parser": "^7.29.8",
|
|
75
|
-
"@getpaseo/client": "0.7.
|
|
76
|
-
"@getpaseo/highlight": "0.7.
|
|
77
|
-
"@getpaseo/plugin": "0.7.
|
|
78
|
-
"@getpaseo/protocol": "0.7.
|
|
79
|
-
"@getpaseo/relay": "0.7.
|
|
75
|
+
"@getpaseo/client": "0.7.1",
|
|
76
|
+
"@getpaseo/highlight": "0.7.1",
|
|
77
|
+
"@getpaseo/plugin": "0.7.1",
|
|
78
|
+
"@getpaseo/protocol": "0.7.1",
|
|
79
|
+
"@getpaseo/relay": "0.7.1",
|
|
80
80
|
"@isaacs/ttlcache": "^2.1.4",
|
|
81
81
|
"@modelcontextprotocol/sdk": "1.29.0",
|
|
82
82
|
"@opencode-ai/sdk": "1.14.46",
|