@1agents/dsh-plugin-todo 0.0.0-stage → 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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 1agents
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,49 @@
1
- # Temporary Holding Version
1
+ # @1agents/dsh-plugin-todo
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ 管理这台 Mac 上已经和 iPhone 同步的系统「提醒事项」和「日历」。
4
+
5
+ - DSH 插件提供侧栏里的独立页面,不注册 Agent 工具。
6
+ - 同一个 `IosAgenda.app` 以 stdio MCP 登记到本机 dreammate-node,范围是 `local`。
7
+ - 页面和 MCP 调用同一套 EventKit 方法。写入后要等 iCloud 同步才会出现在手机上。
8
+
9
+ ## 构建
10
+
11
+ ```sh
12
+ npm install
13
+ npm run build
14
+ npm test
15
+ ```
16
+
17
+ `npm run build` 会编译 Swift、打成 `dist/IosAgenda.app` 并签名。授权记在这个 app 上,不要改去调用裸二进制。
18
+
19
+ 第一次读取会弹出「提醒事项」和「日历」的权限。如果没弹出,到「系统设置 → 隐私与安全性」里允许 `IosAgenda.app`(`work.1agents.ios-agenda`)。
20
+
21
+ ## 安装
22
+
23
+ 前提:Apple 芯片的 macOS、Node.js 20 或以上、已安装的 DeepSeek Harness。提醒事项和日历只在这台 Mac 上读写。当前发布的原生程序是 arm64,Intel Mac 不能安装。
24
+
25
+ ```sh
26
+ dsh plugin --profile web add @1agents/dsh-plugin-todo@0.1.1
27
+ ```
28
+
29
+ 装完后重启 DSH。左侧栏「历史会话」上方出现「日程」。Host 启动时会把 MCP 登记到 `127.0.0.1:36908`。网关没在跑时,页面仍可用,Agent 搜索不到工具。当前这个对话窗口走的是 desktop profile;要在 `dsh web`(默认 `http://127.0.0.1:3080`)里看到,安装目标是 web profile。
30
+
31
+ 从源码安装时,先完成本地构建,再把仓库目录加进 profile:
32
+
33
+ ```sh
34
+ dsh plugin --profile web add /absolute/path/DSH-Plugin-Todo
35
+ ```
36
+
37
+ ## 给 Agent 用
38
+
39
+ 不要在 DSH 里再注册同名工具。已接入 dreammate-node MCP 的会话用搜索来调用:
40
+
41
+ ```sh
42
+ dreammate-node cli search --agent http://127.0.0.1:36908 --query '提醒事项 日历'
43
+ ```
44
+
45
+ 服务名是 `mcp-ios-agenda`。操作说明在 `skills/ios-agenda/SKILL.md`。
46
+
47
+ 随包发布的 `IosAgenda.app` 使用本机临时签名。换一台 Mac 后,如果系统拦截,到「系统设置 → 隐私与安全性」里允许 `IosAgenda.app`(`work.1agents.ios-agenda`)访问提醒事项和日历。
48
+
49
+ [![](https://img.shields.io/badge/powered_by-dsh-4D6BFE?style=flat-square&logo=deepseek&logoColor=white)](https://github.com/deepseek-ai/deepseek-harness)
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env node
2
+ import { spawn } from 'node:child_process';
3
+ import { fileURLToPath } from 'node:url';
4
+
5
+ const binary = fileURLToPath(new URL('../dist/IosAgenda.app/Contents/MacOS/ios-agenda', import.meta.url));
6
+ const child = spawn(binary, process.argv.slice(2), { stdio: 'inherit' });
7
+ child.on('error', (error) => {
8
+ console.error(error.code === 'ENOENT' ? '还没有构建 IosAgenda.app。先运行 npm run build。' : error.message);
9
+ process.exit(1);
10
+ });
11
+ child.on('exit', (code, signal) => process.exit(code ?? (signal ? 1 : 0)));
@@ -0,0 +1,3 @@
1
+ - insert:
2
+ - id: ios-agenda
3
+ name: '@1agents/dsh-plugin-todo'
@@ -0,0 +1,30 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>CFBundleIdentifier</key>
6
+ <string>work.1agents.ios-agenda</string>
7
+ <key>CFBundleName</key>
8
+ <string>ios-agenda</string>
9
+ <key>CFBundleDisplayName</key>
10
+ <string>IosAgenda</string>
11
+ <key>CFBundleExecutable</key>
12
+ <string>ios-agenda</string>
13
+ <key>CFBundlePackageType</key>
14
+ <string>APPL</string>
15
+ <key>CFBundleVersion</key>
16
+ <string>0.1.1</string>
17
+ <key>CFBundleShortVersionString</key>
18
+ <string>0.1.1</string>
19
+ <key>LSUIElement</key>
20
+ <true/>
21
+ <key>NSCalendarsUsageDescription</key>
22
+ <string>读取和修改这台 Mac 上已同步的系统日历。</string>
23
+ <key>NSRemindersUsageDescription</key>
24
+ <string>读取和修改这台 Mac 上已同步的系统提醒事项。</string>
25
+ <key>NSCalendarsFullAccessUsageDescription</key>
26
+ <string>读取和修改这台 Mac 上已同步的系统日历。</string>
27
+ <key>NSRemindersFullAccessUsageDescription</key>
28
+ <string>读取和修改这台 Mac 上已同步的系统提醒事项。</string>
29
+ </dict>
30
+ </plist>
@@ -0,0 +1,115 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>files</key>
6
+ <dict/>
7
+ <key>files2</key>
8
+ <dict/>
9
+ <key>rules</key>
10
+ <dict>
11
+ <key>^Resources/</key>
12
+ <true/>
13
+ <key>^Resources/.*\.lproj/</key>
14
+ <dict>
15
+ <key>optional</key>
16
+ <true/>
17
+ <key>weight</key>
18
+ <real>1000</real>
19
+ </dict>
20
+ <key>^Resources/.*\.lproj/locversion.plist$</key>
21
+ <dict>
22
+ <key>omit</key>
23
+ <true/>
24
+ <key>weight</key>
25
+ <real>1100</real>
26
+ </dict>
27
+ <key>^Resources/Base\.lproj/</key>
28
+ <dict>
29
+ <key>weight</key>
30
+ <real>1010</real>
31
+ </dict>
32
+ <key>^version.plist$</key>
33
+ <true/>
34
+ </dict>
35
+ <key>rules2</key>
36
+ <dict>
37
+ <key>.*\.dSYM($|/)</key>
38
+ <dict>
39
+ <key>weight</key>
40
+ <real>11</real>
41
+ </dict>
42
+ <key>^(.*/)?\.DS_Store$</key>
43
+ <dict>
44
+ <key>omit</key>
45
+ <true/>
46
+ <key>weight</key>
47
+ <real>2000</real>
48
+ </dict>
49
+ <key>^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/</key>
50
+ <dict>
51
+ <key>nested</key>
52
+ <true/>
53
+ <key>weight</key>
54
+ <real>10</real>
55
+ </dict>
56
+ <key>^.*</key>
57
+ <true/>
58
+ <key>^Info\.plist$</key>
59
+ <dict>
60
+ <key>omit</key>
61
+ <true/>
62
+ <key>weight</key>
63
+ <real>20</real>
64
+ </dict>
65
+ <key>^PkgInfo$</key>
66
+ <dict>
67
+ <key>omit</key>
68
+ <true/>
69
+ <key>weight</key>
70
+ <real>20</real>
71
+ </dict>
72
+ <key>^Resources/</key>
73
+ <dict>
74
+ <key>weight</key>
75
+ <real>20</real>
76
+ </dict>
77
+ <key>^Resources/.*\.lproj/</key>
78
+ <dict>
79
+ <key>optional</key>
80
+ <true/>
81
+ <key>weight</key>
82
+ <real>1000</real>
83
+ </dict>
84
+ <key>^Resources/.*\.lproj/locversion.plist$</key>
85
+ <dict>
86
+ <key>omit</key>
87
+ <true/>
88
+ <key>weight</key>
89
+ <real>1100</real>
90
+ </dict>
91
+ <key>^Resources/Base\.lproj/</key>
92
+ <dict>
93
+ <key>weight</key>
94
+ <real>1010</real>
95
+ </dict>
96
+ <key>^[^/]+$</key>
97
+ <dict>
98
+ <key>nested</key>
99
+ <true/>
100
+ <key>weight</key>
101
+ <real>10</real>
102
+ </dict>
103
+ <key>^embedded\.provisionprofile$</key>
104
+ <dict>
105
+ <key>weight</key>
106
+ <real>20</real>
107
+ </dict>
108
+ <key>^version\.plist$</key>
109
+ <dict>
110
+ <key>weight</key>
111
+ <real>20</real>
112
+ </dict>
113
+ </dict>
114
+ </dict>
115
+ </plist>