diff --git a/.github/workflows/build-genai.yml b/.github/workflows/build-genai.yml index 535b44c75..1f29fd15a 100644 --- a/.github/workflows/build-genai.yml +++ b/.github/workflows/build-genai.yml @@ -39,10 +39,7 @@ jobs: - name: download ollama docker run: docker run -d -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama - name: run test within scripts - run: yarn test:scripts --out-summary ./summary.txt --test-delay 10 - - name: Append summary.txt to $GITHUB_STEP_SUMMARY - run: | - cat packages/sample/summary.txt >> $GITHUB_STEP_SUMMARY + run: yarn test:scripts --out-summary $GITHUB_STEP_SUMMARY --test-delay 10 - name: Add comment to PR uses: actions/github-script@v5 if: github.event_name == 'pull_request' diff --git a/.github/workflows/genai-commander.yml b/.github/workflows/genai-commander.yml index c37b58012..c272a1ee2 100644 --- a/.github/workflows/genai-commander.yml +++ b/.github/workflows/genai-commander.yml @@ -62,6 +62,12 @@ jobs: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} OPENAI_API_TYPE: ${{ secrets.OPENAI_API_TYPE }} OPENAI_API_BASE: ${{ secrets.OPENAI_API_BASE }} + - name: start ollama + if: contains(github.event.comment.body, '/genai-test') + run: docker run -d -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama + - name: run test within scripts + if: contains(github.event.comment.body, '/genai-test') + run: yarn test:scripts --out-summary $GITHUB_STEP_SUMMARY --test-delay 10 - name: Archive genai results if: always() uses: actions/upload-artifact@v4 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ed6d80b5e..3b09ffb8d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -69,7 +69,7 @@ To compile and package the Visual Studio Code extension, run the `package` scrip yarn package ``` -You will find the built package files, `genaiscript.vsix` and `genaiscript.insiders.vsix`, +You will find the built package files, `genaiscript.vsix`, in the `packages/vscode` folder. ## Release diff --git a/THIRD_PARTY_LICENSES.md b/THIRD_PARTY_LICENSES.md index bd31ebcc0..8ee6fd9fb 100644 --- a/THIRD_PARTY_LICENSES.md +++ b/THIRD_PARTY_LICENSES.md @@ -257,6 +257,10 @@ The following npm packages may be included in this product: - @aws-crypto/supports-web-crypto@5.2.0 - @xenova/transformers@2.17.2 - flatbuffers@1.12.0 + - gaxios@6.7.0 + - gcp-metadata@6.1.0 + - google-auth-library@9.11.0 + - googleapis-common@7.2.0 These packages each contain the following license and notice below: @@ -1121,7 +1125,7 @@ DEALINGS IN THE SOFTWARE. The following npm package may be included in this product: - - @unocss/reset@0.60.4 + - @unocss/reset@0.61.0 This package contains the following license and notice below: @@ -1979,7 +1983,7 @@ The following npm packages may be included in this product: - @mistralai/mistralai@0.0.10 - @pkgjs/parseargs@0.11.0 - b4a@1.6.6 - - bson@6.7.0 + - bson@6.8.0 - chromadb@1.7.3 - text-decoder@1.1.0 @@ -3031,7 +3035,7 @@ Apache License The following npm package may be included in this product: - - openai@4.52.0 + - openai@4.52.2 This package contains the following license and notice below: @@ -4296,22 +4300,22 @@ Apache License The following npm packages may be included in this product: - - @aws-sdk/client-cognito-identity@3.600.0 - - @aws-sdk/client-sagemaker@3.600.0 - - @aws-sdk/client-sso-oidc@3.600.0 + - @aws-sdk/client-cognito-identity@3.606.0 + - @aws-sdk/client-sagemaker@3.606.0 + - @aws-sdk/client-sso-oidc@3.606.0 - @aws-sdk/client-sso@3.598.0 - - @aws-sdk/client-sts@3.600.0 - - @aws-sdk/credential-provider-cognito-identity@3.600.0 + - @aws-sdk/client-sts@3.606.0 + - @aws-sdk/credential-provider-cognito-identity@3.606.0 - @aws-sdk/util-user-agent-browser@3.598.0 - @aws-sdk/util-user-agent-node@3.598.0 - @smithy/eventstream-codec@1.1.0 - - @smithy/middleware-retry@3.0.6 - - @smithy/querystring-builder@3.0.2 - - @smithy/querystring-parser@3.0.2 - - @smithy/service-error-classification@3.0.2 - - @smithy/url-parser@3.0.2 - - @smithy/util-defaults-mode-browser@3.0.6 - - @smithy/util-defaults-mode-node@3.0.6 + - @smithy/middleware-retry@3.0.7 + - @smithy/querystring-builder@3.0.3 + - @smithy/querystring-parser@3.0.3 + - @smithy/service-error-classification@3.0.3 + - @smithy/url-parser@3.0.3 + - @smithy/util-defaults-mode-browser@3.0.7 + - @smithy/util-defaults-mode-node@3.0.7 These packages each contain the following license and notice below: @@ -4525,14 +4529,14 @@ The following npm packages may be included in this product: - @aws-sdk/middleware-recursion-detection@3.598.0 - @aws-sdk/middleware-user-agent@3.598.0 - @aws-sdk/protocol-http@3.374.0 - - @smithy/core@2.2.3 - - @smithy/invalid-dependency@3.0.2 - - @smithy/middleware-serde@3.0.2 + - @smithy/core@2.2.4 + - @smithy/invalid-dependency@3.0.3 + - @smithy/middleware-serde@3.0.3 - @smithy/protocol-http@1.2.0 - - @smithy/protocol-http@4.0.2 - - @smithy/smithy-client@3.1.4 + - @smithy/protocol-http@4.0.3 + - @smithy/smithy-client@3.1.5 - @smithy/types@1.2.0 - - @smithy/types@3.2.0 + - @smithy/types@3.3.0 These packages each contain the following license and notice below: @@ -4740,6 +4744,191 @@ Apache License ----------- +The following npm package may be included in this product: + + - mathjs@13.0.1 + +This package contains the following license and notice below: + +Apache License + Version 2.0, January 2004 + https://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + +----------- + The following npm package may be included in this product: - rxjs@7.8.1 @@ -5001,7 +5190,7 @@ The following npm packages may be included in this product: - @types/json-schema@7.0.15 - @types/linkify-it@5.0.0 - @types/lodash-es@4.17.12 - - @types/lodash@4.17.5 + - @types/lodash@4.17.6 - @types/long@4.0.2 - @types/markdown-it@14.1.1 - @types/mdast@3.0.15 @@ -5009,12 +5198,11 @@ The following npm packages may be included in this product: - @types/mdurl@2.0.0 - @types/mdx@2.0.13 - @types/ms@0.7.34 - - @types/nlcst@1.0.4 - @types/nlcst@2.0.3 - @types/node-fetch@2.6.11 - @types/node@17.0.45 - - @types/node@18.19.37 - - @types/node@20.14.6 + - @types/node@18.19.39 + - @types/node@20.14.9 - @types/papaparse@5.3.14 - @types/pg@8.11.6 - @types/qs@6.9.15 @@ -5054,7 +5242,7 @@ MIT License The following npm package may be included in this product: - - genaiscript-vscode@1.40.4 + - genaiscript-vscode@1.41.7 This package contains the following license and notice below: @@ -5808,10 +5996,10 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. The following npm packages may be included in this product: - agent-base@7.1.1 - - https-proxy-agent@7.0.4 + - https-proxy-agent@7.0.5 - pac-resolver@7.0.1 - proxy-agent@6.4.0 - - socks-proxy-agent@8.0.3 + - socks-proxy-agent@8.0.4 These packages each contain the following license and notice below: @@ -6251,22 +6439,15 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ----------- -The following npm packages may be included in this product: +The following npm package may be included in this product: - - direction@2.0.1 - - markdown-table@3.0.3 - - nlcst-to-string@3.1.1 - - nlcst-to-string@4.0.0 - - parse-latin@5.0.1 - - parse-latin@7.0.0 - - retext-smartypants@5.2.0 - - retext-smartypants@6.1.0 + - pac-proxy-agent@7.0.2 -These packages each contain the following license and notice below: +This package contains the following license and notice below: (The MIT License) -Copyright (c) 2014 Titus Wormer +Copyright (c) 2014 Nathan Rajlich Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the @@ -6291,8 +6472,11 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. The following npm packages may be included in this product: - - remark-parse@11.0.0 - - remark-stringify@11.0.0 + - direction@2.0.1 + - markdown-table@3.0.3 + - nlcst-to-string@4.0.0 + - parse-latin@7.0.0 + - retext-smartypants@6.1.0 These packages each contain the following license and notice below: @@ -6300,64 +6484,96 @@ These packages each contain the following license and notice below: Copyright (c) 2014 Titus Wormer -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: - - - debug@2.6.9 - -This package contains the following license and notice below: - -(The MIT License) - -Copyright (c) 2014 TJ Holowaychuk - -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 packages may be included in this product: - - - etag@1.8.1 - - proxy-addr@2.0.7 - -These packages each contain the following license and notice below: - -(The MIT License) - -Copyright (c) 2014-2016 Douglas Christopher Wilson - +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 packages may be included in this product: + + - remark-parse@11.0.0 + - remark-stringify@11.0.0 + +These packages each contain the following license and notice below: + +(The MIT License) + +Copyright (c) 2014 Titus Wormer + +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: + + - debug@2.6.9 + +This package contains the following license and notice below: + +(The MIT License) + +Copyright (c) 2014 TJ Holowaychuk + +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 packages may be included in this product: + + - etag@1.8.1 + - proxy-addr@2.0.7 + +These packages each contain the following license and notice below: + +(The MIT License) + +Copyright (c) 2014-2016 Douglas Christopher Wilson + 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 @@ -6691,12 +6907,11 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ----------- -The following npm packages may be included in this product: +The following npm package may be included in this product: - - unist-util-is@5.2.1 - unist-util-is@6.0.0 -These packages each contain the following license and notice below: +This package contains the following license and notice below: (The MIT license) @@ -6735,12 +6950,9 @@ The following npm packages may be included in this product: - mdast-util-to-string@3.2.0 - mdast-util-to-string@4.0.0 - unist-util-find-after@5.0.0 - - unist-util-modify-children@3.1.1 - unist-util-modify-children@4.0.0 - unist-util-position@5.0.0 - - unist-util-visit-children@2.0.2 - unist-util-visit-children@3.0.0 - - unist-util-visit@4.1.2 - unist-util-visit@5.0.0 These packages each contain the following license and notice below: @@ -6773,10 +6985,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. The following npm packages may be included in this product: - array-iterate@2.0.1 - - unherit@3.0.1 - - unified@10.1.2 - unified@11.0.5 - - vfile@5.3.7 - vfile@6.0.1 These packages each contain the following license and notice below: @@ -6928,7 +7137,6 @@ The following npm packages may be included in this product: - unist-util-remove-position@5.0.0 - unist-util-stringify-position@3.0.3 - unist-util-stringify-position@4.0.0 - - unist-util-visit-parents@5.1.3 - unist-util-visit-parents@6.0.1 - vfile-location@5.0.2 - web-namespaces@2.0.1 @@ -7025,7 +7233,6 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. The following npm packages may be included in this product: - hast-util-select@6.0.2 - - vfile-message@3.1.4 - vfile-message@4.0.2 These packages each contain the following license and notice below: @@ -13029,7 +13236,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND The following npm package may be included in this product: - - vite@5.3.1 + - vite@5.3.2 This package contains the following license and notice below: @@ -14041,27 +14248,6 @@ License: MIT By: Mathias Bynens Repository: https://github.com/mathiasbynens/cssesc.git -> Copyright Mathias Bynens -> -> 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. - --------------------------------------- ## debug @@ -15716,29 +15902,6 @@ License: MIT By: Ben Briggs, Chris Eppstein Repository: postcss/postcss-selector-parser -> Copyright (c) Ben Briggs (http://beneb.info) -> -> 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. - --------------------------------------- ## postcss-value-parser @@ -16877,7 +17040,7 @@ END OF TERMS AND CONDITIONS The following npm packages may be included in this product: - @aws-crypto/sha256-js@5.2.0 - - mongodb@6.7.0 + - mongodb@6.8.0 These packages each contain the following license and notice below: @@ -17300,7 +17463,7 @@ The following npm packages may be included in this product: - @aws-sdk/credential-provider-env@3.598.0 - @aws-sdk/credential-provider-ini@3.598.0 - @aws-sdk/credential-provider-node@3.600.0 - - @aws-sdk/credential-providers@3.600.0 + - @aws-sdk/credential-providers@3.606.0 - @aws-sdk/region-config-resolver@3.598.0 - @aws-sdk/signature-v4@3.374.0 - @aws-sdk/token-providers@3.598.0 @@ -17308,22 +17471,22 @@ The following npm packages may be included in this product: - @aws-sdk/util-endpoints@3.598.0 - @aws-sdk/util-locate-window@3.568.0 - @aws-sdk/util-utf8-browser@3.259.0 - - @smithy/abort-controller@3.1.0 - - @smithy/config-resolver@3.0.3 - - @smithy/credential-provider-imds@3.1.2 - - @smithy/fetch-http-handler@3.1.0 - - @smithy/hash-node@3.0.2 + - @smithy/abort-controller@3.1.1 + - @smithy/config-resolver@3.0.4 + - @smithy/credential-provider-imds@3.1.3 + - @smithy/fetch-http-handler@3.2.0 + - @smithy/hash-node@3.0.3 - @smithy/is-array-buffer@1.1.0 - @smithy/is-array-buffer@2.2.0 - @smithy/is-array-buffer@3.0.0 - - @smithy/middleware-content-length@3.0.2 - - @smithy/middleware-endpoint@3.0.3 - - @smithy/middleware-stack@3.0.2 - - @smithy/node-http-handler@3.1.0 - - @smithy/property-provider@3.1.2 - - @smithy/shared-ini-file-loader@3.1.2 + - @smithy/middleware-content-length@3.0.3 + - @smithy/middleware-endpoint@3.0.4 + - @smithy/middleware-stack@3.0.3 + - @smithy/node-http-handler@3.1.1 + - @smithy/property-provider@3.1.3 + - @smithy/shared-ini-file-loader@3.1.3 - @smithy/signature-v4@1.1.0 - - @smithy/signature-v4@3.1.1 + - @smithy/signature-v4@3.1.2 - @smithy/util-base64@3.0.0 - @smithy/util-body-length-browser@3.0.0 - @smithy/util-body-length-node@3.0.0 @@ -17332,13 +17495,13 @@ The following npm packages may be included in this product: - @smithy/util-buffer-from@3.0.0 - @smithy/util-hex-encoding@1.1.0 - @smithy/util-hex-encoding@3.0.0 - - @smithy/util-stream@3.0.4 + - @smithy/util-stream@3.0.5 - @smithy/util-uri-escape@1.1.0 - @smithy/util-uri-escape@3.0.0 - @smithy/util-utf8@1.1.0 - @smithy/util-utf8@2.3.0 - @smithy/util-utf8@3.0.0 - - @smithy/util-waiter@3.1.0 + - @smithy/util-waiter@3.1.2 These packages each contain the following license and notice below: @@ -17761,7 +17924,7 @@ Apache License The following npm packages may be included in this product: - @aws-sdk/middleware-logger@3.598.0 - - @smithy/node-config-provider@3.1.2 + - @smithy/node-config-provider@3.1.3 - @smithy/util-config-provider@3.0.0 These packages each contain the following license and notice below: @@ -17972,10 +18135,10 @@ Apache License The following npm packages may be included in this product: - - @smithy/util-endpoints@2.0.3 + - @smithy/util-endpoints@2.0.4 - @smithy/util-middleware@1.1.0 - - @smithy/util-middleware@3.0.2 - - @smithy/util-retry@3.0.2 + - @smithy/util-middleware@3.0.3 + - @smithy/util-retry@3.0.3 These packages each contain the following license and notice below: @@ -18597,7 +18760,7 @@ third-party archives. The following npm package may be included in this product: - - typescript@5.4.5 + - typescript@5.5.2 This package contains the following license and notice below: @@ -18663,6 +18826,7 @@ The following npm packages may be included in this product: - @aws-sdk/core@3.598.0 - @aws-sdk/credential-provider-http@3.598.0 + - @googleapis/sheets@8.0.0 - @iconify-json/carbon@1.1.36 - drizzle-orm@0.29.5 @@ -18674,7 +18838,7 @@ Apache-2.0 The following npm package may be included in this product: - - caniuse-lite@1.0.30001636 + - caniuse-lite@1.0.30001638 This package contains the following license and notice below: @@ -20361,6 +20525,40 @@ THE SOFTWARE. ----------- +The following npm package may be included in this product: + + - url-template@2.0.8 + +This package contains the following license and notice below: + +Copyright (c) 2012-2014, Bram Stein +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + 3. The name of the author may not be used to endorse or promote products + derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +----------- + The following npm package may be included in this product: - nunjucks@3.2.4 @@ -21454,7 +21652,7 @@ THE SOFTWARE. The following npm package may be included in this product: - - cytoscape@3.29.2 + - cytoscape@3.30.0 This package contains the following license and notice below: @@ -21854,7 +22052,7 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. The following npm package may be included in this product: - - promptfoo@0.65.2 + - promptfoo@0.67.0 This package contains the following license and notice below: @@ -22857,7 +23055,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI The following npm package may be included in this product: - - electron-to-chromium@1.4.807 + - electron-to-chromium@1.4.815 This package contains the following license and notice below: @@ -23114,7 +23312,7 @@ SOFTWARE. The following npm packages may be included in this product: - @anthropic-ai/sdk@0.15.0 - - @anthropic-ai/sdk@0.23.0 + - @anthropic-ai/sdk@0.24.2 These packages each contain the following license and notice below: @@ -25075,31 +25273,6 @@ Address all questions regarding this license to: ----------- -The following npm package may be included in this product: - - - mathjs@13.0.0 - -This package contains the following license and notice below: - -math.js -https://github.com/josdejong/mathjs - -Copyright (C) 2013-2024 Jos de Jong - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - https://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. - ------------ - The following npm package may be included in this product: - minizlib@2.1.2 @@ -25137,14 +25310,13 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. The following npm packages may be included in this product: - - @esbuild/linux-x64@0.21.5 + - @esbuild/darwin-x64@0.21.5 - @iconify-json/ph@1.1.13 - @iconify-json/svg-spinners@1.1.2 + - @pagefind/darwin-x64@1.1.0 - @pagefind/default-ui@1.1.0 - - @pagefind/linux-x64@1.1.0 - @polka/url@1.0.0-next.25 - - @rollup/rollup-linux-x64-gnu@4.18.0 - - @rollup/rollup-linux-x64-musl@4.18.0 + - @rollup/rollup-darwin-x64@4.18.0 - @tokenizer/token@0.3.0 - @vscode/l10n@0.0.16 - @vscode/l10n@0.0.18 @@ -25157,11 +25329,11 @@ The following npm packages may be included in this product: - de-indent@1.0.2 - degenerator@5.0.1 - dlv@1.1.3 - - docs@1.40.4 + - docs@1.41.7 - eastasianwidth@0.2.0 - - genaiscript-core@1.40.4 - - genaiscript-sample@1.40.4 - - genaiscript@1.40.4 + - genaiscript-core@1.41.7 + - genaiscript-sample@1.41.7 + - genaiscript@1.41.7 - hast-util-is-body-ok-link@3.0.0 - hast-util-to-string@3.0.0 - html-whitespace-sensitive-tag-names@3.0.0 @@ -25220,7 +25392,6 @@ The following npm packages may be included in this product: - onnxruntime-common@1.14.0 - onnxruntime-node@1.14.0 - onnxruntime-web@1.14.0 - - pac-proxy-agent@7.0.1 - pagefind@1.1.0 - pg-types@2.2.0 - pg-types@4.0.2 @@ -25232,11 +25403,8 @@ The following npm packages may be included in this product: - rehype-parse@9.0.0 - rehype-stringify@10.0.0 - rehype@13.0.1 - - retext-latin@3.1.0 - retext-latin@4.0.0 - - retext-stringify@3.1.0 - retext-stringify@4.0.0 - - retext@8.1.0 - retext@9.0.0 - seedrandom@3.0.5 - sirv@2.0.4 @@ -25353,36 +25521,6 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ----------- -The following npm package may be included in this product: - - - resolve@1.22.8 - -This package contains the following license and notice below: - -MIT License - -Copyright (c) 2012 James Halliday - -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: - prismjs@1.29.0 @@ -25537,7 +25675,7 @@ THE SOFTWARE. The following npm package may be included in this product: - - object-inspect@1.13.1 + - object-inspect@1.13.2 This package contains the following license and notice below: @@ -26070,36 +26208,6 @@ SOFTWARE. ----------- -The following npm package may be included in this product: - - - codemirror@5.65.16 - -This package contains the following license and notice below: - -MIT License - -Copyright (C) 2017 by Marijn Haverbeke and others - -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: - logform@2.6.0 @@ -26346,7 +26454,7 @@ SOFTWARE. The following npm package may be included in this product: - - path2d@0.2.0 + - path2d@0.2.1 This package contains the following license and notice below: @@ -27060,7 +27168,7 @@ SOFTWARE. The following npm packages may be included in this product: - - @vitejs/plugin-vue-jsx@3.1.0 + - @vitejs/plugin-vue-jsx@4.0.0 - @vitejs/plugin-vue@5.0.5 These packages each contain the following license and notice below: @@ -27428,7 +27536,7 @@ SOFTWARE. The following npm packages may be included in this product: - @drauu/core@0.4.0 - - @slidev/cli@0.49.11 + - @slidev/cli@0.49.12 - @slidev/types@0.47.5 - drauu@0.4.0 @@ -27460,9 +27568,9 @@ SOFTWARE. The following npm packages may be included in this product: - - @slidev/client@0.49.11 - - @slidev/parser@0.49.11 - - @slidev/types@0.49.11 + - @slidev/client@0.49.12 + - @slidev/parser@0.49.12 + - @slidev/types@0.49.12 These packages each contain the following license and notice below: @@ -27493,7 +27601,7 @@ SOFTWARE. The following npm packages may be included in this product: - unplugin-icons@0.19.0 - - unplugin-vue-components@0.27.0 + - unplugin-vue-components@0.27.2 - unplugin-vue-markdown@0.26.2 These packages each contain the following license and notice below: @@ -27616,7 +27724,7 @@ SOFTWARE. The following npm package may be included in this product: - - @astrojs/compiler@2.8.0 + - @astrojs/compiler@2.8.1 This package contains the following license and notice below: @@ -27710,7 +27818,7 @@ The following npm packages may be included in this product: - @antfu/install-pkg@0.1.1 - @antfu/install-pkg@0.3.3 - - @antfu/utils@0.7.8 + - @antfu/utils@0.7.10 - local-pkg@0.5.0 - unconfig@0.3.13 - vite-plugin-remote-assets@0.4.1 @@ -27835,13 +27943,13 @@ SOFTWARE. The following npm packages may be included in this product: - - @astrojs/internal-helpers@0.4.0 - - @astrojs/markdown-remark@5.1.0 - - @astrojs/mdx@3.1.1 + - @astrojs/internal-helpers@0.4.1 + - @astrojs/markdown-remark@5.1.1 + - @astrojs/mdx@3.1.2 - @astrojs/prism@3.1.0 - @astrojs/sitemap@3.1.6 - @astrojs/telemetry@3.1.0 - - astro@4.11.0 + - astro@4.11.3 These packages each contain the following license and notice below: @@ -27999,13 +28107,13 @@ SOFTWARE. The following npm packages may be included in this product: - - @shikijs/core@1.7.0 - - @shikijs/markdown-it@1.7.0 - - @shikijs/monaco@1.7.0 - - @shikijs/transformers@1.7.0 - - @shikijs/twoslash@1.7.0 - - @shikijs/vitepress-twoslash@1.7.0 - - shiki@1.7.0 + - @shikijs/core@1.10.0 + - @shikijs/markdown-it@1.10.0 + - @shikijs/monaco@1.10.0 + - @shikijs/transformers@1.10.0 + - @shikijs/twoslash@1.10.0 + - @shikijs/vitepress-twoslash@1.10.0 + - shiki@1.10.0 These packages each contain the following license and notice below: @@ -28097,27 +28205,27 @@ SOFTWARE. The following npm packages may be included in this product: - - @unocss/astro@0.60.4 - - @unocss/config@0.60.4 - - @unocss/core@0.60.4 - - @unocss/extractor-arbitrary-variants@0.60.4 - - @unocss/extractor-mdc@0.60.4 - - @unocss/inspector@0.60.4 - - @unocss/postcss@0.60.4 - - @unocss/preset-attributify@0.60.4 - - @unocss/preset-icons@0.60.4 - - @unocss/preset-mini@0.60.4 - - @unocss/preset-uno@0.60.4 - - @unocss/preset-web-fonts@0.60.4 - - @unocss/preset-wind@0.60.4 - - @unocss/rule-utils@0.60.4 - - @unocss/scope@0.60.4 - - @unocss/transformer-attributify-jsx-babel@0.60.4 - - @unocss/transformer-attributify-jsx@0.60.4 - - @unocss/transformer-compile-class@0.60.4 - - @unocss/transformer-variant-group@0.60.4 - - @unocss/vite@0.60.4 - - unocss@0.60.4 + - @unocss/astro@0.61.0 + - @unocss/config@0.61.0 + - @unocss/core@0.61.0 + - @unocss/extractor-arbitrary-variants@0.61.0 + - @unocss/extractor-mdc@0.61.0 + - @unocss/inspector@0.61.0 + - @unocss/postcss@0.61.0 + - @unocss/preset-attributify@0.61.0 + - @unocss/preset-icons@0.61.0 + - @unocss/preset-mini@0.61.0 + - @unocss/preset-uno@0.61.0 + - @unocss/preset-web-fonts@0.61.0 + - @unocss/preset-wind@0.61.0 + - @unocss/rule-utils@0.61.0 + - @unocss/scope@0.61.0 + - @unocss/transformer-attributify-jsx-babel@0.61.0 + - @unocss/transformer-attributify-jsx@0.61.0 + - @unocss/transformer-compile-class@0.61.0 + - @unocss/transformer-variant-group@0.61.0 + - @unocss/vite@0.61.0 + - unocss@0.61.0 - vite-plugin-inspect@0.8.4 These packages each contain the following license and notice below: @@ -28148,7 +28256,7 @@ SOFTWARE. The following npm package may be included in this product: - - @unocss/cli@0.60.4 + - @unocss/cli@0.61.0 This package contains the following license and notice below: @@ -28179,7 +28287,7 @@ SOFTWARE. The following npm package may be included in this product: - - tsconfck@3.1.0 + - tsconfck@3.1.1 This package contains the following license and notice below: @@ -28234,8 +28342,8 @@ SOFTWARE. The following npm packages may be included in this product: - - @floating-ui/core@1.6.2 - - @floating-ui/utils@0.2.2 + - @floating-ui/core@1.6.3 + - @floating-ui/utils@0.2.3 These packages each contain the following license and notice below: @@ -28264,7 +28372,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. The following npm package may be included in this product: - - @unocss/preset-typography@0.60.4 + - @unocss/preset-typography@0.61.0 This package contains the following license and notice below: @@ -28296,15 +28404,15 @@ The following npm packages may be included in this product: - @volar/kit@2.2.5 - @volar/language-core@2.2.5 - - @volar/language-core@2.3.0 + - @volar/language-core@2.3.4 - @volar/language-server@2.2.5 - @volar/language-service@2.2.5 - @volar/snapshot-document@2.2.5 - @volar/source-map@2.2.5 - - @volar/source-map@2.3.0 + - @volar/source-map@2.3.4 - @volar/typescript@2.2.5 - - @vue/language-core@2.0.21 - - typescript-auto-import-cache@0.3.2 + - @vue/language-core@2.0.22 + - typescript-auto-import-cache@0.3.3 These packages each contain the following license and notice below: @@ -28334,7 +28442,7 @@ SOFTWARE. The following npm package may be included in this product: - - unplugin@1.10.1 + - unplugin@1.10.2 This package contains the following license and notice below: @@ -28489,7 +28597,6 @@ The following npm packages may be included in this product: - has-property-descriptors@1.0.2 - has-proto@1.0.3 - - supports-preserve-symlinks-flag@1.0.0 These packages each contain the following license and notice below: @@ -28609,7 +28716,7 @@ SOFTWARE. The following npm package may be included in this product: - - @unocss/transformer-directives@0.60.4 + - @unocss/transformer-directives@0.61.0 This package contains the following license and notice below: @@ -28639,7 +28746,7 @@ SOFTWARE. The following npm package may be included in this product: - - @unocss/preset-tagify@0.60.4 + - @unocss/preset-tagify@0.61.0 This package contains the following license and notice below: @@ -28736,7 +28843,7 @@ SOFTWARE. The following npm package may be included in this product: - - @astrojs/starlight@0.24.3 + - @astrojs/starlight@0.24.5 This package contains the following license and notice below: @@ -29178,7 +29285,7 @@ SOFTWARE. The following npm package may be included in this product: - - twoslash-vue@0.2.8 + - twoslash-vue@0.2.9 This package contains the following license and notice below: @@ -29240,6 +29347,67 @@ SOFTWARE. ----------- +The following npm package may be included in this product: + + - tsx@4.16.0 + +This package contains the following license and notice below: + +MIT License + +Copyright (c) Hiroki Osame + +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 packages may be included in this product: + + - get-tsconfig@4.7.5 + - resolve-pkg-maps@1.0.0 + +These packages each contain the following license and notice below: + +MIT License + +Copyright (c) Hiroki Osame + +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 packages may be included in this product: - hasown@2.0.2 @@ -29309,12 +29477,11 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI ----------- -The following npm packages may be included in this product: +The following npm package may be included in this product: - - remark-smartypants@2.1.0 - remark-smartypants@3.0.1 -These packages each contain the following license and notice below: +This package contains the following license and notice below: MIT License @@ -29399,7 +29566,7 @@ The following npm packages may be included in this product: - giget@1.2.3 - jiti@1.21.6 - mlly@1.7.1 - - nypm@0.3.8 + - nypm@0.3.9 - ofetch@1.3.4 - ohash@1.1.3 - perfect-debounce@1.0.0 @@ -30123,7 +30290,7 @@ The following npm packages may be included in this product: - wrap-ansi@7.0.0 - wrap-ansi@8.1.0 - yocto-queue@0.1.0 - - yocto-queue@1.0.0 + - yocto-queue@1.1.1 These packages each contain the following license and notice below: @@ -30436,7 +30603,38 @@ SOFTWARE. The following npm package may be included in this product: - - es-module-lexer@1.5.3 + - fsevents@2.3.3 + +This package contains the following license and notice below: + +MIT License +----------- + +Copyright (C) 2010-2020 by Philipp Dunkel, Ben Noordhuis, Elan Shankar, Paul Miller + +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: + + - es-module-lexer@1.5.4 This package contains the following license and notice below: @@ -30724,7 +30922,7 @@ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. The following npm packages may be included in this product: - - lru-cache@10.2.2 + - lru-cache@10.3.0 - lru-cache@7.18.3 These packages each contain the following license and notice below: @@ -30823,7 +31021,7 @@ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. The following npm package may be included in this product: - - minimatch@9.0.4 + - minimatch@9.0.5 This package contains the following license and notice below: @@ -31601,6 +31799,35 @@ THE SOFTWARE. ----------- +The following npm package may be included in this product: + + - json-bigint@1.0.0 + +This package contains the following license and notice below: + +The MIT License (MIT) + +Copyright (c) 2013 Andrey Sidorov + +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: - a-sync-waterfall@1.0.1 @@ -31990,35 +32217,6 @@ THE SOFTWARE. ----------- -The following npm package may be included in this product: - - - is-core-module@2.13.1 - -This package contains the following license and notice below: - -The MIT License (MIT) - -Copyright (c) 2014 Dave Justice - -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: - pg-connection-string@2.6.4 @@ -32145,6 +32343,36 @@ THE SOFTWARE. ----------- +The following npm package may be included in this product: + + - gtoken@7.1.0 + +This package contains the following license and notice below: + +The MIT License (MIT) + +Copyright (c) 2014 Ryan Seys + +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: - run-async@2.4.1 @@ -32694,36 +32922,6 @@ THE SOFTWARE. ----------- -The following npm package may be included in this product: - - - path-parse@1.0.7 - -This package contains the following license and notice below: - -The MIT License (MIT) - -Copyright (c) 2015 Javier Blanco - -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: - is-arrayish@0.3.2 @@ -33203,11 +33401,12 @@ THE SOFTWARE. ----------- -The following npm package may be included in this product: +The following npm packages may be included in this product: - monaco-editor@0.49.0 + - monaco-editor@0.50.0 -This package contains the following license and notice below: +These packages each contain the following license and notice below: The MIT License (MIT) @@ -33509,7 +33708,7 @@ THE SOFTWARE. The following npm package may be included in this product: - - better-sqlite3@11.0.0 + - better-sqlite3@11.1.1 This package contains the following license and notice below: @@ -34041,16 +34240,16 @@ SOFTWARE. The following npm packages may be included in this product: - - @vue/compiler-core@3.4.29 - - @vue/compiler-dom@3.4.29 - - @vue/compiler-sfc@3.4.29 - - @vue/compiler-ssr@3.4.29 - - @vue/reactivity@3.4.29 - - @vue/runtime-core@3.4.29 - - @vue/runtime-dom@3.4.29 - - @vue/server-renderer@3.4.29 - - @vue/shared@3.4.29 - - vue@3.4.29 + - @vue/compiler-core@3.4.31 + - @vue/compiler-dom@3.4.31 + - @vue/compiler-sfc@3.4.31 + - @vue/compiler-ssr@3.4.31 + - @vue/reactivity@3.4.31 + - @vue/runtime-core@3.4.31 + - @vue/runtime-dom@3.4.31 + - @vue/server-renderer@3.4.31 + - @vue/shared@3.4.31 + - vue@3.4.31 These packages each contain the following license and notice below: @@ -34141,7 +34340,7 @@ THE SOFTWARE. The following npm package may be included in this product: - - vue-router@4.3.3 + - vue-router@4.4.0 This package contains the following license and notice below: @@ -34235,7 +34434,7 @@ The following npm packages may be included in this product: - @azure/abort-controller@2.1.2 - @azure/core-auth@1.7.2 - @azure/core-client@1.9.2 - - @azure/core-rest-pipeline@1.16.0 + - @azure/core-rest-pipeline@1.16.1 - @azure/core-tracing@1.1.2 - @azure/core-util@1.9.0 - @azure/identity@4.3.0 @@ -34606,7 +34805,7 @@ SOFTWARE. The following npm package may be included in this product: - - twoslash-protocol@0.2.8 + - twoslash-protocol@0.2.9 This package contains the following license and notice below: @@ -34734,7 +34933,6 @@ THE SOFTWARE. The following npm packages may be included in this product: - is-buffer@1.1.6 - - is-buffer@2.0.5 - safe-buffer@5.1.2 - safe-buffer@5.2.1 @@ -34973,7 +35171,7 @@ OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWA The following npm package may be included in this product: - - twoslash@0.2.8 + - twoslash@0.2.9 This package contains the following license and notice below: @@ -35281,7 +35479,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI The following npm package may be included in this product: - - postcss@8.4.38 + - postcss@8.4.39 This package contains the following license and notice below: @@ -35621,8 +35819,8 @@ The following npm packages may be included in this product: - @johnsoncodehk/vscode-html-languageservice@5.2.0-34a5462 - jsonc-parser@2.3.1 - request-light@0.7.0 - - vscode-css-languageservice@6.2.14 - - vscode-html-languageservice@5.2.0 + - vscode-css-languageservice@6.3.0 + - vscode-html-languageservice@5.3.0 These packages each contain the following license and notice below: @@ -35680,6 +35878,40 @@ SOFTWARE. ----------- +The following npm package may be included in this product: + + - bignumber.js@9.1.2 + +This package contains the following license and notice below: + +The MIT License (MIT) +===================== + +Copyright © `<2023>` `Michael Mclaughlin` + +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 packages may be included in this product: - color-name@1.1.3 diff --git a/demo/genaisrc/genaiscript.d.ts b/demo/genaisrc/genaiscript.d.ts index d139be1f7..fe537129f 100644 --- a/demo/genaisrc/genaiscript.d.ts +++ b/demo/genaisrc/genaiscript.d.ts @@ -539,9 +539,9 @@ interface ChatParticipant { */ interface ExpansionVariables { /** - * Description of the context as markdown; typically the content of a .gpspec.md file. + * Directory where the prompt is executed */ - spec: WorkspaceFile + dir: string /** * List of linked files parsed in context @@ -559,9 +559,14 @@ interface ExpansionVariables { vars: PromptParameters /** - * List of secrets used by the prompt, must be registred in `genaiscript`. + * List of secrets used by the prompt, must be registered in `genaiscript`. */ secrets?: Record + + /** + * Root prompt generation context + */ + generator: ChatGenerationContext } type MakeOptional = Partial> & Omit diff --git a/demo/genaisrc/jsconfig.json b/demo/genaisrc/jsconfig.json index 4c21c58ce..edf1f30e9 100644 --- a/demo/genaisrc/jsconfig.json +++ b/demo/genaisrc/jsconfig.json @@ -12,6 +12,7 @@ }, "include": [ "*.js", + "*.mjs", "./genaiscript.d.ts" ] } \ No newline at end of file diff --git a/demo/web-app-basic-linux/summary_and_diagrams.md b/demo/web-app-basic-linux/summary_and_diagrams.md index 9cfd9cc73..0c63b0d78 100644 --- a/demo/web-app-basic-linux/summary_and_diagrams.md +++ b/demo/web-app-basic-linux/summary_and_diagrams.md @@ -12,7 +12,7 @@ stateDiagram AppServicePlan --> WebApp ``` -```js title="foo.genai.js" +```js title="foo.genai.mjs" $`Write a one sentence poem.` ``` diff --git a/docs/genaisrc/genaiscript.d.ts b/docs/genaisrc/genaiscript.d.ts index d139be1f7..fe537129f 100644 --- a/docs/genaisrc/genaiscript.d.ts +++ b/docs/genaisrc/genaiscript.d.ts @@ -539,9 +539,9 @@ interface ChatParticipant { */ interface ExpansionVariables { /** - * Description of the context as markdown; typically the content of a .gpspec.md file. + * Directory where the prompt is executed */ - spec: WorkspaceFile + dir: string /** * List of linked files parsed in context @@ -559,9 +559,14 @@ interface ExpansionVariables { vars: PromptParameters /** - * List of secrets used by the prompt, must be registred in `genaiscript`. + * List of secrets used by the prompt, must be registered in `genaiscript`. */ secrets?: Record + + /** + * Root prompt generation context + */ + generator: ChatGenerationContext } type MakeOptional = Partial> & Omit diff --git a/docs/genaisrc/jsconfig.json b/docs/genaisrc/jsconfig.json index 4c21c58ce..edf1f30e9 100644 --- a/docs/genaisrc/jsconfig.json +++ b/docs/genaisrc/jsconfig.json @@ -12,6 +12,7 @@ }, "include": [ "*.js", + "*.mjs", "./genaiscript.d.ts" ] } \ No newline at end of file diff --git a/docs/package.json b/docs/package.json index e33078836..2ce903939 100644 --- a/docs/package.json +++ b/docs/package.json @@ -13,17 +13,17 @@ "preview": "astro preview", "astro": "astro", "genai:test": "node ../packages/cli/built/genaiscript.cjs test src/**/*.md", - "genai:frontmatter": "node ../packages/cli/built/genaiscript.cjs batch frontmatter src/**/*.md --apply-edits", - "genai:technical": "node ../packages/cli/built/genaiscript.cjs batch technical src/**/*.md --apply-edits", + "genai:frontmatter": "for file in \"src/**/*.md\"; do\nnode ../packages/cli/built/genaiscript.cjs run frontmatter \"$file\" --apply-edits\ndone", + "genai:technical": "for file in \"src/**/*.md\"; do\nnode ../packages/cli/built/genaiscript.cjs run technical \"$file\" --apply-edits\ndone", "genai:alt-text": "node scripts/image-alt-text.mjs" }, "dependencies": { "@astrojs/check": "^0.7.0", - "@astrojs/starlight": "^0.24.2", - "astro": "^4.10.3", - "typescript": "5.4.5" + "@astrojs/starlight": "^0.24.5", + "astro": "^4.11.3", + "typescript": "5.5.2" }, "devDependencies": { - "zx": "^8.1.2" + "zx": "^8.1.3" } } diff --git a/docs/src/content/docs/case-studies/image-alt-text.mdx b/docs/src/content/docs/case-studies/image-alt-text.mdx index 6c8f3d4ea..7653d9871 100644 --- a/docs/src/content/docs/case-studies/image-alt-text.mdx +++ b/docs/src/content/docs/case-studies/image-alt-text.mdx @@ -1,18 +1,19 @@ --- title: Image Alt Text sidebar: - order: 10 + order: 10 description: Learn how to automatically generate descriptive alt text for images using OpenAI Vision model to enhance accessibility and SEO. keywords: alt text automation, image accessibility, SEO optimization, OpenAI Vision, Astro integration --- -import { Image } from 'astro:assets'; -import { Code } from '@astrojs/starlight/components'; + +import { Image } from "astro:assets" +import { Code } from "@astrojs/starlight/components" import scriptSrc from "../../../../genaisrc/image-alt-text.genai.js?raw" -import src from '../../../assets/debugger.png'; +import src from "../../../assets/debugger.png" import alt from "../../../assets/debugger.png.txt?raw" -It is a best practice to provide an `alt` attribute for images. -This attribute is used to describe the image to users who are unable to see it. +It is a best practice to provide an `alt` attribute for images. +This attribute is used to describe the image to users who are unable to see it. It is also used by search engines to understand the content of the image. ```html "alt" @@ -30,7 +31,7 @@ However, this task can be tedious and developer are often tempted to skip it, or To solve this issue, we created a script that uses the OpenAI Vision model to analyze the documentation images and generate a description alt text. -To start, we assume that the script is run on a single image file +To start, we assume that the script is run on a single image file and we use [defImage](/genaiscript/reference/scripts/images) to add it to the prompt context. ```js title="image-alt-text.genai.js" @@ -55,18 +56,16 @@ The GenAIScript documentation uses Astro, which allows to author pages in [MDX]( The code below shows how the generate alt text, stored in a separate text file, is injected in the final HTML. ```mdx - -import { Image } from 'astro:assets'; -import src from '../../../assets/debugger.png'; +import { Image } from "astro:assets" +import src from "../../../assets/debugger.png" import alt from "../../../assets/debugger.png.txt?raw" -{alt}/ - +{alt} ``` The `debugger.png` image shows the screenshot of a debugging session and the generate alt text file contents. -{alt}/ +{alt} @@ -76,7 +75,8 @@ Using the [batch](/genaiscript/reference/cli/batch) command, we can apply the sc in a single command. ```sh -npx --yes genaiscript batch image-alt-text assets/**.png --apply-edits +for file in assets/**.png; do + npx --yes genaiscript run image-alt-text "$file" --apply-edits ``` To avoid regenerating the alt text, we also detect if a file exists in the script and cancel accordingly. diff --git a/docs/src/content/docs/case-studies/seo-frontmatter.mdx b/docs/src/content/docs/case-studies/seo-frontmatter.mdx index 29709ad4e..cccd66f4d 100644 --- a/docs/src/content/docs/case-studies/seo-frontmatter.mdx +++ b/docs/src/content/docs/case-studies/seo-frontmatter.mdx @@ -21,11 +21,11 @@ to merge the new front matter with the existing front matter. ## Batching over all files Once the script has been tuned on a few files, you can automate using -the [CLI](/genaiscript/reference/cli). The CLI has a **batch** mode that applies a LLM generation -on each file and a **--apply-edits** flag to apply the changes to the file. +the [CLI](/genaiscript/reference/cli). The CLI has a **--apply-edits** flag to apply the changes to the file. -```bash -genaiscript batch frontmatter src/**/*.md --apply-edits +```sh +for file in src/**/*.md; do + npx --yes genaiscript run frontmatter "$file" --apply-edits ``` You can run this command in your CI/CD pipeline to keep your SEO front matter up to date. @@ -38,7 +38,7 @@ Add this command to your `package.json` to make it easier to run again. { ... "scripts": { - "genai:frontmatter": "genaiscript batch frontmatter src/**/*.md --apply-edits", + "genai:frontmatter": "for file in \"src/**/*.md\"; do\ngenaiscript run frontmatter \"$file\" --apply-edits\ndone", } } ``` diff --git a/docs/src/content/docs/faq.md b/docs/src/content/docs/faq.md index 837dcce63..2e6d7a59a 100644 --- a/docs/src/content/docs/faq.md +++ b/docs/src/content/docs/faq.md @@ -26,9 +26,6 @@ keywords: AI, script generation, performance, best practices, limitations - **Can I use GenAIScript in IDEs other than VS Code?** Currently, GenAIScript is integrated with VS Code, but it can be written in any IDE. The VS Code extension, however, provides additional support for creating and debugging scripts. -- **What is a GPSpec and how do I create one?** - A GPSpec is an optional markdown file that provides context for a GenAIScript. You can create one by writing a markdown document that lists arguments or includes more complex documentation. - - **What are foundation models and LLMs in the context of GenAIScript?** Foundation models and LLMs (Large Language Models) are AI models that GenAIScript can interact with to perform tasks like generating text or processing information. @@ -60,9 +57,6 @@ keywords: AI, script generation, performance, best practices, limitations - **How can I use GenAIScript to automate document translation?** One of our case studies illustrates the use of GenAIScript for translating document fragments between languages: [Translation Case Study](/genaiscript/case-studies/documentation-translations) -- **Is it possible to generate executable code from natural language specifications using GenAIScript?** - Yes, you can use a GPSpec to define the task and a GenAIScript to translate the spec into code in a particular programming language. - - **Can I use GenAIScript to summarize documents or create dialogues from monologues?** Yes, LLMs are good at summarizing and can be used within GenAIScript to summarize documents or convert monologues into dialogues. diff --git a/docs/src/content/docs/getting-started/automating-scripts.mdx b/docs/src/content/docs/getting-started/automating-scripts.mdx index 1ef0e7521..95fe6df1a 100644 --- a/docs/src/content/docs/getting-started/automating-scripts.mdx +++ b/docs/src/content/docs/getting-started/automating-scripts.mdx @@ -104,6 +104,7 @@ const { stdout: changes } = await host.exec("git", [ "main", "--", ":!**/genaiscript.d.ts", + ":!**/jsconfig.json", ":!genaisrc/*", ":!.github/*", ":!.vscode/*", diff --git a/docs/src/content/docs/getting-started/configuration.mdx b/docs/src/content/docs/getting-started/configuration.mdx index 79c9f9e53..cb123edc8 100644 --- a/docs/src/content/docs/getting-started/configuration.mdx +++ b/docs/src/content/docs/getting-started/configuration.mdx @@ -392,98 +392,6 @@ model running locally, while keeping the default `openai` model connection infor OLLAMA_PHI3_API_BASE=http://localhost:11434/v1 ``` -## VSCode Copilot Insiders - -Visual Studio Code **Insiders** provides an -**experimental support** to use your Copilot subscription -to access a LLM inside of Visual Studio Code. - -:::caution[Limitations] - -- **This features requires a GitHub Copilot subscription.** -- **This feature is still a [proposed api](https://github.com/microsoft/vscode/blob/main/src/vscode-dts/vscode.proposed.languageModels.d.ts) and requires the Insiders editor.** -- The API changes daily and may not be stable. -- Functions and Images are not supported. -- The model configuration, temperature, max tokens, may not be available depending on the language model provider. -- Some scripts may fail or behave differently due to internal alignment prompts from Copilot. - -::: - - - -
    - -
  1. - -Install [Visual Studio Code **Insiders**](https://code.visualstudio.com/insiders/). -It can be installed side-by-side with the stable version of Visual Studio Code. - -
  2. - -
  3. - -Open your project in Visual Studio Code Insiders (green icon). - -{insidersAlt} - -
  4. - -
  5. - -Download **genaiscript.insiders.vsix** from the [releases page](https://github.com/microsoft/genaiscript/releases/latest) -to your project folder. - - - -- ... -- **genaiscript.insiders.vsix** - - - -
  6. - -
  7. - -Right click on **genaiscript.insiders.vsix** and select **Install from VSIX**. - -
  8. - -
  9. - -Add a `.vscode-insiders/argv.json` file to enables loading the proposed APIs for the GenAIScript extension. - -```json title=".vscode-insiders/argv.json" -{ - "enable-proposed-api": ["genaiscript.genaiscript-vscode"] -} -``` - -
  10. - -
  11. - -Restart Visual Studio Code Insiders to enable the extension. - -
  12. - -
  13. - -When you try to run a script, you will be prompted to authorize the Copilot subscription. -After authorizing access, you will see a quick pick dialog to select one of the installed Language Model. - -{selectLLMAlt} - -Note that this dialog is not used once you have a populated `.env` file. - -
  14. - -
- -
- -If you are using the Insiders build, make sure to update the **genaiscript.insiders.vsix** regularly -by repeating the steps above. The daily builds of Insiders may contain breaking chagnes that require new builds -of our extension. ## Next steps diff --git a/docs/src/content/docs/getting-started/index.md b/docs/src/content/docs/getting-started/index.md index 647b4bf6d..15d51c5bf 100644 --- a/docs/src/content/docs/getting-started/index.md +++ b/docs/src/content/docs/getting-started/index.md @@ -28,7 +28,7 @@ The following script generates a prompt that takes files (.txt, .pdf, .docx) as input and saves the summaries in another files. -```js wrap title="summarize.genai.js" system=false assistant=true user=true +```js wrap title="summarize.genai.mjs" system=false assistant=true user=true // context: define a "FILE" variable const file = def("FILE", env.files) // task: appends text to the prompt (file is the variable name) diff --git a/docs/src/content/docs/getting-started/testing-scripts.mdx b/docs/src/content/docs/getting-started/testing-scripts.mdx index 76e84400d..63f3aeadb 100644 --- a/docs/src/content/docs/getting-started/testing-scripts.mdx +++ b/docs/src/content/docs/getting-started/testing-scripts.mdx @@ -17,7 +17,7 @@ to validate the output of the script. The tests are added as an array of objects in the `tests` key of the `script` function. -```js title="proofreader.genai.js" wrap +```js title="proofreader.genai.mjs" wrap scripts({ ..., tests: { diff --git a/docs/src/content/docs/getting-started/your-first-genai-script.mdx b/docs/src/content/docs/getting-started/your-first-genai-script.mdx index 6ec96e7ee..f29eafa63 100644 --- a/docs/src/content/docs/getting-started/your-first-genai-script.mdx +++ b/docs/src/content/docs/getting-started/your-first-genai-script.mdx @@ -17,7 +17,7 @@ import { Steps } from "@astrojs/starlight/components" import { Content as CreateScript } from "../../../components/CreateScript.mdx" GenAIScript use stylized JavaScript with minimal syntax. -They are stored as files (`genaisrc/*.genai.js`) in your project. +They are stored as files (`genaisrc/*.genai.js` or `genaisrc/*.genai.mjs`) in your project. The execution of a genaiscript creates the prompt that will be sent to the LLM. @@ -36,7 +36,7 @@ The resulting file will be placed in the `genaisrc` folder in your project. - genaisrc scripts are created here by default - genaiscript.d.ts (TypeScript type definitions) - jsconfig.json (TypeScript compiler configuration) - - **proofreader.genai.js** + - **proofreader.genai.mjs** - … - … @@ -54,7 +54,7 @@ that gets sent to the LLM model. The ` $``...`` ` template string function formats and write the string to the prompt; which gets sent to the LLM. -```js title="poem.genai.js" system=false assistant=true +```js title="poem.genai.mjs" system=false assistant=true $`Write a one sentence poem.` ``` @@ -88,7 +88,7 @@ GenAIScript exposes the context through the `env` variable. The context is impli - you can right click on or in a file and the `env.files` will contain only that file. - you can run the script using the [command line interface](/genaiscript/reference/cli) and specify content of `env.files` in the CLI arguments. -```js title="proofreader.genai.js" system=false assistant=false user=true +```js title="proofreader.genai.mjs" system=false assistant=false user=true def("FILES", env.files) ``` @@ -126,7 +126,7 @@ For example, to denote a heading, you add a number sign before it (e.g., # Headi The `$` function is used to build the prompt text, it renders and writes the text to the prompt (`$` is a [template literal](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals)). -```js title="proofreader.genai.js" +```js title="proofreader.genai.mjs" def("FILES", env.files) $`You are an expert technical writer and proofreader. Review the documents in FILE and report the 2 most important issues.` @@ -184,7 +184,7 @@ These are the two most important issues that need to be addressed in the documen You can add a call to the `script` function to provides metadata about the script and the model. The metadata is used to display the script in the UI and configure the LLM model. -```js title="proofreader.genai.js" +```js title="proofreader.genai.mjs" // the metadata script({ // user interface diff --git a/docs/src/content/docs/guides/ask-my-pdf.mdx b/docs/src/content/docs/guides/ask-my-pdf.mdx index 8e5fe76fb..cb51c9a6d 100644 --- a/docs/src/content/docs/guides/ask-my-pdf.mdx +++ b/docs/src/content/docs/guides/ask-my-pdf.mdx @@ -38,7 +38,7 @@ The quick-start guide illustrates how to write a GenAIScript that takes input fr In this example, we will extract text from a pdf that describes the history of Lorem Ipsem. -```js title="ask-my-pdf.genai.js" system=false +```js title="ask-my-pdf.genai.mjs" system=false const src = def("PDFSOURCE", env.files, { endsWith: ".pdf" }) $`You are a helpful assistant. Summarize the content of ${src} and critique the document. diff --git a/docs/src/content/docs/guides/containerized-tools.md b/docs/src/content/docs/guides/containerized-tools.md index 466a626bc..17d41932e 100644 --- a/docs/src/content/docs/guides/containerized-tools.md +++ b/docs/src/content/docs/guides/containerized-tools.md @@ -2,6 +2,8 @@ title: Containerized Tools sidebar: order: 10 +description: Learn how to create and use containerized tools with executable dependencies in a secure environment using GCC as an example. +keywords: containerization, docker, GCC, tool integration, secure execution --- This guide shows how to create a [tool](/genaiscript/reference/scripts/tools) diff --git a/docs/src/content/docs/guides/phi3-with-ollama.mdx b/docs/src/content/docs/guides/phi3-with-ollama.mdx index 8b292a40f..73dc6a65f 100644 --- a/docs/src/content/docs/guides/phi3-with-ollama.mdx +++ b/docs/src/content/docs/guides/phi3-with-ollama.mdx @@ -41,7 +41,7 @@ ollama pull phi3 Update your script to use the `ollama:phi3` model. -```js title="summarize-phi3.genai.js" "ollama:phi3" +```js title="summarize-phi3.genai.mjs" "ollama:phi3" script({ model: "ollama:phi3", title: "summarize with phi3", diff --git a/docs/src/content/docs/guides/pull-request-reviewer.mdx b/docs/src/content/docs/guides/pull-request-reviewer.mdx index 68a5d0ea1..25871dca1 100644 --- a/docs/src/content/docs/guides/pull-request-reviewer.mdx +++ b/docs/src/content/docs/guides/pull-request-reviewer.mdx @@ -35,6 +35,7 @@ const { stdout: diff } = await host.exec("git", [ "--", "**.ts", ":!**/genaiscript.d.ts", // git exclude format + ":!**/jsconfig.json", ":!genaisrc/*", ":!.github/*", ":!.vscode/*", diff --git a/docs/src/content/docs/guides/sharing-scripts.mdx b/docs/src/content/docs/guides/sharing-scripts.mdx index 54983ce30..c2dd5f791 100644 --- a/docs/src/content/docs/guides/sharing-scripts.mdx +++ b/docs/src/content/docs/guides/sharing-scripts.mdx @@ -20,7 +20,7 @@ If you store your scripts in a git repository, you can use git submodules to sha - shared-scripts/ git repository `https://.../shared-scripts` - genaisrc/ - - my-script.genai.js + - my-script.genai.mjs - ... @@ -39,7 +39,7 @@ git submodule update --init --recursive - ... - shared-scripts/ git submodule https://github.com/.../shared-scripts - genaisrc/ - - my-script.genai.js + - my-script.genai.mjs ... diff --git a/docs/src/content/docs/guides/summarize-many-documents.mdx b/docs/src/content/docs/guides/summarize-many-documents.mdx index 0758a2885..c939165cc 100644 --- a/docs/src/content/docs/guides/summarize-many-documents.mdx +++ b/docs/src/content/docs/guides/summarize-many-documents.mdx @@ -21,7 +21,7 @@ Use the `> GenAIScript: Create new script...` command in the command palette to This is an easy script. Assuming the script will take the file as an argument, you can refer to that argument in `env.files` and tell the LLM what to do with it: -```js title="gen-tweet.genai.js" +```js title="gen-tweet.genai.mjs" script({ title: "gen-tweet" }) def("FILE", env.files) diff --git a/docs/src/content/docs/guides/tool-agent.mdx b/docs/src/content/docs/guides/tool-agent.mdx index 3e38636cd..0f54263ba 100644 --- a/docs/src/content/docs/guides/tool-agent.mdx +++ b/docs/src/content/docs/guides/tool-agent.mdx @@ -192,7 +192,7 @@ wraps the `parsers.math` expression parser and evaluator and exposes it as a too This simplifies the agent script as we do not have to define tools anymore. - genaisrc - - my-script.genai.js - - another-great-script.genai.js + - my-script.genai.mjs + - another-great-script.genai.mjs diff --git a/docs/src/content/docs/reference/cli/batch.mdx b/docs/src/content/docs/reference/cli/batch.mdx deleted file mode 100644 index d8b8e6014..000000000 --- a/docs/src/content/docs/reference/cli/batch.mdx +++ /dev/null @@ -1,101 +0,0 @@ ---- -title: Batch -description: Learn how to use the batch command to process multiple files with GenAIScript, including JSON Lines output and GitHub Actions integration. -sidebar: - order: 4 -keywords: batch processing, JSON Lines, CLI tool, automation, GitHub Actions ---- -import { Steps } from '@astrojs/starlight/components'; -import { Tabs, TabItem } from '@astrojs/starlight/components'; - -Once you have a script that works in Visual Studio Code, you can use the [command line](/genaiscript/reference/cli/) -to run the script automatically over many files. - -The `batch` command runs the tool over many files in a batch mode (one full LLM iteration per file). - -```bash "batch" -npx genaiscript batch