@subcortex-ai/sdk 0.3.9 → 0.3.10

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.cts CHANGED
@@ -245,6 +245,8 @@ declare enum OrgRelationship {
245
245
  HOLDS_ROLE = "holds_role",
246
246
  /** Person is a candidate for a role */
247
247
  CANDIDATE_FOR = "candidate_for",
248
+ /** User/manager is considering/evaluating a candidate (inverse of candidate_for) */
249
+ CONSIDERING = "considering",
248
250
  /** Person collaborates with another person */
249
251
  COLLABORATES_WITH = "collaborates_with",
250
252
  /** Person mentors another person */
@@ -285,6 +287,8 @@ declare const RelationshipTypes: {
285
287
  readonly HOLDS_ROLE: OrgRelationship.HOLDS_ROLE;
286
288
  /** Person is a candidate for a role */
287
289
  readonly CANDIDATE_FOR: OrgRelationship.CANDIDATE_FOR;
290
+ /** User/manager is considering/evaluating a candidate (inverse of candidate_for) */
291
+ readonly CONSIDERING: OrgRelationship.CONSIDERING;
288
292
  /** Person collaborates with another person */
289
293
  readonly COLLABORATES_WITH: OrgRelationship.COLLABORATES_WITH;
290
294
  /** Person mentors another person */
@@ -457,6 +461,12 @@ interface IdentifyUserInput {
457
461
  email?: string;
458
462
  /** Agent ID — used to scope conflict detection to this agent's intake queue */
459
463
  agentId?: string;
464
+ /**
465
+ * Whether to auto-dismiss reminders after surfacing them (default true).
466
+ * The agent leaves this on so a reminder surfaces once per session; set it to
467
+ * false for inspection/programmatic recall so reading does not consume reminders.
468
+ */
469
+ dismissReminders?: boolean;
460
470
  }
461
471
  /** Result of user identification */
462
472
  interface UserIdentification {
package/dist/index.d.ts CHANGED
@@ -245,6 +245,8 @@ declare enum OrgRelationship {
245
245
  HOLDS_ROLE = "holds_role",
246
246
  /** Person is a candidate for a role */
247
247
  CANDIDATE_FOR = "candidate_for",
248
+ /** User/manager is considering/evaluating a candidate (inverse of candidate_for) */
249
+ CONSIDERING = "considering",
248
250
  /** Person collaborates with another person */
249
251
  COLLABORATES_WITH = "collaborates_with",
250
252
  /** Person mentors another person */
@@ -285,6 +287,8 @@ declare const RelationshipTypes: {
285
287
  readonly HOLDS_ROLE: OrgRelationship.HOLDS_ROLE;
286
288
  /** Person is a candidate for a role */
287
289
  readonly CANDIDATE_FOR: OrgRelationship.CANDIDATE_FOR;
290
+ /** User/manager is considering/evaluating a candidate (inverse of candidate_for) */
291
+ readonly CONSIDERING: OrgRelationship.CONSIDERING;
288
292
  /** Person collaborates with another person */
289
293
  readonly COLLABORATES_WITH: OrgRelationship.COLLABORATES_WITH;
290
294
  /** Person mentors another person */
@@ -457,6 +461,12 @@ interface IdentifyUserInput {
457
461
  email?: string;
458
462
  /** Agent ID — used to scope conflict detection to this agent's intake queue */
459
463
  agentId?: string;
464
+ /**
465
+ * Whether to auto-dismiss reminders after surfacing them (default true).
466
+ * The agent leaves this on so a reminder surfaces once per session; set it to
467
+ * false for inspection/programmatic recall so reading does not consume reminders.
468
+ */
469
+ dismissReminders?: boolean;
460
470
  }
461
471
  /** Result of user identification */
462
472
  interface UserIdentification {
package/dist/index.js CHANGED
@@ -406,6 +406,7 @@ var OrgRelationship = /* @__PURE__ */ ((OrgRelationship2) => {
406
406
  OrgRelationship2["HAS_MEMBER"] = "has_member";
407
407
  OrgRelationship2["HOLDS_ROLE"] = "holds_role";
408
408
  OrgRelationship2["CANDIDATE_FOR"] = "candidate_for";
409
+ OrgRelationship2["CONSIDERING"] = "considering";
409
410
  OrgRelationship2["COLLABORATES_WITH"] = "collaborates_with";
410
411
  OrgRelationship2["MENTORS"] = "mentors";
411
412
  OrgRelationship2["MENTORED_BY"] = "mentored_by";
@@ -475,7 +476,8 @@ var REVERSE_RELATIONSHIPS = {
475
476
  ["mentors" /* MENTORS */]: "mentored_by" /* MENTORED_BY */,
476
477
  ["mentored_by" /* MENTORED_BY */]: "mentors" /* MENTORS */,
477
478
  ["collaborates_with" /* COLLABORATES_WITH */]: "collaborates_with" /* COLLABORATES_WITH */,
478
- ["candidate_for" /* CANDIDATE_FOR */]: "candidate_for" /* CANDIDATE_FOR */,
479
+ ["candidate_for" /* CANDIDATE_FOR */]: "considering" /* CONSIDERING */,
480
+ ["considering" /* CONSIDERING */]: "candidate_for" /* CANDIDATE_FOR */,
479
481
  ["stakeholder_in" /* STAKEHOLDER_IN */]: "stakeholder_in" /* STAKEHOLDER_IN */,
480
482
  // Agent-facing predicate names → proper relationship types
481
483
  // The model sends 'direct_report' as predicate, SDK maps to proper relationships
@@ -777,13 +779,15 @@ var UsersNamespace = class {
777
779
  const nameAssertion = active.find((a) => a.predicate === "name" || a.predicate === "full_name");
778
780
  const name = nameAssertion?.value || input.displayName || null;
779
781
  const reminders = active.filter((a) => a.predicate === "reminder").map((a) => ({ id: a.id, predicate: a.predicate, value: a.value, confidence: a.confidence, createdAt: a.validFrom }));
780
- for (const reminder of reminders) {
781
- try {
782
- await this.http.post(
783
- `/api/v1/assertions/retract/${enc2(this.tenantId)}/${enc2(reminder.id)}`,
784
- {}
785
- );
786
- } catch {
782
+ if (input.dismissReminders !== false) {
783
+ for (const reminder of reminders) {
784
+ try {
785
+ await this.http.post(
786
+ `/api/v1/assertions/retract/${enc2(this.tenantId)}/${enc2(reminder.id)}`,
787
+ {}
788
+ );
789
+ } catch {
790
+ }
787
791
  }
788
792
  }
789
793
  const contexts = active.filter((a) => a.predicate === "context" || a.predicate === "context:task").map((a) => ({ id: a.id, predicate: a.predicate, value: a.value, confidence: a.confidence, createdAt: a.validFrom }));
@@ -974,7 +978,7 @@ ${connectedPeople.map((p) => {
974
978
  const FORWARD_MAP = {
975
979
  "direct_report": "manages" /* MANAGES */,
976
980
  "team_member": "has_member" /* HAS_MEMBER */,
977
- "candidate": "manages" /* MANAGES */,
981
+ "candidate": "considering" /* CONSIDERING */,
978
982
  "manager": "reports_to" /* REPORTS_TO */,
979
983
  "stakeholder": "stakeholder_in" /* STAKEHOLDER_IN */,
980
984
  "collaborator": "collaborates_with" /* COLLABORATES_WITH */,
@@ -1766,7 +1770,7 @@ var EntitiesNamespace = class {
1766
1770
  `/api/v1/assertions/query/${enc4(tenantId)}/${enc4(subject2)}`
1767
1771
  );
1768
1772
  const relationships = await this.http.get(
1769
- `/api/v1/relationships/query/${enc4(tenantId)}/${enc4(subject2)}`
1773
+ `/api/v1/relationships/${enc4(tenantId)}/${enc4(subject2)}`
1770
1774
  );
1771
1775
  const typeAssertion = assertions.find((a) => a.predicate === "type" && !a.isSuperseded);
1772
1776
  const descAssertion = assertions.find((a) => a.predicate === "description" && !a.isSuperseded);