omnish 1.6.5 → 2.0.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/CHANGELOG.md +78 -2
- package/README.md +30 -18
- package/config.example.json +1 -0
- package/dist/downloads/omnish-claude/install.sh +174 -0
- package/dist/downloads/omnish-claude/uninstall.sh +114 -0
- package/dist/downloads/omnish-claude.tar.gz +0 -0
- package/dist/downloads/omnish-cursor/install.sh +162 -0
- package/dist/downloads/omnish-cursor/uninstall.sh +107 -0
- package/dist/downloads/omnish-cursor.tar.gz +0 -0
- package/dist/index.js +424 -391
- package/dist/omnish-claude/README.md +80 -0
- package/dist/omnish-claude/hooks/omnish-notify.py +213 -0
- package/dist/omnish-claude/hooks/omnish-notify.sh +13 -0
- package/dist/omnish-claude/install.sh +174 -0
- package/dist/omnish-claude/omnish-notify.json.example +8 -0
- package/dist/omnish-claude/scripts/doctor.sh +99 -0
- package/dist/omnish-claude/skill/SKILL.md +39 -0
- package/dist/omnish-claude/skill/files-and-sharing.md +94 -0
- package/dist/omnish-claude/skill/notifications.md +113 -0
- package/dist/omnish-claude/skill/setup-paths.md +81 -0
- package/dist/omnish-claude/uninstall.sh +114 -0
- package/dist/omnish-cursor/README.md +176 -0
- package/dist/omnish-cursor/hooks/__pycache__/omnish-notify.cpython-313.pyc +0 -0
- package/dist/omnish-cursor/hooks/omnish-notify.py +563 -0
- package/dist/omnish-cursor/hooks/omnish-notify.sh +13 -0
- package/dist/omnish-cursor/hooks/omnish-session-start.sh +48 -0
- package/dist/omnish-cursor/install.sh +162 -0
- package/dist/omnish-cursor/omnish-notify.json.example +13 -0
- package/dist/omnish-cursor/rules/omnish-notify.mdc +45 -0
- package/dist/omnish-cursor/scripts/doctor.sh +126 -0
- package/dist/omnish-cursor/skill/SKILL.md +129 -0
- package/dist/omnish-cursor/skill/files-and-sharing.md +94 -0
- package/dist/omnish-cursor/skill/notifications.md +155 -0
- package/dist/omnish-cursor/skill/setup-paths.md +81 -0
- package/dist/omnish-cursor/uninstall.sh +107 -0
- package/dist/ui/assets/{index-aUJGrxrr.js → index-BwG51a2I.js} +10 -10
- package/dist/ui/index.html +16 -1
- package/package.json +36 -28
- package/scripts/fix-node-pty-perms.mjs +41 -0
package/dist/ui/index.html
CHANGED
|
@@ -11,7 +11,22 @@
|
|
|
11
11
|
href="https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700&display=swap"
|
|
12
12
|
rel="stylesheet"
|
|
13
13
|
/>
|
|
14
|
-
<script
|
|
14
|
+
<script>
|
|
15
|
+
window.LEAPTR_CONFIG = {
|
|
16
|
+
featureTracking: true,
|
|
17
|
+
formTracking: true,
|
|
18
|
+
frustrationSignals: true,
|
|
19
|
+
mobileSignals: true,
|
|
20
|
+
};
|
|
21
|
+
</script>
|
|
22
|
+
<script
|
|
23
|
+
src="https://leaptr.com/collector.js"
|
|
24
|
+
data-endpoint="https://leaptr.com/api/ingest"
|
|
25
|
+
data-key="ik_d9ed944a752b5851dbfa2acedcb1eee4467d"
|
|
26
|
+
data-leaptr-collector="1"
|
|
27
|
+
async
|
|
28
|
+
></script>
|
|
29
|
+
<script type="module" crossorigin src="/assets/index-BwG51a2I.js"></script>
|
|
15
30
|
<link rel="stylesheet" crossorigin href="/assets/index-D6NDVsng.css">
|
|
16
31
|
</head>
|
|
17
32
|
<body class="min-h-dvh antialiased">
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omnish",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "omnish — allowlisted inbox → your real shell (WhatsApp
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "omnish — allowlisted inbox → your real shell (WhatsApp, Telegram, Discord, Slack, and 20+ channels). No AI.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"keywords": [
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"homepage": "https://omnish.dev",
|
|
26
26
|
"files": [
|
|
27
27
|
"dist",
|
|
28
|
+
"scripts/fix-node-pty-perms.mjs",
|
|
28
29
|
"README.md",
|
|
29
30
|
"CHANGELOG.md",
|
|
30
31
|
"LICENSE",
|
|
@@ -36,35 +37,22 @@
|
|
|
36
37
|
"bin": {
|
|
37
38
|
"omnish": "dist/index.js"
|
|
38
39
|
},
|
|
39
|
-
"scripts": {
|
|
40
|
-
"reinstall": "rm -rf node_modules && pnpm install",
|
|
41
|
-
"prepack": "npm run build",
|
|
42
|
-
"build": "node scripts/build-bundle.mjs",
|
|
43
|
-
"build:doc-index": "node scripts/build-doc-index.mjs",
|
|
44
|
-
"typecheck": "tsc --noEmit",
|
|
45
|
-
"pretypecheck": "node scripts/build-doc-index.mjs",
|
|
46
|
-
"pretest": "node scripts/build-doc-index.mjs",
|
|
47
|
-
"format": "prettier --write .",
|
|
48
|
-
"format:check": "prettier --check .",
|
|
49
|
-
"test": "tsx --test 'src/**/*.test.ts'",
|
|
50
|
-
"omnish": "tsx src/index.ts",
|
|
51
|
-
"link": "tsx src/index.ts link",
|
|
52
|
-
"run": "tsx src/index.ts run",
|
|
53
|
-
"local": "omnish stop && node scripts/build-bundle.mjs && npm link && omnish start",
|
|
54
|
-
"logout": "tsx src/index.ts logout"
|
|
55
|
-
},
|
|
56
|
-
"packageManager": "pnpm@11.3.0+sha512.2c403d6594527287672b1f7056343a1f7c3634036a67ffabfcc2b3d7595d843768f8787148d1b57cf7956c90606bbd192857c363af19e96d2d0ec9ec5741d215",
|
|
57
40
|
"engines": {
|
|
58
41
|
"node": ">=22.13"
|
|
59
42
|
},
|
|
60
43
|
"dependencies": {
|
|
61
44
|
"@parcel/watcher": "^2.5.1",
|
|
45
|
+
"@slack/bolt": "^4.7.2",
|
|
62
46
|
"@whiskeysockets/baileys": "7.0.0-rc13",
|
|
63
47
|
"better-sqlite3": "^12.9.0",
|
|
48
|
+
"discord.js": "^14.22.1",
|
|
64
49
|
"grammy": "^1.42.0",
|
|
50
|
+
"matrix-js-sdk": "^41.4.0",
|
|
65
51
|
"node-pty": "^1.1.0",
|
|
52
|
+
"nostr-tools": "^2.17.0",
|
|
66
53
|
"pino": "^9.6.0",
|
|
67
54
|
"qrcode-terminal": "^0.12.0",
|
|
55
|
+
"tmi.js": "^1.8.5",
|
|
68
56
|
"ws": "^8.18.3"
|
|
69
57
|
},
|
|
70
58
|
"devDependencies": {
|
|
@@ -72,17 +60,37 @@
|
|
|
72
60
|
"@types/node": "^22.10.0",
|
|
73
61
|
"@types/qrcode-terminal": "^0.12.2",
|
|
74
62
|
"@types/ws": "^8.18.1",
|
|
63
|
+
"dependency-cruiser": "^17.4.3",
|
|
75
64
|
"esbuild": "^0.24.2",
|
|
76
65
|
"prettier": "^3.5.3",
|
|
77
66
|
"tsx": "^4.19.2",
|
|
78
67
|
"typescript": "^5.7.2"
|
|
79
68
|
},
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
69
|
+
"allowScripts": {
|
|
70
|
+
"@parcel/watcher": true,
|
|
71
|
+
"@whiskeysockets/baileys": true,
|
|
72
|
+
"better-sqlite3": true,
|
|
73
|
+
"node-pty": true,
|
|
74
|
+
"sharp": true,
|
|
75
|
+
"protobufjs": true
|
|
76
|
+
},
|
|
77
|
+
"scripts": {
|
|
78
|
+
"reinstall": "rm -rf node_modules && pnpm install",
|
|
79
|
+
"postinstall": "node scripts/check-native-modules.mjs && node scripts/fix-node-pty-perms.mjs",
|
|
80
|
+
"build": "node scripts/build-bundle.mjs",
|
|
81
|
+
"build:doc-index": "node scripts/build-doc-index.mjs",
|
|
82
|
+
"typecheck": "tsc --noEmit",
|
|
83
|
+
"pretypecheck": "node scripts/build-doc-index.mjs",
|
|
84
|
+
"pretest": "node scripts/build-doc-index.mjs",
|
|
85
|
+
"format": "prettier --write .",
|
|
86
|
+
"format:check": "prettier --check .",
|
|
87
|
+
"test": "tsx --test 'src/**/*.test.ts'",
|
|
88
|
+
"arch:check": "depcruise src --config .dependency-cruiser.cjs",
|
|
89
|
+
"channel:parity": "tsx scripts/channel-parity.mjs",
|
|
90
|
+
"omnish": "tsx src/index.ts",
|
|
91
|
+
"link": "tsx src/index.ts link",
|
|
92
|
+
"run": "tsx src/index.ts run",
|
|
93
|
+
"local": "omnish stop || true; node scripts/build-bundle.mjs && npm link && omnish start",
|
|
94
|
+
"logout": "tsx src/index.ts logout"
|
|
87
95
|
}
|
|
88
|
-
}
|
|
96
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ensure node-pty spawn-helper is executable on macOS after npm/pnpm install.
|
|
3
|
+
* @see https://github.com/microsoft/node-pty/issues/850
|
|
4
|
+
*/
|
|
5
|
+
import { createRequire } from "node:module";
|
|
6
|
+
import fs from "node:fs";
|
|
7
|
+
import os from "node:os";
|
|
8
|
+
import path from "node:path";
|
|
9
|
+
|
|
10
|
+
if (os.platform() !== "darwin") {
|
|
11
|
+
process.exit(0);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const require = createRequire(import.meta.url);
|
|
15
|
+
|
|
16
|
+
let nodePtyRoot;
|
|
17
|
+
try {
|
|
18
|
+
nodePtyRoot = path.dirname(require.resolve("node-pty/package.json"));
|
|
19
|
+
} catch {
|
|
20
|
+
process.exit(0);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const candidates = [
|
|
24
|
+
path.join(nodePtyRoot, "prebuilds", `darwin-${process.arch}`, "spawn-helper"),
|
|
25
|
+
path.join(nodePtyRoot, "build", "Release", "spawn-helper"),
|
|
26
|
+
];
|
|
27
|
+
|
|
28
|
+
for (const helperPath of candidates) {
|
|
29
|
+
if (!fs.existsSync(helperPath)) {
|
|
30
|
+
continue;
|
|
31
|
+
}
|
|
32
|
+
try {
|
|
33
|
+
const mode = fs.statSync(helperPath).mode;
|
|
34
|
+
if ((mode & 0o111) === 0) {
|
|
35
|
+
fs.chmodSync(helperPath, mode | 0o755);
|
|
36
|
+
console.log(`omnish: fixed execute permission on ${helperPath}`);
|
|
37
|
+
}
|
|
38
|
+
} catch (err) {
|
|
39
|
+
console.warn(`omnish: could not chmod node-pty spawn-helper (${helperPath}): ${err}`);
|
|
40
|
+
}
|
|
41
|
+
}
|