@vxnus/siduri 0.0.4 → 0.0.5

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/README.md CHANGED
@@ -5,7 +5,7 @@ Experimental CLI for creating and configuring Siduri companions.
5
5
  Requires Node.js 20 or newer.
6
6
 
7
7
  ```bash
8
- npx @vxnus/siduri@0.0.4 create
8
+ npx @vxnus/siduri@0.0.5 create
9
9
  ```
10
10
 
11
11
  The companion name becomes the project directory. For example, answering
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ const inquirer_1 = __importDefault(require("inquirer"));
14
14
  const e_knowledge_1 = require("@vxnus/e-knowledge");
15
15
  const execFile = (0, node_util_1.promisify)(node_child_process_1.execFile);
16
16
  const DEFAULT_REGISTRY_URL = 'https://e.vxnus.xyz/api/v1/knowledge';
17
- const CLI_VERSION = '0.0.4';
17
+ const CLI_VERSION = '0.0.5';
18
18
  const RUNTIME_DEPENDENCIES = {
19
19
  '@vxnus/e': '^0.1.4',
20
20
  '@vxnus/e-knowledge': '^0.1.4',
@@ -33,7 +33,7 @@ const colors = {
33
33
  };
34
34
  function printHeader() {
35
35
  console.log(`\n${colors.cyan}◈ SIDURI${colors.reset} ${colors.dim}companion setup${colors.reset}`);
36
- console.log(`${colors.yellow}Experimental release 0.0.4${colors.reset} · configuration may change\n`);
36
+ console.log(`${colors.yellow}Experimental release 0.0.5${colors.reset} · configuration may change\n`);
37
37
  }
38
38
  function printSection(title) {
39
39
  console.log(`\n${colors.cyan}── ${title} ${'─'.repeat(Math.max(2, 42 - title.length))}${colors.reset}`);
@@ -266,12 +266,16 @@ async function configureKnowledge() {
266
266
  if (pack.distribution.kind !== 'provider') {
267
267
  throw new Error('Archive installation was declined and no hosted provider is available');
268
268
  }
269
- const provider = (0, e_knowledge_1.createRemoteProvider)({ baseUrl: pack.distribution.url, timeoutMs: 5000 });
269
+ const provider = (0, e_knowledge_1.createRemoteProvider)({ baseUrl: pack.distribution.url, timeoutMs: 5000, manifest: pack });
270
270
  await withTask('Checking provider manifest', async () => {
271
- if (!provider.manifest) {
272
- throw new Error('Remote knowledge provider does not support manifest inspection');
271
+ if (provider.manifest) {
272
+ return provider.manifest();
273
273
  }
274
- return provider.manifest();
274
+ const cleanUrl = pack.distribution.url.replace(/\/+$/, '');
275
+ const res = await fetch(`${cleanUrl}/manifest`, { headers: { accept: 'application/json' } });
276
+ if (res.ok)
277
+ return res.json();
278
+ return pack;
275
279
  });
276
280
  printSuccess(`Provider ready · ${pack.id}`);
277
281
  return { provider: 'e-hub', registryUrl, packId: pack.id, timeoutMs: 5000 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vxnus/siduri",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "Experimental CLI for installing and configuring Siduri companions",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {