@rolexjs/core 1.5.0-dev-20260309090851 → 1.5.0-dev-20260309143737
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/index.d.ts +20 -12
- package/dist/index.js +594 -274
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -175,7 +175,7 @@ declare const rehire: _rolexjs_system.Process;
|
|
|
175
175
|
*
|
|
176
176
|
* Usage:
|
|
177
177
|
* const commands = createCommands({ rt, society, past, resolve, find, resourcex });
|
|
178
|
-
* const result = commands["
|
|
178
|
+
* const result = commands["society.born"]("Feature: Sean", "sean");
|
|
179
179
|
*/
|
|
180
180
|
|
|
181
181
|
interface CommandResult {
|
|
@@ -200,12 +200,12 @@ interface CommandContext {
|
|
|
200
200
|
* Renderer and consumers use this to know the shape of each result.
|
|
201
201
|
*/
|
|
202
202
|
interface CommandResultMap {
|
|
203
|
-
"
|
|
204
|
-
"
|
|
205
|
-
"
|
|
206
|
-
"
|
|
207
|
-
"
|
|
208
|
-
"
|
|
203
|
+
"society.born": CommandResult;
|
|
204
|
+
"society.retire": CommandResult;
|
|
205
|
+
"society.die": CommandResult;
|
|
206
|
+
"society.rehire": CommandResult;
|
|
207
|
+
"society.teach": CommandResult;
|
|
208
|
+
"society.train": CommandResult;
|
|
209
209
|
"role.focus": CommandResult;
|
|
210
210
|
"role.want": CommandResult;
|
|
211
211
|
"role.plan": CommandResult;
|
|
@@ -228,6 +228,8 @@ interface CommandResultMap {
|
|
|
228
228
|
"project.wiki": CommandResult;
|
|
229
229
|
"project.archive": CommandResult;
|
|
230
230
|
"project.produce": CommandResult;
|
|
231
|
+
"project.maintain": CommandResult;
|
|
232
|
+
"project.unmaintain": CommandResult;
|
|
231
233
|
"product.strategy": CommandResult;
|
|
232
234
|
"product.spec": CommandResult;
|
|
233
235
|
"product.release": CommandResult;
|
|
@@ -235,17 +237,21 @@ interface CommandResultMap {
|
|
|
235
237
|
"product.own": CommandResult;
|
|
236
238
|
"product.disown": CommandResult;
|
|
237
239
|
"product.deprecate": CommandResult;
|
|
238
|
-
"
|
|
240
|
+
"society.found": CommandResult;
|
|
239
241
|
"org.charter": CommandResult;
|
|
240
|
-
"
|
|
242
|
+
"society.dissolve": CommandResult;
|
|
241
243
|
"org.hire": CommandResult;
|
|
242
244
|
"org.fire": CommandResult;
|
|
245
|
+
"org.admin": CommandResult;
|
|
246
|
+
"org.unadmin": CommandResult;
|
|
243
247
|
"position.establish": CommandResult;
|
|
244
248
|
"position.charge": CommandResult;
|
|
245
249
|
"position.require": CommandResult;
|
|
246
250
|
"position.abolish": CommandResult;
|
|
247
251
|
"position.appoint": CommandResult;
|
|
248
252
|
"position.dismiss": CommandResult;
|
|
253
|
+
"society.crown": CommandResult;
|
|
254
|
+
"society.uncrown": CommandResult;
|
|
249
255
|
"census.list": CommandResult;
|
|
250
256
|
"issue.publish": Issue;
|
|
251
257
|
"issue.get": Issue | null;
|
|
@@ -418,6 +424,8 @@ declare class RoleXService implements RoleX {
|
|
|
418
424
|
private past;
|
|
419
425
|
/** Cached Role instances — one per individual. */
|
|
420
426
|
private readonly roles;
|
|
427
|
+
/** Permission registry — maps relation names to permissions. */
|
|
428
|
+
private readonly permissions;
|
|
421
429
|
private constructor();
|
|
422
430
|
static create(platform: Platform, renderer: Renderer): Promise<RoleXService>;
|
|
423
431
|
private init;
|
|
@@ -488,9 +496,9 @@ declare function applyPrototype(data: PrototypeData, repo: PrototypeRepository,
|
|
|
488
496
|
*
|
|
489
497
|
* DO NOT EDIT MANUALLY. Run `bun run gen:desc` to regenerate.
|
|
490
498
|
*
|
|
491
|
-
* Source: descriptions/{system}/{process}.feature (
|
|
499
|
+
* Source: descriptions/{system}/{process}.feature (71 files)
|
|
492
500
|
*/
|
|
493
|
-
declare const WORLD_TOPICS: readonly ["cognition", "cognitive-priority", "communication", "execution", "gherkin", "identity-ethics", "inspect", "issue", "memory", "role-identity", "skill-system", "state-origin", "survey", "use-protocol"];
|
|
501
|
+
declare const WORLD_TOPICS: readonly ["cognition", "cognitive-priority", "command-system", "communication", "execution", "gherkin", "identity-ethics", "inspect", "issue", "memory", "role-identity", "skill-system", "state-origin", "survey", "use-protocol"];
|
|
494
502
|
type WorldTopic = (typeof WORLD_TOPICS)[number];
|
|
495
503
|
declare const world: Record<WorldTopic, string>;
|
|
496
504
|
declare const processes: Record<string, string>;
|
|
@@ -506,7 +514,7 @@ declare const directives: Record<string, Record<string, string>>;
|
|
|
506
514
|
/**
|
|
507
515
|
* Map named arguments to positional arguments for a given operation.
|
|
508
516
|
*
|
|
509
|
-
* @param op - Operation key in "namespace.method" format (e.g. "
|
|
517
|
+
* @param op - Operation key in "namespace.method" format (e.g. "society.born")
|
|
510
518
|
* @param args - Named arguments from the caller
|
|
511
519
|
* @returns Positional argument array matching the method signature
|
|
512
520
|
*/
|