palmier 1.0.3 → 1.0.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/README.md +14 -4
- package/dist/agents/agent.js +2 -0
- package/dist/agents/claude.js +11 -2
- package/dist/agents/grok.d.ts +2 -0
- package/dist/agents/grok.js +21 -0
- package/dist/agents/wizard.d.ts +6 -0
- package/dist/agents/wizard.js +12 -5
- package/dist/commands/info.js +4 -0
- package/dist/commands/init.js +23 -0
- package/dist/commands/serve.js +7 -0
- package/dist/commands/uninstall.js +5 -0
- package/dist/playwright-cli.d.ts +15 -0
- package/dist/playwright-cli.js +32 -0
- package/dist/pwa/assets/index-WdXTzNPm.js +120 -0
- package/dist/pwa/assets/{web-BF1ws_F1.js → web-BUNx9xzc.js} +1 -1
- package/dist/pwa/assets/{web-vAixGvaN.js → web-CyIOCae1.js} +1 -1
- package/dist/pwa/assets/{web-CxnC76dl.js → web-D4BfJuMP.js} +1 -1
- package/dist/pwa/index.html +1 -1
- package/dist/rpc-handler.js +16 -0
- package/dist/types.d.ts +3 -0
- package/package.json +1 -1
- package/dist/pwa/assets/index-v35-1icE.js +0 -120
|
@@ -1 +1 @@
|
|
|
1
|
-
import{W as i}from"./index-
|
|
1
|
+
import{W as i}from"./index-WdXTzNPm.js";function o(){const t=window.navigator.connection||window.navigator.mozConnection||window.navigator.webkitConnection;let n="unknown";const e=t?t.type||t.effectiveType:null;if(e&&typeof e=="string")switch(e){case"bluetooth":case"cellular":n="cellular";break;case"none":n="none";break;case"ethernet":case"wifi":case"wimax":n="wifi";break;case"other":case"unknown":n="unknown";break;case"slow-2g":case"2g":case"3g":n="cellular";break;case"4g":n="wifi";break}return n}class s extends i{constructor(){super(),this.handleOnline=()=>{const e={connected:!0,connectionType:o()};this.notifyListeners("networkStatusChange",e)},this.handleOffline=()=>{const n={connected:!1,connectionType:"none"};this.notifyListeners("networkStatusChange",n)},typeof window<"u"&&(window.addEventListener("online",this.handleOnline),window.addEventListener("offline",this.handleOffline))}async getStatus(){if(!window.navigator)throw this.unavailable("Browser does not support the Network Information API");const n=window.navigator.onLine,e=o();return{connected:n,connectionType:n?e:"none"}}}const r=new s;export{r as Network,s as NetworkWeb};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{W as p}from"./index-
|
|
1
|
+
import{W as p}from"./index-WdXTzNPm.js";class f extends p{constructor(){super(...arguments),this.group="CapacitorStorage"}async configure({group:e}){typeof e=="string"&&(this.group=e)}async get(e){return{value:this.impl.getItem(this.applyPrefix(e.key))}}async set(e){this.impl.setItem(this.applyPrefix(e.key),e.value)}async remove(e){this.impl.removeItem(this.applyPrefix(e.key))}async keys(){return{keys:this.rawKeys().map(t=>t.substring(this.prefix.length))}}async clear(){for(const e of this.rawKeys())this.impl.removeItem(e)}async migrate(){var e;const t=[],s=[],n="_cap_",o=Object.keys(this.impl).filter(i=>i.indexOf(n)===0);for(const i of o){const r=i.substring(n.length),a=(e=this.impl.getItem(i))!==null&&e!==void 0?e:"",{value:l}=await this.get({key:r});typeof l=="string"?s.push(r):(await this.set({key:r,value:a}),t.push(r))}return{migrated:t,existing:s}}async removeOld(){const e="_cap_",t=Object.keys(this.impl).filter(s=>s.indexOf(e)===0);for(const s of t)this.impl.removeItem(s)}get impl(){return window.localStorage}get prefix(){return this.group==="NativeStorage"?"":`${this.group}.`}rawKeys(){return Object.keys(this.impl).filter(e=>e.indexOf(this.prefix)===0)}applyPrefix(e){return this.prefix+e}}export{f as PreferencesWeb};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{W as t}from"./index-
|
|
1
|
+
import{W as t}from"./index-WdXTzNPm.js";class s extends t{constructor(){super(),this.handleVisibilityChange=()=>{const e={isActive:document.hidden!==!0};this.notifyListeners("appStateChange",e),document.hidden?this.notifyListeners("pause",null):this.notifyListeners("resume",null)},document.addEventListener("visibilitychange",this.handleVisibilityChange,!1)}exitApp(){throw this.unimplemented("Not implemented on web.")}async getInfo(){throw this.unimplemented("Not implemented on web.")}async getLaunchUrl(){return{url:""}}async getState(){return{isActive:document.hidden!==!0}}async minimizeApp(){throw this.unimplemented("Not implemented on web.")}async toggleBackButtonHandler(){throw this.unimplemented("Not implemented on web.")}async getAppLanguage(){return{value:navigator.language.split("-")[0].toLowerCase()}}}export{s as AppWeb};
|
package/dist/pwa/index.html
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
|
|
9
9
|
<title>Palmier</title>
|
|
10
10
|
<meta name="description" content="Run tasks from anywhere, approve actions on the go, and let your agents use your phone’s built-in capabilities when needed." />
|
|
11
|
-
<script type="module" crossorigin src="/assets/index-
|
|
11
|
+
<script type="module" crossorigin src="/assets/index-WdXTzNPm.js"></script>
|
|
12
12
|
<link rel="stylesheet" crossorigin href="/assets/index-cjQlPIoo.css">
|
|
13
13
|
<link rel="manifest" href="/manifest.webmanifest"><script id="vite-plugin-pwa:register-sw" src="/registerSW.js"></script></head>
|
|
14
14
|
<body>
|
package/dist/rpc-handler.js
CHANGED
|
@@ -11,6 +11,7 @@ import { validateClient, revokeClient } from "./client-store.js";
|
|
|
11
11
|
import { publishHostEvent } from "./events.js";
|
|
12
12
|
import { getLinkedDevice, setLinkedDevice, clearLinkedDevice, clearLinkedDeviceIfMatches } from "./linked-device.js";
|
|
13
13
|
import { currentVersion, performUpdate, performAgentUpdate } from "./update-checker.js";
|
|
14
|
+
import { PLAYWRIGHT_CLI_PACKAGE, PLAYWRIGHT_CLI_LABEL } from "./playwright-cli.js";
|
|
14
15
|
import { saveConfig } from "./config.js";
|
|
15
16
|
import { parseReportFiles, parseTaskOutcome, stripPalmierMarkers } from "./commands/run.js";
|
|
16
17
|
import { clearTaskQueue } from "./event-queues.js";
|
|
@@ -185,6 +186,9 @@ export function createRpcHandler(config, nc) {
|
|
|
185
186
|
linked_client_token: getLinkedDevice()?.clientToken ?? null,
|
|
186
187
|
pending_prompts: listPending(),
|
|
187
188
|
lan_url: buildLanUrl(config.httpPort ?? 7256, config.defaultInterface),
|
|
189
|
+
playwright_cli: config.playwrightCliVersion
|
|
190
|
+
? { label: PLAYWRIGHT_CLI_LABEL, npmPackage: PLAYWRIGHT_CLI_PACKAGE, version: config.playwrightCliVersion }
|
|
191
|
+
: null,
|
|
188
192
|
};
|
|
189
193
|
}
|
|
190
194
|
case "task.list": {
|
|
@@ -663,6 +667,18 @@ export function createRpcHandler(config, nc) {
|
|
|
663
667
|
saveConfig(config);
|
|
664
668
|
return { ok: true, version: newVersion ?? entry.version };
|
|
665
669
|
}
|
|
670
|
+
case "host.updatePlaywrightCli": {
|
|
671
|
+
if (!config.playwrightCliVersion)
|
|
672
|
+
return { error: "Playwright CLI is not managed by Palmier" };
|
|
673
|
+
const error = await performAgentUpdate(PLAYWRIGHT_CLI_PACKAGE);
|
|
674
|
+
if (error)
|
|
675
|
+
return { error };
|
|
676
|
+
const newVersion = getNpmInstalledVersion(PLAYWRIGHT_CLI_PACKAGE);
|
|
677
|
+
if (newVersion)
|
|
678
|
+
config.playwrightCliVersion = newVersion;
|
|
679
|
+
saveConfig(config);
|
|
680
|
+
return { ok: true, version: newVersion ?? config.playwrightCliVersion };
|
|
681
|
+
}
|
|
666
682
|
case "device.link": {
|
|
667
683
|
const params = request.params;
|
|
668
684
|
if (!params.fcmToken)
|
package/dist/types.d.ts
CHANGED
|
@@ -14,6 +14,9 @@ export interface HostConfig {
|
|
|
14
14
|
/** Runtime marker for "managed by Palmier" — present iff Palmier installed/manages this agent. */
|
|
15
15
|
version?: string;
|
|
16
16
|
}>;
|
|
17
|
+
/** Installed version of the Palmier-managed Playwright CLI (`@playwright/cli`).
|
|
18
|
+
* Present iff Palmier manages it; mirrors the agents' `version` marker. */
|
|
19
|
+
playwrightCliVersion?: string;
|
|
17
20
|
httpPort?: number;
|
|
18
21
|
/** OS network interface name of the IPv4 default route, captured on the
|
|
19
22
|
* most recent `palmier pair`. Used to resolve the host's LAN URL live for
|