@arcforge/cognet 2.0.97 → 2.0.99
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/package.json +4 -7
- package/src/clock.ts +1 -1
- package/src/ecs/state.ts +2 -2
- package/src/host.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcforge/cognet",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.99",
|
|
4
4
|
"description": "The Axon cognet runtime — the host, the world clock, the entity-component world, and the AIR grammar. Everything that runs inside a compiled brain.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -15,14 +15,11 @@
|
|
|
15
15
|
],
|
|
16
16
|
"scripts": {
|
|
17
17
|
"test": "bun test",
|
|
18
|
-
"deploy": "
|
|
19
|
-
"deploy:patch": "npm version patch && bun publish --access public",
|
|
20
|
-
"deploy:minor": "npm version minor && bun publish --access public",
|
|
21
|
-
"deploy:major": "npm version major && bun publish --access public"
|
|
18
|
+
"deploy": "echo \"This package is published ONLY by apps/tui/scripts/release.ts, which pins workspace:* deps to concrete versions first. Publishing it directly ships an unresolvable dependency.\" && exit 1"
|
|
22
19
|
},
|
|
23
20
|
"dependencies": {
|
|
24
|
-
"@arcforge/
|
|
25
|
-
"@
|
|
21
|
+
"@arcforge/err": "2.0.99",
|
|
22
|
+
"@arcforge/types": "2.0.99",
|
|
26
23
|
"hookable": "^5.5.3"
|
|
27
24
|
},
|
|
28
25
|
"devDependencies": {
|
package/src/clock.ts
CHANGED
package/src/ecs/state.ts
CHANGED
|
@@ -82,8 +82,8 @@ export function State(opts: StateOpts) {
|
|
|
82
82
|
withStores.sort((a, b) => a.size - b.size)
|
|
83
83
|
|
|
84
84
|
let candidates: EntityId[] = []
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
const [smallest, ...rest] = withStores
|
|
86
|
+
if (smallest) {
|
|
87
87
|
candidates = [...smallest.keys()].filter(e => rest.every(store => store.has(e)))
|
|
88
88
|
} else {
|
|
89
89
|
const all = new Set<EntityId>()
|
package/src/host.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Hookable } from "hookable"
|
|
2
2
|
import { AsyncLocalStorage } from "node:async_hooks"
|
|
3
|
-
import { err } from "@
|
|
3
|
+
import { err } from "@arcforge/err"
|
|
4
4
|
import type { AxonRunResult, CognetConfig, CognetDefinition, CognetHooks, CognetPlugin, CognetWake, KernelAbi } from "@arcforge/types"
|
|
5
5
|
import type { AxonOutputEvent } from "@arcforge/types"
|
|
6
6
|
import { Clock } from "./clock"
|