@nervur.org/genome 0.37.5 → 0.37.7
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/docs/changelog.md +7 -18
- package/genome/brain/brain.js +1 -1
- package/genome/brain/far.d.ts +0 -1
- package/genome/brain/far.js +2 -4
- package/genome/brain/genome.js +1 -1
- package/genome/brain/index.d.ts +1 -1
- package/genome/brain/index.js +1 -1
- package/genome/brain/kit.js +1 -1
- package/genome/brain/life.d.ts +1 -1
- package/genome/brain/life.js +6 -4
- package/genome/brain/limits.d.ts +1 -0
- package/genome/brain/limits.js +2 -0
- package/genome/brain/methods.js +1 -1
- package/genome/brain/notes.d.ts +2 -1
- package/genome/brain/notes.js +2 -2
- package/genome/brain/space.d.ts +3 -2
- package/genome/brain/space.js +24 -3
- package/genome/brain/version.js +1 -1
- package/genome/cache/cache.d.ts +3 -3
- package/genome/cache/cache.js +9 -4
- package/genome/cache/index.d.ts +1 -1
- package/genome/cache/index.js +1 -1
- package/genome/cache/spaces.d.ts +8 -1
- package/genome/cache/spaces.js +54 -3
- package/genome/carry/carry.js +4 -1
- package/genome/carry/gear.js +2 -2
- package/genome/faculties/ear/blueprint.js +1 -1
- package/genome/faculties/ear/text.js +1 -1
- package/genome/faculties/library/blueprint.js +1 -1
- package/genome/faculties/library/text.js +1 -1
- package/genome/faculties/mouth/blueprint.js +1 -1
- package/genome/faculties/mouth/text.js +1 -1
- package/genome/faculties/scheduler/blueprint.js +1 -1
- package/genome/faculties/scheduler/text.js +1 -1
- package/genome/log/open.js +5 -3
- package/genome/log/record.d.ts +6 -1
- package/genome/log/record.js +24 -11
- package/genome/log/store.d.ts +1 -0
- package/genome/log/store.js +35 -6
- package/genome/organism/body.js +1 -1
- package/genome/organism/made.js +2 -1
- package/genome/pure/frozen.js +3 -0
- package/genome/store/reading.js +19 -6
- package/genome/store/store.js +3 -3
- package/kit/core/foundation.js +2 -2
- package/kit/organism/rig.d.ts +2 -1
- package/kit/organism/rig.js +11 -3
- package/kit/presence/screen-half.js +1 -1
- package/package.json +1 -1
- package/quo/ward/link.d.ts +0 -1
- package/quo/ward/link.js +0 -2
- package/seams/carriers/carriers.js +1 -1
- package/standard/version.js +1 -1
package/kit/organism/rig.js
CHANGED
|
@@ -3,6 +3,7 @@ import { nobleCrypto } from '#quo';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
+
|
|
6
7
|
|
|
7
8
|
|
|
8
9
|
|
|
@@ -106,8 +107,10 @@ const fieldOf = (data , key ) => (isFields(data) ? (data[key]
|
|
|
106
107
|
|
|
107
108
|
|
|
108
109
|
|
|
109
|
-
|
|
110
|
+
|
|
110
111
|
|
|
112
|
+
|
|
113
|
+
|
|
111
114
|
|
|
112
115
|
|
|
113
116
|
|
|
@@ -206,7 +209,10 @@ export const rigOver = async (wasm , faculties , options
|
|
|
206
209
|
const clock = clockOf();
|
|
207
210
|
if (options.wall !== undefined) clock.setWall(options.wall);
|
|
208
211
|
const { carriers, door, vitals, hearing } = options;
|
|
209
|
-
const fills =
|
|
212
|
+
const fills = {
|
|
213
|
+
...fillsOf(memory, clock, faculties, seed, carriers, door, vitals, hearing),
|
|
214
|
+
chance: options.chance ?? seeded(seed),
|
|
215
|
+
};
|
|
210
216
|
const { start, configured } = beginOf(options, faculties, fills, init);
|
|
211
217
|
const made = await startedOn(clock, () => memory.pending() > 0, startOn(options.form ?? 'device', start, wasm));
|
|
212
218
|
if (!('started' in made)) throw new Error(`rig: the organism is not started: ${made.why}`);
|
|
@@ -242,7 +248,9 @@ export const rigOver = async (wasm , faculties , options
|
|
|
242
248
|
},
|
|
243
249
|
restart: (gear = {}) => {
|
|
244
250
|
memory.crash();
|
|
245
|
-
|
|
251
|
+
const again = againOf(options, gear, { seed, memory, configured });
|
|
252
|
+
const handed = gear.seed !== undefined || gear.chance !== undefined;
|
|
253
|
+
return rigOver(wasm, faculties, handed ? again : { ...again, chance: fills.chance });
|
|
246
254
|
},
|
|
247
255
|
};
|
|
248
256
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nervur.org/genome",
|
|
3
|
-
"version": "0.37.
|
|
3
|
+
"version": "0.37.7",
|
|
4
4
|
"description": "What every Nervur organism is, on every host: the brain, the lobes and their engine, the store, Quo, and the seams a host fills. 0.x, unstable.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agents",
|
package/quo/ward/link.d.ts
CHANGED
|
@@ -12,7 +12,6 @@ export type DomainLink = {
|
|
|
12
12
|
};
|
|
13
13
|
export declare const REDEEM = "#redeem";
|
|
14
14
|
export declare const OFFER = "#offer";
|
|
15
|
-
export declare const isReference: (text: string) => boolean;
|
|
16
15
|
export declare const linkText: ({ card, reference }: CardLink) => string;
|
|
17
16
|
export declare const landingText: (landing: string, link: CardLink) => string | null;
|
|
18
17
|
export declare const readLink: (given: string) => CardLink | DomainLink | null;
|
package/quo/ward/link.js
CHANGED
|
@@ -23,8 +23,6 @@ const LANDING = 'https://[^/?#@\\s]+(?:[/?][^#\\s]*)?';
|
|
|
23
23
|
const LANDED_LINK = new RegExp(`^${LANDING}#(.+)$`);
|
|
24
24
|
const LANDING_ONLY = new RegExp(`^${LANDING}$`);
|
|
25
25
|
|
|
26
|
-
export const isReference = (text ) => new RegExp(`^${REFERENCE}$`).test(text);
|
|
27
|
-
|
|
28
26
|
const encoded = (address ) =>
|
|
29
27
|
encodeURIComponent(address).replace(/[!'()*]/gu, (one) => `%${one.charCodeAt(0).toString(16).toUpperCase()}`);
|
|
30
28
|
|
package/standard/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// SPDX-License-Identifier: FSL-1.1-ALv2
|
|
2
|
-
export const GENOME_VERSION = '0.37.
|
|
2
|
+
export const GENOME_VERSION = '0.37.7';
|