@rolexjs/core 1.5.0-dev-20260312083443 → 1.5.0-dev-20260312101736

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
@@ -268,7 +268,7 @@ interface CommandResultMap {
268
268
  "position.dismiss": CommandResult;
269
269
  "society.crown": CommandResult;
270
270
  "society.uncrown": CommandResult;
271
- "census.list": CommandResult;
271
+ "survey.list": CommandResult;
272
272
  "issue.publish": Issue;
273
273
  "issue.get": Issue | null;
274
274
  "issue.list": Issue[];
@@ -567,9 +567,6 @@ interface RoleNamespace {
567
567
  inspect(params: {
568
568
  id: string;
569
569
  }): Promise<string>;
570
- survey(params?: {
571
- type?: string;
572
- }): Promise<string>;
573
570
  }
574
571
  interface OrgNamespace {
575
572
  charter(params: {
@@ -713,7 +710,7 @@ interface ProductNamespace {
713
710
  product: string;
714
711
  }): Promise<CommandResult>;
715
712
  }
716
- interface CensusNamespace {
713
+ interface SurveyNamespace {
717
714
  list(params?: {
718
715
  type?: string;
719
716
  }): Promise<CommandResult>;
@@ -876,7 +873,7 @@ interface RoleXInternal {
876
873
  interface RoleXBuilder {
877
874
  /** Society-level operations — born, retire, crown, teach, train, found, dissolve. */
878
875
  readonly society: SocietyNamespace;
879
- /** Role management — activate, inspect, survey. */
876
+ /** Role management — activate, inspect. */
880
877
  readonly role: RoleNamespace;
881
878
  /** Organization operations — charter, hire, fire, admin, launch, establish. */
882
879
  readonly org: OrgNamespace;
@@ -886,8 +883,8 @@ interface RoleXBuilder {
886
883
  readonly project: ProjectNamespace;
887
884
  /** Product operations — strategy, spec, release, channel, own. */
888
885
  readonly product: ProductNamespace;
889
- /** Census — world-level queries. */
890
- readonly census: CensusNamespace;
886
+ /** Survey — world-level queries. */
887
+ readonly survey: SurveyNamespace;
891
888
  /** Issue tracking integration. */
892
889
  readonly issue: IssueNamespace;
893
890
  /** Resource management integration. */
@@ -991,4 +988,4 @@ declare function toArgs(op: string, args: Record<string, unknown>): unknown[];
991
988
 
992
989
  declare const instructions: Record<string, InstructionDef>;
993
990
 
994
- export { type ApplyResult, type ArgEntry, type BuilderConfig, type Caller, type CensusNamespace, type CommandContext, type CommandResult, type CommandResultMap, type Commands, type ContextData, type InstructionDef, type IssueNamespace, type JsonRpcError, type JsonRpcRequest, type JsonRpcResponse, type Migration, type MigrationRecord, type OrgNamespace, type ParamDef, type ParamType, type Platform, type PositionNamespace, type ProductNamespace, type ProjectNamespace, type Protocol, type PrototypeData, type PrototypeRepository, type Renderer, RendererRouter, type ResourceNamespace, Role, type RoleDeps, type RoleNamespace, type RoleSnapshot, type RoleX, type RoleXBuilder, type RoleXInternal, type RoleXRepository, RoleXService, RpcHandler, type SocietyNamespace, type ToolDef, abandon, abolish, activate, applyPrototype, appoint, archive, background, born, channel, channelProduct, charge, charter, charterOrg, complete, createBuilder, createCommands, deliverProject, deliverable, deprecate, die, directives, dismiss, disownProduct, dissolve, duty, encounter, enroll, establish, experience, findInState, finish, fire, found, goal, hire, identity, individual, instructions, launch, master, milestone, milestoneProject, mindset, organization, ownProduct, past, plan, planGoal, position, principle, procedure, processes, produceProject, product, project, protocol, realize, reflect, rehire, release, releaseProduct, removeParticipant, requirement, retire, scope, scopeProject, society, spec, specProduct, strategy, strategyProduct, task, toArgs, todo, tone, want, wiki, wikiProject, world };
991
+ export { type ApplyResult, type ArgEntry, type BuilderConfig, type Caller, type CommandContext, type CommandResult, type CommandResultMap, type Commands, type ContextData, type InstructionDef, type IssueNamespace, type JsonRpcError, type JsonRpcRequest, type JsonRpcResponse, type Migration, type MigrationRecord, type OrgNamespace, type ParamDef, type ParamType, type Platform, type PositionNamespace, type ProductNamespace, type ProjectNamespace, type Protocol, type PrototypeData, type PrototypeRepository, type Renderer, RendererRouter, type ResourceNamespace, Role, type RoleDeps, type RoleNamespace, type RoleSnapshot, type RoleX, type RoleXBuilder, type RoleXInternal, type RoleXRepository, RoleXService, RpcHandler, type SocietyNamespace, type SurveyNamespace, type ToolDef, abandon, abolish, activate, applyPrototype, appoint, archive, background, born, channel, channelProduct, charge, charter, charterOrg, complete, createBuilder, createCommands, deliverProject, deliverable, deprecate, die, directives, dismiss, disownProduct, dissolve, duty, encounter, enroll, establish, experience, findInState, finish, fire, found, goal, hire, identity, individual, instructions, launch, master, milestone, milestoneProject, mindset, organization, ownProduct, past, plan, planGoal, position, principle, procedure, processes, produceProject, product, project, protocol, realize, reflect, rehire, release, releaseProduct, removeParticipant, requirement, retire, scope, scopeProject, society, spec, specProduct, strategy, strategyProduct, task, toArgs, todo, tone, want, wiki, wikiProject, world };
package/dist/index.js CHANGED
@@ -650,21 +650,6 @@ async function applyPrototype(data, repo, direct) {
650
650
  };
651
651
  }
652
652
 
653
- // src/commands/census.ts
654
- function censusCommands(ctx, _helpers) {
655
- const { past: past2, project: project2 } = ctx;
656
- const societyNode = ctx.society;
657
- return {
658
- async "census.list"(type) {
659
- const target = type === "past" ? past2 : societyNode;
660
- const state = await project2(target);
661
- const children = state.children ?? [];
662
- const filtered = type === "past" ? children : children.filter((c) => type ? c.name === type : c.name !== "past");
663
- return { state: { ...state, children: filtered }, process: "list" };
664
- }
665
- };
666
- }
667
-
668
653
  // src/commands/helpers.ts
669
654
  import { parse } from "@rolexjs/parser";
670
655
  import { structure as structure2 } from "@rolexjs/system";
@@ -1216,6 +1201,21 @@ function societyCommands(ctx, helpers) {
1216
1201
  };
1217
1202
  }
1218
1203
 
1204
+ // src/commands/survey.ts
1205
+ function surveyCommands(ctx, _helpers) {
1206
+ const { past: past2, project: project2 } = ctx;
1207
+ const societyNode = ctx.society;
1208
+ return {
1209
+ async "survey.list"(type) {
1210
+ const target = type === "past" ? past2 : societyNode;
1211
+ const state = await project2(target);
1212
+ const children = state.children ?? [];
1213
+ const filtered = type === "past" ? children : children.filter((c) => type ? c.name === type : c.name !== "past");
1214
+ return { state: { ...state, children: filtered }, process: "list" };
1215
+ }
1216
+ };
1217
+ }
1218
+
1219
1219
  // src/commands/index.ts
1220
1220
  function createCommands(ctx) {
1221
1221
  const helpers = createHelpers(ctx);
@@ -1225,7 +1225,7 @@ function createCommands(ctx) {
1225
1225
  ...positionCommands(ctx, helpers),
1226
1226
  ...projectCommands(ctx, helpers),
1227
1227
  ...productCommands(ctx, helpers),
1228
- ...censusCommands(ctx, helpers),
1228
+ ...surveyCommands(ctx, helpers),
1229
1229
  ...resourceCommands(ctx, helpers),
1230
1230
  ...issueCommands(ctx, helpers)
1231
1231
  };
@@ -2120,8 +2120,8 @@ var societyUncrown = def(
2120
2120
  );
2121
2121
 
2122
2122
  // src/instructions/index.ts
2123
- var censusList = def(
2124
- "census",
2123
+ var surveyList = def(
2124
+ "survey",
2125
2125
  "list",
2126
2126
  {
2127
2127
  type: {
@@ -2201,8 +2201,8 @@ var instructions = {
2201
2201
  // society — internal
2202
2202
  "society.crown": societyCrown,
2203
2203
  "society.uncrown": societyUncrown,
2204
- // census
2205
- "census.list": censusList,
2204
+ // survey
2205
+ "survey.list": surveyList,
2206
2206
  // prototype
2207
2207
  "prototype.evict": prototypeEvict,
2208
2208
  // resource
@@ -3133,7 +3133,7 @@ var RoleXService = class _RoleXService {
3133
3133
  const children = state.children ?? [];
3134
3134
  const filtered = type === "past" ? children : children.filter((c) => type ? c.name === type : c.name !== "past");
3135
3135
  const result = { state: { ...state, children: filtered }, process: "list" };
3136
- return this.renderer.render("census.list", result);
3136
+ return this.renderer.render("survey.list", result);
3137
3137
  }
3138
3138
  // ================================================================
3139
3139
  // direct — world-level command dispatch
@@ -3231,8 +3231,7 @@ function createSocietyNamespace(call) {
3231
3231
  function createRoleNamespace(call) {
3232
3232
  return {
3233
3233
  activate: (p5) => call("role.activate", p5),
3234
- inspect: (p5) => call("inspect", p5),
3235
- survey: (p5) => call("survey", p5)
3234
+ inspect: (p5) => call("inspect", p5)
3236
3235
  };
3237
3236
  }
3238
3237
  function createOrgNamespace(call) {
@@ -3281,9 +3280,9 @@ function createProductNamespace(call) {
3281
3280
  deprecate: (p5) => call("product.deprecate", p5)
3282
3281
  };
3283
3282
  }
3284
- function createCensusNamespace(call) {
3283
+ function createSurveyNamespace(call) {
3285
3284
  return {
3286
- list: (p5) => call("census.list", p5)
3285
+ list: (p5) => call("survey.list", p5)
3287
3286
  };
3288
3287
  }
3289
3288
  function createIssueNamespace(call) {
@@ -3622,7 +3621,7 @@ function createBuilder(config) {
3622
3621
  const _position = createPositionNamespace(call);
3623
3622
  const _project = createProjectNamespace(call);
3624
3623
  const _product = createProductNamespace(call);
3625
- const _census = createCensusNamespace(call);
3624
+ const _survey = createSurveyNamespace(call);
3626
3625
  const _issue = createIssueNamespace(call);
3627
3626
  const _resource = createResourceNamespace(call);
3628
3627
  return {
@@ -3644,8 +3643,8 @@ function createBuilder(config) {
3644
3643
  get product() {
3645
3644
  return _product;
3646
3645
  },
3647
- get census() {
3648
- return _census;
3646
+ get survey() {
3647
+ return _survey;
3649
3648
  },
3650
3649
  get issue() {
3651
3650
  return _issue;