@rolexjs/core 0.10.0 → 0.11.0
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 +4 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -264,8 +264,8 @@ interface Platform {
|
|
|
264
264
|
getPosition(positionName: string, orgName: string): PositionInfo | null;
|
|
265
265
|
/** Load all identity features for a role (includes duties if on_duty) */
|
|
266
266
|
identity(roleId: string): Feature[];
|
|
267
|
-
/** Add a
|
|
268
|
-
|
|
267
|
+
/** Add a dimension to a role's identity (knowledge, experience, or voice) */
|
|
268
|
+
addIdentity(roleId: string, type: "knowledge" | "experience" | "voice", name: string, source: string): Feature;
|
|
269
269
|
/** Find the current active goal for a role (with plan + tasks context) */
|
|
270
270
|
activeGoal(roleId: string): (Goal & {
|
|
271
271
|
plan: Plan | null;
|
|
@@ -287,8 +287,8 @@ interface Platform {
|
|
|
287
287
|
completeGoal(roleId: string, experience?: string): void;
|
|
288
288
|
/** Abandon the current active goal, optionally with experience reflection */
|
|
289
289
|
abandonGoal(roleId: string, experience?: string): void;
|
|
290
|
-
/** Mark a task as done */
|
|
291
|
-
completeTask(roleId: string, name: string): void;
|
|
290
|
+
/** Mark a task as done, optionally with experience reflection */
|
|
291
|
+
completeTask(roleId: string, name: string, experience?: string): void;
|
|
292
292
|
/** Reflect: distill experiences into knowledge, removing the original experiences */
|
|
293
293
|
reflect(roleId: string, experienceNames: string[], knowledgeName: string, knowledgeSource: string): Feature;
|
|
294
294
|
}
|