-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
playground #971
Merged
playground #971
Changes from 54 commits
Commits
Show all changes
63 commits
Select commit
Hold shift + click to select a range
3e72934
initial web project
pelikhan 069be0f
moving to schema
pelikhan b021bd8
minimal ui
pelikhan 990808c
go back to vselements
pelikhan 91ebf33
Merge remote-tracking branch 'origin/main' into webview
pelikhan 70dbcf2
move to vselements
pelikhan 8df0bac
feat: ✨ support objects in form field values and schema
pelikhan afdbb46
Merge remote-tracking branch 'origin/main' into webview
pelikhan 431f637
wired up markdown viewer
pelikhan 19eead8
better rendering
pelikhan 499f7ab
use containers
pelikhan 1699dff
plumbing
pelikhan 0b1b928
serving console app
pelikhan aa3e703
adding serve
pelikhan bed6d27
add html server
pelikhan 073d473
react 19
pelikhan 8ea26dc
serve more files
pelikhan d70ca8f
select script
pelikhan 36063d2
updates
pelikhan c387e39
more details
pelikhan 0ebb9ff
add logo
pelikhan 96b4bfb
ontewxt
pelikhan 505a099
render trace
pelikhan 3b1513e
show trace
pelikhan 774d532
model optios
pelikhan f40a1a1
feat: 🔧 add validation and logging for schema fields
pelikhan 314f469
adding mermaid, details support to markdown
pelikhan cff5094
start opened
pelikhan c7d25df
select models or providers
pelikhan b7a14da
docs
pelikhan 1c0ad9f
add result logging
pelikhan fbfefeb
refactor: 🔥 remove unused WebSocket upgrade logging
pelikhan a121cbc
add markdown css
pelikhan 62266ab
fix double render
pelikhan 34e8f99
render tokens
pelikhan 365cde4
cleanup
pelikhan fd41e7e
help typecheck
pelikhan 430e224
moving types to messages
pelikhan 48ee454
disable strict null checks
pelikhan 5b2cfed
add error boundary on markdown
pelikhan e72cb75
disable mermaid
pelikhan 99120c8
render annotations
pelikhan 1a2f123
basic files input
pelikhan 9702a59
searchable tab
pelikhan c7a1006
show files
pelikhan 2cd6fb6
use search params
pelikhan c42d600
url search params
pelikhan b333285
store scriptid in search args
pelikhan b23e5f2
store options in url search
pelikhan fbe08bc
file preview
pelikhan 3311198
store files in url
pelikhan 31e439a
fix array empty parsxing
pelikhan b0c6f03
refresh astro
pelikhan 7657889
Merge branch 'main' into webview
pelikhan 4fd17e7
updated yarn.lock
pelikhan ec2987d
Merge branch 'webview' of https://github.com/microsoft/genaiscript in…
pelikhan 04540d1
expand specify parts of the trace
pelikhan bb42791
add image in docs
pelikhan 9b9de77
test: ⚙️ update error type in unsupported type test
pelikhan 0653514
test provider before showing in page
pelikhan 32bb75e
panelize
pelikhan 27ec5ea
more panels
pelikhan 72a43fa
add cost badge
pelikhan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1963,16 +1963,16 @@ The following npm packages may be included in this product: | |
- @aws-sdk/[email protected] | ||
- @smithy/[email protected] | ||
- @smithy/[email protected] | ||
- @smithy/[email protected].32 | ||
- @smithy/[email protected].33 | ||
- @smithy/[email protected] | ||
- @smithy/[email protected] | ||
- @smithy/[email protected] | ||
- @smithy/[email protected] | ||
- @smithy/[email protected] | ||
- @smithy/[email protected] | ||
- @smithy/[email protected] | ||
- @smithy/[email protected].32 | ||
- @smithy/[email protected].32 | ||
- @smithy/[email protected].33 | ||
- @smithy/[email protected].33 | ||
|
||
These packages each contain the following license: | ||
|
||
|
@@ -2408,7 +2408,7 @@ The following npm packages may be included in this product: | |
- @smithy/[email protected] | ||
- @smithy/[email protected] | ||
- @smithy/[email protected] | ||
- @smithy/smithy-client@3.5.2 | ||
- @smithy/smithy-client@3.6.0 | ||
- @smithy/[email protected] | ||
- @smithy/[email protected] | ||
|
||
|
@@ -2827,8 +2827,8 @@ The following npm packages may be included in this product: | |
- @types/[email protected] | ||
- @types/[email protected] | ||
- @types/[email protected] | ||
- @types/[email protected].68 | ||
- @types/[email protected].2 | ||
- @types/[email protected].69 | ||
- @types/[email protected].4 | ||
- @types/[email protected] | ||
- @types/[email protected] | ||
- @types/[email protected] | ||
|
@@ -7025,16 +7025,6 @@ IN THE SOFTWARE. | |
|
||
----------- | ||
|
||
The following npm package may be included in this product: | ||
|
||
- [email protected] | ||
|
||
This package contains the following license: | ||
|
||
http://github.com/mscdex/buildcheck/raw/master/LICENSE | ||
|
||
----------- | ||
|
||
The following npm package may be included in this product: | ||
|
||
- [email protected] | ||
|
@@ -7045,16 +7035,6 @@ http://github.com/mscdex/ssh2/raw/master/LICENSE | |
|
||
----------- | ||
|
||
The following npm package may be included in this product: | ||
|
||
- [email protected] | ||
|
||
This package contains the following license: | ||
|
||
https://github.com/mscdex/cpu-features/raw/master/LICENSE | ||
|
||
----------- | ||
|
||
The following npm packages may be included in this product: | ||
|
||
- [email protected] | ||
|
@@ -7909,14 +7889,14 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | |
|
||
The following npm packages may be included in this product: | ||
|
||
- @esbuild/[email protected] | ||
- @napi-rs/[email protected] | ||
- @napi-rs/[email protected] | ||
- @esbuild/[email protected] | ||
- @napi-rs/[email protected] | ||
- @tokenizer/[email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
|
@@ -8903,6 +8883,39 @@ SOFTWARE. | |
|
||
----------- | ||
|
||
The following npm package may be included in this product: | ||
|
||
- [email protected] | ||
|
||
This package contains the following license: | ||
|
||
MIT License | ||
|
||
Copyright (c) 2023 The Fastify Team | ||
|
||
The Fastify team members are listed at https://github.com/fastify/fastify#team | ||
and in the README file. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
|
||
----------- | ||
|
||
The following npm package may be included in this product: | ||
|
||
- [email protected] | ||
|
@@ -10342,10 +10355,10 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | |
|
||
The following npm packages may be included in this product: | ||
|
||
- @octokit/[email protected].1 | ||
- @octokit/[email protected].1 | ||
- @octokit/[email protected].2 | ||
- @octokit/[email protected].2 | ||
- @octokit/[email protected] | ||
- @octokit/[email protected].3 | ||
- @octokit/[email protected].4 | ||
|
||
These packages each contain the following license: | ||
|
||
|
@@ -10377,7 +10390,7 @@ The following npm packages may be included in this product: | |
|
||
- @octokit/[email protected] | ||
- @octokit/[email protected] | ||
- @octokit/[email protected].5 | ||
- @octokit/[email protected].6 | ||
|
||
These packages each contain the following license: | ||
|
||
|
@@ -10437,7 +10450,7 @@ THE SOFTWARE. | |
|
||
The following npm package may be included in this product: | ||
|
||
- agentkeepalive@4.5.0 | ||
- agentkeepalive@4.6.0 | ||
|
||
This package contains the following license: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
title: Serve | ||
description: Launch local web server. | ||
sidebar: | ||
order: 2 | ||
--- | ||
|
||
Launch a local web server that is used to run the playground | ||
or Visual Studio Code. | ||
|
||
|
||
Run from the workspace root: | ||
|
||
```bash | ||
npx genaiscript serve | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Title should be in title case.
|
||
title: Playground | ||
description: Describe how to use the local server playground to launch scripts from a user interface. | ||
sidebar: | ||
order: 10 | ||
--- | ||
|
||
The **Playground** is a self-hosted web application that allows you to run GenAIScript scripts | ||
from a friendly user interface. It sits between the GenAIScript CLI | ||
and the GenAIScript Visual Studio Code integration. | ||
|
||
> The playground is still under construction. | ||
|
||
## Launch | ||
|
||
From your project workspace root, run | ||
|
||
```sh | ||
npx --yes genaiscript serve | ||
``` | ||
|
||
then navigate to the URL printed on the console (typically `http://127.0.0.1:8003/`). |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Title should be in title case.