@rolexjs/core 1.5.0-dev-20260312101736 → 1.5.0-dev-20260312103654
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 +13 -15
- package/dist/index.js +11 -15
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -560,13 +560,10 @@ interface SocietyNamespace {
|
|
|
560
560
|
individual: string;
|
|
561
561
|
}): Promise<CommandResult>;
|
|
562
562
|
}
|
|
563
|
-
interface
|
|
563
|
+
interface IndividualNamespace {
|
|
564
564
|
activate(params: {
|
|
565
565
|
individual: string;
|
|
566
566
|
}): Promise<Role>;
|
|
567
|
-
inspect(params: {
|
|
568
|
-
id: string;
|
|
569
|
-
}): Promise<string>;
|
|
570
567
|
}
|
|
571
568
|
interface OrgNamespace {
|
|
572
569
|
charter(params: {
|
|
@@ -710,11 +707,6 @@ interface ProductNamespace {
|
|
|
710
707
|
product: string;
|
|
711
708
|
}): Promise<CommandResult>;
|
|
712
709
|
}
|
|
713
|
-
interface SurveyNamespace {
|
|
714
|
-
list(params?: {
|
|
715
|
-
type?: string;
|
|
716
|
-
}): Promise<CommandResult>;
|
|
717
|
-
}
|
|
718
710
|
interface IssueNamespace {
|
|
719
711
|
publish(params: {
|
|
720
712
|
title: string;
|
|
@@ -863,7 +855,7 @@ declare const protocol: Protocol;
|
|
|
863
855
|
*
|
|
864
856
|
* Usage:
|
|
865
857
|
* const rx = createBuilder({ platform, renderer });
|
|
866
|
-
* const role = await rx.
|
|
858
|
+
* const role = await rx.individual.activate({ individual: "sean" });
|
|
867
859
|
* await rx.society.born({ id: "alice", content: "Feature: Alice" });
|
|
868
860
|
*/
|
|
869
861
|
|
|
@@ -873,8 +865,8 @@ interface RoleXInternal {
|
|
|
873
865
|
interface RoleXBuilder {
|
|
874
866
|
/** Society-level operations — born, retire, crown, teach, train, found, dissolve. */
|
|
875
867
|
readonly society: SocietyNamespace;
|
|
876
|
-
/**
|
|
877
|
-
readonly
|
|
868
|
+
/** Individual operations — activate. */
|
|
869
|
+
readonly individual: IndividualNamespace;
|
|
878
870
|
/** Organization operations — charter, hire, fire, admin, launch, establish. */
|
|
879
871
|
readonly org: OrgNamespace;
|
|
880
872
|
/** Position operations — charge, require, appoint, dismiss. */
|
|
@@ -883,12 +875,18 @@ interface RoleXBuilder {
|
|
|
883
875
|
readonly project: ProjectNamespace;
|
|
884
876
|
/** Product operations — strategy, spec, release, channel, own. */
|
|
885
877
|
readonly product: ProductNamespace;
|
|
886
|
-
/** Survey — world-level queries. */
|
|
887
|
-
readonly survey: SurveyNamespace;
|
|
888
878
|
/** Issue tracking integration. */
|
|
889
879
|
readonly issue: IssueNamespace;
|
|
890
880
|
/** Resource management integration. */
|
|
891
881
|
readonly resource: ResourceNamespace;
|
|
882
|
+
/** Inspect any node's full state — world-level observation. */
|
|
883
|
+
inspect(params: {
|
|
884
|
+
id: string;
|
|
885
|
+
}): Promise<string>;
|
|
886
|
+
/** Survey the world — list individuals, organizations, positions. */
|
|
887
|
+
survey(params?: {
|
|
888
|
+
type?: string;
|
|
889
|
+
}): Promise<string>;
|
|
892
890
|
/** Tool schemas + world instructions — the unified contract for any channel adapter. */
|
|
893
891
|
readonly protocol: Protocol;
|
|
894
892
|
/** Universal JSON-RPC 2.0 dispatch. */
|
|
@@ -988,4 +986,4 @@ declare function toArgs(op: string, args: Record<string, unknown>): unknown[];
|
|
|
988
986
|
|
|
989
987
|
declare const instructions: Record<string, InstructionDef>;
|
|
990
988
|
|
|
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
|
|
989
|
+
export { type ApplyResult, type ArgEntry, type BuilderConfig, type Caller, type CommandContext, type CommandResult, type CommandResultMap, type Commands, type ContextData, type IndividualNamespace, 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 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 };
|
package/dist/index.js
CHANGED
|
@@ -3228,10 +3228,9 @@ function createSocietyNamespace(call) {
|
|
|
3228
3228
|
uncrown: (p5) => call("society.uncrown", p5)
|
|
3229
3229
|
};
|
|
3230
3230
|
}
|
|
3231
|
-
function
|
|
3231
|
+
function createIndividualNamespace(call) {
|
|
3232
3232
|
return {
|
|
3233
|
-
activate: (p5) => call("role.activate", p5)
|
|
3234
|
-
inspect: (p5) => call("inspect", p5)
|
|
3233
|
+
activate: (p5) => call("role.activate", p5)
|
|
3235
3234
|
};
|
|
3236
3235
|
}
|
|
3237
3236
|
function createOrgNamespace(call) {
|
|
@@ -3280,11 +3279,6 @@ function createProductNamespace(call) {
|
|
|
3280
3279
|
deprecate: (p5) => call("product.deprecate", p5)
|
|
3281
3280
|
};
|
|
3282
3281
|
}
|
|
3283
|
-
function createSurveyNamespace(call) {
|
|
3284
|
-
return {
|
|
3285
|
-
list: (p5) => call("survey.list", p5)
|
|
3286
|
-
};
|
|
3287
|
-
}
|
|
3288
3282
|
function createIssueNamespace(call) {
|
|
3289
3283
|
return {
|
|
3290
3284
|
publish: (p5) => call("issue.publish", p5),
|
|
@@ -3616,20 +3610,19 @@ function createBuilder(config) {
|
|
|
3616
3610
|
return response.result;
|
|
3617
3611
|
};
|
|
3618
3612
|
const _society = createSocietyNamespace(call);
|
|
3619
|
-
const
|
|
3613
|
+
const _individual = createIndividualNamespace(call);
|
|
3620
3614
|
const _org = createOrgNamespace(call);
|
|
3621
3615
|
const _position = createPositionNamespace(call);
|
|
3622
3616
|
const _project = createProjectNamespace(call);
|
|
3623
3617
|
const _product = createProductNamespace(call);
|
|
3624
|
-
const _survey = createSurveyNamespace(call);
|
|
3625
3618
|
const _issue = createIssueNamespace(call);
|
|
3626
3619
|
const _resource = createResourceNamespace(call);
|
|
3627
3620
|
return {
|
|
3628
3621
|
get society() {
|
|
3629
3622
|
return _society;
|
|
3630
3623
|
},
|
|
3631
|
-
get
|
|
3632
|
-
return
|
|
3624
|
+
get individual() {
|
|
3625
|
+
return _individual;
|
|
3633
3626
|
},
|
|
3634
3627
|
get org() {
|
|
3635
3628
|
return _org;
|
|
@@ -3643,15 +3636,18 @@ function createBuilder(config) {
|
|
|
3643
3636
|
get product() {
|
|
3644
3637
|
return _product;
|
|
3645
3638
|
},
|
|
3646
|
-
get survey() {
|
|
3647
|
-
return _survey;
|
|
3648
|
-
},
|
|
3649
3639
|
get issue() {
|
|
3650
3640
|
return _issue;
|
|
3651
3641
|
},
|
|
3652
3642
|
get resource() {
|
|
3653
3643
|
return _resource;
|
|
3654
3644
|
},
|
|
3645
|
+
async inspect({ id }) {
|
|
3646
|
+
return call("inspect", { id });
|
|
3647
|
+
},
|
|
3648
|
+
async survey(params) {
|
|
3649
|
+
return call("survey", params);
|
|
3650
|
+
},
|
|
3655
3651
|
protocol,
|
|
3656
3652
|
async rpc(request) {
|
|
3657
3653
|
const { handler } = await ensureInit();
|