@sidurijs/self 1.0.1 → 1.0.2

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.
@@ -1,4 +1,4 @@
1
1
 
2
- > @sidurijs/self@1.0.1 build /home/zagin/Projects/vxnus-studio/projects/siduri-x/packages/self
2
+ > @sidurijs/self@1.0.2 build /home/zagin/Projects/vxnus-studio/projects/siduri-x/packages/self
3
3
  > tsc
4
4
 
@@ -1,12 +1,12 @@
1
1
 
2
- > @sidurijs/self@1.0.0 test /home/zagin/Projects/vxnus-studio/projects/siduri-x/packages/self
2
+ > @sidurijs/self@1.0.2 test /home/zagin/Projects/vxnus-studio/projects/siduri-x/packages/self
3
3
  > jest --config jest.config.json
4
4
 
5
- PASS src/cognitive-compiler.test.ts (25.826 s)
6
- PASS src/self.test.ts (28.099 s)
5
+ PASS src/cognitive-compiler.test.ts (11.852 s)
6
+ PASS src/self.test.ts (12.795 s)
7
7
  
8
8
  Test Suites: 2 passed, 2 total
9
9
  Tests: 25 passed, 25 total
10
10
  Snapshots: 0 total
11
- Time: 32.876 s
11
+ Time: 16.848 s, estimated 33 s
12
12
  Ran all test suites.
@@ -51,6 +51,7 @@ async function compilePersonaDocument(content, options = {}) {
51
51
  approvedByDefault: scan.safe,
52
52
  };
53
53
  });
54
+ const greeting = compilation.greeting || compilation.manifest.greeting;
54
55
  const manifest = {
55
56
  specVersion: compilation.manifest.specVersion || '2.0.0',
56
57
  kind: 'self',
@@ -58,6 +59,7 @@ async function compilePersonaDocument(content, options = {}) {
58
59
  name: compilation.manifest.name || compilation.manifest.identity.name,
59
60
  version: compilation.manifest.version || '1.0.0',
60
61
  author: compilation.manifest.author || { name: 'Cognitive Compiler' },
62
+ greeting,
61
63
  identity: {
62
64
  name: compilation.manifest.identity.name,
63
65
  archetype: compilation.manifest.identity.archetype,
@@ -86,6 +88,7 @@ async function compilePersonaDocument(content, options = {}) {
86
88
  isValid: true,
87
89
  compiledBy: 'brain',
88
90
  manifest,
91
+ greeting,
89
92
  scannedDirectives,
90
93
  errors: compilation.errors || [],
91
94
  };
package/dist/types.d.ts CHANGED
@@ -56,6 +56,7 @@ export interface SelfPackageManifest {
56
56
  directives: SelfPackageDirective[];
57
57
  guardrails?: string[];
58
58
  dialogueExamples?: SelfDialogueExample[];
59
+ greeting?: string;
59
60
  }
60
61
  export interface ScanResult {
61
62
  safe: boolean;
@@ -67,6 +68,7 @@ export interface ScannedDirective extends SelfPackageDirective {
67
68
  }
68
69
  export interface SelfPackageParseResult {
69
70
  manifest?: SelfPackageManifest;
71
+ greeting?: string;
70
72
  scannedDirectives: ScannedDirective[];
71
73
  isValid: boolean;
72
74
  errors: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sidurijs/self",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Siduri Self domain: Identity, personality, directional relationships, directives, ActiveSelfCompiler, and .self asset parser",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/index.js",
@@ -13,7 +13,7 @@
13
13
  }
14
14
  },
15
15
  "dependencies": {
16
- "@sidurijs/core": "1.0.3"
16
+ "@sidurijs/core": "1.0.4"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@types/jest": "^30.0.0",
@@ -66,6 +66,8 @@ export async function compilePersonaDocument(
66
66
  }
67
67
  );
68
68
 
69
+ const greeting = compilation.greeting || compilation.manifest.greeting;
70
+
69
71
  const manifest: SelfPackageManifest = {
70
72
  specVersion: compilation.manifest.specVersion || '2.0.0',
71
73
  kind: 'self',
@@ -73,6 +75,7 @@ export async function compilePersonaDocument(
73
75
  name: compilation.manifest.name || compilation.manifest.identity.name,
74
76
  version: compilation.manifest.version || '1.0.0',
75
77
  author: compilation.manifest.author || { name: 'Cognitive Compiler' },
78
+ greeting,
76
79
  identity: {
77
80
  name: compilation.manifest.identity.name,
78
81
  archetype: compilation.manifest.identity.archetype,
@@ -102,6 +105,7 @@ export async function compilePersonaDocument(
102
105
  isValid: true,
103
106
  compiledBy: 'brain',
104
107
  manifest,
108
+ greeting,
105
109
  scannedDirectives,
106
110
  errors: compilation.errors || [],
107
111
  };
package/src/types.ts CHANGED
@@ -74,6 +74,7 @@ export interface SelfPackageManifest {
74
74
  directives: SelfPackageDirective[];
75
75
  guardrails?: string[];
76
76
  dialogueExamples?: SelfDialogueExample[];
77
+ greeting?: string;
77
78
  }
78
79
 
79
80
  export interface ScanResult {
@@ -88,6 +89,7 @@ export interface ScannedDirective extends SelfPackageDirective {
88
89
 
89
90
  export interface SelfPackageParseResult {
90
91
  manifest?: SelfPackageManifest;
92
+ greeting?: string;
91
93
  scannedDirectives: ScannedDirective[];
92
94
  isValid: boolean;
93
95
  errors: string[];