-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
106 lines (106 loc) · 3.67 KB
/
package.json
File metadata and controls
106 lines (106 loc) · 3.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
{
"name": "@elizaos/plugin-imessage-root",
"version": "2.0.0-alpha.1",
"description": "iMessage plugin for ElizaOS agents (macOS)",
"license": "MIT",
"type": "module",
"main": "./typescript/dist/index.js",
"types": "./typescript/dist/index.d.ts",
"exports": {
".": {
"import": "./typescript/dist/index.js",
"types": "./typescript/dist/index.d.ts"
}
},
"scripts": {
"build": "bun run build:ts && bun run build:py",
"build:ts": "cd typescript && bun run build",
"build:py": "test -n \"$SKIP_PYTHON_BUILD\" && echo 'Python build skipped (SKIP_PYTHON_BUILD set)' || (cd python && pip install -e . || echo 'Python build skipped or timed out')",
"build:rs": "cd rust && cargo build --release",
"test": "bun run test:ts && bun run test:py && bun run test:rs",
"test:ts": "cd typescript && bun run test",
"test:py": "cd python && tmpdir=$(mktemp -d) && python3 -m venv \"$tmpdir\" && \"$tmpdir/bin/python\" -m pip install -e ../../../packages/python -e '.[dev]' -q && \"$tmpdir/bin/python\" -m pytest; status=$?; rm -rf \"$tmpdir\"; exit $status",
"test:rs": "cd rust && cargo test",
"lint": "cd typescript && bun run lint",
"lint:check": "cd typescript && bun run lint:check",
"format": "cd typescript && bun run format",
"format:check": "cd typescript && bun run format:check",
"lint:rust": "test -d rust && cd rust && cargo clippy --all-targets --fix --allow-dirty --allow-staged -- -D warnings && cargo fmt || echo 'Rust lint skipped'",
"lint:python": "test -d python && cd python && ruff check --fix . && ruff format . || echo 'Python lint skipped'",
"typecheck": "cd typescript && bun run typecheck",
"typecheck:python": "test -d python && cd python && mypy . --ignore-missing-imports || echo 'Python typecheck skipped'",
"typecheck:rust": "test -d rust && cd rust && cargo check || echo 'Rust typecheck skipped'",
"test:e2e": "node ../../packages/app-core/scripts/run-local-plugin-live-smoke.mjs",
"test:live": "bun run test:e2e"
},
"keywords": [
"elizaos",
"plugin",
"imessage",
"apple",
"macos",
"messaging"
],
"os": [
"darwin"
],
"peerDependencies": {
"@elizaos/core": "workspace:*"
},
"dependencies": {
"zod": "^4.3.6"
},
"agentConfig": {
"pluginType": "elizaos:plugin:imessage:1.0.0",
"pluginParameters": {
"IMESSAGE_CLI_PATH": {
"type": "string",
"description": "Path to iMessage CLI tool (default: imsg)",
"default": "imsg"
},
"IMESSAGE_DB_PATH": {
"type": "string",
"description": "Path to iMessage database (chat.db)"
},
"IMESSAGE_POLL_INTERVAL_MS": {
"type": "number",
"description": "Polling interval for new messages in ms",
"default": 5000
},
"IMESSAGE_DM_POLICY": {
"type": "string",
"description": "DM policy: open, pairing, allowlist, disabled",
"default": "pairing",
"enum": [
"open",
"pairing",
"allowlist",
"disabled"
]
},
"IMESSAGE_GROUP_POLICY": {
"type": "string",
"description": "Group message policy: open, allowlist, disabled",
"default": "allowlist",
"enum": [
"open",
"allowlist",
"disabled"
]
},
"IMESSAGE_ALLOW_FROM": {
"type": "string",
"description": "Comma-separated handles/phone numbers for allowlist"
},
"IMESSAGE_ENABLED": {
"type": "boolean",
"description": "Enable or disable the iMessage plugin",
"default": true
}
}
},
"private": true,
"devDependencies": {
"@biomejs/biome": "^2.3.11"
}
}