@owlmeans/server-job 0.1.18-rc.30 → 0.1.18-rc.32
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
CHANGED
|
@@ -55,7 +55,7 @@ This package ships embedded agent skills under `agent-meta/`. After installing y
|
|
|
55
55
|
your project's skill store (`.agents/skills/`):
|
|
56
56
|
|
|
57
57
|
```sh
|
|
58
|
-
npx @owlmeans/agent-skills@^0.1.18-rc.
|
|
58
|
+
npx @owlmeans/agent-skills@^0.1.18-rc.47
|
|
59
59
|
```
|
|
60
60
|
|
|
61
61
|
The embedded files are version-matched to this package release. Do not edit them
|
package/agent-meta/manifest.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 2,
|
|
3
3
|
"package": "@owlmeans/server-job",
|
|
4
|
-
"version": "0.1.18-rc.
|
|
5
|
-
"generatedAt": "2026-10-
|
|
4
|
+
"version": "0.1.18-rc.32",
|
|
5
|
+
"generatedAt": "2026-10-03T20:05:07.602Z",
|
|
6
6
|
"canonicalRepo": "https://github.com/owlmeans/common",
|
|
7
7
|
"entries": [
|
|
8
8
|
{
|
|
@@ -8,7 +8,7 @@ user-invocable: false
|
|
|
8
8
|
# @owlmeans/server-job
|
|
9
9
|
|
|
10
10
|
**Layer:** Server
|
|
11
|
-
**Install:** `"@owlmeans/server-job": "^0.1.18-rc.
|
|
11
|
+
**Install:** `"@owlmeans/server-job": "^0.1.18-rc.32"` in `dependencies`
|
|
12
12
|
|
|
13
13
|
This package is the boundary between technical `@owlmeans/queue` records and the safe
|
|
14
14
|
`@owlmeans/job` contract. `serveJobEntrypoints` requires a `JobExposurePolicy`; there is no default
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"watch.d.ts","sourceRoot":"","sources":["../../src/actions/watch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;
|
|
1
|
+
{"version":3,"file":"watch.d.ts","sourceRoot":"","sources":["../../src/actions/watch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAOpD,OAAO,KAAK,EAAW,cAAc,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAK7E;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,SAAS,aACV,cAAc,CAAC,OAAO,CAAC,QAC3B,iBAAiB,KACtB,UAAU,CAAC,OAAO,UAAU,CAwC7B,CAAA"}
|
package/build/actions/watch.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { connection } from '@owlmeans/server-socket';
|
|
2
2
|
import { MessageType } from '@owlmeans/socket';
|
|
3
3
|
import { JOB_EVENT } from '@owlmeans/job';
|
|
4
|
+
import { logger } from '@owlmeans/log';
|
|
4
5
|
import { jobsOf } from '../utils/index.js';
|
|
6
|
+
const log = logger('server-job:watch');
|
|
5
7
|
/**
|
|
6
8
|
* Push this caller's job lifecycle events down a socket.
|
|
7
9
|
*
|
|
@@ -37,7 +39,7 @@ export const watchJobs = (protocol, opts) => connection(protocol, async (conn, c
|
|
|
37
39
|
await conn.notify(JOB_EVENT, projected);
|
|
38
40
|
}
|
|
39
41
|
catch (e) {
|
|
40
|
-
|
|
42
|
+
log.warn('Job watch notify failed', { id: event.id, queue: event.queue, error: e });
|
|
41
43
|
}
|
|
42
44
|
});
|
|
43
45
|
conn.listen(async (message) => {
|
|
@@ -50,7 +52,7 @@ export const watchJobs = (protocol, opts) => connection(protocol, async (conn, c
|
|
|
50
52
|
await unsubscribe();
|
|
51
53
|
}
|
|
52
54
|
catch (e) {
|
|
53
|
-
|
|
55
|
+
log.warn('Job watch unsubscribe failed', e);
|
|
54
56
|
}
|
|
55
57
|
}
|
|
56
58
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"watch.js","sourceRoot":"","sources":["../../src/actions/watch.ts"],"names":[],"mappings":"AAAA,OAAO,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O,EAAE,CAAC;YAC7D,IAAI,CAAC;gBACH,MAAM,WAAW,EAAE,CAAA;YACrB,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACX,GAAG,CAAC,IAAI,CAAC,8BAA8B,EAAE,CAAC,CAAC,CAAA;YAC7C,CAAC;QACH,CAAC;IACH,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@owlmeans/server-job",
|
|
3
|
-
"version": "0.1.18-rc.
|
|
3
|
+
"version": "0.1.18-rc.32",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -32,18 +32,19 @@
|
|
|
32
32
|
"access": "public"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@owlmeans/auth": "^0.1.18-rc.
|
|
36
|
-
"@owlmeans/auth-common": "^0.1.18-rc.
|
|
35
|
+
"@owlmeans/auth": "^0.1.18-rc.38",
|
|
36
|
+
"@owlmeans/auth-common": "^0.1.18-rc.45",
|
|
37
37
|
"@owlmeans/context": "^0.1.18-rc.32",
|
|
38
|
-
"@owlmeans/entrypoint": "^0.1.18-rc.
|
|
39
|
-
"@owlmeans/job": "^0.1.18-rc.
|
|
40
|
-
"@owlmeans/
|
|
41
|
-
"@owlmeans/
|
|
38
|
+
"@owlmeans/entrypoint": "^0.1.18-rc.39",
|
|
39
|
+
"@owlmeans/job": "^0.1.18-rc.15",
|
|
40
|
+
"@owlmeans/log": "^0.1.18-rc.0",
|
|
41
|
+
"@owlmeans/queue": "^0.1.18-rc.39",
|
|
42
|
+
"@owlmeans/resource": "^0.1.18-rc.38",
|
|
42
43
|
"@owlmeans/route": "^0.1.18-rc.33",
|
|
43
|
-
"@owlmeans/server-api": "^0.1.18-rc.
|
|
44
|
-
"@owlmeans/server-context": "^0.1.18-rc.
|
|
45
|
-
"@owlmeans/server-entrypoint": "^0.1.18-rc.
|
|
46
|
-
"@owlmeans/server-socket": "^0.1.18-rc.
|
|
47
|
-
"@owlmeans/socket": "^0.1.18-rc.
|
|
44
|
+
"@owlmeans/server-api": "^0.1.18-rc.49",
|
|
45
|
+
"@owlmeans/server-context": "^0.1.18-rc.41",
|
|
46
|
+
"@owlmeans/server-entrypoint": "^0.1.18-rc.38",
|
|
47
|
+
"@owlmeans/server-socket": "^0.1.18-rc.52",
|
|
48
|
+
"@owlmeans/socket": "^0.1.18-rc.38"
|
|
48
49
|
}
|
|
49
50
|
}
|
package/src/actions/watch.ts
CHANGED
|
@@ -4,9 +4,12 @@ import { MessageType } from '@owlmeans/socket'
|
|
|
4
4
|
import { JOB_EVENT } from '@owlmeans/job'
|
|
5
5
|
import type { JobViewEvent } from '@owlmeans/job'
|
|
6
6
|
import type { JobEvent } from '@owlmeans/queue'
|
|
7
|
+
import { logger } from '@owlmeans/log'
|
|
7
8
|
import type { Context, JobEntrypoints, JobHandlerOptions } from '../types.js'
|
|
8
9
|
import { jobsOf } from '../utils/index.js'
|
|
9
10
|
|
|
11
|
+
const log = logger('server-job:watch')
|
|
12
|
+
|
|
10
13
|
/**
|
|
11
14
|
* Push this caller's job lifecycle events down a socket.
|
|
12
15
|
*
|
|
@@ -45,7 +48,7 @@ export const watchJobs = (
|
|
|
45
48
|
const projected = await project(event)
|
|
46
49
|
if (projected != null) await conn.notify(JOB_EVENT, projected)
|
|
47
50
|
} catch (e) {
|
|
48
|
-
|
|
51
|
+
log.warn('Job watch notify failed', { id: event.id, queue: event.queue, error: e })
|
|
49
52
|
}
|
|
50
53
|
})
|
|
51
54
|
|
|
@@ -58,7 +61,7 @@ export const watchJobs = (
|
|
|
58
61
|
try {
|
|
59
62
|
await unsubscribe()
|
|
60
63
|
} catch (e) {
|
|
61
|
-
|
|
64
|
+
log.warn('Job watch unsubscribe failed', e)
|
|
62
65
|
}
|
|
63
66
|
}
|
|
64
67
|
})
|