@portablecore/types 0.1.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/expert/core.d.ts +54 -0
- package/dist/expert/core.d.ts.map +1 -0
- package/dist/expert/core.js +8 -0
- package/dist/expert/core.js.map +1 -0
- package/dist/expert/index.d.ts +5 -0
- package/dist/expert/index.d.ts.map +1 -0
- package/dist/expert/index.js +21 -0
- package/dist/expert/index.js.map +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +33 -0
- package/dist/index.js.map +1 -0
- package/dist/memory/index.d.ts +7 -0
- package/dist/memory/index.d.ts.map +1 -0
- package/dist/memory/index.js +23 -0
- package/dist/memory/index.js.map +1 -0
- package/dist/memory/memory.d.ts +88 -0
- package/dist/memory/memory.d.ts.map +1 -0
- package/dist/memory/memory.js +25 -0
- package/dist/memory/memory.js.map +1 -0
- package/dist/memory/search.d.ts +53 -0
- package/dist/memory/search.d.ts.map +1 -0
- package/dist/memory/search.js +6 -0
- package/dist/memory/search.js.map +1 -0
- package/dist/memory/source.d.ts +44 -0
- package/dist/memory/source.d.ts.map +1 -0
- package/dist/memory/source.js +19 -0
- package/dist/memory/source.js.map +1 -0
- package/dist/pep/export.d.ts +146 -0
- package/dist/pep/export.d.ts.map +1 -0
- package/dist/pep/export.js +115 -0
- package/dist/pep/export.js.map +1 -0
- package/dist/pep/index.d.ts +8 -0
- package/dist/pep/index.d.ts.map +1 -0
- package/dist/pep/index.js +24 -0
- package/dist/pep/index.js.map +1 -0
- package/dist/pep/invoke.d.ts +156 -0
- package/dist/pep/invoke.d.ts.map +1 -0
- package/dist/pep/invoke.js +12 -0
- package/dist/pep/invoke.js.map +1 -0
- package/dist/pep/knowledge.d.ts +45 -0
- package/dist/pep/knowledge.d.ts.map +1 -0
- package/dist/pep/knowledge.js +9 -0
- package/dist/pep/knowledge.js.map +1 -0
- package/dist/pep/stream.d.ts +54 -0
- package/dist/pep/stream.d.ts.map +1 -0
- package/dist/pep/stream.js +9 -0
- package/dist/pep/stream.js.map +1 -0
- package/dist/surface/context.d.ts +53 -0
- package/dist/surface/context.d.ts.map +1 -0
- package/dist/surface/context.js +22 -0
- package/dist/surface/context.js.map +1 -0
- package/dist/surface/credential.d.ts +108 -0
- package/dist/surface/credential.d.ts.map +1 -0
- package/dist/surface/credential.js +12 -0
- package/dist/surface/credential.js.map +1 -0
- package/dist/surface/index.d.ts +7 -0
- package/dist/surface/index.d.ts.map +1 -0
- package/dist/surface/index.js +23 -0
- package/dist/surface/index.js.map +1 -0
- package/dist/surface/material.d.ts +83 -0
- package/dist/surface/material.d.ts.map +1 -0
- package/dist/surface/material.js +9 -0
- package/dist/surface/material.js.map +1 -0
- package/package.json +50 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Expert Core Types
|
|
3
|
+
*
|
|
4
|
+
* The portable identity of an expert.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Expert identity (the portable part)
|
|
8
|
+
*/
|
|
9
|
+
export interface ExpertCore {
|
|
10
|
+
id: string;
|
|
11
|
+
accountId: string;
|
|
12
|
+
/** Identity */
|
|
13
|
+
name: string;
|
|
14
|
+
slug: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
/** Personality */
|
|
17
|
+
persona?: string;
|
|
18
|
+
systemPrompt?: string;
|
|
19
|
+
/** Protected instructions that survive knowledge regeneration */
|
|
20
|
+
systemInstructions?: string;
|
|
21
|
+
/** Avatar/visual identity */
|
|
22
|
+
avatarUrl?: string;
|
|
23
|
+
/** AI-generated description of avatar for self-awareness */
|
|
24
|
+
avatarDescription?: string;
|
|
25
|
+
/** Whether the avatar depicts the user themselves */
|
|
26
|
+
avatarIsMe?: boolean;
|
|
27
|
+
/** Name of person depicted in avatar (e.g. "Marshall McLuhan") */
|
|
28
|
+
avatarSubject?: string;
|
|
29
|
+
/** Model configuration */
|
|
30
|
+
modelId?: string;
|
|
31
|
+
temperature?: number;
|
|
32
|
+
/** Status */
|
|
33
|
+
isActive: boolean;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Expert personality configuration
|
|
37
|
+
*/
|
|
38
|
+
export interface ExpertPersonality {
|
|
39
|
+
system_prompt: string;
|
|
40
|
+
tone?: string;
|
|
41
|
+
constraints?: string[];
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Simplified expert for listing/display
|
|
45
|
+
*/
|
|
46
|
+
export interface ExpertSummary {
|
|
47
|
+
id: string;
|
|
48
|
+
name: string;
|
|
49
|
+
slug: string;
|
|
50
|
+
description?: string;
|
|
51
|
+
avatarUrl?: string;
|
|
52
|
+
isActive: boolean;
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=core.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../src/expert/core.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,MAAM,CAAA;IAEjB,eAAe;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB,kBAAkB;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,iEAAiE;IACjE,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAE3B,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,4DAA4D;IAC5D,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,qDAAqD;IACrD,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,kEAAkE;IAClE,aAAa,CAAC,EAAE,MAAM,CAAA;IAEtB,0BAA0B;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB,aAAa;IACb,QAAQ,EAAE,OAAO,CAAA;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,aAAa,EAAE,MAAM,CAAA;IACrB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,OAAO,CAAA;CAClB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core.js","sourceRoot":"","sources":["../../src/expert/core.ts"],"names":[],"mappings":";AAAA;;;;GAIG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/expert/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,WAAW,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Expert types - re-exports
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
17
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
18
|
+
};
|
|
19
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
+
__exportStar(require("./core.js"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/expert/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,4CAAyB"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @portablecore/types
|
|
3
|
+
*
|
|
4
|
+
* Shared vocabulary for Portable platforms.
|
|
5
|
+
* PEP protocol types, Expert, Memory, Surface definitions.
|
|
6
|
+
*
|
|
7
|
+
* "The expert brings their expertise. The surface provides the material."
|
|
8
|
+
*/
|
|
9
|
+
export * from "./pep/index.js";
|
|
10
|
+
export * from "./expert/index.js";
|
|
11
|
+
export * from "./memory/index.js";
|
|
12
|
+
export * from "./surface/index.js";
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,cAAc,gBAAgB,CAAA;AAG9B,cAAc,mBAAmB,CAAA;AAGjC,cAAc,mBAAmB,CAAA;AAGjC,cAAc,oBAAoB,CAAA"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @portablecore/types
|
|
4
|
+
*
|
|
5
|
+
* Shared vocabulary for Portable platforms.
|
|
6
|
+
* PEP protocol types, Expert, Memory, Surface definitions.
|
|
7
|
+
*
|
|
8
|
+
* "The expert brings their expertise. The surface provides the material."
|
|
9
|
+
*/
|
|
10
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
13
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
14
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
15
|
+
}
|
|
16
|
+
Object.defineProperty(o, k2, desc);
|
|
17
|
+
}) : (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
o[k2] = m[k];
|
|
20
|
+
}));
|
|
21
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
22
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
// PEP Protocol Types
|
|
26
|
+
__exportStar(require("./pep/index.js"), exports);
|
|
27
|
+
// Expert Types
|
|
28
|
+
__exportStar(require("./expert/index.js"), exports);
|
|
29
|
+
// Memory Types
|
|
30
|
+
__exportStar(require("./memory/index.js"), exports);
|
|
31
|
+
// Surface Types
|
|
32
|
+
__exportStar(require("./surface/index.js"), exports);
|
|
33
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;;;;;;;;;;;;;;AAEH,qBAAqB;AACrB,iDAA8B;AAE9B,eAAe;AACf,oDAAiC;AAEjC,eAAe;AACf,oDAAiC;AAEjC,gBAAgB;AAChB,qDAAkC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/memory/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Memory types - re-exports
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
17
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
18
|
+
};
|
|
19
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
+
__exportStar(require("./source.js"), exports);
|
|
21
|
+
__exportStar(require("./memory.js"), exports);
|
|
22
|
+
__exportStar(require("./search.js"), exports);
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/memory/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,8CAA2B;AAC3B,8CAA2B;AAC3B,8CAA2B"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Memory Types - Core definitions
|
|
3
|
+
*
|
|
4
|
+
* Memory belongs to experts, not surfaces.
|
|
5
|
+
* Portable owns ALL memories. Surfaces don't get to keep them.
|
|
6
|
+
*/
|
|
7
|
+
import type { SurfaceType } from "../surface/context.js";
|
|
8
|
+
import type { MemorySource, MemoryType, MemoryScope, IdentityCategory, MemoryEntity } from "./source.js";
|
|
9
|
+
/**
|
|
10
|
+
* A memory belonging to an expert
|
|
11
|
+
*/
|
|
12
|
+
export interface Memory {
|
|
13
|
+
id: string;
|
|
14
|
+
accountId: string;
|
|
15
|
+
expertId: string;
|
|
16
|
+
userId?: string;
|
|
17
|
+
name?: string;
|
|
18
|
+
content: string;
|
|
19
|
+
summary: string;
|
|
20
|
+
followUp?: string;
|
|
21
|
+
source: MemorySource;
|
|
22
|
+
memoryType?: MemoryType;
|
|
23
|
+
memoryScope: MemoryScope;
|
|
24
|
+
category?: string;
|
|
25
|
+
tags: string[];
|
|
26
|
+
sourceSurfaceType?: SurfaceType | string;
|
|
27
|
+
sourceSurfaceId?: string;
|
|
28
|
+
sourceChatId?: string;
|
|
29
|
+
sourceMessageId?: string;
|
|
30
|
+
sourceThreadId?: string;
|
|
31
|
+
importance: number;
|
|
32
|
+
confidence: number;
|
|
33
|
+
quality?: number;
|
|
34
|
+
decayRate: number;
|
|
35
|
+
accessBoost: number;
|
|
36
|
+
lastAccessedAt?: Date;
|
|
37
|
+
accessCount: number;
|
|
38
|
+
validUntil?: Date;
|
|
39
|
+
relatedMemoryIds: string[];
|
|
40
|
+
supersedesMemoryId?: string;
|
|
41
|
+
entities: MemoryEntity[];
|
|
42
|
+
denseVectorId?: string;
|
|
43
|
+
sparseVectorId?: string;
|
|
44
|
+
embeddingStatus: "pending" | "processing" | "ready" | "failed";
|
|
45
|
+
embeddingModel?: string;
|
|
46
|
+
lastEmbeddedAt?: Date;
|
|
47
|
+
isValidated: boolean;
|
|
48
|
+
validatedAt?: Date;
|
|
49
|
+
validatedBy?: string;
|
|
50
|
+
identityCategory?: IdentityCategory;
|
|
51
|
+
contradictionOf?: string;
|
|
52
|
+
confirmationCount: number;
|
|
53
|
+
formedInMultiPlayer: boolean;
|
|
54
|
+
participantUserIds: string[];
|
|
55
|
+
metadata?: Record<string, unknown>;
|
|
56
|
+
occurredAt?: Date;
|
|
57
|
+
createdAt: Date;
|
|
58
|
+
updatedAt: Date;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Memory with calculated effective importance
|
|
62
|
+
*/
|
|
63
|
+
export interface MemoryWithEffectiveImportance extends Memory {
|
|
64
|
+
effectiveImportance: number;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Simplified memory for PEP context
|
|
68
|
+
*/
|
|
69
|
+
export interface MemorySimple {
|
|
70
|
+
id: string;
|
|
71
|
+
expertId: string;
|
|
72
|
+
content: string;
|
|
73
|
+
summary?: string;
|
|
74
|
+
source: MemorySource;
|
|
75
|
+
tags?: string[];
|
|
76
|
+
sourceSurfaceType: SurfaceType;
|
|
77
|
+
sourceSurfaceId: string;
|
|
78
|
+
quality?: number;
|
|
79
|
+
importance?: number;
|
|
80
|
+
createdAt: Date;
|
|
81
|
+
lastAccessedAt?: Date;
|
|
82
|
+
embedding?: number[];
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Calculate effective importance with decay and access boost
|
|
86
|
+
*/
|
|
87
|
+
export declare function calculateEffectiveImportance(memory: Memory): number;
|
|
88
|
+
//# sourceMappingURL=memory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../../src/memory/memory.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EACV,YAAY,EACZ,UAAU,EACV,WAAW,EACX,gBAAgB,EAChB,YAAY,EACb,MAAM,aAAa,CAAA;AAEpB;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,MAAM,CAAA;IAGf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nC,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,iBAAiB,EAAE,MAAM,CAAA;IAGzB,mBAAmB,EAAE,OAAO,CAAA;IAC5B,kBAAkB,EAAE,MAAM,EAAE,CAAA;IAG5B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAGlC,UAAU,CAAC,EAAE,IAAI,CAAA;IACjB,SAAS,EAAE,IAAI,CAAA;IACf,SAAS,EAAE,IAAI,CAAA;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,6BAA8B,SAAQ,MAAM;IAC3D,mBAAmB,EAAE,MAAM,CAAA;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,YAAY,CAAA;IACpB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IACf,iBAAiB,EAAE,WAAW,CAAA;IAC9B,eAAe,EAAE,MAAM,CAAA;IACvB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,IAAI,CAAA;IACf,cAAc,CAAC,EAAE,IAAI,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;CACrB;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAmBnE"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Memory Types - Core definitions
|
|
4
|
+
*
|
|
5
|
+
* Memory belongs to experts, not surfaces.
|
|
6
|
+
* Portable owns ALL memories. Surfaces don't get to keep them.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.calculateEffectiveImportance = calculateEffectiveImportance;
|
|
10
|
+
/**
|
|
11
|
+
* Calculate effective importance with decay and access boost
|
|
12
|
+
*/
|
|
13
|
+
function calculateEffectiveImportance(memory) {
|
|
14
|
+
const now = new Date();
|
|
15
|
+
const createdAt = new Date(memory.createdAt);
|
|
16
|
+
const daysSinceCreated = (now.getTime() - createdAt.getTime()) / (1000 * 60 * 60 * 24);
|
|
17
|
+
// Apply exponential decay
|
|
18
|
+
const decayed = (memory.importance ?? 0.5) *
|
|
19
|
+
Math.exp(-(memory.decayRate ?? 0.01) * daysSinceCreated);
|
|
20
|
+
// Apply access boost (capped)
|
|
21
|
+
const boost = Math.min((memory.accessCount ?? 0) * (memory.accessBoost ?? 0.05), 0.3);
|
|
22
|
+
// Clamp to 0-1
|
|
23
|
+
return Math.min(Math.max(decayed + boost, 0), 1);
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=memory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory.js","sourceRoot":"","sources":["../../src/memory/memory.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAsHH,oEAmBC;AAtBD;;GAEG;AACH,SAAgB,4BAA4B,CAAC,MAAc;IACzD,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAA;IACtB,MAAM,SAAS,GAAG,IAAI,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA;IAC5C,MAAM,gBAAgB,GACpB,CAAC,GAAG,CAAC,OAAO,EAAE,GAAG,SAAS,CAAC,OAAO,EAAE,CAAC,GAAG,CAAC,IAAI,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,CAAA;IAE/D,0BAA0B;IAC1B,MAAM,OAAO,GACX,CAAC,MAAM,CAAC,UAAU,IAAI,GAAG,CAAC;QAC1B,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,IAAI,IAAI,CAAC,GAAG,gBAAgB,CAAC,CAAA;IAE1D,8BAA8B;IAC9B,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CACpB,CAAC,MAAM,CAAC,WAAW,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,WAAW,IAAI,IAAI,CAAC,EACxD,GAAG,CACJ,CAAA;IAED,eAAe;IACf,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,GAAG,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;AAClD,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Memory Search Types
|
|
3
|
+
*/
|
|
4
|
+
import type { SurfaceType } from "../surface/context.js";
|
|
5
|
+
import type { MemorySource, MemoryType, MemoryScope } from "./source.js";
|
|
6
|
+
import type { MemoryWithEffectiveImportance } from "./memory.js";
|
|
7
|
+
/**
|
|
8
|
+
* Reference to a memory used in a response
|
|
9
|
+
*/
|
|
10
|
+
export interface MemoryReference {
|
|
11
|
+
memoryId: string;
|
|
12
|
+
summary: string;
|
|
13
|
+
relevance: number;
|
|
14
|
+
sourceSurface: SurfaceType;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Options for memory search
|
|
18
|
+
*/
|
|
19
|
+
export interface MemorySearchOptions {
|
|
20
|
+
/** Maximum memories to return */
|
|
21
|
+
topK?: number;
|
|
22
|
+
/** Minimum relevance score (0-1) */
|
|
23
|
+
minScore?: number;
|
|
24
|
+
/** Filter by source surface types */
|
|
25
|
+
surfaceTypes?: (SurfaceType | string)[];
|
|
26
|
+
/** Filter by memory types */
|
|
27
|
+
memoryTypes?: MemoryType[];
|
|
28
|
+
/** Filter by memory source */
|
|
29
|
+
sources?: MemorySource[];
|
|
30
|
+
/** Filter by memory scope */
|
|
31
|
+
scopes?: MemoryScope[];
|
|
32
|
+
/** Include expired memories */
|
|
33
|
+
includeExpired?: boolean;
|
|
34
|
+
/** Filter by tags (any match) */
|
|
35
|
+
tags?: string[];
|
|
36
|
+
/** Maximum tokens in combined results */
|
|
37
|
+
maxTokens?: number;
|
|
38
|
+
/**
|
|
39
|
+
* Chat ID for audience-aware retrieval.
|
|
40
|
+
* When provided, the system checks if other humans are present
|
|
41
|
+
* and restricts memory access accordingly.
|
|
42
|
+
*/
|
|
43
|
+
chatId?: string;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* A memory search result
|
|
47
|
+
*/
|
|
48
|
+
export interface MemorySearchResult {
|
|
49
|
+
memory: MemoryWithEffectiveImportance;
|
|
50
|
+
score: number;
|
|
51
|
+
source: "dense" | "sparse" | "both";
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=search.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../src/memory/search.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AACxE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAA;AAEhE;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,aAAa,EAAE,WAAW,CAAA;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,iCAAiC;IACjC,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb,oCAAoC;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB,qCAAqC;IACrC,YAAY,CAAC,EAAE,CAAC,WAAW,GAAG,MAAM,CAAC,EAAE,CAAA;IAEvC,6BAA6B;IAC7B,WAAW,CAAC,EAAE,UAAU,EAAE,CAAA;IAE1B,8BAA8B;IAC9B,OAAO,CAAC,EAAE,YAAY,EAAE,CAAA;IAExB,6BAA6B;IAC7B,MAAM,CAAC,EAAE,WAAW,EAAE,CAAA;IAEtB,+BAA+B;IAC/B,cAAc,CAAC,EAAE,OAAO,CAAA;IAExB,iCAAiC;IACjC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IAEf,yCAAyC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,6BAA6B,CAAA;IACrC,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAA;CACpC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search.js","sourceRoot":"","sources":["../../src/memory/search.ts"],"names":[],"mappings":";AAAA;;GAEG"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Memory Source Types
|
|
3
|
+
*
|
|
4
|
+
* The epistemological foundation of expert memory.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* The five sources of expert memory (Say, Hear, Do, Know, Be)
|
|
8
|
+
* - say: What the user communicates (chat)
|
|
9
|
+
* - hear: What the expert observes (work surfaces)
|
|
10
|
+
* - do: Actions humans take (work surfaces)
|
|
11
|
+
* - know: Knowledge accumulated (both)
|
|
12
|
+
* - be: Identity, personality, presence (both)
|
|
13
|
+
*/
|
|
14
|
+
export type MemorySource = "say" | "hear" | "do" | "know" | "be";
|
|
15
|
+
/**
|
|
16
|
+
* Memory classification types
|
|
17
|
+
*/
|
|
18
|
+
export type MemoryType = "preference" | "fact" | "constraint" | "project" | "interaction_state" | "self_fact" | "self_value" | "self_goal" | "relationship";
|
|
19
|
+
/**
|
|
20
|
+
* How widely a memory can be accessed
|
|
21
|
+
*/
|
|
22
|
+
export type MemoryScope = "thread" | "chat" | "expert" | "user" | "portable";
|
|
23
|
+
/**
|
|
24
|
+
* Identity categories for grouping in identity views
|
|
25
|
+
*/
|
|
26
|
+
export type IdentityCategory = "who_i_am" | "what_i_value" | "what_im_working_on" | "preferences" | "relationships";
|
|
27
|
+
/**
|
|
28
|
+
* An entity mentioned in memories (person, place, project, etc.)
|
|
29
|
+
*/
|
|
30
|
+
export interface MemoryEntity {
|
|
31
|
+
type: string;
|
|
32
|
+
value: string;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Memory source types constant
|
|
36
|
+
*/
|
|
37
|
+
export declare const MEMORY_SOURCES: {
|
|
38
|
+
readonly SAY: "say";
|
|
39
|
+
readonly HEAR: "hear";
|
|
40
|
+
readonly DO: "do";
|
|
41
|
+
readonly KNOW: "know";
|
|
42
|
+
readonly BE: "be";
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=source.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"source.d.ts","sourceRoot":"","sources":["../../src/memory/source.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;GAOG;AACH,MAAM,MAAM,YAAY,GAAG,KAAK,GAAG,MAAM,GAAG,IAAI,GAAG,MAAM,GAAG,IAAI,CAAA;AAEhE;;GAEG;AACH,MAAM,MAAM,UAAU,GAClB,YAAY,GACZ,MAAM,GACN,YAAY,GACZ,SAAS,GACT,mBAAmB,GAEnB,WAAW,GACX,YAAY,GACZ,WAAW,GACX,cAAc,CAAA;AAElB;;GAEG;AACH,MAAM,MAAM,WAAW,GACnB,QAAQ,GACR,MAAM,GACN,QAAQ,GACR,MAAM,GACN,UAAU,CAAA;AAEd;;GAEG;AACH,MAAM,MAAM,gBAAgB,GACxB,UAAU,GACV,cAAc,GACd,oBAAoB,GACpB,aAAa,GACb,eAAe,CAAA;AAEnB;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;CACd;AAED;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;;CAMjB,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Memory Source Types
|
|
4
|
+
*
|
|
5
|
+
* The epistemological foundation of expert memory.
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.MEMORY_SOURCES = void 0;
|
|
9
|
+
/**
|
|
10
|
+
* Memory source types constant
|
|
11
|
+
*/
|
|
12
|
+
exports.MEMORY_SOURCES = {
|
|
13
|
+
SAY: "say",
|
|
14
|
+
HEAR: "hear",
|
|
15
|
+
DO: "do",
|
|
16
|
+
KNOW: "know",
|
|
17
|
+
BE: "be",
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=source.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"source.js","sourceRoot":"","sources":["../../src/memory/source.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAuDH;;GAEG;AACU,QAAA,cAAc,GAAG;IAC5B,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,EAAE,EAAE,IAAI;IACR,IAAI,EAAE,MAAM;IACZ,EAAE,EAAE,IAAI;CACA,CAAA"}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PEP Export Payload Types
|
|
3
|
+
*
|
|
4
|
+
* The complete payload that travels with an expert to a new surface.
|
|
5
|
+
* This is the "what travels" definition for PEP Layer 1.
|
|
6
|
+
* See PEP Specification §3.7
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* The complete payload that travels with an expert to a new surface.
|
|
10
|
+
*/
|
|
11
|
+
export interface PEPExportPayload {
|
|
12
|
+
/** Schema version for forward compatibility */
|
|
13
|
+
version: "1.0";
|
|
14
|
+
/** Expert identity */
|
|
15
|
+
identity: PEPIdentity;
|
|
16
|
+
/** Core instructions - always in context (~300-500 tokens) */
|
|
17
|
+
core_identity: string;
|
|
18
|
+
/** First message template (expert's opening when starting a conversation) */
|
|
19
|
+
first_message?: string;
|
|
20
|
+
/** Knowledge architecture */
|
|
21
|
+
knowledge: PEPKnowledgePayload;
|
|
22
|
+
/** Skill bindings */
|
|
23
|
+
skills: PEPSkillBinding[];
|
|
24
|
+
/** Voice/personality settings */
|
|
25
|
+
voice: PEPVoicePayload;
|
|
26
|
+
/** Memory access configuration */
|
|
27
|
+
memory: PEPMemoryConfig;
|
|
28
|
+
/** Origin metadata */
|
|
29
|
+
provenance: PEPProvenance;
|
|
30
|
+
}
|
|
31
|
+
export interface PEPIdentity {
|
|
32
|
+
/** UUID, stable across surfaces */
|
|
33
|
+
id: string;
|
|
34
|
+
/** Display name (user-chosen) */
|
|
35
|
+
name: string;
|
|
36
|
+
/** URL-safe identifier */
|
|
37
|
+
slug: string;
|
|
38
|
+
/** One-line description */
|
|
39
|
+
tagline?: string;
|
|
40
|
+
/** Profile image URL */
|
|
41
|
+
avatar_url?: string;
|
|
42
|
+
/** Host URI (e.g., "portable.expert") */
|
|
43
|
+
host: string;
|
|
44
|
+
}
|
|
45
|
+
export interface PEPKnowledgePayload {
|
|
46
|
+
/**
|
|
47
|
+
* Option 1: Inline documents (for smaller experts)
|
|
48
|
+
* Documents travel with the expert and are indexed by the surface
|
|
49
|
+
*/
|
|
50
|
+
documents?: PEPKnowledgeDocument[];
|
|
51
|
+
/**
|
|
52
|
+
* Option 2: Remote reference (for larger experts)
|
|
53
|
+
* Surface queries the host's knowledge endpoint
|
|
54
|
+
*/
|
|
55
|
+
remote?: {
|
|
56
|
+
/** Host's semantic search endpoint */
|
|
57
|
+
query_endpoint: string;
|
|
58
|
+
/** e.g., Pinecone namespace */
|
|
59
|
+
namespace?: string;
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
export interface PEPKnowledgeDocument {
|
|
63
|
+
id: string;
|
|
64
|
+
document_type: PEPKnowledgeDocumentType;
|
|
65
|
+
title: string;
|
|
66
|
+
content: string;
|
|
67
|
+
token_count: number;
|
|
68
|
+
/** When to retrieve this document */
|
|
69
|
+
retrieval_triggers: string[];
|
|
70
|
+
/** Pre-computed embedding (optional - surface may re-embed) */
|
|
71
|
+
embedding?: {
|
|
72
|
+
model: string;
|
|
73
|
+
dimensions: number;
|
|
74
|
+
vector: number[];
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
export type PEPKnowledgeDocumentType = "backstory" | "domain_expertise" | "methodology" | "boundaries" | "custom";
|
|
78
|
+
export interface PEPSkillBinding {
|
|
79
|
+
skill_slug: string;
|
|
80
|
+
portability: "portable" | "surface_required";
|
|
81
|
+
/** For portable skills: the tool definition and endpoint */
|
|
82
|
+
portable_tool?: {
|
|
83
|
+
name: string;
|
|
84
|
+
description: string;
|
|
85
|
+
parameters: Record<string, unknown>;
|
|
86
|
+
/** Host's endpoint for execution */
|
|
87
|
+
endpoint: string;
|
|
88
|
+
/** Optional API key header name */
|
|
89
|
+
api_key_header?: string;
|
|
90
|
+
};
|
|
91
|
+
/** For surface-required skills: what the surface must provide */
|
|
92
|
+
required_capability?: string;
|
|
93
|
+
}
|
|
94
|
+
export interface PEPVoicePayload {
|
|
95
|
+
/** Base archetype (surfaces map to their own voice systems) */
|
|
96
|
+
archetype?: {
|
|
97
|
+
slug: string;
|
|
98
|
+
personality_traits: string[];
|
|
99
|
+
communication_style: string;
|
|
100
|
+
};
|
|
101
|
+
/** Expert-specific overrides */
|
|
102
|
+
overrides?: {
|
|
103
|
+
tone?: string;
|
|
104
|
+
verbosity?: "concise" | "balanced" | "detailed";
|
|
105
|
+
formality?: "casual" | "neutral" | "formal";
|
|
106
|
+
emoji_usage?: "none" | "minimal" | "moderate";
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
export interface PEPMemoryConfig {
|
|
110
|
+
/** Memory scope preference */
|
|
111
|
+
default_scope: "user" | "expert" | "shared";
|
|
112
|
+
/** Whether expert can access team shared memory */
|
|
113
|
+
can_access_shared: boolean;
|
|
114
|
+
/** Whether expert contributes to shared memory */
|
|
115
|
+
contributes_to_shared: boolean;
|
|
116
|
+
/**
|
|
117
|
+
* Memory query interface
|
|
118
|
+
* Surfaces call this to retrieve relevant memories at invocation time
|
|
119
|
+
*/
|
|
120
|
+
query_endpoint: string;
|
|
121
|
+
}
|
|
122
|
+
export interface PEPProvenance {
|
|
123
|
+
/** e.g., "portable" */
|
|
124
|
+
source_platform: string;
|
|
125
|
+
/** ISO timestamp */
|
|
126
|
+
exported_at: string;
|
|
127
|
+
/** e.g., 2 for tiered architecture */
|
|
128
|
+
knowledge_version: number;
|
|
129
|
+
/** For integrity verification */
|
|
130
|
+
payload_hash?: string;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Type guard to check if an object is a valid PEP Export Payload.
|
|
134
|
+
*/
|
|
135
|
+
export declare function isPEPExportPayload(obj: unknown): obj is PEPExportPayload;
|
|
136
|
+
/**
|
|
137
|
+
* Validates a PEP payload and returns detailed errors if invalid.
|
|
138
|
+
*/
|
|
139
|
+
export declare function validatePEPPayload(obj: unknown): {
|
|
140
|
+
valid: true;
|
|
141
|
+
payload: PEPExportPayload;
|
|
142
|
+
} | {
|
|
143
|
+
valid: false;
|
|
144
|
+
errors: string[];
|
|
145
|
+
};
|
|
146
|
+
//# sourceMappingURL=export.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../../src/pep/export.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,+CAA+C;IAC/C,OAAO,EAAE,KAAK,CAAA;IAEd,sBAAsB;IACtB,QAAQ,EAAE,WAAW,CAAA;IAErB,8DAA8D;IAC9D,aAAa,EAAE,MAAM,CAAA;IAErB,6EAA6E;IAC7E,aAAa,CAAC,EAAE,MAAM,CAAA;IAEtB,6BAA6B;IAC7B,SAAS,EAAE,mBAAmB,CAAA;IAE9B,qBAAqB;IACrB,MAA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