@codevoyant/agent-kit 1.24.0 → 1.24.2
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notify.d.ts","sourceRoot":"","sources":["../../src/commands/notify.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"notify.d.ts","sourceRoot":"","sources":["../../src/commands/notify.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAgBpC,wBAAgB,aAAa,IAAI,OAAO,CAUvC"}
|
package/dist/commands/notify.js
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
import { Command } from 'commander';
|
|
2
|
-
import
|
|
2
|
+
import { spawnSync } from 'child_process';
|
|
3
|
+
function sendNotification(title, message) {
|
|
4
|
+
if (process.platform === 'darwin') {
|
|
5
|
+
spawnSync('osascript', ['-e', `display notification "${message}" with title "${title}"`]);
|
|
6
|
+
}
|
|
7
|
+
else if (process.platform === 'linux') {
|
|
8
|
+
spawnSync('notify-send', [title, message]);
|
|
9
|
+
}
|
|
10
|
+
else if (process.platform === 'win32') {
|
|
11
|
+
spawnSync('powershell', [
|
|
12
|
+
'-Command',
|
|
13
|
+
`[System.Reflection.Assembly]::LoadWithPartialName('System.Windows.Forms'); [System.Windows.Forms.MessageBox]::Show('${message}', '${title}')`,
|
|
14
|
+
]);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
3
17
|
export function notifyCommand() {
|
|
4
18
|
return new Command('notify')
|
|
5
19
|
.description('Send a cross-platform desktop notification')
|
|
@@ -9,7 +23,7 @@ export function notifyCommand() {
|
|
|
9
23
|
.action((opts) => {
|
|
10
24
|
if (opts.silent)
|
|
11
25
|
return;
|
|
12
|
-
|
|
26
|
+
sendNotification(opts.title, opts.message);
|
|
13
27
|
});
|
|
14
28
|
}
|
|
15
29
|
//# sourceMappingURL=notify.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notify.js","sourceRoot":"","sources":["../../src/commands/notify.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,
|
|
1
|
+
{"version":3,"file":"notify.js","sourceRoot":"","sources":["../../src/commands/notify.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,SAAS,gBAAgB,CAAC,KAAa,EAAE,OAAe;IACtD,IAAI,OAAO,CAAC,QAAQ,KAAK,QAAQ,EAAE,CAAC;QAClC,SAAS,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,yBAAyB,OAAO,iBAAiB,KAAK,GAAG,CAAC,CAAC,CAAC;IAC5F,CAAC;SAAM,IAAI,OAAO,CAAC,QAAQ,KAAK,OAAO,EAAE,CAAC;QACxC,SAAS,CAAC,aAAa,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC;IAC7C,CAAC;SAAM,IAAI,OAAO,CAAC,QAAQ,KAAK,OAAO,EAAE,CAAC;QACxC,SAAS,CAAC,YAAY,EAAE;YACtB,UAAU;YACV,uHAAuH,OAAO,OAAO,KAAK,IAAI;SAC/I,CAAC,CAAC;IACL,CAAC;AACH,CAAC;AAED,MAAM,UAAU,aAAa;IAC3B,OAAO,IAAI,OAAO,CAAC,QAAQ,CAAC;SACzB,WAAW,CAAC,4CAA4C,CAAC;SACzD,cAAc,CAAC,iBAAiB,EAAE,oBAAoB,CAAC;SACvD,cAAc,CAAC,qBAAqB,EAAE,sBAAsB,CAAC;SAC7D,MAAM,CAAC,UAAU,EAAE,+BAA+B,EAAE,KAAK,CAAC;SAC1D,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE;QACf,IAAI,IAAI,CAAC,MAAM;YAAE,OAAO;QACxB,gBAAgB,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IAC7C,CAAC,CAAC,CAAC;AACP,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codevoyant/agent-kit",
|
|
3
|
-
"version": "1.24.
|
|
3
|
+
"version": "1.24.2",
|
|
4
4
|
"description": "CLI and shared library for codevoyant agents and tools",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -36,12 +36,10 @@
|
|
|
36
36
|
],
|
|
37
37
|
"license": "MIT",
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"commander": "^12.0.0"
|
|
40
|
-
"node-notifier": "^10.0.0"
|
|
39
|
+
"commander": "^12.0.0"
|
|
41
40
|
},
|
|
42
41
|
"devDependencies": {
|
|
43
42
|
"@types/node": "^22.0.0",
|
|
44
|
-
"@types/node-notifier": "^8.0.0",
|
|
45
43
|
"typescript": "^5.0.0",
|
|
46
44
|
"vitest": "^2.0.0"
|
|
47
45
|
}
|