@dhzh/foundry 0.0.1-beta.1 → 0.0.1-beta.3
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 +11 -0
- package/bin/index.js +2 -0
- package/dist/bin/index.cjs +1 -0
- package/dist/bin/index.d.cts +1 -0
- package/dist/bin/index.d.mts +1 -0
- package/dist/bin/index.mjs +1 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +4 -0
- package/dist/index.d.mts +4 -0
- package/dist/index.mjs +1 -0
- package/package.json +22 -8
package/README.md
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
1
|
# @dhzh/foundry
|
|
2
2
|
|
|
3
3
|
An AI-native local developer runtime for tools, skills, agents, and workflows.
|
|
4
|
+
|
|
5
|
+
## CLI
|
|
6
|
+
|
|
7
|
+
Build the package and start the local Web UI:
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
pnpm run build
|
|
11
|
+
node bin/index.js
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
The CLI starts a local Web UI service at `http://127.0.0.1:7777`.
|
package/bin/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));let c=require("cac");c=s(c,1);let l=require("consola"),u=require("hono"),d=require("@hono/node-server"),f=require("hono/jsx/jsx-runtime");function p(){let e=new u.Hono;return e.get(`/`,e=>e.html((0,f.jsx)(`html`,{children:(0,f.jsx)(`body`,{children:(0,f.jsx)(`h1`,{children:`Hello Hono!`})})}))),e}function m(){return{server:(0,d.serve)({fetch:p().fetch,hostname:`127.0.0.1`,port:7777}),url:`http://127.0.0.1:7777`}}const h=(0,c.default)(`foundry`);h.command(`[...args]`,`Open a local Foundry workspace`).action(()=>{let e=m();l.consola.box(`Foundry workspace is running at ${e.url}`)}),h.help(),h.parse();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"cac";import{consola as t}from"consola";import{Hono as n}from"hono";import{serve as r}from"@hono/node-server";import{jsx as i}from"hono/jsx/jsx-runtime";function a(){let e=new n;return e.get(`/`,e=>e.html(i(`html`,{children:i(`body`,{children:i(`h1`,{children:`Hello Hono!`})})}))),e}function o(){return{server:r({fetch:a().fetch,hostname:`127.0.0.1`,port:7777}),url:`http://127.0.0.1:7777`}}const s=e(`foundry`);s.command(`[...args]`,`Open a local Foundry workspace`).action(()=>{let e=o();t.box(`Foundry workspace is running at ${e.url}`)}),s.help(),s.parse();export{};
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});function e(e,t){return e+t}exports.sum=e;
|
package/dist/index.d.cts
ADDED
package/dist/index.d.mts
ADDED
package/dist/index.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e,t){return e+t}export{e as sum};
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dhzh/foundry",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.1-beta.
|
|
4
|
+
"version": "0.0.1-beta.3",
|
|
5
5
|
"devEngines": {
|
|
6
6
|
"packageManager": {
|
|
7
7
|
"name": "pnpm",
|
|
8
|
-
"version": "^11.
|
|
8
|
+
"version": "^11.9.0",
|
|
9
9
|
"onFail": "download"
|
|
10
10
|
},
|
|
11
11
|
"runtime": {
|
|
12
12
|
"name": "node",
|
|
13
|
-
"version": "^
|
|
13
|
+
"version": "^24.18.0",
|
|
14
14
|
"onFail": "download"
|
|
15
15
|
}
|
|
16
16
|
},
|
|
@@ -28,13 +28,21 @@
|
|
|
28
28
|
],
|
|
29
29
|
"exports": {
|
|
30
30
|
".": {
|
|
31
|
-
"
|
|
31
|
+
"types": {
|
|
32
|
+
"import": "./dist/index.d.mts",
|
|
33
|
+
"require": "./dist/index.d.cts"
|
|
34
|
+
},
|
|
35
|
+
"import": "./dist/index.mjs",
|
|
32
36
|
"require": "./dist/index.cjs"
|
|
33
37
|
}
|
|
34
38
|
},
|
|
35
|
-
"main": "./dist/index.
|
|
36
|
-
"types": "./dist/index.d.
|
|
39
|
+
"main": "./dist/index.cjs",
|
|
40
|
+
"types": "./dist/index.d.mts",
|
|
41
|
+
"bin": {
|
|
42
|
+
"foundry": "./bin/index.js"
|
|
43
|
+
},
|
|
37
44
|
"files": [
|
|
45
|
+
"bin",
|
|
38
46
|
"dist"
|
|
39
47
|
],
|
|
40
48
|
"repository": {
|
|
@@ -57,7 +65,13 @@
|
|
|
57
65
|
"tsx": "^4.22.4",
|
|
58
66
|
"typescript": "^6.0.3",
|
|
59
67
|
"vitest": "^4.1.9",
|
|
60
|
-
"node": "runtime:^
|
|
68
|
+
"node": "runtime:^24.18.0"
|
|
69
|
+
},
|
|
70
|
+
"dependencies": {
|
|
71
|
+
"@hono/node-server": "^2.0.8",
|
|
72
|
+
"cac": "^7.0.0",
|
|
73
|
+
"consola": "^3.4.2",
|
|
74
|
+
"hono": "^4.12.27"
|
|
61
75
|
},
|
|
62
76
|
"scripts": {
|
|
63
77
|
"build": "tsdown",
|
|
@@ -66,7 +80,7 @@
|
|
|
66
80
|
"lint": "eslint",
|
|
67
81
|
"lint-fix": "eslint --fix .",
|
|
68
82
|
"release": "bumpp",
|
|
69
|
-
"release:publish": "pnpm release && pnpm publish",
|
|
83
|
+
"release:publish": "pnpm release && pnpm publish --access public",
|
|
70
84
|
"test": "vitest run",
|
|
71
85
|
"test:coverage": "pnpm run test --coverage",
|
|
72
86
|
"test:dev": "vitest"
|