@vxnus/siduri 2.0.23 → 2.0.24
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/builtin-manifests.js +1 -1
- package/dist/generator.js +36 -4
- package/dist/generator.test.js +2 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -135,7 +135,7 @@ exports.BUILTIN_ORGAN_MANIFESTS = [
|
|
|
135
135
|
{
|
|
136
136
|
name: '@siduri-x/ear',
|
|
137
137
|
organType: 'ear',
|
|
138
|
-
version: '2.0.
|
|
138
|
+
version: '2.0.2',
|
|
139
139
|
displayName: 'Ear (Perception Ingress)',
|
|
140
140
|
description: 'Multi-modal sensory input ingestion, transcription bounds, and mime validation',
|
|
141
141
|
entrypoint: './dist/index.js',
|
package/dist/generator.js
CHANGED
|
@@ -75,8 +75,8 @@ function generateInstanceFiles(options) {
|
|
|
75
75
|
const instanceName = options.name || 'my-siduri';
|
|
76
76
|
const companionSlug = instanceName.toLowerCase().replace(/[^a-z0-9_-]/g, '') || 'default';
|
|
77
77
|
const instanceId = options.id || 'default';
|
|
78
|
-
const coreVersion = options.coreVersion || '^2.0.
|
|
79
|
-
const cliVersion = options.cliVersion || '^2.0.
|
|
78
|
+
const coreVersion = options.coreVersion || '^2.0.8';
|
|
79
|
+
const cliVersion = options.cliVersion || '^2.0.24';
|
|
80
80
|
const manifests = options.selectedManifests;
|
|
81
81
|
const hasMemory = manifests.some((m) => m.organType === 'memory');
|
|
82
82
|
const hasVoice = manifests.some((m) => m.organType === 'voice');
|
|
@@ -446,7 +446,23 @@ function generateInstanceFiles(options) {
|
|
|
446
446
|
` req.on('end', async () => {`,
|
|
447
447
|
` try {`,
|
|
448
448
|
` const payload = JSON.parse(body || '{}');`,
|
|
449
|
-
` const chatContext =
|
|
449
|
+
` const chatContext = {`,
|
|
450
|
+
` companionId: config.id,`,
|
|
451
|
+
` actor: {`,
|
|
452
|
+
` actorId: 'owner-user',`,
|
|
453
|
+
` sessionId: \`sess-\${config.id}\`,`,
|
|
454
|
+
` authorizationRole: 'administrator',`,
|
|
455
|
+
` capabilities: ['chat', 'memory:approve', 'action:execute'],`,
|
|
456
|
+
` authenticated: true,`,
|
|
457
|
+
` },`,
|
|
458
|
+
` conversation: {`,
|
|
459
|
+
` channel: 'direct',`,
|
|
460
|
+
` correlationId: \`corr-\${Date.now()}\`,`,
|
|
461
|
+
` },`,
|
|
462
|
+
` source: 'local',`,
|
|
463
|
+
` ...(payload.context || {}),`,
|
|
464
|
+
` ...(payload.mode ? { mode: payload.mode } : {}),`,
|
|
465
|
+
` };`,
|
|
450
466
|
` const response = await dispatchCompanionChat(runtime, {`,
|
|
451
467
|
` id: config.id,`,
|
|
452
468
|
` companionId: config.id,`,
|
|
@@ -489,7 +505,23 @@ function generateInstanceFiles(options) {
|
|
|
489
505
|
'',
|
|
490
506
|
` try {`,
|
|
491
507
|
` const payload = JSON.parse(body || '{}');`,
|
|
492
|
-
` const chatContext =
|
|
508
|
+
` const chatContext = {`,
|
|
509
|
+
` companionId: config.id,`,
|
|
510
|
+
` actor: {`,
|
|
511
|
+
` actorId: 'owner-user',`,
|
|
512
|
+
` sessionId: \`sess-\${config.id}\`,`,
|
|
513
|
+
` authorizationRole: 'administrator',`,
|
|
514
|
+
` capabilities: ['chat', 'memory:approve', 'action:execute'],`,
|
|
515
|
+
` authenticated: true,`,
|
|
516
|
+
` },`,
|
|
517
|
+
` conversation: {`,
|
|
518
|
+
` channel: 'direct',`,
|
|
519
|
+
` correlationId: \`corr-\${Date.now()}\`,`,
|
|
520
|
+
` },`,
|
|
521
|
+
` source: 'local',`,
|
|
522
|
+
` ...(payload.context || {}),`,
|
|
523
|
+
` ...(payload.mode ? { mode: payload.mode } : {}),`,
|
|
524
|
+
` };`,
|
|
493
525
|
` const response = await dispatchCompanionChat(runtime, {`,
|
|
494
526
|
` id: config.id,`,
|
|
495
527
|
` companionId: config.id,`,
|
package/dist/generator.test.js
CHANGED
|
@@ -204,5 +204,7 @@ describe('Instance Generator Composition Invariants (Phase 3)', () => {
|
|
|
204
204
|
const chatStreamSlice = srcIndexJs.slice(chatStreamEndpointIndex, chatStreamEndpointIndex + 1500);
|
|
205
205
|
expect(chatSlice).toContain("const payload = JSON.parse(body || '{}');");
|
|
206
206
|
expect(chatStreamSlice).toContain("const payload = JSON.parse(body || '{}');");
|
|
207
|
+
expect(chatSlice).toContain("channel: 'direct'");
|
|
208
|
+
expect(chatStreamSlice).toContain("channel: 'direct'");
|
|
207
209
|
});
|
|
208
210
|
});
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -26,7 +26,7 @@ const doctor_1 = require("./doctor");
|
|
|
26
26
|
const db_1 = require("./db");
|
|
27
27
|
const configurators_1 = require("./configurators");
|
|
28
28
|
const execFile = (0, node_util_1.promisify)(node_child_process_1.execFile);
|
|
29
|
-
exports.CLI_VERSION = '2.0.
|
|
29
|
+
exports.CLI_VERSION = '2.0.24';
|
|
30
30
|
const colors_1 = require("./colors");
|
|
31
31
|
Object.defineProperty(exports, "colors", { enumerable: true, get: function () { return colors_1.colors; } });
|
|
32
32
|
function printHeader() {
|