@almadar/shell-node 0.1.0 → 1.0.0

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.
@@ -1,4 +1,4 @@
1
- export { GCS_ENDPOINT, WORKSPACE_HMAC_KEY_ID, WORKSPACE_HMAC_SECRET, kernelWorkspaceHost, workspaceBucketFromEnv, workspacesRoot } from './chunk-BJA6GYC5.js';
2
- import './chunk-23YAOI6P.js';
3
- import './chunk-UBZT5LDW.js';
1
+ export { kernelWorkspaceHost, workspaceBucketFromEnv, workspacesRoot } from './chunk-YLFK5OJN.js';
2
+ import './chunk-VQVAHUAX.js';
3
+ import './chunk-EEYGL7AB.js';
4
4
  import './chunk-BWMLDDCL.js';
@@ -0,0 +1,2 @@
1
+ export { behaviorCatalog, behaviorCatalogSync, behaviorDependencies, behaviorDescribe, behaviorResolve, behaviorSource, programCompose, programEval, programOsGrants, programPrint, programProve, programRead, programResolve, programResolveSchema, programStep, programValidate, runProgramEffect, workspaceAccessError } from './chunk-7QE32QQR.js';
2
+ export { installWorkspaceHost, installedWorkspaceHost, uninstallWorkspaceHost, workspaceOwnerSegment } from './chunk-BWMLDDCL.js';
package/package.json CHANGED
@@ -1,6 +1,9 @@
1
1
  {
2
2
  "name": "@almadar/shell-node",
3
- "version": "0.1.0",
3
+ "version": "1.0.0",
4
+ "orbRelease": {
5
+ "severity": "normal"
6
+ },
4
7
  "description": "Almadar TS shell node runtime pack: the Node os/* and program/* host of the kernel (os families, KernelProgram, workspace, program host).",
5
8
  "license": "BUSL-1.1",
6
9
  "type": "module",
@@ -34,13 +37,12 @@
34
37
  "access": "public"
35
38
  },
36
39
  "dependencies": {
37
- "@almadar/core": "^10.129.0",
38
- "@almadar/kernel": "^18.0.0",
39
- "@almadar/logger": "^1.18.0",
40
- "undici": "^6.29.1",
40
+ "@almadar/core": "^11.1.0",
41
+ "@almadar/kernel": "^19.0.1",
42
+ "@almadar/logger": "^2.1.0",
41
43
  "zod": "^4.6.7",
42
- "@almadar/std": "^16.255.0",
43
- "@almadar/shell-runtime": "^0.1.0"
44
+ "@almadar/std": "^17.0.0",
45
+ "@almadar/shell-runtime": "^1.0.0"
44
46
  },
45
47
  "devDependencies": {
46
48
  "@types/node": "^20.0.0",
@@ -1,42 +0,0 @@
1
- import { Agent, fetch } from 'undici';
2
- import { AsyncLocalStorage } from 'async_hooks';
3
- import { isIP } from 'net';
4
- import { lookup } from 'dns/promises';
5
- import { installNetPort, installCredentialScopeStorage } from '@almadar/shell-runtime';
6
-
7
- // src/pinned-fetch.ts
8
- var pinnedFetchNode = async (url, init, address) => {
9
- const dispatcher = new Agent({
10
- ...init.signal !== void 0 ? { headersTimeout: 0, bodyTimeout: 0 } : {},
11
- connect: {
12
- lookup: (_host, options, callback) => {
13
- const family = address.includes(":") ? 6 : 4;
14
- if (options.all === true) callback(null, [{ address, family }]);
15
- else callback(null, address, family);
16
- }
17
- }
18
- });
19
- try {
20
- return await fetch(url, { ...init, dispatcher });
21
- } finally {
22
- void dispatcher.close();
23
- }
24
- };
25
- async function resolveHostNode(host) {
26
- if (isIP(host) !== 0) return { literal: true, addresses: [host] };
27
- const found = await lookup(host, { all: true });
28
- return { literal: false, addresses: found.map((entry) => entry.address) };
29
- }
30
- var nodeNetPort = { resolve: resolveHostNode, fetch: pinnedFetchNode };
31
- function nodeCredentialScope() {
32
- return new AsyncLocalStorage();
33
- }
34
- var installed = false;
35
- function installNodeHostPorts() {
36
- if (installed) return;
37
- installed = true;
38
- installNetPort(nodeNetPort);
39
- installCredentialScopeStorage(nodeCredentialScope());
40
- }
41
-
42
- export { installNodeHostPorts, nodeCredentialScope, nodeNetPort, pinnedFetchNode, resolveHostNode };