@maci0/dsh-cron 0.1.1 → 0.1.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.
- package/README.md +7 -7
- package/index.js +3 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -32,16 +32,16 @@ Each run arrives in the session as a message with the prompt, the way a
|
|
|
32
32
|
> row added with `--patch` is an overlay: it disappears at the next start.
|
|
33
33
|
|
|
34
34
|
```sh
|
|
35
|
-
dsh plugin --profile web add
|
|
35
|
+
dsh plugin --profile web add github:maci0/dsh-cron#v0.1.2
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
Pin a release tag: a bare `github:` spec floats on `main`. To upgrade, run the
|
|
39
|
+
same command with the newer tag, then restart `dsh web` (bundle layers compose
|
|
40
|
+
at boot).
|
|
41
41
|
|
|
42
|
-
The timers belong to the harness schedule service
|
|
43
|
-
`@deepseek-ai/dsh-
|
|
44
|
-
|
|
42
|
+
The timers belong to the harness schedule service. The web profile mounts
|
|
43
|
+
`@deepseek-ai/dsh-schedule` through `@deepseek-ai/dsh-web-app`. A profile
|
|
44
|
+
without that row makes `/cron` answer an error that names the service.
|
|
45
45
|
|
|
46
46
|
## How it works
|
|
47
47
|
|
package/index.js
CHANGED
|
@@ -21,8 +21,8 @@ import { parseSchedule } from './lib/parse.js'
|
|
|
21
21
|
export const name = 'cron'
|
|
22
22
|
export const inject = ['commands']
|
|
23
23
|
|
|
24
|
-
/**
|
|
25
|
-
const
|
|
24
|
+
/** Package the web profile mounts for the harness schedule service. */
|
|
25
|
+
const SCHEDULE_PACKAGE = '@deepseek-ai/dsh-schedule'
|
|
26
26
|
/** Longest task title shown in lists; the service allows 120. */
|
|
27
27
|
const MAX_TITLE = 80
|
|
28
28
|
|
|
@@ -133,7 +133,7 @@ async function cronHandler(invocation, ctx) {
|
|
|
133
133
|
// say what is missing rather than vanish when it is not mounted.
|
|
134
134
|
const schedule = ctx.get('schedule')
|
|
135
135
|
if (schedule == null) {
|
|
136
|
-
return { kind: 'error', text: `/cron needs the harness schedule service
|
|
136
|
+
return { kind: 'error', text: `/cron needs the harness schedule service. The web profile mounts ${SCHEDULE_PACKAGE} through @deepseek-ai/dsh-web-app.` }
|
|
137
137
|
}
|
|
138
138
|
const sessionId = invocation.agent.session.id
|
|
139
139
|
if (verb === 'list') return list(schedule, sessionId)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maci0/dsh-cron",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
"icon": "./icon.svg",
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@deepseek-ai/dsh-llm": "0.2.1-alpha.
|
|
48
|
+
"@deepseek-ai/dsh-llm": "0.2.1-alpha.2"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@deepseek-ai/cordis": "4.0.5-alpha.1"
|