@rolexjs/core 1.5.0-dev-20260310014736 → 1.5.0-dev-20260310024101
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 +18 -14
- package/dist/index.js +1108 -1006
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -179,8 +179,7 @@ declare const rehire: _rolexjs_system.Process;
|
|
|
179
179
|
* - Root (depth 0): full
|
|
180
180
|
* - Level 1 children: full (with content)
|
|
181
181
|
* - Level 2+ grandchildren: compact (name/id/tag only, no subtree)
|
|
182
|
-
* -
|
|
183
|
-
* - Forward links: keep children but strip nested links
|
|
182
|
+
* - All link targets: compact (name/id/tag only, no subtree)
|
|
184
183
|
*/
|
|
185
184
|
|
|
186
185
|
interface ProjectionContext {
|
|
@@ -193,14 +192,7 @@ interface Projection {
|
|
|
193
192
|
}
|
|
194
193
|
|
|
195
194
|
/**
|
|
196
|
-
* Commands —
|
|
197
|
-
*
|
|
198
|
-
* Every RoleX command is a pure function of (Runtime, args) → CommandResult.
|
|
199
|
-
* No platform-specific code — all I/O goes through injected interfaces.
|
|
200
|
-
*
|
|
201
|
-
* Usage:
|
|
202
|
-
* const commands = createCommands({ rt, society, past, resolve, find, resourcex });
|
|
203
|
-
* const result = commands["society.born"]("Feature: Sean", "sean");
|
|
195
|
+
* Commands — shared type definitions.
|
|
204
196
|
*/
|
|
205
197
|
|
|
206
198
|
interface CommandResult {
|
|
@@ -244,7 +236,6 @@ interface CommandResultMap {
|
|
|
244
236
|
"role.master": CommandResult;
|
|
245
237
|
"role.forget": CommandResult;
|
|
246
238
|
"role.skill": string;
|
|
247
|
-
"project.launch": CommandResult;
|
|
248
239
|
"project.scope": CommandResult;
|
|
249
240
|
"project.milestone": CommandResult;
|
|
250
241
|
"project.achieve": CommandResult;
|
|
@@ -252,7 +243,6 @@ interface CommandResultMap {
|
|
|
252
243
|
"project.remove": CommandResult;
|
|
253
244
|
"project.deliver": CommandResult;
|
|
254
245
|
"project.wiki": CommandResult;
|
|
255
|
-
"project.archive": CommandResult;
|
|
256
246
|
"project.produce": CommandResult;
|
|
257
247
|
"project.maintain": CommandResult;
|
|
258
248
|
"project.unmaintain": CommandResult;
|
|
@@ -270,10 +260,12 @@ interface CommandResultMap {
|
|
|
270
260
|
"org.fire": CommandResult;
|
|
271
261
|
"org.admin": CommandResult;
|
|
272
262
|
"org.unadmin": CommandResult;
|
|
273
|
-
"
|
|
263
|
+
"org.launch": CommandResult;
|
|
264
|
+
"org.archive": CommandResult;
|
|
265
|
+
"org.establish": CommandResult;
|
|
266
|
+
"org.abolish": CommandResult;
|
|
274
267
|
"position.charge": CommandResult;
|
|
275
268
|
"position.require": CommandResult;
|
|
276
|
-
"position.abolish": CommandResult;
|
|
277
269
|
"position.appoint": CommandResult;
|
|
278
270
|
"position.dismiss": CommandResult;
|
|
279
271
|
"society.crown": CommandResult;
|
|
@@ -300,6 +292,18 @@ interface CommandResultMap {
|
|
|
300
292
|
"resource.clearCache": undefined;
|
|
301
293
|
}
|
|
302
294
|
type Commands = Record<string, (...args: any[]) => any>;
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* Commands — platform-agnostic command implementations.
|
|
298
|
+
*
|
|
299
|
+
* Every RoleX command is a pure function of (Runtime, args) -> CommandResult.
|
|
300
|
+
* No platform-specific code — all I/O goes through injected interfaces.
|
|
301
|
+
*
|
|
302
|
+
* Usage:
|
|
303
|
+
* const commands = createCommands({ rt, society, past, resolve, find, resourcex });
|
|
304
|
+
* const result = commands["society.born"]("Feature: Sean", "sean");
|
|
305
|
+
*/
|
|
306
|
+
|
|
303
307
|
declare function createCommands(ctx: CommandContext): Commands;
|
|
304
308
|
|
|
305
309
|
/**
|