@agentlang/lstudio 0.0.7 → 0.0.9
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 +118 -0
- package/{assets/index-BhRE1Hdn.js → dist/assets/index-B3U5OBub.js} +1 -1
- package/{assets/index-Cb5fohDD.js → dist/assets/index-BJ9mtetH.js} +237 -237
- package/{assets/index-DOvKgO9X.js → dist/assets/index-BgTUu_0W.js} +1 -1
- package/{assets/index-CrmPXE1H.js → dist/assets/index-z6UiIKgA.js} +1 -1
- package/{assets/index.browser-oRidX8zd.js → dist/assets/index.browser-DXjp5ooS.js} +3 -3
- package/{assets/loadCognitoIdentity-C7gLCGeR.js → dist/assets/loadCognitoIdentity-B0OehWw0.js} +1 -1
- package/{assets/loadSts-B6CaT1_w.js → dist/assets/loadSts-BRPXILwj.js} +1 -1
- package/{assets/replService-BH6wZx4U.js → dist/assets/replService-C1HXWxMn.js} +1 -1
- package/{index.html → dist/index.html} +1 -1
- package/dist/package.json +19 -0
- package/package.json +21 -18
- /package/{assets → dist/assets}/__vite-browser-external-BDMct_Gn-FmFgRqLi.js +0 -0
- /package/{assets → dist/assets}/__vite-browser-external-CoxO8HJt-D7Ct-6yo.js +0 -0
- /package/{assets → dist/assets}/__vite-browser-external-CoxO8HJt-YbutIfMq-D7Ct-6yo.js +0 -0
- /package/{assets → dist/assets}/__vite-browser-external-DJy8wZt7.js +0 -0
- /package/{assets → dist/assets}/_commonjs-dynamic-modules-BpilXLfW-DfYEAvWy.js +0 -0
- /package/{assets → dist/assets}/_commonjs-dynamic-modules-TDtrdbi3.js +0 -0
- /package/{assets → dist/assets}/_commonjsHelpers-38a7CZ6X-BfEUBFWa-BEFu9Otg.js +0 -0
- /package/{assets → dist/assets}/_commonjsHelpers-38a7CZ6X-W3E8ocG7.js +0 -0
- /package/{assets → dist/assets}/_commonjsHelpers-B4e78b8K-W3E8ocG7.js +0 -0
- /package/{assets → dist/assets}/_commonjsHelpers-D6-XlEtG.js +0 -0
- /package/{assets → dist/assets}/artificial-intelligence.png +0 -0
- /package/{assets → dist/assets}/auth.png +0 -0
- /package/{assets → dist/assets}/bg-gradient.png +0 -0
- /package/{assets → dist/assets}/favicon.ico +0 -0
- /package/{assets → dist/assets}/fractl-logo-small.png +0 -0
- /package/{assets → dist/assets}/index-69shuAsh-DF18H7zf.js +0 -0
- /package/{assets → dist/assets}/index-6mKfgpcs-DsgiI2lM.js +0 -0
- /package/{assets → dist/assets}/index-BJBOx-Z---hbiLl7B.js +0 -0
- /package/{assets → dist/assets}/index-BOLaQ9_Z.js +0 -0
- /package/{assets → dist/assets}/index-BfpeqTCw.js +0 -0
- /package/{assets → dist/assets}/index-BoNKy6Ic.js +0 -0
- /package/{assets → dist/assets}/index-CNLtnwcG-CT9Tl0QI.js +0 -0
- /package/{assets → dist/assets}/index-CNLtnwcG-HJoxiQBn-DSWPwCKS.js +0 -0
- /package/{assets → dist/assets}/index-CUtIwvTY-Dla_hTy0.js +0 -0
- /package/{assets → dist/assets}/index-CZyH7rAI-yNipxqK_.js +0 -0
- /package/{assets → dist/assets}/index-ChvoNxcO.js +0 -0
- /package/{assets → dist/assets}/index-D1jV2j2Y.js +0 -0
- /package/{assets → dist/assets}/index-D5v913EJ-CsbEilVn.js +0 -0
- /package/{assets → dist/assets}/index-DGQM-tVy-4NRC-u1U.js +0 -0
- /package/{assets → dist/assets}/index-DIt05veo.js +0 -0
- /package/{assets → dist/assets}/index-DSosZ5sh-Ceejs_jv.js +0 -0
- /package/{assets → dist/assets}/index-DdrtU5Ny-B6H3P3T_.js +0 -0
- /package/{assets → dist/assets}/index-DsIu-45t-Bejjlpz4.js +0 -0
- /package/{assets → dist/assets}/index-Dy4QD7s1-DSfoLCzX.js +0 -0
- /package/{assets → dist/assets}/index-VamKv2HZ--hbiLl7B.js +0 -0
- /package/{assets → dist/assets}/index-VamKv2HZ-CaraMydH-D75zmpPt.js +0 -0
- /package/{assets → dist/assets}/index-Ynim4IDh.js +0 -0
- /package/{assets → dist/assets}/index-ddRsp7-o.css +0 -0
- /package/{assets → dist/assets}/index-xuotMAFm-B-PTrwYx.js +0 -0
- /package/{assets → dist/assets}/inherits_browser-5Fj3Mjxs.js +0 -0
- /package/{assets → dist/assets}/inherits_browser-BPb0V7-q-C7Z2MfVc.js +0 -0
- /package/{assets → dist/assets}/normalizeProvider-BrOPyH3l.js +0 -0
- /package/{assets → dist/assets}/preload-helper-BlTxHScW.js +0 -0
- /package/{assets → dist/assets}/util-ByC4ZISM-BeKX2g97.js +0 -0
- /package/{assets → dist/assets}/util-Di1GNq-L-D-kgTTr0.js +0 -0
- /package/{assets → dist/assets}/util-qaS8mbUT.js +0 -0
- /package/{assets → dist/assets}/winston-Bb5ONwX_-B86ttl8E.js +0 -0
- /package/{assets → dist/assets}/winston-Bb5ONwX_-ziOUC-cl-v-kyB29h.js +0 -0
- /package/{assets → dist/assets}/winston-BvKfy0iJ-CwnGwJ9X.js +0 -0
- /package/{assets → dist/assets}/winston-BvKfy0iJ-DkFo4NVo-UY_jirKN.js +0 -0
- /package/{assets → dist/assets}/winston-CLh__iui-Dz2dJhwh.js +0 -0
- /package/{assets → dist/assets}/winston-CtcDki1r-tmxR7nDg.js +0 -0
- /package/{assets → dist/assets}/winston-D8lBg2T-.js +0 -0
- /package/{assets → dist/assets}/winston-DaXMbKRs.js +0 -0
- /package/{fonts → dist/fonts}/red-hat.tff +0 -0
package/README.md
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
# @agentlang/lstudio
|
|
2
|
+
|
|
3
|
+
The **AgentLang Studio UI** package for local mode. This package contains the built static files of the AgentLang Design Studio UI.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
You can install this package from npm:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @agentlang/lstudio
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
This package contains the static build files (HTML, CSS, JavaScript) of the Studio UI. After installation, you can:
|
|
16
|
+
|
|
17
|
+
1. **Serve the static files** using any static file server
|
|
18
|
+
2. **Copy the files** to your web server's public directory
|
|
19
|
+
3. **Use with a web server** like Express, nginx, etc.
|
|
20
|
+
|
|
21
|
+
### Example: Serving with Express
|
|
22
|
+
|
|
23
|
+
```javascript
|
|
24
|
+
import express from 'express';
|
|
25
|
+
import path from 'path';
|
|
26
|
+
import { fileURLToPath } from 'url';
|
|
27
|
+
|
|
28
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
29
|
+
const __dirname = path.dirname(__filename);
|
|
30
|
+
|
|
31
|
+
const app = express();
|
|
32
|
+
const studioPath = path.join(__dirname, 'node_modules/@agentlang/lstudio/dist');
|
|
33
|
+
|
|
34
|
+
app.use(express.static(studioPath));
|
|
35
|
+
|
|
36
|
+
app.get('*', (req, res) => {
|
|
37
|
+
res.sendFile(path.join(studioPath, 'index.html'));
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
app.listen(4000, () => {
|
|
41
|
+
console.log('Studio UI available at http://localhost:4000');
|
|
42
|
+
});
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Development
|
|
46
|
+
|
|
47
|
+
If you are developing this package (within the AgentLang repository):
|
|
48
|
+
|
|
49
|
+
### Building the Package
|
|
50
|
+
|
|
51
|
+
To build and package the Studio UI for publishing:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
# From the studio workspace root
|
|
55
|
+
npm run package:lstudio
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Or using nx directly:
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
nx package lstudio
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
This will:
|
|
65
|
+
|
|
66
|
+
1. Build the Studio UI in local mode
|
|
67
|
+
2. Copy the built files to `apps/lstudio/dist`
|
|
68
|
+
3. Create a `package.json` in the dist folder with publish configuration
|
|
69
|
+
|
|
70
|
+
### Publishing
|
|
71
|
+
|
|
72
|
+
After packaging, publish to npm:
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
cd apps/lstudio/dist
|
|
76
|
+
npm publish --access public
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### Local Testing
|
|
80
|
+
|
|
81
|
+
To test the package locally before publishing, you can use `npm link`:
|
|
82
|
+
|
|
83
|
+
**Step 1: Build and Link Locally**
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
# Build the package
|
|
87
|
+
npm run package:lstudio
|
|
88
|
+
|
|
89
|
+
# Link the package globally
|
|
90
|
+
cd apps/lstudio/dist
|
|
91
|
+
npm link
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
**Step 2: Link in Target Project**
|
|
95
|
+
|
|
96
|
+
Navigate to your test project and link the package:
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
cd /path/to/your/test-project
|
|
100
|
+
npm link @agentlang/lstudio
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
## Package Contents
|
|
104
|
+
|
|
105
|
+
The published package includes:
|
|
106
|
+
|
|
107
|
+
- `index.html` - Main HTML file
|
|
108
|
+
- `assets/` - JavaScript, CSS, and image assets
|
|
109
|
+
- `fonts/` - Font files
|
|
110
|
+
- `package.json` - Package metadata
|
|
111
|
+
|
|
112
|
+
## Version
|
|
113
|
+
|
|
114
|
+
Current version: `0.0.1`
|
|
115
|
+
|
|
116
|
+
## License
|
|
117
|
+
|
|
118
|
+
MIT
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as S,A,s as l,S as I}from"./loadSts-
|
|
1
|
+
import{c as S,A,s as l,S as I}from"./loadSts-BRPXILwj.js";import{b as re,E as se,e as ae,I as ce,d as le,M as me,P as de,R as pe,a as ue}from"./loadSts-BRPXILwj.js";import{C as y,g as E}from"./index-z6UiIKgA.js";import{a as ge}from"./index-z6UiIKgA.js";import"./normalizeProvider-BrOPyH3l.js";import"./preload-helper-BlTxHScW.js";import"./index-BJ9mtetH.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./_commonjsHelpers-38a7CZ6X-W3E8ocG7.js";import"./index-VamKv2HZ--hbiLl7B.js";import"./index-ChvoNxcO.js";import"./__vite-browser-external-DJy8wZt7.js";import"./index-xuotMAFm-B-PTrwYx.js";import"./_commonjsHelpers-B4e78b8K-W3E8ocG7.js";import"./index-6mKfgpcs-DsgiI2lM.js";import"./inherits_browser-BPb0V7-q-C7Z2MfVc.js";import"./index-DsIu-45t-Bejjlpz4.js";import"./index-DSosZ5sh-Ceejs_jv.js";import"./index-69shuAsh-DF18H7zf.js";import"./index-BJBOx-Z---hbiLl7B.js";import"./index-D5v913EJ-CsbEilVn.js";import"./_commonjs-dynamic-modules-BpilXLfW-DfYEAvWy.js";import"./_commonjsHelpers-38a7CZ6X-BfEUBFWa-BEFu9Otg.js";import"./index-VamKv2HZ-CaraMydH-D75zmpPt.js";import"./index-D1jV2j2Y.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./index-DIt05veo.js";import"./inherits_browser-5Fj3Mjxs.js";function R(){return async()=>"us-east-1"}class x extends y.classBuilder().ep(S).m(function(t,n,i,o){return[E(i,t.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithWebIdentity",{}).n("STSClient","AssumeRoleWithWebIdentityCommand").sc(A).build(){}const W=e=>{if(typeof e?.Arn=="string"){const t=e.Arn.split(":");if(t.length>4&&t[4]!=="")return t[4]}},T=async(e,t,n,i={})=>{const o=typeof e=="function"?await e():e,s=typeof t=="function"?await t():t,r=await R()();return n?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${o} (credential provider clientConfig)`,`${s} (contextual client)`,`${r} (STS default: AWS_REGION, profile region, or us-east-1)`),o??s??r},b=(e,t)=>{let n;return async i=>{if(!n){const{logger:m=e?.parentClientConfig?.logger,profile:d=e?.parentClientConfig?.profile,region:p,requestHandler:c=e?.parentClientConfig?.requestHandler,credentialProviderLogger:u,userAgentAppId:f=e?.parentClientConfig?.userAgentAppId}=e,g=await T(p,e?.parentClientConfig?.region,u,{}),C=!h(c);n=new t({...e,userAgentAppId:f,profile:d,region:g,requestHandler:C?c:void 0,logger:m})}const{Credentials:o,AssumedRoleUser:s}=await n.send(new x(i));if(!o||!o.AccessKeyId||!o.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${i.RoleArn}`);const r=W(s),a={accessKeyId:o.AccessKeyId,secretAccessKey:o.SecretAccessKey,sessionToken:o.SessionToken,expiration:o.Expiration,...o.CredentialScope&&{credentialScope:o.CredentialScope},...r&&{accountId:r}};return r&&l(a,"RESOLVED_ACCOUNT_ID","T"),l(a,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),a}},h=e=>e?.metadata?.handlerProtocol==="h2",w=(e,t)=>t?class extends e{constructor(i){super(i);for(const o of t)this.middlewareStack.use(o)}}:e,oe=(e={},t)=>b(e,w(I,t));export{y as $Command,re as AssumeRoleCommand,x as AssumeRoleWithWebIdentityCommand,se as ExpiredTokenException,ae as IDPCommunicationErrorException,ce as IDPRejectedClaimException,le as InvalidIdentityTokenException,me as MalformedPolicyDocumentException,de as PackedPolicyTooLargeException,pe as RegionDisabledException,I as STSClient,ue as STSServiceException,ge as __Client,oe as getDefaultRoleAssumerWithWebIdentity};
|