@farmslot/capabilities 0.6.4 → 0.7.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/CHANGELOG.md +8 -0
- package/package.json +2 -2
- package/src/fs-watch.ts +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,14 @@ All notable changes to `@farmslot/capabilities` are tracked here.
|
|
|
6
6
|
|
|
7
7
|
- Active-development baseline; add user-facing changes here before release or package publication.
|
|
8
8
|
|
|
9
|
+
## 0.7.1 - 2026-11-14
|
|
10
|
+
|
|
11
|
+
- Align published dependencies with the protocol 0.84 and runtime 0.47 release cohort.
|
|
12
|
+
|
|
13
|
+
## 0.7.0 - 2026-11-07
|
|
14
|
+
|
|
15
|
+
- Support notification-only file watches and ranged append reads for retained terminal conversations.
|
|
16
|
+
|
|
9
17
|
## 0.6.4 - 2026-11-04
|
|
10
18
|
|
|
11
19
|
- Align published dependencies with the native delegation and recording-tail release cohort.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@farmslot/capabilities",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "Machine-local capability primitives (fs-watch, screen capture) shared by the node (primary owner) and the gateway (local fallback when no node) — ADR-046.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"quality": "yarn test && yarn typecheck"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@farmslot/protocol": "0.
|
|
30
|
+
"@farmslot/protocol": "0.84.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/node": "^22.0.0",
|
package/src/fs-watch.ts
CHANGED
|
@@ -23,6 +23,8 @@ export interface FileWatchHandle {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
export interface FileWatchOptions {
|
|
26
|
+
/** Wake an append reader without reading or transporting the file body. */
|
|
27
|
+
notificationsOnly?: boolean;
|
|
26
28
|
onUnavailable?: (observation: FileWatchUnavailable) => void;
|
|
27
29
|
}
|
|
28
30
|
|
|
@@ -91,7 +93,8 @@ export function watchFile(
|
|
|
91
93
|
const target = basename(targetPath);
|
|
92
94
|
watcher = watch(dir, { persistent: false }, (_, filename) => {
|
|
93
95
|
if (filename != null && filename.toString() !== target) return;
|
|
94
|
-
|
|
96
|
+
if (options.notificationsOnly) onChange('');
|
|
97
|
+
else void observe();
|
|
95
98
|
});
|
|
96
99
|
watcher.on('error', (error) => {
|
|
97
100
|
if (stopped) return;
|