Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
555 commits
Select commit Hold shift + click to select a range
73b08af
Just one error
hejny Oct 18, 2023
a3c8ac2
Use real title + make looking good together with other tasks on new s…
hejny Oct 18, 2023
26bd741
Rename param -> parameter
hejny Oct 18, 2023
76ede2a
MockedEchoExecutionTools + testing of createPtpExecutor
hejny Oct 18, 2023
eb5f174
Test + implementation of mocked completion
hejny Oct 18, 2023
a69934c
Implementation of completion for MockedEchoExecutionTools
hejny Oct 18, 2023
e9d0e9a
Fix design of homepage for mobile
hejny Oct 18, 2023
1d87b55
Enhance logo
hejny Oct 18, 2023
298f9e3
Navigate home from <CopilotPanel/>
hejny Oct 18, 2023
1dc9934
Preserve scenario in <RandomWallpaperButton/>
hejny Oct 18, 2023
413c7cf
Align call-to action buttons to center
hejny Oct 19, 2023
95621cb
Better design of wallpaper iframes
hejny Oct 19, 2023
b09ba55
Cleanup menu from clutter
hejny Oct 19, 2023
3519353
Menu design
hejny Oct 19, 2023
ad8207b
Update rozhovor
hejny Oct 19, 2023
b083fe9
Merge branch 'main' of https://github.com/hejny/1-2i
hejny Oct 19, 2023
67cb611
Merge branch 'main' into feature/ptp-remote
hejny Oct 19, 2023
106a49f
SupabaseLoggerWrapperOfExecutionTools (not finished)
hejny Oct 19, 2023
b69937a
Pass dependencies into createRemoteServer
hejny Oct 20, 2023
1cb1204
Pick distinct items in randomItems
hejny Oct 20, 2023
bf4a537
Better annotation
hejny Oct 20, 2023
57e66a6
Not enough items for randomItems and randomItem
hejny Oct 20, 2023
237322a
Trigger deployment
hejny Oct 20, 2023
ba62874
� Trigger deployment
hejny Oct 20, 2023
f764e34
Merge branch 'main' into feature/ptp-remote
hejny Oct 20, 2023
566e4f8
Update column names for PromptExecution
hejny Oct 20, 2023
2f3f638
Fix types
hejny Oct 20, 2023
f940c2a
Update Supabase types
hejny Oct 20, 2023
c5f48f3
Dump Supabase structure
hejny Oct 20, 2023
78d3cb0
Make common method for SupabaseLoggerWrapperOfExecutionTools
hejny Oct 20, 2023
5c3672b
Update package lock via Next
hejny Oct 20, 2023
eeca297
Fix PTP server start
hejny Oct 20, 2023
cd076e6
Fix PTP server run
hejny Oct 20, 2023
9955f1b
Done TODOs
hejny Oct 20, 2023
d5cf868
Remove files to delete
hejny Oct 20, 2023
afcfb74
TODOs
hejny Oct 20, 2023
be709ad
rawResponse
hejny Oct 20, 2023
b672e89
Rename -> __Content
hejny Oct 20, 2023
8d9662f
Add new fields to Prompt and PromptChatResult
hejny Oct 21, 2023
fb98c6e
Implement new fields to Prompt and PromptChatResult
hejny Oct 21, 2023
dc35537
Make subfolder for ExecutionTools
hejny Oct 21, 2023
c760745
TODOs
hejny Oct 21, 2023
efabd98
Use switch instead of if in all CHAT vs COMPLETION cases
hejny Oct 21, 2023
b3330ac
Split ExecutionTools and NaturalExecutionTools
hejny Oct 21, 2023
ced794d
Move natural execution tools into its subfolder
hejny Oct 21, 2023
b929f00
Move natural execution tools into its subfolder
hejny Oct 21, 2023
b84d92e
Shells of new execution tools
hejny Oct 21, 2023
db8378f
Shells of new execution tools
hejny Oct 21, 2023
9ed8293
Removing PromptTemplate
hejny Oct 21, 2023
81acc02
Use execution type
hejny Oct 21, 2023
7c9f360
Implementing new execution tools
hejny Oct 21, 2023
c90cbb0
Fix types
hejny Oct 21, 2023
151a908
createRemoteServer recieves naturalExecutionTools
hejny Oct 21, 2023
8d953cb
Implementing UserInterfaceTools
hejny Oct 21, 2023
fa67244
TODOs
hejny Oct 21, 2023
b6c09c4
TODOs
hejny Oct 21, 2023
79b39b5
Removing PromptTemplateParams
hejny Oct 21, 2023
472a25b
getExecutionToolsForWorker
hejny Oct 21, 2023
94a8221
Define tests for execution and user tools
hejny Oct 21, 2023
ba7add0
Define tests for execution and user tools
hejny Oct 21, 2023
c5dfc1e
Passing tests
hejny Oct 21, 2023
532c063
Parsing description in .ptp.md files
hejny Oct 21, 2023
b0c4650
Passing tests
hejny Oct 21, 2023
3074328
🌠 Generate JSONs from PTP samples
hejny Oct 21, 2023
3644aff
Define tests complex for javascript execution
hejny Oct 21, 2023
b903e8d
Implementing JavascriptEvalExecutionTools
hejny Oct 21, 2023
6dfe001
Passing tests for JavascriptEvalExecutionTools
hejny Oct 21, 2023
b6b782f
Rename params -> parameters
hejny Oct 21, 2023
bce70bf
Allow scripts just as simple statements
hejny Oct 21, 2023
7952c5c
Allow scripts just as simple statements + Passing tests
hejny Oct 21, 2023
8d12d16
Fix script execution in createPtpExecutor + Passing tests
hejny Oct 21, 2023
146c0dc
Clean createPtpExecutor from console.logs
hejny Oct 21, 2023
48c68b2
TODOs
hejny Oct 22, 2023
65bff70
Joining content in write-website-content.cs.ptp.md
hejny Oct 22, 2023
c6fc9e0
Dialog in write-website-content.cs.ptp.md
hejny Oct 22, 2023
ec6a8de
Full pipeline of write-website-content.cs.ptp.md
hejny Oct 22, 2023
7923382
Fix write-website-content.cs.ptp.md
hejny Oct 22, 2023
54e14d6
Better error PTP message
hejny Oct 22, 2023
42e7d56
Fix error PTP message
hejny Oct 22, 2023
d90ea9d
Fix write-website-content.cs.ptp.md
hejny Oct 22, 2023
d0dc97c
Fix write-website-content.cs.ptp.md
hejny Oct 22, 2023
faf141e
Better names for parameters write-website-content.cs.ptp.md
hejny Oct 22, 2023
fb6432b
Fix OpenAiExecutionTools completion
hejny Oct 22, 2023
54f71e3
Show raw result from openai if error
hejny Oct 22, 2023
8b1c560
TODOs
hejny Oct 22, 2023
711cadb
Translate english input write-website-content.cs.ptp.md
hejny Oct 22, 2023
f0d90a3
Better logging + using non-deprecated model
hejny Oct 22, 2023
e516e0e
Better specification of unwrapResult and removeQuotes
hejny Oct 22, 2023
1a38a3a
Better specification of unwrapResult and removeQuotes
hejny Oct 22, 2023
665d795
Enhance write-website-content.cs.ptp.md
hejny Oct 22, 2023
02ab5c5
TODOs
hejny Oct 22, 2023
6aacbf5
Try to fix page length
hejny Oct 22, 2023
035d6c5
Spread values inserting into PromptExecution
hejny Oct 22, 2023
8c2ff4c
Update table PromptExecution according to new fields in Prompt and Pr…
hejny Oct 22, 2023
b1e206f
Postprocessing in .ptp.md (tests + usage)
hejny Oct 22, 2023
f6dfe23
Function removeMarkdownFormatting work with codeblocks
hejny Oct 22, 2023
6511800
🔺 Audit dependencies
hejny Oct 22, 2023
22bebc9
Postprocessing in .ptp.md (parsing)
hejny Oct 22, 2023
bd150ce
Postprocessing in .ptp.md (n12 dependencies)
hejny Oct 22, 2023
3bd0aab
Postprocessing in .ptp.md (test)
hejny Oct 22, 2023
f7fd6c1
Better type of PromptTemplateJson and
hejny Oct 22, 2023
a2f6714
Second postprocessing sample
hejny Oct 22, 2023
421243a
Verbose mode for all executor tools
hejny Oct 22, 2023
c3cd0af
More descriptive errors from createPtpExecutor
hejny Oct 22, 2023
5631576
Fix parsing of parameters with postprocessing
hejny Oct 22, 2023
a2539d9
Fix parsing of templates with postprocessing
hejny Oct 22, 2023
9fe8008
Using toMatchObject in tests
hejny Oct 22, 2023
9efe994
Checks error message in jest tests
hejny Oct 22, 2023
67357f9
Parsing ptpUrl from markdown
hejny Oct 22, 2023
cf1dccd
Cleanup
hejny Oct 22, 2023
91cb607
[🎛] TODOs
hejny Oct 22, 2023
1694ad6
Verbose mode logging
hejny Oct 22, 2023
7b8382f
Logging in <TasksInProgress/>
hejny Oct 22, 2023
fad9bca
Playground: Remove Postprocess execution
hejny Oct 22, 2023
ca5f256
Playground: OpenAI completion
hejny Oct 22, 2023
414a424
Try to fix max_tokens
hejny Oct 22, 2023
bbbcee9
Try to fix max_tokens
hejny Oct 22, 2023
c382e3d
Show prograss only on PROMPT_TEMPLATE and PROMPT_DIALOG
hejny Oct 22, 2023
214d1f3
Better logging
hejny Oct 22, 2023
5235706
Show prograss only on PROMPT_TEMPLATE and PROMPT_DIALOG
hejny Oct 22, 2023
9d308ed
Working on best content with nice loading
hejny Oct 22, 2023
f3e8667
Change prompttemplate -> markdown / text
hejny Oct 22, 2023
b87c97c
Prefix all ## templates in samples same as write-website-content.cs.p…
hejny Oct 22, 2023
cdbd91a
TItle in PromptTemplatePipelineJson
hejny Oct 22, 2023
3891c9d
Description in PromptTemplatePipelineJson
hejny Oct 22, 2023
69cbd68
Annotate
hejny Oct 22, 2023
7c32e2a
Change parseKeywords to return string
hejny Oct 23, 2023
00782b3
Test throwing errors from script execution
hejny Oct 23, 2023
37aed81
Handle errors in PTP server
hejny Oct 23, 2023
bf81f4d
Allow just "prompt dialog" and "simple template"
hejny Oct 23, 2023
d6493ac
TODO: [👧]
hejny Oct 23, 2023
189c3f9
Remove mocked server
hejny Oct 23, 2023
fc774ab
Fix tests
hejny Oct 23, 2023
eb3e783
Unblock build
hejny Oct 23, 2023
94ea434
https://ptp.webgpt.com/en/write-wallpaper-content.ptp.md@v0.1.0
hejny Oct 23, 2023
7ce81cb
Allow to construct Ptp library from sources
hejny Oct 23, 2023
3339f6e
TODOs
hejny Oct 23, 2023
3c9f800
🌐 Add back i18n
hejny Oct 23, 2023
107cbac
Update pakcage-lock
hejny Oct 23, 2023
42d9617
Allow to construct Ptp library from sources
hejny Oct 23, 2023
ee521db
🌐 Using <LanguagePicker />
hejny Oct 23, 2023
8c57dc8
🌐 TODOs
hejny Oct 23, 2023
b023b64
🌐 Translated /new/from-image page
hejny Oct 23, 2023
263efde
🌐 Switch cs/en ptp based on language
hejny Oct 23, 2023
b02d47d
🌐 <LanguagePickerWithHint />
hejny Oct 23, 2023
0716802
Updating the web + fonts
hejny Oct 23, 2023
39e0568
Design of prompt modals/dialogs
hejny Oct 23, 2023
c82a17b
Updating the web
hejny Oct 23, 2023
ef44ed7
More tasks can fit in UI
hejny Oct 23, 2023
3271613
Do not add metadata into updated content
hejny Oct 23, 2023
348ba17
Enhance the assigment
hejny Oct 23, 2023
15bab32
Enhance the assigment
hejny Oct 23, 2023
76cd154
🔀 Transferring src from WebGPT -> PTP
hejny Oct 23, 2023
fb71fae
Update rozhovor
hejny Oct 23, 2023
3694090
Merge pull request #92 from hejny/feature/ptp-remote
hejny Oct 23, 2023
bdff899
Merge pull request #102 from hejny/feature/ptp-remote
hejny Oct 23, 2023
2802c0e
Update rozhovor-pro-kapler-o-ai.md
hejny Oct 23, 2023
086242e
Merge branch 'main' into feature/ptp
hejny Oct 24, 2023
30934c2
Update rozhovor-pro-kapler-o-ai.md
hejny Oct 25, 2023
b1960cd
Update rozhovor-pro-kapler-o-ai.md
hejny Oct 25, 2023
5975d7b
Annotate utils
hejny Oct 25, 2023
4f3a848
Transferring src from PTP -> WebGPT
hejny Oct 26, 2023
7c5e6d6
Fix createRemoteServer to be more usable for external lib
hejny Oct 26, 2023
7c6a8a1
Fix all tests
hejny Oct 26, 2023
0a98a2a
Install and use @gptp/core
hejny Oct 26, 2023
587991a
Update metainformation
hejny Oct 26, 2023
e69fd0a
defaultLocale is cs
hejny Oct 26, 2023
89c8751
Log locale before making a web
hejny Oct 26, 2023
ea1b25b
Merge branch 'main' of https://github.com/hejny/webgpt
hejny Oct 26, 2023
7cf5b61
Merge branch 'main' into feature/use-ptp-as-library
hejny Oct 26, 2023
5aea46f
Fix vurnabilities
hejny Oct 26, 2023
e31bee2
Revert "Fix vurnabilities"
hejny Oct 26, 2023
b1d3831
terminal 🩹 Lint fix
hejny Oct 26, 2023
fdb630d
Add multiple wallpaper samples
hejny Oct 26, 2023
cbb9f17
Fix imports
hejny Oct 26, 2023
98098b0
Add screencasts
hejny Oct 26, 2023
ada8d35
Add screencasts
hejny Oct 26, 2023
3966750
Automatically make gif files from videos
hejny Oct 26, 2023
e942019
Use video in README
hejny Oct 26, 2023
a069efc
console.info('🏳 locale: ',locale);
hejny Oct 26, 2023
930c6f6
Merge branch 'main' into feature/use-ptp-as-library
hejny Oct 26, 2023
b998ab7
⏎ Changing lines to unix
hejny Oct 27, 2023
457a16c
🔺 Audit dependencies
hejny Oct 27, 2023
dda0d65
🔺 Removing dependencies prefixes
hejny Oct 27, 2023
a82ac3a
✍🏻 Description of the project into package.json
hejny Oct 27, 2023
411df79
Merge branch 'main' of https://github.com/hejny/webgpt
hejny Oct 27, 2023
c8af5e9
Update write-website-content.cs.ptp.md
hejny Oct 27, 2023
59df304
Update write-website-content.cs.ptp.md
hejny Oct 27, 2023
b9bcd60
Update rozhovor-pro-kapler-o-ai.md
hejny Oct 27, 2023
8d96ec8
Update rozhovor-pro-kapler-o-ai.md
hejny Oct 27, 2023
5e6212a
Use version of PTP compatible with both browser and node
hejny Oct 28, 2023
5bfd62a
Update write-website-content.cs.ptp.md
hejny Oct 28, 2023
774b02a
Update write-website-content.cs.ptp.md
hejny Oct 28, 2023
56545ad
Update rozhovor-pro-kapler-o-ai.md
hejny Oct 29, 2023
cad95c7
Remove details WebGPT rozhovor-pro-kapler-o-ai.md
hejny Oct 29, 2023
b8857d1
Update rozhovor-pro-kapler-o-ai.md
hejny Oct 29, 2023
b59867e
Update rozhovor-pro-kapler-o-ai.md
hejny Oct 29, 2023
451567b
Using multiple libraries
hejny Oct 29, 2023
7770f40
Fix types of @gptp/*
hejny Oct 29, 2023
2182a5d
Moving samples into PTP library
hejny Oct 29, 2023
2b6dbf8
📖 PromptBook
hejny Oct 29, 2023
1ae134d
Merge branch 'main' of https://github.com/hejny/1-2i
hejny Oct 29, 2023
ad093b2
Working eval
hejny Oct 29, 2023
2573889
Migrate from @gptp -> @promptbook
hejny Oct 29, 2023
7822087
Merge branch 'main' into feature/use-ptp-as-library
hejny Oct 29, 2023
1b1df80
Update package-lock
hejny Oct 29, 2023
9a94bd5
Rozhovor
hejny Oct 29, 2023
6eba11b
Rozhovor structure
hejny Oct 29, 2023
7059f9b
Update rozhovor-pro-kapler-o-ai.md
hejny Oct 29, 2023
0d4e8a0
Update rozhovor-pro-kapler-o-ai.md
hejny Oct 29, 2023
5f05069
Update rozhovor-pro-kapler-o-ai.md
hejny Oct 29, 2023
25cddde
Update rozhovor-pro-kapler-o-ai.md
hejny Oct 29, 2023
da789eb
Merge pull request #101 from hejny/feature/use-ptp-as-library
hejny Oct 29, 2023
b6b0e62
🔺 Audit dependencies
hejny Oct 29, 2023
dd947a1
Rozhovor
hejny Oct 30, 2023
72b2ff4
Rozhovor
hejny Oct 30, 2023
6933981
Rozhovor
hejny Oct 30, 2023
8ce4552
Rozhovor Cleanup
hejny Oct 30, 2023
e9a39f4
Rozhovor České uvozovky
hejny Oct 30, 2023
f1f1eae
Rozhovor Ainautes
hejny Oct 30, 2023
7576fa1
Update write-website-content.cs.ptp.md
hejny Oct 30, 2023
15d48d0
Update write-website-content.cs.ptp.md
hejny Oct 30, 2023
24c112a
Purpose of the web write-website-content.cs.ptp.md
hejny Oct 30, 2023
e18bd7f
Reorganize promptbooks
hejny Oct 30, 2023
2e29f13
Merge branch 'feature/ptp-remote'
hejny Oct 30, 2023
3823209
📁 Rename .ptp.md -> .ptbk.md
hejny Oct 30, 2023
3d8d810
NEXT_PUBLIC_PROMPTBOOK_SERVER_URL
hejny Oct 30, 2023
e526416
Check validity of PTPs
hejny Oct 30, 2023
727770c
Install new dependencies
hejny Oct 30, 2023
4405f36
🔀 Transfer Generate samples from webgpt -> promptbook
hejny Oct 30, 2023
f2fea47
Update promptbook
hejny Oct 30, 2023
7fc079b
Fix types
hejny Oct 30, 2023
d622282
Fix types
hejny Oct 30, 2023
fec5305
Fix promptbook
hejny Oct 30, 2023
10a8e4c
PTBK version
hejny Oct 30, 2023
1dd384a
Enhance creation of website
hejny Oct 30, 2023
9f1f6c7
Promptcook
hejny Oct 30, 2023
930f37d
Design of PromptCook
hejny Oct 30, 2023
30406e7
Update enhance-text.cs.ptbk.md
hejny Oct 30, 2023
3f9c970
PNG logo
hejny Nov 1, 2023
0266db1
Czech update of content
hejny Nov 1, 2023
e996451
Use ONLY completion in write-website-content.cs.ptbk.md
hejny Nov 1, 2023
dc8d65e
Fix Czech update of content
hejny Nov 1, 2023
5d12f6a
Enhance update-website-content.cs.ptbk.md
hejny Nov 1, 2023
eae2c8a
Update write-website-content.cs.ptbk.md
hejny Nov 1, 2023
7e519fb
Update write-website-content.cs.ptbk.md
hejny Nov 1, 2023
9529168
Layout of CookBook
hejny Nov 2, 2023
1d53970
CookBook monaco editor
hejny Nov 2, 2023
9e0177e
Merge branch 'main' of https://github.com/hejny/webgpt
hejny Nov 2, 2023
d1566bc
Merge branch 'main' into feature/ai-component-instagram-gallery
hejny Nov 6, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 42 additions & 14 deletions .vscode/hejny.code-snippets
Original file line number Diff line number Diff line change
@@ -1,24 +1,16 @@
{
"test": {
"scope": "typescript",
"prefix": "Test boilerplate",
"description": "Test",
"body": [
" describe('how $1 works', () => {",
" it('should $1$1__', () => {",
" const $2 = new $1();",
"",
" expect($2.$1).toEqual('$1')",
" });",
" });"
]
},
"iife": {
"scope": "javascript,javascriptreact,typescript,typescriptreact",
"prefix": "Immediately Invoked Function Expression",
"description": "Immediately Invoked Function Expression",
"body": ["((async ()=>{/*Do some stuff*/})())"]
},
"catch": {
"scope": "javascript,javascriptreact,typescript,typescriptreact",
"prefix": "Catch error instanceof Error",
"description": "Immediately Invoked Function Expression",
"body": ["if (!(error instanceof Error)) {", " throw error;", "}"]
},
"eslint-disable": {
"scope": "typescript,typescriptreact",
"prefix": "Disable ES Lint",
Expand All @@ -30,5 +22,41 @@
"prefix": "CSS testing outline",
"description": "For draw the outline",
"body": ["/**/", "outline: 1px dotted red; /**/"]
},
"test": {
"scope": "typescript",
"prefix": "AI+TDD",
"description": "Test+Implementation ready to AI development",
"body": [
"import { describe, expect, it } from '@jest/globals';",
"import spaceTrim from 'spacetrim';",
"",
"describe('how $1 works', () => {",
" it('should work with foo', () => {",
" expect(",
" $1(",
" spaceTrim(`",
" Foo",
" `),",
" ),",
" ).toBe(true);",
" });",
"",
" it('should NOT work with bar', () => {",
" expect(",
" $1(",
" spaceTrim(`",
" bar",
" `),",
" ),",
" ).toBe(false);",
" });",
"});",
"",
"function $1(value: string): boolean {",
" return value === 'Foo';",
"}",
""
]
}
}
37 changes: 27 additions & 10 deletions .vscode/terminals.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,16 @@
{
"name": "👨🏽‍💻 Develop",
"command": "npm run dev",
"focus": true
"focus": false
},
{
"name": "👨🏽‍💻 Run promptbook server",
"commands": ["ts-node ./promptbook-server/server.ts"],
"focus": false
},
{
"name": "🌎 Expose",
"command": "npx lt --port 4444 --subdomain wizard",
"command": "npx lt --port 4444 --subdomain webgpt",
"onlySingle": true,
"focus": true
},
Expand All @@ -20,6 +25,7 @@
{
"name": "🩹 Lint fix",
"command": "npm run lint -- --fix",
"onlySingle": true,
"execute": false
},
{
Expand Down Expand Up @@ -143,26 +149,25 @@
"focus": true
},
{
"name": "🧸 Playground",
"commands": ["ts-node ./scripts/playground/playground.ts"],
"name": "🌍 SSH pavolhejny.com",
"command": "ssh root@138.68.100.38",
"onlySingle": true,
"focus": true
},
{
"name": "👊 Kill all 4444",
"commands": ["npx kill-port 4444 "],
"name": "🧸 Playground",
"commands": ["ts-node ./scripts/playground/playground.ts"],
"onlySingle": true,
"focus": true
},
{
"name": "⏫ Trigger Build",
"commands": ["git commit --allow-empty -m \"⏫ Trigger Build\"", "git push"],
"name": "👊 Kill all 4444",
"commands": ["npx kill-port 4444 "],
"onlySingle": true,
"focus": true
},

