@astrale-os/cli 0.8.0-alpha.0 → 0.8.1-alpha.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.
- package/README.md +4 -1
- package/dist/astrale.js +11 -4
- package/package.json +10 -3
- package/studio/client/dist/assets/elk-api-DVw5WDTH.js +1 -0
- package/studio/client/dist/assets/elk-worker.min-C9JGDOE-.js +6312 -0
- package/studio/client/dist/assets/index-BQnJ5sgd.css +1 -0
- package/studio/client/dist/assets/index-CTbkDp3z.js +81 -0
- package/studio/client/dist/assets/index-ChOr3yP0.css +1 -0
- package/studio/client/dist/assets/index-Dl709Ra1.js +8 -0
- package/studio/client/dist/index.html +2 -2
- package/studio/tsconfig.json +23 -0
- package/viewer/tsconfig.json +13 -0
- package/studio/client/dist/assets/index-BaqEuIQJ.js +0 -109
- package/studio/client/dist/assets/index-jRdExahh.css +0 -1
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@ The npm build bundles all dependencies, so no private-registry access is needed.
|
|
|
33
33
|
`astrale studio` launches a local web GUI to author and inspect a domain, with
|
|
34
34
|
local Claude Code and Codex agent harnesses (`--harness claude|codex`); it runs on
|
|
35
35
|
[Bun](https://bun.sh), so install Bun and keep it on `PATH` to use that command
|
|
36
|
-
(the rest of the CLI needs only Node ≥
|
|
36
|
+
(the rest of the CLI needs only Node ≥ 22). The curl-installed standalone binary
|
|
37
37
|
above does not include the studio — use the npm install for `astrale studio`.
|
|
38
38
|
|
|
39
39
|
> Pre-1.0, `npm install -g @astrale-os/cli` installs the latest published
|
|
@@ -140,6 +140,9 @@ CLI state lives under `~/.astrale/`:
|
|
|
140
140
|
|
|
141
141
|
## Development
|
|
142
142
|
|
|
143
|
+
Contributors use Node.js 24.18.0 and pnpm 11.13.1. The source-worktree runtime
|
|
144
|
+
contract is enforced separately from the published CLI's Node ≥ 22 contract.
|
|
145
|
+
|
|
143
146
|
```bash
|
|
144
147
|
# From the workspace root
|
|
145
148
|
pnpm install
|
package/dist/astrale.js
CHANGED
|
@@ -2576,7 +2576,7 @@ var package_default;
|
|
|
2576
2576
|
var init_package = __esm(() => {
|
|
2577
2577
|
package_default = {
|
|
2578
2578
|
name: "@astrale-os/cli",
|
|
2579
|
-
version: "0.8.
|
|
2579
|
+
version: "0.8.1-alpha.0",
|
|
2580
2580
|
description: "Astrale CLI — connect to existing Astrale kernels",
|
|
2581
2581
|
keywords: [
|
|
2582
2582
|
"astrale",
|
|
@@ -2617,7 +2617,7 @@ var init_package = __esm(() => {
|
|
|
2617
2617
|
prepare: "husky",
|
|
2618
2618
|
build: "bun scripts/build.ts",
|
|
2619
2619
|
prepack: "bun scripts/build.ts",
|
|
2620
|
-
typecheck: "tsgo --noEmit && tsgo --noEmit -p viewer",
|
|
2620
|
+
typecheck: "tsgo --noEmit && tsgo --noEmit -p viewer && tsgo --noEmit -p studio",
|
|
2621
2621
|
lint: "oxlint .",
|
|
2622
2622
|
"lint:fix": "oxlint --fix .",
|
|
2623
2623
|
format: "pnpm exec oxfmt --write .",
|
|
@@ -2663,10 +2663,17 @@ var init_package = __esm(() => {
|
|
|
2663
2663
|
"oxfmt --write"
|
|
2664
2664
|
]
|
|
2665
2665
|
},
|
|
2666
|
+
devEngines: {
|
|
2667
|
+
runtime: {
|
|
2668
|
+
name: "node",
|
|
2669
|
+
version: ">=24 <25",
|
|
2670
|
+
onFail: "error"
|
|
2671
|
+
}
|
|
2672
|
+
},
|
|
2666
2673
|
engines: {
|
|
2667
|
-
node: ">=
|
|
2674
|
+
node: ">=22"
|
|
2668
2675
|
},
|
|
2669
|
-
packageManager: "pnpm@
|
|
2676
|
+
packageManager: "pnpm@11.13.1"
|
|
2670
2677
|
};
|
|
2671
2678
|
});
|
|
2672
2679
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrale-os/cli",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1-alpha.0",
|
|
4
4
|
"description": "Astrale CLI — connect to existing Astrale kernels",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"astrale",
|
|
@@ -74,13 +74,20 @@
|
|
|
74
74
|
"oxfmt --write"
|
|
75
75
|
]
|
|
76
76
|
},
|
|
77
|
+
"devEngines": {
|
|
78
|
+
"runtime": {
|
|
79
|
+
"name": "node",
|
|
80
|
+
"version": ">=24 <25",
|
|
81
|
+
"onFail": "error"
|
|
82
|
+
}
|
|
83
|
+
},
|
|
77
84
|
"engines": {
|
|
78
|
-
"node": ">=
|
|
85
|
+
"node": ">=22"
|
|
79
86
|
},
|
|
80
87
|
"scripts": {
|
|
81
88
|
"preinstall": "node .check-workspace.cjs",
|
|
82
89
|
"build": "bun scripts/build.ts",
|
|
83
|
-
"typecheck": "tsgo --noEmit && tsgo --noEmit -p viewer",
|
|
90
|
+
"typecheck": "tsgo --noEmit && tsgo --noEmit -p viewer && tsgo --noEmit -p studio",
|
|
84
91
|
"lint": "oxlint .",
|
|
85
92
|
"lint:fix": "oxlint --fix .",
|
|
86
93
|
"format": "pnpm exec oxfmt --write .",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{m as L}from"./index-CTbkDp3z.js";function S(y,b){for(var u=0;u<b.length;u++){const a=b[u];if(typeof a!="string"&&!Array.isArray(a)){for(const i in a)if(i!=="default"&&!(i in y)){const n=Object.getOwnPropertyDescriptor(a,i);n&&Object.defineProperty(y,i,n.get?n:{enumerable:!0,get:()=>a[i]})}}}return Object.freeze(Object.defineProperty(y,Symbol.toStringTag,{value:"Module"}))}function w(y){throw new Error('Could not dynamically require "'+y+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var O={exports:{}},j;function C(){return j||(j=1,(function(y,b){(function(u){y.exports=u()})(function(){return(function(){function u(a,i,n){function d(f,_){if(!i[f]){if(!a[f]){var h=typeof w=="function"&&w;if(!_&&h)return h(f,!0);if(g)return g(f,!0);var o=new Error("Cannot find module '"+f+"'");throw o.code="MODULE_NOT_FOUND",o}var e=i[f]={exports:{}};a[f][0].call(e.exports,function(r){var t=a[f][1][r];return d(t||r)},e,e.exports,u,a,i,n)}return i[f].exports}for(var g=typeof w=="function"&&w,m=0;m<n.length;m++)d(n[m]);return d}return u})()({1:[function(u,a,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;function n(o){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(o)}function d(o,e){if(!(o instanceof e))throw new TypeError("Cannot call a class as a function")}function g(o,e){for(var r=0;r<e.length;r++){var t=e[r];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(o,f(t.key),t)}}function m(o,e,r){return e&&g(o.prototype,e),Object.defineProperty(o,"prototype",{writable:!1}),o}function f(o){var e=_(o,"string");return n(e)=="symbol"?e:e+""}function _(o,e){if(n(o)!="object"||!o)return o;var r=o[Symbol.toPrimitive];if(r!==void 0){var t=r.call(o,e);if(n(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(o)}i.default=(function(){function o(){var e=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=r.defaultLayoutOptions,s=t===void 0?{}:t,l=r.algorithms,v=l===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:l,c=r.workerFactory,p=r.workerUrl;if(d(this,o),this.defaultLayoutOptions=s,this.initialized=!1,typeof p>"u"&&typeof c>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var k=c;typeof p<"u"&&typeof c>"u"&&(k=function(M){return new Worker(M)});var E=k(p);if(typeof E.postMessage!="function")throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new h(E),this.worker.postMessage({cmd:"register",algorithms:v}).then(function(P){return e.initialized=!0}).catch(console.err)}return m(o,[{key:"layout",value:function(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=t.layoutOptions,l=s===void 0?this.defaultLayoutOptions:s,v=t.logging,c=v===void 0?!1:v,p=t.measureExecutionTime,k=p===void 0?!1:p;return r?this.worker.postMessage({cmd:"layout",graph:r,layoutOptions:l,options:{logging:c,measureExecutionTime:k}}):Promise.reject(new Error("Missing mandatory parameter 'graph'."))}},{key:"knownLayoutAlgorithms",value:function(){return this.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function(){return this.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function(){return this.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function(){this.worker&&this.worker.terminate()}}])})();var h=(function(){function o(e){var r=this;if(d(this,o),e===void 0)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=e,this.worker.onmessage=function(t){setTimeout(function(){r.receive(r,t)},0)}}return m(o,[{key:"postMessage",value:function(r){var t=this.id||0;this.id=t+1,r.id=t;var s=this;return new Promise(function(l,v){s.resolvers[t]=function(c,p){c?(s.convertGwtStyleError(c),v(c)):l(p)},s.worker.postMessage(r)})}},{key:"receive",value:function(r,t){var s=t.data,l=r.resolvers[s.id];l&&(delete r.resolvers[s.id],s.error?l(s.error):l(null,s.data))}},{key:"terminate",value:function(){this.worker&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(r){if(r){var t=r.__java$exception;t&&(t.cause&&t.cause.backingJsObject&&(r.cause=t.cause.backingJsObject,this.convertGwtStyleError(r.cause)),delete r.__java$exception)}}}])})()},{}],2:[function(u,a,i){var n=u("./elk-api.js").default;Object.defineProperty(a.exports,"__esModule",{value:!0}),a.exports=n,n.default=n},{"./elk-api.js":1}]},{},[2])(2)})})(O)),O.exports}var x=C();const A=L(x),q=S({__proto__:null,default:A},[x]);export{q as e};
|