@vxnus/siduri 2.0.33 → 2.0.34

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/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.13';
79
- const cliVersion = options.cliVersion || '^2.0.33';
78
+ const coreVersion = options.coreVersion || '^2.0.14';
79
+ const cliVersion = options.cliVersion || '^2.0.34';
80
80
  const canonicalOrder = ['brain', 'memory', 'knowledge', 'behavior', 'voice', 'body', 'mouth', 'hands', 'vision', 'ear', 'observation'];
81
81
  const manifests = [...options.selectedManifests].sort((a, b) => {
82
82
  const idxA = canonicalOrder.indexOf(a.organType);
@@ -328,11 +328,20 @@ function generateInstanceFiles(options) {
328
328
  ` }`,
329
329
  '',
330
330
  ` // API: Identity info`,
331
- ` if (pathname === '/me' && req.method === 'GET') {`,
331
+ ` if ((pathname === '/me' || pathname === '/teach/identity') && req.method === 'GET') {`,
332
332
  ` res.writeHead(200, { 'Content-Type': 'application/json' });`,
333
+ ` let identity = null;`,
334
+ ` try {`,
335
+ ` identity = typeof self?.getIdentity === 'function' ? await self.getIdentity(config.id) : null;`,
336
+ ` } catch {}`,
333
337
  ` res.end(JSON.stringify({`,
334
338
  ` id: config.id,`,
335
- ` name: config.name,`,
339
+ ` companionId: config.id,`,
340
+ ` name: identity?.name || config.name || 'Siduri',`,
341
+ ` archetype: identity?.archetype || identity?.role,`,
342
+ ` origin: identity?.origin,`,
343
+ ` ethos: identity?.ethos,`,
344
+ ` version: identity?.version || '1.0.0',`,
336
345
  ` organs: Object.keys(config.organs || {}),`,
337
346
  ` }));`,
338
347
  ` return;`,
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { OrganManifest } from './manifest';
3
- export declare const CLI_VERSION = "2.0.33";
3
+ export declare const CLI_VERSION = "2.0.34";
4
4
  import { colors } from './colors';
5
5
  export { colors };
6
6
  export declare function printHeader(): void;
package/dist/index.js CHANGED
@@ -60,7 +60,7 @@ const doctor_1 = require("./doctor");
60
60
  const db_1 = require("./db");
61
61
  const configurators_1 = require("./configurators");
62
62
  const execFile = (0, node_util_1.promisify)(node_child_process_1.execFile);
63
- exports.CLI_VERSION = '2.0.33';
63
+ exports.CLI_VERSION = '2.0.34';
64
64
  const colors_1 = require("./colors");
65
65
  Object.defineProperty(exports, "colors", { enumerable: true, get: function () { return colors_1.colors; } });
66
66
  function printHeader() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vxnus/siduri",
3
- "version": "2.0.33",
3
+ "version": "2.0.34",
4
4
  "description": "Experimental CLI for installing and configuring Siduri companions",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {