@vxnus/siduri 0.1.8 → 0.1.10

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.
Files changed (61) hide show
  1. package/dist/builtin-manifests.d.ts +2 -0
  2. package/dist/builtin-manifests.js +492 -0
  3. package/dist/clean-machine-e2e.test.d.ts +1 -0
  4. package/dist/clean-machine-e2e.test.js +236 -0
  5. package/dist/configurators/behavior.d.ts +2 -0
  6. package/dist/configurators/behavior.js +36 -0
  7. package/dist/configurators/body.d.ts +2 -0
  8. package/dist/configurators/body.js +60 -0
  9. package/dist/configurators/brain.d.ts +6 -0
  10. package/dist/configurators/brain.js +80 -0
  11. package/dist/configurators/ear.d.ts +2 -0
  12. package/dist/configurators/ear.js +28 -0
  13. package/dist/configurators/hands.d.ts +2 -0
  14. package/dist/configurators/hands.js +27 -0
  15. package/dist/configurators/index.d.ts +24 -0
  16. package/dist/configurators/index.js +78 -0
  17. package/dist/configurators/knowledge.d.ts +6 -0
  18. package/dist/configurators/knowledge.js +100 -0
  19. package/dist/configurators/memory.d.ts +2 -0
  20. package/dist/configurators/memory.js +44 -0
  21. package/dist/configurators/mouth.d.ts +2 -0
  22. package/dist/configurators/mouth.js +15 -0
  23. package/dist/configurators/observation.d.ts +2 -0
  24. package/dist/configurators/observation.js +12 -0
  25. package/dist/configurators/types.d.ts +12 -0
  26. package/dist/configurators/types.js +2 -0
  27. package/dist/configurators/vision.d.ts +2 -0
  28. package/dist/configurators/vision.js +39 -0
  29. package/dist/configurators/voice.d.ts +2 -0
  30. package/dist/configurators/voice.js +477 -0
  31. package/dist/configurators.test.d.ts +1 -0
  32. package/dist/configurators.test.js +331 -0
  33. package/dist/db.d.ts +25 -0
  34. package/dist/db.js +152 -0
  35. package/dist/discovery.d.ts +13 -0
  36. package/dist/discovery.js +87 -0
  37. package/dist/discovery.test.d.ts +1 -0
  38. package/dist/discovery.test.js +69 -0
  39. package/dist/doctor-db.test.d.ts +1 -0
  40. package/dist/doctor-db.test.js +141 -0
  41. package/dist/doctor.d.ts +19 -0
  42. package/dist/doctor.js +225 -0
  43. package/dist/generator.d.ts +21 -0
  44. package/dist/generator.js +666 -0
  45. package/dist/generator.test.d.ts +1 -0
  46. package/dist/generator.test.js +197 -0
  47. package/dist/index.d.ts +20 -0
  48. package/dist/index.js +401 -0
  49. package/dist/manifest.d.ts +33 -0
  50. package/dist/manifest.js +40 -0
  51. package/dist/providers/knowledge-hub.d.ts +37 -0
  52. package/dist/providers/knowledge-hub.js +141 -0
  53. package/dist/providers/openrouter.d.ts +32 -0
  54. package/dist/providers/openrouter.js +201 -0
  55. package/dist/release-check.d.ts +9 -0
  56. package/dist/release-check.js +133 -0
  57. package/dist/runtime-parity.test.d.ts +1 -0
  58. package/dist/runtime-parity.test.js +140 -0
  59. package/dist/web-template.d.ts +2 -0
  60. package/dist/web-template.js +557 -0
  61. package/package.json +1 -1
@@ -0,0 +1,100 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.configureKnowledge = configureKnowledge;
7
+ const inquirer_1 = __importDefault(require("inquirer"));
8
+ const knowledge_hub_1 = require("../providers/knowledge-hub");
9
+ async function configureKnowledge(_context, options = {}) {
10
+ const client = options.client || new knowledge_hub_1.KnowledgeHubClient();
11
+ const { source } = await inquirer_1.default.prompt({
12
+ type: 'list',
13
+ name: 'source',
14
+ message: 'Knowledge source?',
15
+ choices: [
16
+ { name: 'E Knowledge Hub (Search and attach remote factual pack)', value: 'e-hub' },
17
+ { name: 'Do not use knowledge', value: 'none' },
18
+ ],
19
+ });
20
+ if (source === 'none') {
21
+ return {
22
+ config: {
23
+ provider: 'none',
24
+ },
25
+ summary: {
26
+ Source: 'Do not use knowledge',
27
+ },
28
+ };
29
+ }
30
+ // E Knowledge Hub flow
31
+ while (true) {
32
+ const { packId } = await inquirer_1.default.prompt({
33
+ type: 'input',
34
+ name: 'packId',
35
+ message: 'Search E Knowledge Hub or enter package ID:',
36
+ default: '@vxnus/e-teyvat',
37
+ validate: (val) => val.trim().length > 0 || 'Please enter a package ID.',
38
+ });
39
+ const trimmedPackId = packId.trim();
40
+ let manifest;
41
+ try {
42
+ process.stdout.write('\u001b[2mSearching E Knowledge Hub...\u001b[0m');
43
+ manifest = await client.resolveProvider(trimmedPackId);
44
+ process.stdout.write('\r\u001b[32m✓\u001b[0m Checking provider manifest\n');
45
+ }
46
+ catch (err) {
47
+ process.stdout.write('\r\u001b[33m!\u001b[0m Provider resolution failed\n');
48
+ console.log(`\u001b[33mReason:\u001b[0m ${err.message}\n`);
49
+ const { failureAction } = await inquirer_1.default.prompt({
50
+ type: 'list',
51
+ name: 'failureAction',
52
+ message: 'What would you like to do?',
53
+ choices: [
54
+ { name: 'Try again / Search another provider', value: 'retry' },
55
+ { name: 'Do not use knowledge', value: 'skip' },
56
+ { name: 'Cancel', value: 'cancel' },
57
+ ],
58
+ });
59
+ if (failureAction === 'retry') {
60
+ continue;
61
+ }
62
+ if (failureAction === 'skip') {
63
+ return {
64
+ config: { provider: 'none' },
65
+ summary: { Source: 'Do not use knowledge' },
66
+ };
67
+ }
68
+ throw new Error('Knowledge configuration cancelled.');
69
+ }
70
+ // Display provider summary
71
+ (0, knowledge_hub_1.displayKnowledgeProviderSummary)(manifest, trimmedPackId);
72
+ const { confirmProvider } = await inquirer_1.default.prompt({
73
+ type: 'list',
74
+ name: 'confirmProvider',
75
+ message: 'Use this knowledge provider?',
76
+ choices: [
77
+ { name: 'Yes, use this provider', value: 'yes' },
78
+ { name: 'Choose another provider', value: 'retry' },
79
+ ],
80
+ });
81
+ if (confirmProvider === 'yes') {
82
+ return {
83
+ config: {
84
+ provider: 'e-hub',
85
+ registryUrl: 'https://e.vxnus.xyz/api/v1/knowledge',
86
+ packId: trimmedPackId,
87
+ },
88
+ summary: {
89
+ Source: 'E Knowledge Hub',
90
+ Provider: manifest.displayName || manifest.name,
91
+ Package: trimmedPackId,
92
+ Version: manifest.version,
93
+ },
94
+ metadata: {
95
+ manifest,
96
+ },
97
+ };
98
+ }
99
+ }
100
+ }
@@ -0,0 +1,2 @@
1
+ import { OrganConfiguratorContext, OrganConfigurationResult } from './types';
2
+ export declare function configureMemory(_context: OrganConfiguratorContext): Promise<OrganConfigurationResult>;
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.configureMemory = configureMemory;
7
+ const inquirer_1 = __importDefault(require("inquirer"));
8
+ async function configureMemory(_context) {
9
+ const { database } = await inquirer_1.default.prompt({
10
+ type: 'list',
11
+ name: 'database',
12
+ message: 'Memory database?',
13
+ choices: [
14
+ { name: 'PostgreSQL (FTS relational claims with ACID durability)', value: 'postgres' },
15
+ ],
16
+ });
17
+ const { deployment } = await inquirer_1.default.prompt({
18
+ type: 'list',
19
+ name: 'deployment',
20
+ message: 'PostgreSQL deployment target?',
21
+ choices: [
22
+ { name: 'Supabase (Hosted Postgres with connection pooling)', value: 'supabase' },
23
+ { name: 'Neon (Serverless Postgres with branch-per-companion)', value: 'neon' },
24
+ { name: 'Local PostgreSQL (Docker or system service)', value: 'local' },
25
+ { name: 'Other PostgreSQL URL', value: 'other' },
26
+ ],
27
+ });
28
+ const deploymentDisplayNames = {
29
+ supabase: 'Supabase',
30
+ neon: 'Neon',
31
+ local: 'Local PostgreSQL',
32
+ other: 'Other PostgreSQL',
33
+ };
34
+ return {
35
+ config: {
36
+ provider: database,
37
+ deployment,
38
+ },
39
+ summary: {
40
+ Database: 'PostgreSQL',
41
+ Deploy: deploymentDisplayNames[deployment] || deployment,
42
+ },
43
+ };
44
+ }
@@ -0,0 +1,2 @@
1
+ import { OrganConfiguratorContext, OrganConfigurationResult } from './types';
2
+ export declare function configureMouth(_context: OrganConfiguratorContext): Promise<OrganConfigurationResult>;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.configureMouth = configureMouth;
4
+ async function configureMouth(_context) {
5
+ return {
6
+ config: {
7
+ defaultMedium: 'web',
8
+ maxTextLength: 8000,
9
+ },
10
+ summary: {
11
+ 'Default Medium': 'Web',
12
+ 'Max Text Length': '8000 chars',
13
+ },
14
+ };
15
+ }
@@ -0,0 +1,2 @@
1
+ import { OrganConfiguratorContext, OrganConfigurationResult } from './types';
2
+ export declare function configureObservation(_context: OrganConfiguratorContext): Promise<OrganConfigurationResult>;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.configureObservation = configureObservation;
4
+ async function configureObservation(_context) {
5
+ return {
6
+ config: {},
7
+ summary: {
8
+ Provider: 'Grounded Observation Ingest',
9
+ Deduplication: 'Cryptographic SHA-256 Hashing',
10
+ },
11
+ };
12
+ }
@@ -0,0 +1,12 @@
1
+ import { OrganManifest } from '../manifest';
2
+ export interface OrganConfigurationResult {
3
+ config: Record<string, unknown>;
4
+ summary?: Record<string, unknown>;
5
+ metadata?: Record<string, unknown>;
6
+ }
7
+ export interface OrganConfiguratorContext {
8
+ companionName: string;
9
+ manifest: OrganManifest;
10
+ existingConfig?: Record<string, unknown>;
11
+ }
12
+ export type OrganConfigurator = (context: OrganConfiguratorContext) => Promise<OrganConfigurationResult>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ import { OrganConfiguratorContext, OrganConfigurationResult } from './types';
2
+ export declare function configureVision(_context: OrganConfiguratorContext): Promise<OrganConfigurationResult>;
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.configureVision = configureVision;
7
+ const inquirer_1 = __importDefault(require("inquirer"));
8
+ async function configureVision(_context) {
9
+ const { model } = await inquirer_1.default.prompt({
10
+ type: 'list',
11
+ name: 'model',
12
+ message: 'Vision model:',
13
+ choices: [
14
+ { name: 'GPT-4 Vision / GPT-4o (Multimodal OCR & Object Inspection)', value: 'gpt-4-vision' },
15
+ { name: 'Claude 3.5 Sonnet Vision', value: 'anthropic/claude-3.5-sonnet' },
16
+ { name: 'Custom Vision Model', value: 'custom' },
17
+ ],
18
+ });
19
+ let selectedModel = model;
20
+ if (model === 'custom') {
21
+ const { customModel } = await inquirer_1.default.prompt({
22
+ type: 'input',
23
+ name: 'customModel',
24
+ message: 'Vision Model ID:',
25
+ default: 'gpt-4-vision',
26
+ });
27
+ selectedModel = customModel.trim();
28
+ }
29
+ return {
30
+ config: {
31
+ provider: 'openrouter',
32
+ model: selectedModel,
33
+ },
34
+ summary: {
35
+ Provider: 'OpenRouter Vision',
36
+ Model: selectedModel,
37
+ },
38
+ };
39
+ }
@@ -0,0 +1,2 @@
1
+ import { OrganConfiguratorContext, OrganConfigurationResult } from './types';
2
+ export declare function configureVoice(_context: OrganConfiguratorContext): Promise<OrganConfigurationResult>;