@rolexjs/core 1.5.0-dev-20260310020353 → 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 CHANGED
@@ -192,14 +192,7 @@ interface Projection {
192
192
  }
193
193
 
194
194
  /**
195
- * Commands — platform-agnostic command implementations.
196
- *
197
- * Every RoleX command is a pure function of (Runtime, args) → CommandResult.
198
- * No platform-specific code — all I/O goes through injected interfaces.
199
- *
200
- * Usage:
201
- * const commands = createCommands({ rt, society, past, resolve, find, resourcex });
202
- * const result = commands["society.born"]("Feature: Sean", "sean");
195
+ * Commands — shared type definitions.
203
196
  */
204
197
 
205
198
  interface CommandResult {
@@ -243,7 +236,6 @@ interface CommandResultMap {
243
236
  "role.master": CommandResult;
244
237
  "role.forget": CommandResult;
245
238
  "role.skill": string;
246
- "project.launch": CommandResult;
247
239
  "project.scope": CommandResult;
248
240
  "project.milestone": CommandResult;
249
241
  "project.achieve": CommandResult;
@@ -251,7 +243,6 @@ interface CommandResultMap {
251
243
  "project.remove": CommandResult;
252
244
  "project.deliver": CommandResult;
253
245
  "project.wiki": CommandResult;
254
- "project.archive": CommandResult;
255
246
  "project.produce": CommandResult;
256
247
  "project.maintain": CommandResult;
257
248
  "project.unmaintain": CommandResult;
@@ -269,10 +260,12 @@ interface CommandResultMap {
269
260
  "org.fire": CommandResult;
270
261
  "org.admin": CommandResult;
271
262
  "org.unadmin": CommandResult;
272
- "position.establish": CommandResult;
263
+ "org.launch": CommandResult;
264
+ "org.archive": CommandResult;
265
+ "org.establish": CommandResult;
266
+ "org.abolish": CommandResult;
273
267
  "position.charge": CommandResult;
274
268
  "position.require": CommandResult;
275
- "position.abolish": CommandResult;
276
269
  "position.appoint": CommandResult;
277
270
  "position.dismiss": CommandResult;
278
271
  "society.crown": CommandResult;
@@ -299,6 +292,18 @@ interface CommandResultMap {
299
292
  "resource.clearCache": undefined;
300
293
  }
301
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
+
302
307
  declare function createCommands(ctx: CommandContext): Commands;
303
308
 
304
309
  /**