@fungi.computer/agar 0.0.1 → 0.1.0
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/dist/storage-wire.d.ts +2 -2
- package/dist/storage-wire.js +2 -2
- package/docs/api/git-wire.md +3 -0
- package/docs/api/storage.md +3 -3
- package/package.json +2 -5
package/dist/storage-wire.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ export declare const resolvedAppStorageSchema: Schema.Struct<{
|
|
|
44
44
|
export type ResolvedAppStorage = typeof resolvedAppStorageSchema.Type;
|
|
45
45
|
/**
|
|
46
46
|
* Validates a write request: the key, scope, value to store, and the
|
|
47
|
-
* revision
|
|
47
|
+
* expected revision of that layer (`null` requires the layer to be absent).
|
|
48
48
|
*/
|
|
49
49
|
export declare const appStorageWriteSchema: Schema.Struct<{
|
|
50
50
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
@@ -54,7 +54,7 @@ export declare const appStorageWriteSchema: Schema.Struct<{
|
|
|
54
54
|
}>;
|
|
55
55
|
/**
|
|
56
56
|
* Validates a reset request: the key, scope, and the revision it's
|
|
57
|
-
* conditioned on (`null` to
|
|
57
|
+
* conditioned on (`null` requires the layer to be absent).
|
|
58
58
|
*/
|
|
59
59
|
export declare const appStorageResetSchema: Schema.Struct<{
|
|
60
60
|
key: Schema.String;
|
package/dist/storage-wire.js
CHANGED
|
@@ -51,7 +51,7 @@ const mutation = {
|
|
|
51
51
|
};
|
|
52
52
|
/**
|
|
53
53
|
* Validates a write request: the key, scope, value to store, and the
|
|
54
|
-
* revision
|
|
54
|
+
* expected revision of that layer (`null` requires the layer to be absent).
|
|
55
55
|
*/
|
|
56
56
|
export const appStorageWriteSchema = Schema.Struct({
|
|
57
57
|
...mutation,
|
|
@@ -59,7 +59,7 @@ export const appStorageWriteSchema = Schema.Struct({
|
|
|
59
59
|
});
|
|
60
60
|
/**
|
|
61
61
|
* Validates a reset request: the key, scope, and the revision it's
|
|
62
|
-
* conditioned on (`null` to
|
|
62
|
+
* conditioned on (`null` requires the layer to be absent).
|
|
63
63
|
*/
|
|
64
64
|
export const appStorageResetSchema = Schema.Struct(mutation);
|
|
65
65
|
/** Validates a bare revision number returned after a write or reset. */
|
package/docs/api/git-wire.md
CHANGED
package/docs/api/storage.md
CHANGED
|
@@ -396,8 +396,8 @@ const appStorageWriteSchema: Struct<{
|
|
|
396
396
|
}>;
|
|
397
397
|
```
|
|
398
398
|
|
|
399
|
-
Validates a write request: the key, scope, value to store, and the
|
|
400
|
-
|
|
399
|
+
Validates a write request: the key, scope, value to store, and the expected
|
|
400
|
+
revision of that layer (`null` requires the layer to be absent).
|
|
401
401
|
|
|
402
402
|
---
|
|
403
403
|
|
|
@@ -412,7 +412,7 @@ const appStorageResetSchema: Struct<{
|
|
|
412
412
|
```
|
|
413
413
|
|
|
414
414
|
Validates a reset request: the key, scope, and the revision it's conditioned on
|
|
415
|
-
(`null` to
|
|
415
|
+
(`null` requires the layer to be absent).
|
|
416
416
|
|
|
417
417
|
---
|
|
418
418
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fungi.computer/agar",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"author": "Levi <levi@technomancy.dev>",
|
|
5
5
|
"description": "App contract for fungi.computer: typed backend methods, host capabilities and the App frontend connection",
|
|
6
6
|
"type": "module",
|
|
@@ -160,7 +160,7 @@
|
|
|
160
160
|
}
|
|
161
161
|
},
|
|
162
162
|
"dependencies": {
|
|
163
|
-
"@fungi.computer/puffball": "0.0.
|
|
163
|
+
"@fungi.computer/puffball": "0.0.2",
|
|
164
164
|
"@fungi.computer/whistle": "0.0.1",
|
|
165
165
|
"@opentui/keymap": "0.5.10",
|
|
166
166
|
"@fungi.computer/capnweb": "0.12.0",
|
|
@@ -184,9 +184,6 @@
|
|
|
184
184
|
},
|
|
185
185
|
"react-dom": {
|
|
186
186
|
"optional": true
|
|
187
|
-
},
|
|
188
|
-
"@tanstack/react-query": {
|
|
189
|
-
"optional": true
|
|
190
187
|
}
|
|
191
188
|
},
|
|
192
189
|
"license": "MIT",
|