{
"name": "👨🏽‍💻 Clean dev cache + Force reinstall of node modules",
"name": "🔓👨🏽‍💻 Clean dev cache + Force reinstall of node modules",
"commands": [
"npx kill-port 4444",
"rm -rf .next",
Expand All @@ -174,6 +179,12 @@
"onlySingle": true,
"focus": true
},
{
"name": "🔓👨🏽‍💻 Delete git lock",
"commands": ["rm -f .git/index.lock"],
"onlySingle": true,
"focus": true
},
{
"name": "👨🏽‍💻 Clean dev cache",
"commands": ["npx kill-port 4444", "rm -rf .next"],
Expand Down Expand Up @@ -208,6 +219,12 @@
"onlySingle": true,
"focus": true
},
{
"name": "🔼 Trigger deployment",
"commands": ["git commit --allow-empty -m \"🔼 Trigger deployment\"", "git push"],
"onlySingle": true,
"focus": true
},
{
"name": "🔼👑 Release major version",
"command": "npm version major",
Expand Down
2 changes: 1 addition & 1 deletion CNAME
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1-2i.com
webgpt.cz
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# ⏣ AI web maker
# ⏣ WebGPT

https://1-2i.com/
An AI-powered tool for web design
https://webgpt.cz/

> Do you want to make a web <br/> Or **have a web**?

![WebGPT](./other/screencasts/screencast-fiabciakcmgepblmdkmemdbbkilneeeh-2023.10.26-21_46_17.gif)
16 changes: 14 additions & 2 deletions config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,23 @@ import { isUrlOnPrivateNetwork } from './src/utils/validators/isUrlOnPrivateNetw
import { validateUuid } from './src/utils/validators/validateUuid';

export const APP_VERSION = packageJson.version;
export const APP_NAME = packageJson.name;
export const APP_NAME = 'WebGPT';

const config = ConfigChecker.from({
...process.env,

// Note: To expose env variables to the browser, using this seemingly strange syntax:
// @see https://nextjs.org/docs/pages/building-your-application/configuring/environment-variables#exposing-environment-variables-to-the-browser
NEXT_PUBLIC_URL: process.env.NEXT_PUBLIC_URL,
NEXT_PUBLIC_PROMPTBOOK_SERVER_URL: process.env.NEXT_PUBLIC_PROMPTBOOK_SERVER_URL,
NEXT_PUBLIC_OUR_DOMAINS: process.env.NEXT_PUBLIC_OUR_DOMAINS,
NEXT_PUBLIC_SUPABASE_URL: process.env.NEXT_PUBLIC_SUPABASE_URL,
NEXT_PUBLIC_SUPABASE_ANON_KEY: process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY,
});

export const NEXT_PUBLIC_URL = config.get('NEXT_PUBLIC_URL').url().required().value;
export const NEXT_PUBLIC_PROMPTBOOK_SERVER_URL = config.get('NEXT_PUBLIC_PROMPTBOOK_SERVER_URL').url().required().value;

export const IS_DEVELOPMENT =
isUrlOnPrivateNetwork(
NEXT_PUBLIC_URL,
Expand All @@ -41,6 +45,8 @@ if (isRunningInBrowser()) {

export const NEXT_PUBLIC_DEBUG = config.get('NEXT_PUBLIC_DEBUG').boolean().value;

export const NEXT_PUBLIC_OUR_DOMAINS = config.get('NEXT_PUBLIC_OUR_DOMAINS').list().required().value;

/**
* The speed of the animations
* It is useful for recording videos
Expand Down Expand Up @@ -989,7 +995,13 @@ export const CDN = (CDN_BUCKET &&
accessKeyId: CDN_ACCESS_KEY_ID!,
secretAccessKey: CDN_SECRET_ACCESS_KEY!,
cdnPublicUrl: CDN_PUBLIC_URL!,
gzip: false /* <- TODO: Maybe just remove this functionality from 1-2i repository */,
gzip: false /* <- TODO: Maybe just remove this functionality from WebGPT repository */,
})) as DigitalOceanSpaces;

export const MIDJOURNEY_WHOLE_GALLERY_PATH = 'X:/Mythings/MidJourney';

export const PUBLISH_TO_GITHUB_ORGANIZATION = config.get(
'PUBLISH_TO_GITHUB_ORGANIZATION',
`@see https://github.com/settings/tokens`,
).value;
export const GITHUB_TOKEN = config.get('GITHUB_TOKEN', `@see https://github.com/settings/tokens`).value;
2 changes: 1 addition & 1 deletion cypress/e2e/pageLoad.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ context('localhost', () => {

describe('Visiting the page', () => {
it('should be able to see the heading', () => {
cy.contains(/Aiai/i);
cy.contains(/WebGPT/i);
});
});
});
Loading