slipwing 0.1.0 → 0.1.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/NOTICE ADDED
@@ -0,0 +1,12 @@
1
+ Slipwing
2
+ Copyright 2026 narmi924
3
+
4
+ The npm package bundles two programs built from forks of projects by Vercel,
5
+ both licensed under the Apache License, Version 2.0:
6
+
7
+ - agent-desktop, https://github.com/vercel-labs/agent-desktop
8
+ changed in https://github.com/narmi924/agent-desktop (personal branch)
9
+ - agent-browser, https://github.com/vercel-labs/agent-browser
10
+ changed in https://github.com/narmi924/agent-browser (personal branch)
11
+
12
+ Their license files ship with the package.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
- [English](https://github.com/narmi924/slipwing#readme) | [简体中文](https://github.com/narmi924/slipwing/blob/personal/.github/README.zh-CN.md)
1
+ [English](https://github.com/narmi924/slipwing#readme) | [简体中文](https://github.com/narmi924/slipwing/blob/main/README.zh-CN.md)
2
2
 
3
- <img src="https://raw.githubusercontent.com/narmi924/slipwing/personal/assets/slipwing.png" width="96" alt="">
3
+ <img src="https://raw.githubusercontent.com/narmi924/slipwing/main/assets/slipwing.png" width="96" alt="">
4
4
 
5
5
  # Slipwing
6
6
 
@@ -8,7 +8,7 @@ Slipwing is an independent Windows build of [vercel-labs/agent-desktop](https://
8
8
  and [vercel-labs/agent-browser](https://github.com/vercel-labs/agent-browser). It hands your AI agent your desktop apps
9
9
  and your browser, and leaves you the mouse.
10
10
 
11
- [![Watch the 25-second demo](https://raw.githubusercontent.com/narmi924/slipwing/personal/assets/Videos/slipwing-en.jpg)](https://raw.githubusercontent.com/narmi924/slipwing/personal/assets/Videos/slipwing-en.mp4?raw=true)
11
+ [![Watch the 25-second demo](https://raw.githubusercontent.com/narmi924/slipwing/main/assets/Videos/slipwing-en.jpg)](https://github.com/narmi924/slipwing#readme)
12
12
 
13
13
  ## What your agent can do
14
14
 
@@ -28,7 +28,7 @@ and your browser, and leaves you the mouse.
28
28
  - **Plug into any agent.** Anything that runs commands learns Slipwing from `slipwing skill`. Anything that speaks
29
29
  MCP gets the same work as tools.
30
30
 
31
- ![Your agent calls the slipwing command; web steps go to agent-browser and Chrome, desktop steps go to agent-desktop and Windows apps; the real mouse and keyboard only after you agree](https://raw.githubusercontent.com/narmi924/slipwing/personal/assets/slipwing-architecture.png)
31
+ ![Your agent calls the slipwing command; web steps go to agent-browser and Chrome, desktop steps go to agent-desktop and Windows apps; the real mouse and keyboard only after you agree](https://raw.githubusercontent.com/narmi924/slipwing/main/assets/slipwing-architecture.png)
32
32
 
33
33
  ## Quick start
34
34
 
@@ -134,10 +134,12 @@ maintainers and contributors. Fixes that belong upstream go back as pull request
134
134
  [agent-browser](https://github.com/vercel-labs/agent-browser/pulls?q=author%3Anarmi924).
135
135
 
136
136
  Slipwing is not affiliated with or endorsed by Vercel. Please report Slipwing problems here, not upstream.
137
- `slipwing --version` prints the upstream commits this build is based on. The agent-browser changes live in
138
- [narmi924/agent-browser](https://github.com/narmi924/agent-browser).
137
+ This repository holds the `slipwing` command, its skill and the packaging. The two programs are built from
138
+ [narmi924/agent-desktop](https://github.com/narmi924/agent-desktop) and
139
+ [narmi924/agent-browser](https://github.com/narmi924/agent-browser), forks that carry the changes listed above;
140
+ `slipwing --version` prints the upstream commits they are based on.
139
141
 
140
142
  ## License
141
143
 
142
- Apache-2.0, as the two upstream projects. Their license files are kept, and every change is in this repository's
143
- history.
144
+ Apache-2.0, as the two upstream projects. The package ships both projects' license files, and every change to them
145
+ is in the two forks' history.
package/bundle.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "Slipwing",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "platform": "windows",
5
5
  "upstream": {
6
6
  "agent-desktop": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slipwing",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Let any AI agent work in your Windows apps and browser in the background. A Windows build of agent-desktop and agent-browser.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": "github:narmi924/slipwing",
package/lib/platform.js DELETED
@@ -1,89 +0,0 @@
1
- const { existsSync } = require('fs');
2
- const { join } = require('path');
3
-
4
- const MACOS_HELPER_NAME = 'agent-desktop-macos-helper';
5
- const LINUX_HELPER_NAME = 'agent-desktop-linux-clipboard-owner';
6
-
7
- const PLATFORMS = {
8
- 'darwin-arm64': {
9
- target: 'aarch64-apple-darwin',
10
- binaryName: 'agent-desktop-darwin-arm64',
11
- entries: ['agent-desktop', MACOS_HELPER_NAME],
12
- released: true,
13
- },
14
- 'darwin-x64': {
15
- target: 'x86_64-apple-darwin',
16
- binaryName: 'agent-desktop-darwin-x64',
17
- entries: ['agent-desktop', MACOS_HELPER_NAME],
18
- released: true,
19
- },
20
- 'linux-arm64': {
21
- target: 'aarch64-unknown-linux-gnu',
22
- binaryName: 'agent-desktop-linux-arm64',
23
- entries: ['agent-desktop', LINUX_HELPER_NAME],
24
- released: true,
25
- },
26
- 'linux-x64': {
27
- target: 'x86_64-unknown-linux-gnu',
28
- binaryName: 'agent-desktop-linux-x64',
29
- entries: ['agent-desktop', LINUX_HELPER_NAME],
30
- released: true,
31
- },
32
- 'win32-arm64': {
33
- target: 'aarch64-pc-windows-msvc',
34
- binaryName: 'agent-desktop-win32-arm64.exe',
35
- entries: ['agent-desktop.exe'],
36
- released: true,
37
- },
38
- 'win32-x64': {
39
- target: 'x86_64-pc-windows-msvc',
40
- binaryName: 'agent-desktop-win32-x64.exe',
41
- entries: ['agent-desktop.exe'],
42
- released: true,
43
- },
44
- };
45
-
46
- function resolve(osPlatform, osArch) {
47
- return PLATFORMS[`${osPlatform}-${osArch}`];
48
- }
49
-
50
- // The first entry is always the CLI executable. Every other entry is a helper
51
- // that is installed beside it under its own name.
52
- function helperNames(entry) {
53
- return entry.entries.slice(1);
54
- }
55
-
56
- function releasedKeys() {
57
- return Object.entries(PLATFORMS)
58
- .filter(([, entry]) => entry.released)
59
- .map(([key]) => key);
60
- }
61
-
62
- function tarballName(version, target) {
63
- return `agent-desktop-v${version}-${target}.tar.gz`;
64
- }
65
-
66
- // Windows has bsdtar at System32\tar.exe; GNU tar via PATH misinterprets drive-letter paths.
67
- // Resolve in-box by absolute path, fall back to PATH if missing.
68
- function tarCommand(osPlatform, environment) {
69
- if (osPlatform !== 'win32') {
70
- return 'tar';
71
- }
72
- const systemRoot = environment.SystemRoot || environment.windir;
73
- if (!systemRoot) {
74
- return 'tar';
75
- }
76
- const inBox = join(systemRoot, 'System32', 'tar.exe');
77
- return existsSync(inBox) ? inBox : 'tar';
78
- }
79
-
80
- module.exports = {
81
- LINUX_HELPER_NAME,
82
- MACOS_HELPER_NAME,
83
- PLATFORMS,
84
- helperNames,
85
- releasedKeys,
86
- resolve,
87
- tarCommand,
88
- tarballName,
89
- };
@@ -1,44 +0,0 @@
1
- const { existsSync, realpathSync, readFileSync, writeFileSync } = require('fs');
2
- const { dirname, join, relative, resolve } = require('path');
3
-
4
- module.exports = function linkWindowsBin(directory, binaryName) {
5
- const binary = resolve(directory, binaryName);
6
- if (!existsSync(binary) || /[%!\r\n"]/.test(binary)) return false;
7
- const entry = join(directory, 'agent-desktop');
8
- let ancestor = directory;
9
- let linked = false;
10
- for (;;) {
11
- for (const destination of [ancestor, join(ancestor, '.bin')]) {
12
- const targets = [relative(destination, entry).replace(/\\/g, '/')];
13
- const alias = join(ancestor, 'agent-desktop', 'bin', 'agent-desktop');
14
- try {
15
- if (existsSync(alias) && realpathSync(alias) === realpathSync(entry)) {
16
- targets.push(relative(destination, alias).replace(/\\/g, '/'));
17
- }
18
- } catch {}
19
- const matches = (contents) => targets.some((target) =>
20
- contents.includes(`${target}"`) || contents.includes(`${target}'`));
21
- const command = join(destination, 'agent-desktop.cmd');
22
- try {
23
- const contents = readFileSync(command, 'utf8').replace(/\\/g, '/');
24
- if (!matches(contents)) continue;
25
- writeFileSync(command, `@echo off\r\n"${binary}" %*\r\nexit /b %errorlevel%\r\n`);
26
- const powershell = join(destination, 'agent-desktop.ps1');
27
- if (existsSync(powershell) && matches(readFileSync(powershell, 'utf8').replace(/\\/g, '/'))) {
28
- writeFileSync(powershell, `& '${binary.replace(/'/g, "''")}' @args\r\nexit $LASTEXITCODE\r\n`);
29
- }
30
- const posix = join(destination, 'agent-desktop');
31
- if (existsSync(posix) && matches(readFileSync(posix, 'utf8').replace(/\\/g, '/'))) {
32
- const toBinary = relative(destination, binary).replace(/\\/g, '/');
33
- writeFileSync(posix, `#!/bin/sh\ncase "$0" in */*) basedir=\${0%/*} ;; *) basedir=. ;; esac\nexec "$basedir/${toBinary}" "$@"\n`);
34
- }
35
- linked = true;
36
- } catch (error) {
37
- if (error.code !== 'ENOENT') process.stderr.write(`agent-desktop: Native command optimization skipped: ${error.message}\n`);
38
- }
39
- }
40
- const parent = dirname(ancestor);
41
- if (parent === ancestor) return linked;
42
- ancestor = parent;
43
- }
44
- };