@intentic/machine 1.430.0 → 1.432.0
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 +415 -34
- package/dist/autostart/before-sign-in.d.ts.map +1 -1
- package/dist/autostart/before-sign-in.js +2 -2
- package/dist/autostart/before-sign-in.js.map +1 -1
- package/dist/ci-fleet/client.d.ts +8 -0
- package/dist/ci-fleet/client.d.ts.map +1 -0
- package/dist/ci-fleet/client.js +49 -0
- package/dist/ci-fleet/client.js.map +1 -0
- package/dist/ci-fleet/commands.d.ts +3 -0
- package/dist/ci-fleet/commands.d.ts.map +1 -0
- package/dist/ci-fleet/commands.js +74 -0
- package/dist/ci-fleet/commands.js.map +1 -0
- package/dist/ci-fleet/config.d.ts +45 -0
- package/dist/ci-fleet/config.d.ts.map +1 -0
- package/dist/ci-fleet/config.js +39 -0
- package/dist/ci-fleet/config.js.map +1 -0
- package/dist/ci-fleet/context.d.ts +28 -0
- package/dist/ci-fleet/context.d.ts.map +1 -0
- package/dist/ci-fleet/context.js +63 -0
- package/dist/ci-fleet/context.js.map +1 -0
- package/dist/ci-fleet/discover.d.ts +28 -0
- package/dist/ci-fleet/discover.d.ts.map +1 -0
- package/dist/ci-fleet/discover.js +193 -0
- package/dist/ci-fleet/discover.js.map +1 -0
- package/dist/ci-fleet/fleet-holds.d.ts +17 -0
- package/dist/ci-fleet/fleet-holds.d.ts.map +1 -0
- package/dist/ci-fleet/fleet-holds.js +20 -0
- package/dist/ci-fleet/fleet-holds.js.map +1 -0
- package/dist/ci-fleet/fleet-install.d.ts +13 -0
- package/dist/ci-fleet/fleet-install.d.ts.map +1 -0
- package/dist/ci-fleet/fleet-install.js +99 -0
- package/dist/ci-fleet/fleet-install.js.map +1 -0
- package/dist/ci-fleet/fleet-service.d.ts +7 -0
- package/dist/ci-fleet/fleet-service.d.ts.map +1 -0
- package/dist/ci-fleet/fleet-service.js +147 -0
- package/dist/ci-fleet/fleet-service.js.map +1 -0
- package/dist/ci-fleet/fleet.d.ts +5 -0
- package/dist/ci-fleet/fleet.d.ts.map +1 -0
- package/dist/ci-fleet/fleet.js +64 -0
- package/dist/ci-fleet/fleet.js.map +1 -0
- package/dist/ci-fleet/janitor/buildkit.d.ts +5 -0
- package/dist/ci-fleet/janitor/buildkit.d.ts.map +1 -0
- package/dist/ci-fleet/janitor/buildkit.js +58 -0
- package/dist/ci-fleet/janitor/buildkit.js.map +1 -0
- package/dist/ci-fleet/janitor/git-repack.d.ts +3 -0
- package/dist/ci-fleet/janitor/git-repack.d.ts.map +1 -0
- package/dist/ci-fleet/janitor/git-repack.js +64 -0
- package/dist/ci-fleet/janitor/git-repack.js.map +1 -0
- package/dist/ci-fleet/janitor/janitor-config.d.ts +20 -0
- package/dist/ci-fleet/janitor/janitor-config.d.ts.map +1 -0
- package/dist/ci-fleet/janitor/janitor-config.js +19 -0
- package/dist/ci-fleet/janitor/janitor-config.js.map +1 -0
- package/dist/ci-fleet/janitor/janitor-fs.d.ts +41 -0
- package/dist/ci-fleet/janitor/janitor-fs.d.ts.map +1 -0
- package/dist/ci-fleet/janitor/janitor-fs.js +147 -0
- package/dist/ci-fleet/janitor/janitor-fs.js.map +1 -0
- package/dist/ci-fleet/janitor/janitor-run.d.ts +19 -0
- package/dist/ci-fleet/janitor/janitor-run.d.ts.map +1 -0
- package/dist/ci-fleet/janitor/janitor-run.js +24 -0
- package/dist/ci-fleet/janitor/janitor-run.js.map +1 -0
- package/dist/ci-fleet/janitor/janitor.d.ts +8 -0
- package/dist/ci-fleet/janitor/janitor.d.ts.map +1 -0
- package/dist/ci-fleet/janitor/janitor.js +97 -0
- package/dist/ci-fleet/janitor/janitor.js.map +1 -0
- package/dist/ci-fleet/janitor/pass-record.d.ts +11 -0
- package/dist/ci-fleet/janitor/pass-record.d.ts.map +1 -0
- package/dist/ci-fleet/janitor/pass-record.js +19 -0
- package/dist/ci-fleet/janitor/pass-record.js.map +1 -0
- package/dist/ci-fleet/janitor/runner-cleanup.d.ts +3 -0
- package/dist/ci-fleet/janitor/runner-cleanup.d.ts.map +1 -0
- package/dist/ci-fleet/janitor/runner-cleanup.js +119 -0
- package/dist/ci-fleet/janitor/runner-cleanup.js.map +1 -0
- package/dist/ci-fleet/janitor/shared-caches.d.ts +5 -0
- package/dist/ci-fleet/janitor/shared-caches.d.ts.map +1 -0
- package/dist/ci-fleet/janitor/shared-caches.js +101 -0
- package/dist/ci-fleet/janitor/shared-caches.js.map +1 -0
- package/dist/ci-fleet/keeper/fleet-keeper.d.ts +27 -0
- package/dist/ci-fleet/keeper/fleet-keeper.d.ts.map +1 -0
- package/dist/ci-fleet/keeper/fleet-keeper.js +117 -0
- package/dist/ci-fleet/keeper/fleet-keeper.js.map +1 -0
- package/dist/ci-fleet/keeper/keeper-config.d.ts +5 -0
- package/dist/ci-fleet/keeper/keeper-config.d.ts.map +1 -0
- package/dist/ci-fleet/keeper/keeper-config.js +5 -0
- package/dist/ci-fleet/keeper/keeper-config.js.map +1 -0
- package/dist/ci-fleet/paths.d.ts +14 -0
- package/dist/ci-fleet/paths.d.ts.map +1 -0
- package/dist/ci-fleet/paths.js +14 -0
- package/dist/ci-fleet/paths.js.map +1 -0
- package/dist/ci-fleet/protocol.d.ts +134 -0
- package/dist/ci-fleet/protocol.d.ts.map +1 -0
- package/dist/ci-fleet/protocol.js +27 -0
- package/dist/ci-fleet/protocol.js.map +1 -0
- package/dist/ci-fleet/prune/prune-config.d.ts +12 -0
- package/dist/ci-fleet/prune/prune-config.d.ts.map +1 -0
- package/dist/ci-fleet/prune/prune-config.js +11 -0
- package/dist/ci-fleet/prune/prune-config.js.map +1 -0
- package/dist/ci-fleet/prune/prune.d.ts +16 -0
- package/dist/ci-fleet/prune/prune.d.ts.map +1 -0
- package/dist/ci-fleet/prune/prune.js +201 -0
- package/dist/ci-fleet/prune/prune.js.map +1 -0
- package/dist/ci-fleet/prune/stopped-containers.d.ts +4 -0
- package/dist/ci-fleet/prune/stopped-containers.d.ts.map +1 -0
- package/dist/ci-fleet/prune/stopped-containers.js +36 -0
- package/dist/ci-fleet/prune/stopped-containers.js.map +1 -0
- package/dist/ci-fleet/register.d.ts +17 -0
- package/dist/ci-fleet/register.d.ts.map +1 -0
- package/dist/ci-fleet/register.js +162 -0
- package/dist/ci-fleet/register.js.map +1 -0
- package/dist/ci-fleet/slots/ci-locks.d.ts +7 -0
- package/dist/ci-fleet/slots/ci-locks.d.ts.map +1 -0
- package/dist/ci-fleet/slots/ci-locks.js +62 -0
- package/dist/ci-fleet/slots/ci-locks.js.map +1 -0
- package/dist/ci-fleet/slots/decide.d.ts +19 -0
- package/dist/ci-fleet/slots/decide.d.ts.map +1 -0
- package/dist/ci-fleet/slots/decide.js +27 -0
- package/dist/ci-fleet/slots/decide.js.map +1 -0
- package/dist/ci-fleet/slots/sandbox-memory.d.ts +6 -0
- package/dist/ci-fleet/slots/sandbox-memory.d.ts.map +1 -0
- package/dist/ci-fleet/slots/sandbox-memory.js +41 -0
- package/dist/ci-fleet/slots/sandbox-memory.js.map +1 -0
- package/dist/ci-fleet/slots/slot-lock.d.ts +9 -0
- package/dist/ci-fleet/slots/slot-lock.d.ts.map +1 -0
- package/dist/ci-fleet/slots/slot-lock.js +66 -0
- package/dist/ci-fleet/slots/slot-lock.js.map +1 -0
- package/dist/ci-fleet/slots/slots-config.d.ts +10 -0
- package/dist/ci-fleet/slots/slots-config.d.ts.map +1 -0
- package/dist/ci-fleet/slots/slots-config.js +9 -0
- package/dist/ci-fleet/slots/slots-config.js.map +1 -0
- package/dist/ci-fleet/slots/slots.d.ts +12 -0
- package/dist/ci-fleet/slots/slots.d.ts.map +1 -0
- package/dist/ci-fleet/slots/slots.js +124 -0
- package/dist/ci-fleet/slots/slots.js.map +1 -0
- package/dist/ci-fleet/sys.d.ts +15 -0
- package/dist/ci-fleet/sys.d.ts.map +1 -0
- package/dist/ci-fleet/sys.js +36 -0
- package/dist/ci-fleet/sys.js.map +1 -0
- package/dist/ci-fleet/units.d.ts +9 -0
- package/dist/ci-fleet/units.d.ts.map +1 -0
- package/dist/ci-fleet/units.js +93 -0
- package/dist/ci-fleet/units.js.map +1 -0
- package/dist/ci-fleet/update.d.ts +6 -0
- package/dist/ci-fleet/update.d.ts.map +1 -0
- package/dist/ci-fleet/update.js +50 -0
- package/dist/ci-fleet/update.js.map +1 -0
- package/dist/cli.js +2 -0
- package/dist/cli.js.map +1 -1
- package/dist/commands.d.ts.map +1 -1
- package/dist/commands.js +6 -0
- package/dist/commands.js.map +1 -1
- package/dist/config.d.ts +1 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +1 -0
- package/dist/config.js.map +1 -1
- package/dist/daemon-base.d.ts +3 -2
- package/dist/daemon-base.d.ts.map +1 -1
- package/dist/daemon-base.js +15 -8
- package/dist/daemon-base.js.map +1 -1
- package/dist/device/audit-detail.d.ts +3 -0
- package/dist/device/audit-detail.d.ts.map +1 -0
- package/dist/device/audit-detail.js +14 -0
- package/dist/device/audit-detail.js.map +1 -0
- package/dist/device/commands.d.ts.map +1 -1
- package/dist/device/commands.js +15 -1
- package/dist/device/commands.js.map +1 -1
- package/dist/device/connection.d.ts +1 -1
- package/dist/device/connection.d.ts.map +1 -1
- package/dist/device/connection.js +1 -1
- package/dist/device/connection.js.map +1 -1
- package/dist/device/grant.d.ts +78 -0
- package/dist/device/grant.d.ts.map +1 -1
- package/dist/device/mcp.d.ts +4 -2
- package/dist/device/mcp.d.ts.map +1 -1
- package/dist/device/mcp.js +31 -25
- package/dist/device/mcp.js.map +1 -1
- package/dist/device/policy.d.ts +2 -0
- package/dist/device/policy.d.ts.map +1 -1
- package/dist/device/policy.js +39 -3
- package/dist/device/policy.js.map +1 -1
- package/dist/device/protected-places.d.ts +8 -0
- package/dist/device/protected-places.d.ts.map +1 -0
- package/dist/device/protected-places.js +48 -0
- package/dist/device/protected-places.js.map +1 -0
- package/dist/device/remote/remote.d.ts +3 -2
- package/dist/device/remote/remote.d.ts.map +1 -1
- package/dist/device/remote/remote.js +22 -4
- package/dist/device/remote/remote.js.map +1 -1
- package/dist/device/remote/remoted-control.d.ts +49 -0
- package/dist/device/remote/remoted-control.d.ts.map +1 -0
- package/dist/device/remote/remoted-control.js +137 -0
- package/dist/device/remote/remoted-control.js.map +1 -0
- package/dist/device/remote/remoted-service.d.ts +3 -1
- package/dist/device/remote/remoted-service.d.ts.map +1 -1
- package/dist/device/remote/remoted-service.js +27 -3
- package/dist/device/remote/remoted-service.js.map +1 -1
- package/dist/device/remote/remoted-spawn.d.ts +4 -0
- package/dist/device/remote/remoted-spawn.d.ts.map +1 -0
- package/dist/device/remote/remoted-spawn.js +68 -0
- package/dist/device/remote/remoted-spawn.js.map +1 -0
- package/dist/device/remote/remoted.d.ts +23 -2
- package/dist/device/remote/remoted.d.ts.map +1 -1
- package/dist/device/remote/remoted.js +272 -97
- package/dist/device/remote/remoted.js.map +1 -1
- package/dist/device/router.d.ts +74 -0
- package/dist/device/router.d.ts.map +1 -1
- package/dist/device/router.js +4 -4
- package/dist/device/router.js.map +1 -1
- package/dist/device/sandbox-rounds/engine-disk.d.ts +27 -0
- package/dist/device/sandbox-rounds/engine-disk.d.ts.map +1 -1
- package/dist/device/sandbox-rounds/engine-disk.js +93 -8
- package/dist/device/sandbox-rounds/engine-disk.js.map +1 -1
- package/dist/device/sandbox-rounds/ic-swaps.d.ts +4 -1
- package/dist/device/sandbox-rounds/ic-swaps.d.ts.map +1 -1
- package/dist/device/sandbox-rounds/ic-swaps.js +24 -1
- package/dist/device/sandbox-rounds/ic-swaps.js.map +1 -1
- package/dist/device/sandbox-rounds/keeper.d.ts +5 -0
- package/dist/device/sandbox-rounds/keeper.d.ts.map +1 -1
- package/dist/device/sandbox-rounds/keeper.js +45 -6
- package/dist/device/sandbox-rounds/keeper.js.map +1 -1
- package/dist/device/sandbox-rounds/memory-relief/memory-sleep.d.ts +79 -0
- package/dist/device/sandbox-rounds/memory-relief/memory-sleep.d.ts.map +1 -0
- package/dist/device/sandbox-rounds/memory-relief/memory-sleep.js +211 -0
- package/dist/device/sandbox-rounds/memory-relief/memory-sleep.js.map +1 -0
- package/dist/device/sandbox-rounds/runner-keeper.d.ts +6 -2
- package/dist/device/sandbox-rounds/runner-keeper.d.ts.map +1 -1
- package/dist/device/sandbox-rounds/runner-keeper.js +15 -8
- package/dist/device/sandbox-rounds/runner-keeper.js.map +1 -1
- package/dist/device/sandbox-rounds/sleep.d.ts +9 -0
- package/dist/device/sandbox-rounds/sleep.d.ts.map +1 -1
- package/dist/device/sandbox-rounds/sleep.js +1 -0
- package/dist/device/sandbox-rounds/sleep.js.map +1 -1
- package/dist/device/tools/admin/admin-run.d.ts +36 -0
- package/dist/device/tools/admin/admin-run.d.ts.map +1 -0
- package/dist/device/tools/admin/admin-run.js +89 -0
- package/dist/device/tools/admin/admin-run.js.map +1 -0
- package/dist/device/tools/agent.d.ts +3 -2
- package/dist/device/tools/agent.d.ts.map +1 -1
- package/dist/device/tools/agent.js +65 -11
- package/dist/device/tools/agent.js.map +1 -1
- package/dist/device/tools/apps.d.ts.map +1 -1
- package/dist/device/tools/apps.js +5 -2
- package/dist/device/tools/apps.js.map +1 -1
- package/dist/device/tools/ci-runners/ci-runners.d.ts +5 -0
- package/dist/device/tools/ci-runners/ci-runners.d.ts.map +1 -0
- package/dist/device/tools/ci-runners/ci-runners.js +74 -0
- package/dist/device/tools/ci-runners/ci-runners.js.map +1 -0
- package/dist/device/tools/copy/file-copy.d.ts.map +1 -1
- package/dist/device/tools/copy/file-copy.js +7 -1
- package/dist/device/tools/copy/file-copy.js.map +1 -1
- package/dist/device/tools/describe.d.ts +3 -1
- package/dist/device/tools/describe.d.ts.map +1 -1
- package/dist/device/tools/describe.js +75 -11
- package/dist/device/tools/describe.js.map +1 -1
- package/dist/device/tools/elements.d.ts.map +1 -1
- package/dist/device/tools/elements.js +4 -1
- package/dist/device/tools/elements.js.map +1 -1
- package/dist/device/tools/files.d.ts.map +1 -1
- package/dist/device/tools/files.js +4 -2
- package/dist/device/tools/files.js.map +1 -1
- package/dist/device/tools/ic-binary.d.ts +4 -0
- package/dist/device/tools/ic-binary.d.ts.map +1 -1
- package/dist/device/tools/ic-binary.js +9 -4
- package/dist/device/tools/ic-binary.js.map +1 -1
- package/dist/device/tools/ic-serve/ic-read.d.ts +5 -0
- package/dist/device/tools/ic-serve/ic-read.d.ts.map +1 -0
- package/dist/device/tools/ic-serve/ic-read.js +17 -0
- package/dist/device/tools/ic-serve/ic-read.js.map +1 -0
- package/dist/device/tools/ic-serve/ic-serve.d.ts +31 -0
- package/dist/device/tools/ic-serve/ic-serve.d.ts.map +1 -0
- package/dist/device/tools/ic-serve/ic-serve.js +236 -0
- package/dist/device/tools/ic-serve/ic-serve.js.map +1 -0
- package/dist/device/tools/listing/ic-readings.d.ts +17 -0
- package/dist/device/tools/listing/ic-readings.d.ts.map +1 -0
- package/dist/device/tools/listing/ic-readings.js +49 -0
- package/dist/device/tools/listing/ic-readings.js.map +1 -0
- package/dist/device/tools/listing/sandbox-fleet.d.ts +7 -0
- package/dist/device/tools/listing/sandbox-fleet.d.ts.map +1 -0
- package/dist/device/tools/listing/sandbox-fleet.js +76 -0
- package/dist/device/tools/listing/sandbox-fleet.js.map +1 -0
- package/dist/device/tools/move/sandbox-move.d.ts.map +1 -1
- package/dist/device/tools/move/sandbox-move.js +1 -1
- package/dist/device/tools/move/sandbox-move.js.map +1 -1
- package/dist/device/tools/sandboxes.d.ts +3 -5
- package/dist/device/tools/sandboxes.d.ts.map +1 -1
- package/dist/device/tools/sandboxes.js +13 -56
- package/dist/device/tools/sandboxes.js.map +1 -1
- package/dist/device/tools/shell.d.ts +7 -1
- package/dist/device/tools/shell.d.ts.map +1 -1
- package/dist/device/tools/shell.js +28 -1
- package/dist/device/tools/shell.js.map +1 -1
- package/dist/device/tools/stacks/deploy-health.d.ts +19 -0
- package/dist/device/tools/stacks/deploy-health.d.ts.map +1 -0
- package/dist/device/tools/stacks/deploy-health.js +108 -0
- package/dist/device/tools/stacks/deploy-health.js.map +1 -0
- package/dist/device/tools/stacks/deploy.d.ts +19 -0
- package/dist/device/tools/stacks/deploy.d.ts.map +1 -0
- package/dist/device/tools/stacks/deploy.js +143 -0
- package/dist/device/tools/stacks/deploy.js.map +1 -0
- package/dist/device/tools/stacks/host-stats.d.ts +6 -0
- package/dist/device/tools/stacks/host-stats.d.ts.map +1 -0
- package/dist/device/tools/stacks/host-stats.js +56 -0
- package/dist/device/tools/stacks/host-stats.js.map +1 -0
- package/dist/device/tools/stacks/stack-folder.d.ts +13 -5
- package/dist/device/tools/stacks/stack-folder.d.ts.map +1 -1
- package/dist/device/tools/stacks/stack-folder.js +21 -2
- package/dist/device/tools/stacks/stack-folder.js.map +1 -1
- package/dist/device/tools/stacks/stack-state.d.ts +15 -0
- package/dist/device/tools/stacks/stack-state.d.ts.map +1 -0
- package/dist/device/tools/stacks/stack-state.js +128 -0
- package/dist/device/tools/stacks/stack-state.js.map +1 -0
- package/dist/device/tools/stacks/stack-tools.d.ts +4 -0
- package/dist/device/tools/stacks/stack-tools.d.ts.map +1 -0
- package/dist/device/tools/stacks/stack-tools.js +55 -0
- package/dist/device/tools/stacks/stack-tools.js.map +1 -0
- package/dist/device/tools/stacks/stacks.d.ts +20 -8
- package/dist/device/tools/stacks/stacks.d.ts.map +1 -1
- package/dist/device/tools/stacks/stacks.js +40 -97
- package/dist/device/tools/stacks/stacks.js.map +1 -1
- package/dist/engine-env.d.ts +1 -0
- package/dist/engine-env.d.ts.map +1 -1
- package/dist/engine-env.js +8 -5
- package/dist/engine-env.js.map +1 -1
- package/dist/environments/commands.d.ts +1 -0
- package/dist/environments/commands.d.ts.map +1 -1
- package/dist/environments/commands.js +14 -3
- package/dist/environments/commands.js.map +1 -1
- package/dist/environments/host-memory-reading.d.ts +3 -0
- package/dist/environments/host-memory-reading.d.ts.map +1 -0
- package/dist/environments/host-memory-reading.js +5 -0
- package/dist/environments/host-memory-reading.js.map +1 -0
- package/dist/environments/machine.d.ts +1 -0
- package/dist/environments/machine.d.ts.map +1 -1
- package/dist/environments/machine.js.map +1 -1
- package/dist/environments/windows-crash-events.d.ts +20 -4
- package/dist/environments/windows-crash-events.d.ts.map +1 -1
- package/dist/environments/windows-crash-events.js +70 -20
- package/dist/environments/windows-crash-events.js.map +1 -1
- package/dist/environments/windows-memory.d.ts +12 -3
- package/dist/environments/windows-memory.d.ts.map +1 -1
- package/dist/environments/windows-memory.js +47 -3
- package/dist/environments/windows-memory.js.map +1 -1
- package/dist/environments/wsl-cache-drop.d.ts +9 -7
- package/dist/environments/wsl-cache-drop.d.ts.map +1 -1
- package/dist/environments/wsl-cache-drop.js +56 -14
- package/dist/environments/wsl-cache-drop.js.map +1 -1
- package/dist/environments/wsl-guest.d.ts +29 -0
- package/dist/environments/wsl-guest.d.ts.map +1 -0
- package/dist/environments/wsl-guest.js +126 -0
- package/dist/environments/wsl-guest.js.map +1 -0
- package/dist/environments/wsl-memory-command.d.ts +3 -0
- package/dist/environments/wsl-memory-command.d.ts.map +1 -0
- package/dist/environments/wsl-memory-command.js +43 -0
- package/dist/environments/wsl-memory-command.js.map +1 -0
- package/dist/environments/wsl-memory-fit.d.ts +28 -0
- package/dist/environments/wsl-memory-fit.d.ts.map +1 -0
- package/dist/environments/wsl-memory-fit.js +113 -0
- package/dist/environments/wsl-memory-fit.js.map +1 -0
- package/dist/environments/wsl-memory-watch.d.ts +25 -0
- package/dist/environments/wsl-memory-watch.d.ts.map +1 -0
- package/dist/environments/wsl-memory-watch.js +146 -0
- package/dist/environments/wsl-memory-watch.js.map +1 -0
- package/dist/environments/wsl-page-reporting.d.ts +45 -0
- package/dist/environments/wsl-page-reporting.d.ts.map +1 -0
- package/dist/environments/wsl-page-reporting.js +110 -0
- package/dist/environments/wsl-page-reporting.js.map +1 -0
- package/dist/environments/wslconfig-memory.d.ts +38 -0
- package/dist/environments/wslconfig-memory.d.ts.map +1 -0
- package/dist/environments/wslconfig-memory.js +137 -0
- package/dist/environments/wslconfig-memory.js.map +1 -0
- package/dist/install.d.ts.map +1 -1
- package/dist/install.js +2 -0
- package/dist/install.js.map +1 -1
- package/dist/power/apply.d.ts +40 -0
- package/dist/power/apply.d.ts.map +1 -0
- package/dist/power/apply.js +104 -0
- package/dist/power/apply.js.map +1 -0
- package/dist/power/host-power.d.ts +40 -0
- package/dist/power/host-power.d.ts.map +1 -0
- package/dist/power/host-power.js +120 -0
- package/dist/power/host-power.js.map +1 -0
- package/dist/power/linux.d.ts +30 -0
- package/dist/power/linux.d.ts.map +1 -0
- package/dist/power/linux.js +114 -0
- package/dist/power/linux.js.map +1 -0
- package/dist/power/macos.d.ts +11 -0
- package/dist/power/macos.d.ts.map +1 -0
- package/dist/power/macos.js +43 -0
- package/dist/power/macos.js.map +1 -0
- package/dist/power/power-command.d.ts +14 -0
- package/dist/power/power-command.d.ts.map +1 -0
- package/dist/power/power-command.js +224 -0
- package/dist/power/power-command.js.map +1 -0
- package/dist/power/update-pause.d.ts +25 -0
- package/dist/power/update-pause.d.ts.map +1 -0
- package/dist/power/update-pause.js +54 -0
- package/dist/power/update-pause.js.map +1 -0
- package/dist/power/windows-findings.d.ts +9 -0
- package/dist/power/windows-findings.d.ts.map +1 -0
- package/dist/power/windows-findings.js +153 -0
- package/dist/power/windows-findings.js.map +1 -0
- package/dist/power/windows-reading.d.ts +92 -0
- package/dist/power/windows-reading.d.ts.map +1 -0
- package/dist/power/windows-reading.js +145 -0
- package/dist/power/windows-reading.js.map +1 -0
- package/dist/power/words.d.ts +4 -0
- package/dist/power/words.d.ts.map +1 -0
- package/dist/power/words.js +11 -0
- package/dist/power/words.js.map +1 -0
- package/dist/power/writes.d.ts +59 -0
- package/dist/power/writes.d.ts.map +1 -0
- package/dist/power/writes.js +87 -0
- package/dist/power/writes.js.map +1 -0
- package/dist/resident/io-pool.d.ts +5 -0
- package/dist/resident/io-pool.d.ts.map +1 -0
- package/dist/resident/io-pool.js +18 -0
- package/dist/resident/io-pool.js.map +1 -0
- package/dist/resident/memory-log.d.ts +49 -0
- package/dist/resident/memory-log.d.ts.map +1 -0
- package/dist/resident/memory-log.js +149 -0
- package/dist/resident/memory-log.js.map +1 -0
- package/dist/resident/other-accounts.d.ts +13 -0
- package/dist/resident/other-accounts.d.ts.map +1 -0
- package/dist/resident/other-accounts.js +44 -0
- package/dist/resident/other-accounts.js.map +1 -0
- package/dist/resident/resident.d.ts.map +1 -1
- package/dist/resident/resident.js +23 -9
- package/dist/resident/resident.js.map +1 -1
- package/dist/resident/supervision.d.ts.map +1 -1
- package/dist/resident/supervision.js +1 -1
- package/dist/resident/supervision.js.map +1 -1
- package/dist/status.d.ts +2 -0
- package/dist/status.d.ts.map +1 -1
- package/dist/status.js +7 -3
- package/dist/status.js.map +1 -1
- package/dist/sync/bridge/git-bridge.d.ts +18 -1
- package/dist/sync/bridge/git-bridge.d.ts.map +1 -1
- package/dist/sync/bridge/git-bridge.js +132 -40
- package/dist/sync/bridge/git-bridge.js.map +1 -1
- package/dist/sync/changes/change-follow.d.ts +16 -0
- package/dist/sync/changes/change-follow.d.ts.map +1 -0
- package/dist/sync/changes/change-follow.js +65 -0
- package/dist/sync/changes/change-follow.js.map +1 -0
- package/dist/sync/changes/sync-changes.d.ts +39 -0
- package/dist/sync/changes/sync-changes.d.ts.map +1 -0
- package/dist/sync/changes/sync-changes.js +146 -0
- package/dist/sync/changes/sync-changes.js.map +1 -0
- package/dist/sync/config.d.ts +2 -0
- package/dist/sync/config.d.ts.map +1 -1
- package/dist/sync/config.js +11 -0
- package/dist/sync/config.js.map +1 -1
- package/dist/sync/holds.d.ts +2 -2
- package/dist/sync/holds.d.ts.map +1 -1
- package/dist/sync/holds.js +4 -3
- package/dist/sync/holds.js.map +1 -1
- package/dist/sync/mirror.d.ts +8 -1
- package/dist/sync/mirror.d.ts.map +1 -1
- package/dist/sync/mirror.js +53 -29
- package/dist/sync/mirror.js.map +1 -1
- package/dist/sync/mutagen.d.ts +7 -0
- package/dist/sync/mutagen.d.ts.map +1 -1
- package/dist/sync/mutagen.js +12 -1
- package/dist/sync/mutagen.js.map +1 -1
- package/dist/sync/report.d.ts +1 -1
- package/dist/sync/report.d.ts.map +1 -1
- package/dist/sync/report.js +3 -3
- package/dist/sync/report.js.map +1 -1
- package/dist/sync/ssh.d.ts +2 -1
- package/dist/sync/ssh.d.ts.map +1 -1
- package/dist/sync/ssh.js +2 -32
- package/dist/sync/ssh.js.map +1 -1
- package/dist/upkeep/manifest.d.ts.map +1 -1
- package/dist/upkeep/manifest.js +2 -1
- package/dist/upkeep/manifest.js.map +1 -1
- package/dist/upkeep/other-account.d.ts +3 -0
- package/dist/upkeep/other-account.d.ts.map +1 -0
- package/dist/upkeep/other-account.js +13 -0
- package/dist/upkeep/other-account.js.map +1 -0
- package/package.json +9 -9
package/dist/daemon-base.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"daemon-base.js","sourceRoot":"","sources":["../src/daemon-base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,EAAE,UAAU,EAAE,MAAM,2CAA2C,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAC/E,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"daemon-base.js","sourceRoot":"","sources":["../src/daemon-base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,EAAE,UAAU,EAAE,MAAM,2CAA2C,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAC/E,OAAO,EACH,gBAAgB,EAChB,qBAAqB,EACrB,eAAe,EACf,UAAU,EAC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I,MAAM,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit-detail.d.ts","sourceRoot":"","sources":["../../src/device/audit-detail.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAMhF,eAAO,MAAM,WAAW,SAAU,MAAM,QAAQ,aAAa,CAAC,MAAM,CAAC,KAAG,MAevE,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export const auditDetail = (name, args) => {
|
|
2
|
+
const redact = ((name === "device" || name === "android_act") && args["action"] === "type") ||
|
|
3
|
+
(name === "clipboard" && args["action"] === "write") ||
|
|
4
|
+
name === "browser_fill";
|
|
5
|
+
const typed = redact
|
|
6
|
+
? { ...args, text: `<${String(args["text"] ?? "").length} characters>` }
|
|
7
|
+
: name === "ui_act" && args["value"] !== undefined
|
|
8
|
+
? { ...args, value: `<${String(args["value"]).length} characters>` }
|
|
9
|
+
: args;
|
|
10
|
+
const secret = (key) => key === "password" || key === "token" || (name === "deploy_stack" && (key === "env" || key === "registries"));
|
|
11
|
+
const safe = Object.fromEntries(Object.entries(typed).map(([key, value]) => [key, secret(key) ? `<${Array.isArray(value) ? `${value.length} entries` : `${String(value).length} characters`}>` : value]));
|
|
12
|
+
return JSON.stringify(safe).slice(0, 500);
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=audit-detail.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit-detail.js","sourceRoot":"","sources":["../../src/device/audit-detail.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,IAAY,EAAE,IA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M,aAAa,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAC3K,CAAC;IACF,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;AAC9C,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../src/device/commands.ts"],"names":[],"mappings":"AAGA,OAAO,EAAW,KAAK,GAAG,EAAiB,KAAK,EAAE,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../src/device/commands.ts"],"names":[],"mappings":"AAGA,OAAO,EAAW,KAAK,GAAG,EAAiB,KAAK,EAAE,EAAE,MAAM,uBAAuB,CAAC;AAElF,OAAO,EAAoB,KAAK,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AAExG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAA2B,KAAK,SAAS,EAAgB,MAAM,cAAc,CAAC;AAerF,eAAO,MAAM,MAAM,eACH,MAAM,aACP,MAAM,sBACE;IAAE,QAAQ,CAAC,QAAQ,CAAC,EAAE,qBAAqB,CAAC;IAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,GAAG,CAAA;CAAE,KACrF,OAAO,CAAC;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAuBvC,CAAC;AA2FF,eAAO,MAAM,QAAQ,WAAY,MAAM,kBAAkB,MAAM,GAAG,SAAS,iBAAiB,MAAM,GAAG,SAAS,KAAG,MACc,CAAC;AAoChI,eAAO,MAAM,SAAS,SAAU,SAAS,MAAM,EAAE,SAAS,MAAM,KAAG,MASlE,CAAC;AAmBF,eAAO,MAAM,eAAe,QACnB,SAAS,YACJ,MAAM,6BACyB;IAAE,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAA;CAAE,KACxG,OAAO,CAAC,MAAM,CA2BhB,CAAC;AAeF,eAAO,MAAM,oBAAoB,OAAc,EAAE,KAAG,OAAO,CAAC,IAAI,CA2B/D,CAAC;AAEF,eAAO,MAAM,cAAc;;;;CAAgE,CAAC"}
|
package/dist/device/commands.js
CHANGED
|
@@ -2,6 +2,7 @@ import { rm } from "node:fs/promises";
|
|
|
2
2
|
import { pollUntil } from "@intentic/base/async";
|
|
3
3
|
import { plural } from "@intentic/base/format";
|
|
4
4
|
import { explain } from "@intentic/local-agent";
|
|
5
|
+
import { deviceScopesOn } from "@intentic/sandbox-contract/schemas/capabilities";
|
|
5
6
|
import { environmentKeyOf } from "@intentic/sandbox-contract/schemas/hosts";
|
|
6
7
|
import { PeerEnrollmentAnswerSchema } from "@intentic/sandbox-contract/schemas/peer-enrollment";
|
|
7
8
|
import { buildCommand, machineUi, sandboxUrlOf } from "../cli-ui.js";
|
|
@@ -10,6 +11,7 @@ import { wslEnvironment } from "../environments/wsl.js";
|
|
|
10
11
|
import { completeSetup, prepareSetup } from "../install.js";
|
|
11
12
|
import { machineId } from "../machine-id.js";
|
|
12
13
|
import { ensureResident, readResidentPid } from "../resident/resident.js";
|
|
14
|
+
import { stopRemotedAt } from "./remote/remoted-control.js";
|
|
13
15
|
import { auditPath, configPath, readLinks, readLinkStates, removeLinks, unreachableIn, upsertLink } from "./config.js";
|
|
14
16
|
const NOT_CONNECTED = "This device was not connected.";
|
|
15
17
|
export const enroll = async (sandboxUrl, pairToken, { identity, say } = {}) => {
|
|
@@ -63,7 +65,7 @@ const runSetup = async (ui, out, flags) => {
|
|
|
63
65
|
sandboxUrl: flags.url,
|
|
64
66
|
id,
|
|
65
67
|
token,
|
|
66
|
-
scopes:
|
|
68
|
+
scopes: deviceScopesOn(),
|
|
67
69
|
};
|
|
68
70
|
const links = await upsertLink(link);
|
|
69
71
|
ui.step("device-starting", "starting the agent on this device…");
|
|
@@ -116,6 +118,15 @@ export const linkNamed = (urls, value) => {
|
|
|
116
118
|
}
|
|
117
119
|
return holding[0] ?? value;
|
|
118
120
|
};
|
|
121
|
+
const stopLeftRemoted = async (say) => {
|
|
122
|
+
const stopped = await stopRemotedAt();
|
|
123
|
+
if (stopped.kind === "stopped") {
|
|
124
|
+
say.note(`Stopped intentic-remoted (pid ${stopped.pid}), which served people's remote terminals and screens.`);
|
|
125
|
+
}
|
|
126
|
+
else if (stopped.kind === "still-running") {
|
|
127
|
+
say.warn(`intentic-remoted (pid ${stopped.pid}) may still be running; it leaves by itself within ten minutes, or end it: ${process.platform === "win32" ? `taskkill /PID ${stopped.pid} /F` : `kill ${stopped.pid}`}`);
|
|
128
|
+
}
|
|
129
|
+
};
|
|
119
130
|
export const deviceUninstall = async (say, sandbox, { forGood = false, recordStays = true } = {}) => {
|
|
120
131
|
const only = sandbox === undefined || sandbox === "" ? undefined : linkNamed((await readLinks()).map((link) => link.sandboxUrl), sandbox);
|
|
121
132
|
const dropped = await removeLinks(only);
|
|
@@ -127,6 +138,9 @@ export const deviceUninstall = async (say, sandbox, { forGood = false, recordSta
|
|
|
127
138
|
await rm(configPath, { force: true });
|
|
128
139
|
}
|
|
129
140
|
await ensureResident(say.note, { forGood });
|
|
141
|
+
if (left.length === 0) {
|
|
142
|
+
await stopLeftRemoted(say);
|
|
143
|
+
}
|
|
130
144
|
const urls = dropped.map((link) => link.sandboxUrl).join(", ");
|
|
131
145
|
if (left.length > 0) {
|
|
132
146
|
say.note(`Still connected to ${plural(left.length, "sandbox", "sandboxes")}.`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands.js","sourceRoot":"","sources":["../../src/device/commands.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC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G,CAAC,YAAY,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,kBAAkB,CAAC,EAAE,CAAC,CAAC;IAC9D,KAAK,MAAM,EAAE,GAAG,EAAE,IAAI,IAAI,EAAE,CAAC;QAEzB,MAAM,WAAW,CAAC,GAAG,CAAC,CAAC;IAC3B,CAAC;IACD,MAAM,IAAI,GAAG,MAAM,SAAS,EAAE,CAAC;IAE/B,MAAM,cAAc,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC;IAC9B,EAAE,CAAC,IAAI,CACH,IAAI,CAAC,MAAM,KAAK,CAAC;QACb,CAAC,CAAC,8GAA8G;QAChH,CAAC,CAAC,sBAAsB,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,SAAS,EAAE,WAAW,CAAC,GAAG,CAC7E,CAAC;IACF,EAAE,CAAC,IAAI,CAAC,WAAW,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,kBAAkB,CAAC,KAAK,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7G,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -4,7 +4,7 @@ import { type DaemonBase } from "../daemon-base.js";
|
|
|
4
4
|
import { type HostLink } from "./config.js";
|
|
5
5
|
import { type Indicator } from "./indicator.js";
|
|
6
6
|
export interface Dial {
|
|
7
|
-
readonly resolveBase: (sandboxUrl: string) => Promise<DaemonBase>;
|
|
7
|
+
readonly resolveBase: (sandboxUrl: string, token: string) => Promise<DaemonBase>;
|
|
8
8
|
readonly socket: (url: string) => WebSocket;
|
|
9
9
|
readonly gone?: (sandboxUrl: string) => Promise<boolean>;
|
|
10
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connection.d.ts","sourceRoot":"","sources":["../../src/device/connection.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAGjD,OAAO,EAAkD,KAAK,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAErH,OAAO,EAAE,KAAK,UAAU,EAAqB,MAAM,mBAAmB,CAAC;AAEvE,OAAO,EAAE,KAAK,QAAQ,EAAmD,MAAM,aAAa,CAAC;AAC7F,OAAO,EAAE,KAAK,SAAS,EAAoB,MAAM,gBAAgB,CAAC;AASlE,MAAM,WAAW,IAAI;
|
|
1
|
+
{"version":3,"file":"connection.d.ts","sourceRoot":"","sources":["../../src/device/connection.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAGjD,OAAO,EAAkD,KAAK,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAErH,OAAO,EAAE,KAAK,UAAU,EAAqB,MAAM,mBAAmB,CAAC;AAEvE,OAAO,EAAE,KAAK,QAAQ,EAAmD,MAAM,aAAa,CAAC;AAC7F,OAAO,EAAE,KAAK,SAAS,EAAoB,MAAM,gBAAgB,CAAC;AASlE,MAAM,WAAW,IAAI;IAGjB,QAAQ,CAAC,WAAW,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,UAAU,CAAC,CAAC;IACjF,QAAQ,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,SAAS,CAAC;IAE5C,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;CAC5D;AAUD,eAAO,MAAM,yBAAyB,IAAI,CAAC;AAY3C,eAAO,MAAM,qBAAqB,QAAS,CAAC;AAI5C,eAAO,MAAM,SAAS,eAAsB,MAAM,cAAa,OAAO,KAAK,KAAW,OAAO,CAAC,OAAO,CAOpG,CAAC;AASF,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG;IAAE,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAIpE,MAAM,WAAW,aAAa;IAC1B,QAAQ,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAC/E;AAoBD,eAAO,MAAM,YAAY,cAAe,MAAM,OAAO,MAAM,aAAa,OAAO,KAAG,MAAM,GAAG,QAAQ,GAAG,MAKrG,CAAC;AAIF,eAAO,MAAM,WAAW,YAAa,MAAM,KAAG,OAA8C,CAAC;AAM7F,eAAO,MAAM,mBAAmB,EAAE,WAAW,CAAC,MAAM,CAAgB,CAAC;AAGrE,QAAA,MAAM,UAAU,eAAsB,MAAM,KAAG,OAAO,CAAC,IAAI,CAAyC,CAAC;AA8DrG,eAAO,MAAM,OAAO,WACR,QAAQ,WACP,MAAM,OACV,GAAG,SACF,IAAI,0CAEC,SAAS,cACT,aAAa,QACnB,MAAM,MAAM,KAClB,QAmFF,CAAC"}
|
|
@@ -111,7 +111,7 @@ export const connect = (config, version, log, dial = realDial, forget = forgetLi
|
|
|
111
111
|
if (!(await gone.beforeDial(signal))) {
|
|
112
112
|
return undefined;
|
|
113
113
|
}
|
|
114
|
-
const { base, local } = await dial.resolveBase(config.sandboxUrl);
|
|
114
|
+
const { base, local } = await dial.resolveBase(config.sandboxUrl, config.token);
|
|
115
115
|
if (signal.aborted) {
|
|
116
116
|
return undefined;
|
|
117
117
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connection.js","sourceRoot":"","sources":["../../src/device/connection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,OAAO,EAAE,iBAAiB,EAAE,cAAc,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EAAE,CAAC,EAAE,EAAE,EAAE;YACX,IAAI,GAAG,EAAE,CAAC;YACV,IAAI,CAAC,OAAO,EAAE,CAAC;YAEf,EAAE,CAAC,gBAAgB,CAAC,OAAO,EAAE,GAAG,EAAE;gBAC9B,IAAI,IAAI,KAAK,EAAE,EAAE,CAAC;oBACd,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;gBACzC,CAAC;YACL,CAAC,CAAC,CAAC;YACH,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QACxB,CAAC;QACD,OAAO,EAAE,aAAa,CAAC,iBAAiB,CAAC;QACzC,YAAY,EAAE,qBAAqB;QAEnC,SAAS,EAAE,iBAAiB,CAAC,iBAAiB,CAAC;QAC/C,GAAG,EAAE,OAAO;QAEZ,OAAO,EAAE,GAAG,EAAE;YACV,OAAO,CACH,4IAA4I,CAC/I,CAAC;YACF,KAAK,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,KAAK,CAAC,CAAC,KAAc,EAAE,EAAE,CAAC,OAAO,CAAC,oCAAoC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;QAC5H,CAAC;KACJ,CAAC,CAAC;IACH,OAAO;QACH,GAAG,IAAI;QAGP,QAAQ,EAAE,GAAG,EAAE;YACX,IAAI,CAAC,OAAO,EAAE,CAAC;YACf,IAAI,CAAC,QAAQ,EAAE,CAAC;QACpB,CAAC;KACJ,CAAC;AACN,CAAC,CAAC"}
|
package/dist/device/grant.d.ts
CHANGED
|
@@ -41,6 +41,10 @@ export declare const GrantInputSchema: z.ZodObject<{
|
|
|
41
41
|
off: "off";
|
|
42
42
|
on: "on";
|
|
43
43
|
}>>;
|
|
44
|
+
admin: z.ZodDefault<z.ZodEnum<{
|
|
45
|
+
off: "off";
|
|
46
|
+
on: "on";
|
|
47
|
+
}>>;
|
|
44
48
|
roots: z.ZodOptional<z.ZodString>;
|
|
45
49
|
platform: z.ZodOptional<z.ZodString>;
|
|
46
50
|
}, z.core.$loose>;
|
|
@@ -97,6 +101,58 @@ export declare const tolerantDeviceContract: {
|
|
|
97
101
|
version: z.ZodString;
|
|
98
102
|
channel: z.ZodString;
|
|
99
103
|
}, z.core.$strip>>;
|
|
104
|
+
power: z.ZodOptional<z.ZodObject<{
|
|
105
|
+
at: z.ZodNumber;
|
|
106
|
+
utcOffsetMinutes: z.ZodNumber;
|
|
107
|
+
battery: z.ZodOptional<z.ZodBoolean>;
|
|
108
|
+
findings: z.ZodArray<z.ZodObject<{
|
|
109
|
+
id: z.ZodString;
|
|
110
|
+
power: z.ZodOptional<z.ZodEnum<{
|
|
111
|
+
ac: "ac";
|
|
112
|
+
dc: "dc";
|
|
113
|
+
}>>;
|
|
114
|
+
afterSeconds: z.ZodOptional<z.ZodNumber>;
|
|
115
|
+
action: z.ZodOptional<z.ZodString>;
|
|
116
|
+
window: z.ZodOptional<z.ZodObject<{
|
|
117
|
+
fromHour: z.ZodNumber;
|
|
118
|
+
toHour: z.ZodNumber;
|
|
119
|
+
}, z.core.$strip>>;
|
|
120
|
+
plans: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
121
|
+
fixable: z.ZodBoolean;
|
|
122
|
+
command: z.ZodOptional<z.ZodString>;
|
|
123
|
+
offers: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
124
|
+
pausedUntil: z.ZodOptional<z.ZodNumber>;
|
|
125
|
+
restartPending: z.ZodOptional<z.ZodBoolean>;
|
|
126
|
+
comesBack: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
|
|
127
|
+
boot: "boot";
|
|
128
|
+
"sign-in": "sign-in";
|
|
129
|
+
}>>>;
|
|
130
|
+
text: z.ZodString;
|
|
131
|
+
}, z.core.$strip>>;
|
|
132
|
+
}, z.core.$strip>>;
|
|
133
|
+
wslMemory: z.ZodOptional<z.ZodObject<{
|
|
134
|
+
configPath: z.ZodString;
|
|
135
|
+
configuredGb: z.ZodOptional<z.ZodNumber>;
|
|
136
|
+
fit: z.ZodOptional<z.ZodObject<{
|
|
137
|
+
at: z.ZodNumber;
|
|
138
|
+
windowMs: z.ZodNumber;
|
|
139
|
+
readings: z.ZodNumber;
|
|
140
|
+
totalBytes: z.ZodNumber;
|
|
141
|
+
lowLineBytes: z.ZodNumber;
|
|
142
|
+
underLowShare: z.ZodNumber;
|
|
143
|
+
availableMedianBytes: z.ZodNumber;
|
|
144
|
+
vmMedianBytes: z.ZodNumber;
|
|
145
|
+
outsideBytes: z.ZodNumber;
|
|
146
|
+
configuredGb: z.ZodOptional<z.ZodNumber>;
|
|
147
|
+
proposedGb: z.ZodNumber;
|
|
148
|
+
atFloor: z.ZodBoolean;
|
|
149
|
+
capsOver: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
150
|
+
name: z.ZodString;
|
|
151
|
+
memoryBytes: z.ZodNumber;
|
|
152
|
+
}, z.core.$strip>>>;
|
|
153
|
+
text: z.ZodString;
|
|
154
|
+
}, z.core.$strip>>;
|
|
155
|
+
}, z.core.$strip>>;
|
|
100
156
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
101
157
|
report: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
|
|
102
158
|
machineId: z.ZodOptional<z.ZodString>;
|
|
@@ -202,6 +258,18 @@ export declare const tolerantDeviceContract: {
|
|
|
202
258
|
memory: z.ZodOptional<z.ZodObject<{
|
|
203
259
|
availableBytes: z.ZodNumber;
|
|
204
260
|
totalBytes: z.ZodNumber;
|
|
261
|
+
vm: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
262
|
+
workingSetBytes: z.ZodNumber;
|
|
263
|
+
privateBytes: z.ZodOptional<z.ZodNumber>;
|
|
264
|
+
at: z.ZodNumber;
|
|
265
|
+
}, z.core.$strip>>>;
|
|
266
|
+
guestFree: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
267
|
+
reportableBytes: z.ZodNumber;
|
|
268
|
+
strandedBytes: z.ZodNumber;
|
|
269
|
+
reportingOrder: z.ZodNumber;
|
|
270
|
+
loweredFrom: z.ZodOptional<z.ZodNumber>;
|
|
271
|
+
at: z.ZodNumber;
|
|
272
|
+
}, z.core.$strip>>>;
|
|
205
273
|
}, z.core.$strip>>;
|
|
206
274
|
crashes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
207
275
|
id: z.ZodString;
|
|
@@ -362,10 +430,16 @@ export declare const tolerantDeviceContract: {
|
|
|
362
430
|
}, Record<never, never>, Record<never, never>>;
|
|
363
431
|
runAgentFlow: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
364
432
|
op: z.ZodEnum<{
|
|
433
|
+
"before-sign-in": "before-sign-in";
|
|
365
434
|
"forget-unreachable": "forget-unreachable";
|
|
435
|
+
"power-stay-on": "power-stay-on";
|
|
366
436
|
restart: "restart";
|
|
437
|
+
"update-pause": "update-pause";
|
|
367
438
|
upgrade: "upgrade";
|
|
439
|
+
"wsl-memory": "wsl-memory";
|
|
368
440
|
}>;
|
|
441
|
+
memoryGb: z.ZodOptional<z.ZodNumber>;
|
|
442
|
+
until: z.ZodOptional<z.ZodNumber>;
|
|
369
443
|
}, z.core.$strict>, import("@orpc/contract").Schema<AsyncIteratorObject<{
|
|
370
444
|
kind: "line";
|
|
371
445
|
text: string;
|
|
@@ -1120,6 +1194,10 @@ export declare const tolerantDeviceContract: {
|
|
|
1120
1194
|
off: "off";
|
|
1121
1195
|
on: "on";
|
|
1122
1196
|
}>>;
|
|
1197
|
+
admin: z.ZodDefault<z.ZodEnum<{
|
|
1198
|
+
off: "off";
|
|
1199
|
+
on: "on";
|
|
1200
|
+
}>>;
|
|
1123
1201
|
roots: z.ZodOptional<z.ZodString>;
|
|
1124
1202
|
platform: z.ZodOptional<z.ZodString>;
|
|
1125
1203
|
}, z.core.$loose>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grant.d.ts","sourceRoot":"","sources":["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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGlC,CAAC"}
|
package/dist/device/mcp.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import type { DeviceScopes } from "@intentic/sandbox-contract/schemas/capabilities";
|
|
2
|
+
import { type McpTool } from "@intentic/sandbox-contract/peer-mcp-server";
|
|
3
|
+
export declare const machineTools: () => readonly McpTool<DeviceScopes>[];
|
|
3
4
|
export declare const handleMcpMessage: (message: unknown, ctx: {
|
|
4
5
|
shell: "off" | "on";
|
|
5
6
|
write: "off" | "on";
|
|
@@ -11,6 +12,7 @@ export declare const handleMcpMessage: (message: unknown, ctx: {
|
|
|
11
12
|
remoteView: "off" | "on";
|
|
12
13
|
remoteControl: "off" | "on";
|
|
13
14
|
remoteTerminal: "off" | "on";
|
|
15
|
+
admin: "off" | "on";
|
|
14
16
|
roots?: string | undefined;
|
|
15
17
|
}) => Promise<Record<string, unknown> | undefined>;
|
|
16
18
|
//# sourceMappingURL=mcp.d.ts.map
|
package/dist/device/mcp.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../../src/device/mcp.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../../src/device/mcp.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iDAAiD,CAAC;AAEpF,OAAO,EAAmB,KAAK,OAAO,EAAoB,MAAM,4CAA4C,CAAC;AAouB7G,eAAO,MAAM,YAAY,QAAO,SAAS,OAAO,CAAC,YAAY,CAAC,EAAW,CAAC;AAG1E,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;kDAY3B,CAAC"}
|
package/dist/device/mcp.js
CHANGED
|
@@ -21,7 +21,9 @@ import { InspectCommandSchema, inspectSandbox, MAX_INSPECT_ARG_LENGTH, MAX_INSPE
|
|
|
21
21
|
import { osTools } from "./tools/os/os.js";
|
|
22
22
|
import { osSettingsTools } from "./tools/os/settings.js";
|
|
23
23
|
import { DEFAULT_TIMEOUT_MS, describeResult, MAX_TIMEOUT_MS, runCommand } from "./tools/shell.js";
|
|
24
|
-
import { stackTools } from "./tools/stacks/
|
|
24
|
+
import { stackTools } from "./tools/stacks/stack-tools.js";
|
|
25
|
+
import { auditDetail } from "./audit-detail.js";
|
|
26
|
+
import { ciRunnerTools } from "./tools/ci-runners/ci-runners.js";
|
|
25
27
|
import { appStop, DEFAULT_LOG_LINES as DEFAULT_APP_LOG_LINES, MAX_LOG_LINES as MAX_APP_LOG_LINES, startApp } from "./tools/programs/programs.js";
|
|
26
28
|
import { appStartInput } from "./tools/programs/launch.js";
|
|
27
29
|
import { appLogsAfterWait, appStatusAfterWait, DEFAULT_APP_WAIT_MS, MAX_APP_WAIT_MS } from "./tools/programs/app-wait-tools.js";
|
|
@@ -83,6 +85,7 @@ const appWaitInput = {
|
|
|
83
85
|
.optional()
|
|
84
86
|
.describe(`How long waitFor or untilExit may wait, in ms. Default ${DEFAULT_APP_WAIT_MS}, maximum ${MAX_APP_WAIT_MS}; the answer says when it ran out.`),
|
|
85
87
|
};
|
|
88
|
+
const programTool = (spec) => tool({ ...spec, program: true });
|
|
86
89
|
const TOOLS = [
|
|
87
90
|
tool({
|
|
88
91
|
name: "describe",
|
|
@@ -91,9 +94,9 @@ const TOOLS = [
|
|
|
91
94
|
input: NO_ARGS,
|
|
92
95
|
run: async (_args, scopes) => textResult(await describeText(scopes)),
|
|
93
96
|
}),
|
|
94
|
-
|
|
97
|
+
programTool({
|
|
95
98
|
name: "run_command",
|
|
96
|
-
description: 'Run a command on this device and get back its exit code, stdout and stderr. The shell is PowerShell on Windows and the user\'s login shell elsewhere (see describe). On a Windows PC with WSL, `in: "wsl:<distro>"` runs the command inside that distro through sh -lc instead, and inside a WSL distro `in: "windows"` runs it in PowerShell on the Windows side: the same PC, the other environment, with no quoting through the first shell. There is no terminal for anyone to type into: a command that prompts will fail rather than wait. At the deadline the command is stopped together with everything it started. The call returns once the command itself exits: a process it leaves running in the background keeps running, but nothing it prints after that is collected, so start one with its output redirected to a file (`> out.log 2>&1`). Work that may outlast the deadline (a build, a large copy, a backup) goes to app_start instead, with a shell as its program (`pwsh -NoProfile -Command …`, `sh -c …`), and app_status with `untilExit` waits for it to end: never a loop of `sleep` and checks inside run_command, which holds the call and still ends at the deadline. A file or a folder to or from the sandbox moves with the sandbox\'s `devices copy`, not `docker cp` or base64 through here. Very long output comes back as its start and its end, with the middle cut and counted. Commands that DELETE (a recursive delete, a formatted disk, a removed Docker volume) need this device\'s "Run destructive commands" switch, which is off unless its owner turned it on: they are refused with a message naming the switch, so ask the owner to turn it on rather than looking for a spelling that gets past it. Prefer one script that does the whole job over many small calls, every call is a network round trip to somebody\'s laptop.',
|
|
99
|
+
description: 'Run a command on this device and get back its exit code, stdout and stderr. The shell is PowerShell on Windows and the user\'s login shell elsewhere (see describe). On a Windows PC with WSL, `in: "wsl:<distro>"` runs the command inside that distro through sh -lc instead, and inside a WSL distro `in: "windows"` runs it in PowerShell on the Windows side: the same PC, the other environment, with no quoting through the first shell. There is no terminal for anyone to type into: a command that prompts will fail rather than wait. At the deadline the command is stopped together with everything it started. The call returns once the command itself exits: a process it leaves running in the background keeps running, but nothing it prints after that is collected, so start one with its output redirected to a file (`> out.log 2>&1`). Work that may outlast the deadline (a build, a large copy, a backup) goes to app_start instead, with a shell as its program (`pwsh -NoProfile -Command …`, `sh -c …`), and app_status with `untilExit` waits for it to end: never a loop of `sleep` and checks inside run_command, which holds the call and still ends at the deadline. A file or a folder to or from the sandbox moves with the sandbox\'s `devices copy`, not `docker cp` or base64 through here. Very long output comes back as its start and its end, with the middle cut and counted. Commands that DELETE (a recursive delete, a formatted disk, a removed Docker volume) need this device\'s "Run destructive commands" switch, which is off unless its owner turned it on: they are refused with a message naming the switch, so ask the owner to turn it on rather than looking for a spelling that gets past it. On Windows, `admin: true` runs the command as this computer\'s administrator with no UAC prompt, its output coming back as usual: it needs the "Run commands as administrator" switch, and each run waits for the owner\'s yes on a card in chat, so say in `why` what it is for. Use it for what needs an administrator instead of Start-Process -Verb RunAs, whose prompt waits for someone at the computer and whose output never comes back. Prefer one script that does the whole job over many small calls, every call is a network round trip to somebody\'s laptop.',
|
|
97
100
|
effect: "destructive",
|
|
98
101
|
input: z.object({
|
|
99
102
|
command: required.describe("The command line to run, in the shell of the environment it runs in."),
|
|
@@ -110,10 +113,23 @@ const TOOLS = [
|
|
|
110
113
|
.optional()
|
|
111
114
|
.describe(`How long to wait before killing it, in ms. Default ${DEFAULT_TIMEOUT_MS}, maximum ${MAX_TIMEOUT_MS}.`),
|
|
112
115
|
timeout: z.int().positive().max(MAX_TIMEOUT_MS).optional().describe("Same as timeoutMs, in milliseconds."),
|
|
116
|
+
admin: z
|
|
117
|
+
.boolean()
|
|
118
|
+
.optional()
|
|
119
|
+
.describe('Windows: run it as this computer\'s administrator, with no UAC prompt. Needs the "Run commands as administrator" switch; the owner approves each run on a card in chat.'),
|
|
120
|
+
why: z.string().optional().describe("With admin: one line saying what the command is for, shown on the owner's card."),
|
|
121
|
+
grant: z.string().optional().describe("Added by the sandbox to an approved admin run. Never set it yourself."),
|
|
113
122
|
}),
|
|
114
|
-
run: async ({ command, cwd, timeoutMs: asked, timeout, in: target }, scopes) => {
|
|
123
|
+
run: async ({ command, cwd, timeoutMs: asked, timeout, in: target, admin, grant }, scopes) => {
|
|
115
124
|
const timeoutMs = asked ?? timeout ?? DEFAULT_TIMEOUT_MS;
|
|
116
|
-
const result = await runCommand({
|
|
125
|
+
const result = await runCommand({
|
|
126
|
+
command,
|
|
127
|
+
...(cwd === undefined ? {} : { cwd }),
|
|
128
|
+
...(target === undefined ? {} : { in: target }),
|
|
129
|
+
timeoutMs,
|
|
130
|
+
admin: admin === true,
|
|
131
|
+
grant,
|
|
132
|
+
}, scopes);
|
|
117
133
|
return textResult(describeResult(result, timeoutMs));
|
|
118
134
|
},
|
|
119
135
|
}),
|
|
@@ -190,16 +206,16 @@ const TOOLS = [
|
|
|
190
206
|
input: z.object({ id: required }),
|
|
191
207
|
run: async ({ id }, scopes) => textResult(await focusWindow(screenOf(), id, scopes)),
|
|
192
208
|
}),
|
|
193
|
-
|
|
209
|
+
programTool({
|
|
194
210
|
name: "open",
|
|
195
211
|
description: "Start an application, or open a URL or file with whatever this device has registered for it: the usual first step of a task ('open the browser at this page'). Use this rather than working out the platform's own incantation. Requires the 'Run commands' permission.",
|
|
196
212
|
effect: "destructive",
|
|
197
213
|
input: z.object({ target: required.describe("An application name, a file path, or a URL.") }),
|
|
198
214
|
run: async ({ target }, scopes) => textResult(await openTarget(screenOf(), target, scopes)),
|
|
199
215
|
}),
|
|
200
|
-
|
|
216
|
+
programTool({
|
|
201
217
|
name: "clipboard",
|
|
202
|
-
description: "
|
|
218
|
+
description: "Replace this device's clipboard (write): the reliable way to put text into an application, pasted with ctrl+v. A read answers only how many characters the clipboard holds, never what they are, since it so often holds a password the owner just copied: read text off a screenshot or a file instead. Reading needs 'See the screen'; writing needs 'Use the mouse and keyboard'.",
|
|
203
219
|
effect: "destructive",
|
|
204
220
|
input: z
|
|
205
221
|
.object({
|
|
@@ -215,7 +231,7 @@ const TOOLS = [
|
|
|
215
231
|
: textResult(await readClipboard(screenOf(), scopes)),
|
|
216
232
|
}),
|
|
217
233
|
...browserTools(web),
|
|
218
|
-
|
|
234
|
+
programTool({
|
|
219
235
|
name: "device",
|
|
220
236
|
description: "Use this device's mouse and keyboard: click what is on the screen, type into the focused window, press a key combination, scroll, drag. Coordinates are PIXELS IN THE LATEST SCREENSHOT, whatever it showed (the whole desktop, one display, a window or a zoomed region): take one first, read them off it, and pass its id as `frame`. Better still, point at an element ref from ui_elements, which needs no coordinate at all. Every action answers with a fresh screenshot of the same part of the screen, or says the screen did not change. Typing a command that would delete needs the 'Run destructive commands' switch, as running it would, and keys that lock or leave the desktop are refused. Requires the 'Use the mouse and keyboard' permission, which is OFF unless the user turned it on. Prefer a command over the GUI when both would work: a command is exact, and a click is a guess about where something is.",
|
|
221
237
|
effect: "destructive",
|
|
@@ -285,7 +301,7 @@ const TOOLS = [
|
|
|
285
301
|
}),
|
|
286
302
|
run: async ({ window, query }, scopes) => textResult(await listElements(screenOf(), { window, query }, scopes, elementRefs, frames)),
|
|
287
303
|
}),
|
|
288
|
-
|
|
304
|
+
programTool({
|
|
289
305
|
name: "ui_act",
|
|
290
306
|
description: "Act on an element from ui_elements without the pointer: invoke (press a button, follow a link), set_value (replace a field's text), toggle (a checkbox), expand/collapse (a menu, tree item or combo box), select (a list or tab item), or focus. Works on a background window and leaves the mouse where the user has it. An element offers only the actions ui_elements lists beside it. Answers with a fresh screenshot. Requires the 'Use the mouse and keyboard' permission.",
|
|
291
307
|
effect: "destructive",
|
|
@@ -320,7 +336,7 @@ const TOOLS = [
|
|
|
320
336
|
}),
|
|
321
337
|
run: async ({ serial, query }, scopes) => textResult(await android.uiElements({ serial, query }, scopes)),
|
|
322
338
|
}),
|
|
323
|
-
|
|
339
|
+
programTool({
|
|
324
340
|
name: "android_act",
|
|
325
341
|
description: "Touch the attached Android phone through adb: tap, long_press or swipe at an element ref from android_ui_elements (`element`) or at [x, y] in the newest phone screenshot (`coordinate`, with its id as `frame`); type text into the focused field; press a key (an Android key code like ENTER, BACK, VOLUME_UP, or its number); back, home and recents; scroll a list (`direction`, `amount` swipes, at an element or the middle of the screen). `type` carries printable ASCII only (a newline presses Enter); other characters are refused by name. Keys that turn the screen off or lock the phone (POWER, SLEEP) are refused: nothing here can unlock it again. Typing a command that would delete needs the 'Run destructive commands' switch, as on the desktop. On a Wear OS watch, scroll up or down turns the crown (at an element or coordinate it swipes there), home always ends on the watch face, recents presses the side button, and a screen that has dimmed is woken first. Every action answers with a fresh phone screenshot, or says the screen did not change. Requires the 'Use the mouse and keyboard' permission.",
|
|
326
342
|
effect: "destructive",
|
|
@@ -342,7 +358,7 @@ const TOOLS = [
|
|
|
342
358
|
}),
|
|
343
359
|
run: async (input, scopes) => await android.act(input, scopes),
|
|
344
360
|
}),
|
|
345
|
-
|
|
361
|
+
programTool({
|
|
346
362
|
name: "android_shell",
|
|
347
363
|
description: "Run a command in the attached Android phone's own shell (`adb shell`), as the shell user, and get back its exit code, stdout and stderr: `pm list packages`, `am start -n <package>/<activity>`, `dumpsys battery`, `getprop`, `ls /sdcard`. Commands that lose something the phone does not give back need the 'Run destructive commands' switch, which is off unless its owner turned it on: deleting recursively, `pm uninstall`, `pm clear`, `settings put`, `svc`, `reboot`, a wipe. Note that `svc wifi disable` over wireless debugging cuts the link you are using. There is no terminal: a command that waits for input is stopped at the deadline. Requires the 'Run commands' permission.",
|
|
348
364
|
effect: "destructive",
|
|
@@ -383,7 +399,7 @@ const TOOLS = [
|
|
|
383
399
|
}),
|
|
384
400
|
run: async ({ serial, lines, package: app, tag, priority }, scopes) => textResult(await android.logcat({ serial, lines, package: app, tag, priority }, scopes)),
|
|
385
401
|
}),
|
|
386
|
-
|
|
402
|
+
programTool({
|
|
387
403
|
name: "app_start",
|
|
388
404
|
description: 'Start a program on this device and keep it running after the call returns: an app to look at, click through and read the output of, which run_command (it waits, and stops the command at its deadline) is wrong for. Pass the path `devices push <this device> <build>` printed in the sandbox shell, or the program inside a pushed folder; a program the sandbox pushed needs this device\'s "Run programs this sandbox sends" switch, any other program "Run commands". Its stdout and stderr go to a log of its own (app_logs). A program that falls over within a second or two is answered with its exit code, said in words (a missing DLL, an architecture mismatch), and its last output. Answers with the run id the other app_* tools take.',
|
|
389
405
|
effect: "destructive",
|
|
@@ -552,21 +568,11 @@ const TOOLS = [
|
|
|
552
568
|
run: async ({ slug }, scopes) => textResult(await diagnoseSandbox(slug, scopes)),
|
|
553
569
|
}),
|
|
554
570
|
...stackTools(callerSandbox),
|
|
571
|
+
...ciRunnerTools(),
|
|
555
572
|
...osTools(),
|
|
556
573
|
...osSettingsTools(),
|
|
557
574
|
];
|
|
558
|
-
export const
|
|
559
|
-
const redact = ((name === "device" || name === "android_act") && args["action"] === "type") ||
|
|
560
|
-
(name === "clipboard" && args["action"] === "write") ||
|
|
561
|
-
name === "browser_fill";
|
|
562
|
-
const typed = redact
|
|
563
|
-
? { ...args, text: `<${String(args["text"] ?? "").length} characters>` }
|
|
564
|
-
: name === "ui_act" && args["value"] !== undefined
|
|
565
|
-
? { ...args, value: `<${String(args["value"]).length} characters>` }
|
|
566
|
-
: args;
|
|
567
|
-
const safe = typed["password"] === undefined ? typed : { ...typed, password: `<${String(typed["password"]).length} characters>` };
|
|
568
|
-
return JSON.stringify(safe).slice(0, 500);
|
|
569
|
-
};
|
|
575
|
+
export const machineTools = () => TOOLS;
|
|
570
576
|
export const handleMcpMessage = createMcpServer({
|
|
571
577
|
serverInfo: () => ({ name: "intentic-machine", version: MACHINE_VERSION }),
|
|
572
578
|
tools: TOOLS,
|