@siduri-x/core 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.
|
@@ -51,7 +51,7 @@ describe('Architecture: Core & Organ Package Boundaries (Phase 2)', () => {
|
|
|
51
51
|
{ dir: 'voice', name: '@siduri-x/voice', organType: 'voice', configKey: 'voice' },
|
|
52
52
|
{ dir: 'observation', name: '@siduri-x/observation', organType: 'observation', configKey: 'observation' },
|
|
53
53
|
];
|
|
54
|
-
it('package.json has zero dependencies on @siduri-
|
|
54
|
+
it('package.json has zero dependencies on @siduri-x organ packages', () => {
|
|
55
55
|
const pkg = JSON.parse(fs.readFileSync(corePackageJsonPath, 'utf8'));
|
|
56
56
|
const allDeps = {
|
|
57
57
|
...(pkg.dependencies || {}),
|
|
@@ -61,7 +61,7 @@ describe('Architecture: Core & Organ Package Boundaries (Phase 2)', () => {
|
|
|
61
61
|
const organDeps = Object.keys(allDeps).filter((dep) => dep.startsWith('@siduri-x/') && dep !== '@siduri-x/core');
|
|
62
62
|
expect(organDeps).toEqual([]);
|
|
63
63
|
});
|
|
64
|
-
it('source files in packages/core have zero imports referencing @siduri-
|
|
64
|
+
it('source files in packages/core have zero imports referencing @siduri-x organ packages', () => {
|
|
65
65
|
const files = fs.readdirSync(coreSrcDir).filter((f) => f.endsWith('.ts') && !f.endsWith('.test.ts'));
|
|
66
66
|
const forbiddenImports = [];
|
|
67
67
|
for (const file of files) {
|
package/dist/teaching.js
CHANGED
|
@@ -52,7 +52,7 @@ function extractDeterministicTeaching(message, context, sourceEventId) {
|
|
|
52
52
|
}
|
|
53
53
|
// 2. Actor's Name: "my name is X"
|
|
54
54
|
const myNameMatch = text.match(/\bmy name is\s+(.+?)(?=\s+and\s+(?:i\b|my\b|you\b)|[.;,]|$)/i);
|
|
55
|
-
if (myNameMatch && !/\b(?:private|public|
|
|
55
|
+
if (myNameMatch && !/\b(?:private|public|everywhere)\b/i.test(text)) {
|
|
56
56
|
const name = cleanValue(myNameMatch[1], 80);
|
|
57
57
|
claims.push({
|
|
58
58
|
subject: actorSubject,
|
|
@@ -66,8 +66,8 @@ function extractDeterministicTeaching(message, context, sourceEventId) {
|
|
|
66
66
|
sourceEventId,
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
|
-
// 3. Preferred Address / Call me X: "call me X
|
|
70
|
-
const callMeMatch = text.match(/\b(?:(?:from now on|only),?\s*)?call me\s+(.+?)(?:\s+(in private|privately|
|
|
69
|
+
// 3. Preferred Address / Call me X: "call me X"
|
|
70
|
+
const callMeMatch = text.match(/\b(?:(?:from now on|only),?\s*)?call me\s+(.+?)(?:\s+(in private|privately|in public|publicly|everywhere|in direct conversations))?(?=\s+and\s+(?:i\b|my\b|you\b)|[.;,]|$)/i);
|
|
71
71
|
if (callMeMatch) {
|
|
72
72
|
const address = cleanValue(callMeMatch[1], 80);
|
|
73
73
|
const scopePhrase = (callMeMatch[2] || '').toLowerCase();
|
|
@@ -79,7 +79,7 @@ function extractDeterministicTeaching(message, context, sourceEventId) {
|
|
|
79
79
|
claimAudiences = [context?.conversation?.audienceId || `audience-private-${actorId}`];
|
|
80
80
|
directiveInstruction += ' in private conversations';
|
|
81
81
|
}
|
|
82
|
-
else if (scopePhrase.includes('
|
|
82
|
+
else if (scopePhrase.includes('public') || scopePhrase.includes('publicly')) {
|
|
83
83
|
claimSensitivity = 'public';
|
|
84
84
|
claimAudiences = ['audience-public'];
|
|
85
85
|
directiveInstruction += ' in public conversations';
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@siduri-x/core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Core runtime types, evidence protocol, action dispatcher, capability validation, and SiduriRuntime protocol",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "https://github.com/
|
|
8
|
+
"url": "https://github.com/vxnus-studio/siduri-x",
|
|
9
9
|
"directory": "packages/core"
|
|
10
10
|
},
|
|
11
11
|
"publishConfig": {
|