Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 0 additions & 1 deletion .genkit/traces_idx/genkit.metadata

This file was deleted.

92 changes: 92 additions & 0 deletions .github/workflows/ide_plugins.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
# Copyright 2026 Google LLC
#
# 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
#
# http://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.
#
# SPDX-License-Identifier: Apache-2.0

name: IDE Plugins

on:
push:
branches: [main]
paths:
- 'packages/jetbrains/**'
- 'packages/vim/**'
- 'packages/emacs/**'
pull_request:
branches: [main]
paths:
- 'packages/jetbrains/**'
- 'packages/vim/**'
- 'packages/emacs/**'
workflow_dispatch:

jobs:
jetbrains:
name: JetBrains Plugin
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3

- name: Build Plugin
working-directory: packages/jetbrains
run: ./gradlew buildPlugin

- name: Verify Plugin
working-directory: packages/jetbrains
run: ./gradlew verifyPlugin

- name: Publish Plugin
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && contains(github.event.head_commit.modified, 'packages/jetbrains/src/main/resources/META-INF/plugin.xml')
working-directory: packages/jetbrains
run: ./gradlew publishPlugin
env:
PUBLISH_TOKEN: ${{ secrets.JETBRAINS_TOKEN }}

vim:
name: Vim/Neovim
runs-on: ubuntu-latest
steps:
# Simple check for syntax validity
- uses: actions/checkout@v4

- name: Check Lua syntax
uses: JohnnyMorganz/stylua-action@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: latest
args: --check packages/vim/lua/

emacs:
name: Emacs Mode
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Emacs
uses: purcell/setup-emacs@master
with:
version: 29.1

- name: Byte compile
working-directory: packages/emacs
run: emacs -Q -batch -L . -f batch-byte-compile dotprompt-mode.el
78 changes: 78 additions & 0 deletions .github/workflows/treesitter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# Copyright 2026 Google LLC
#
# 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
#
# http://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.
#
# SPDX-License-Identifier: Apache-2.0

name: Tree-sitter

on:
push:
branches: [main]
paths:
- 'packages/treesitter/**'
pull_request:
branches: [main]
paths:
- 'packages/treesitter/**'
workflow_dispatch:

jobs:
test:
name: Test and Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install dependencies
working-directory: packages/treesitter
run: npm install

- name: Generate parser
working-directory: packages/treesitter
run: npm run generate

- name: Run tests
working-directory: packages/treesitter
run: npm run test

publish:
name: Publish to NPM
needs: test
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && contains(github.event.head_commit.modified, 'packages/treesitter/package.json')
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'

- name: Publish
working-directory: packages/treesitter
run: |
npm install
npm run build
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
104 changes: 104 additions & 0 deletions .github/workflows/web_editors.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
# Copyright 2026 Google LLC
#
# 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
#
# http://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.
#
# SPDX-License-Identifier: Apache-2.0

name: Web Editor Packages

on:
push:
branches: [main]
paths:
- 'packages/monaco/**'
- 'packages/codemirror/**'
pull_request:
branches: [main]
paths:
- 'packages/monaco/**'
- 'packages/codemirror/**'
workflow_dispatch:

jobs:
test:
name: Test and Build
runs-on: ubuntu-latest
strategy:
matrix:
package: [monaco, codemirror]
steps:
- uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 9

- name: Install dependencies
working-directory: packages/${{ matrix.package }}
run: pnpm install

- name: Typecheck
working-directory: packages/${{ matrix.package }}
run: pnpm run typecheck

- name: Build
working-directory: packages/${{ matrix.package }}
run: pnpm run build

publish:
name: Publish to NPM
needs: test
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'

- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 9

- name: Publish Monaco
if: contains(github.event.head_commit.modified, 'packages/monaco/package.json')
working-directory: packages/monaco
run: |
pnpm install
pnpm run build
pnpm publish --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Publish CodeMirror
if: contains(github.event.head_commit.modified, 'packages/codemirror/package.json')
working-directory: packages/codemirror
run: |
pnpm install
pnpm run build
pnpm publish --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ python/.tox
python/handlebarrz/target
site/
target/
.genkit/
47 changes: 47 additions & 0 deletions .release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,53 @@
"draft": false,
"prerelease": false,
"path": "packages/emacs"
},
"packages/monaco": {
"release-type": "node",
"package-name": "@dotprompt/monaco",
"changelog-path": "CHANGELOG.md",
"bump-minor-pre-major": true,
"bump-patch-for-minor-pre-major": true,
"draft": false,
"prerelease": false,
"path": "packages/monaco"
},
"packages/codemirror": {
"release-type": "node",
"package-name": "@dotprompt/codemirror",
"changelog-path": "CHANGELOG.md",
"bump-minor-pre-major": true,
"bump-patch-for-minor-pre-major": true,
"draft": false,
"prerelease": false,
"path": "packages/codemirror"
},
"packages/jetbrains": {
"release-type": "simple",
"package-name": "dotprompt-jetbrains",
"changelog-path": "CHANGELOG.md",
"bump-minor-pre-major": true,
"bump-patch-for-minor-pre-major": true,
"draft": false,
"prerelease": false,
"path": "packages/jetbrains",
"extra-files": [
{
"type": "xml",
"path": "src/main/resources/META-INF/plugin.xml",
"jsonpath": "idea-plugin.change-notes"
}
]
},
"packages/treesitter": {
"release-type": "node",
"package-name": "tree-sitter-dotprompt",
"changelog-path": "CHANGELOG.md",
"bump-minor-pre-major": true,
"bump-patch-for-minor-pre-major": true,
"draft": false,
"prerelease": false,
"path": "packages/treesitter"
}
},
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
Expand Down
6 changes: 5 additions & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,9 @@
"rs": "0.1.0",
"packages/vscode": "0.0.1",
"packages/vim": "0.1.0",
"packages/emacs": "0.1.0"
"packages/emacs": "0.1.0",
"packages/monaco": "0.1.0",
"packages/codemirror": "0.1.0",
"packages/jetbrains": "0.2.0",
"packages/treesitter": "0.1.0"
}
2 changes: 1 addition & 1 deletion MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions go.MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ use_repo(
"com_github_goccy_go_yaml",
"com_github_invopop_jsonschema",
"com_github_mbleigh_raymond",
"com_github_smacker_go_tree_sitter",
"com_github_stretchr_testify",
"com_github_wk8_go_ordered_map_v2",
"org_golang_x_text",
Expand Down
1 change: 1 addition & 0 deletions go/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ require (

require (
github.com/mbleigh/raymond v0.0.0-20250414171441-6b3a58ab9e0a
github.com/smacker/go-tree-sitter v0.0.0-20240827094217-dd81d9e9be82
github.com/wk8/go-ordered-map/v2 v2.1.8
golang.org/x/text v0.33.0
)
Expand Down
2 changes: 2 additions & 0 deletions go/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ github.com/mbleigh/raymond v0.0.0-20250414171441-6b3a58ab9e0a h1:v2cBA3xWKv2cIOV
github.com/mbleigh/raymond v0.0.0-20250414171441-6b3a58ab9e0a/go.mod h1:Y6ghKH+ZijXn5d9E7qGGZBmjitx7iitZdQiIW97EpTU=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/smacker/go-tree-sitter v0.0.0-20240827094217-dd81d9e9be82 h1:6C8qej6f1bStuePVkLSFxoU22XBS165D3klxlzRg8F4=
github.com/smacker/go-tree-sitter v0.0.0-20240827094217-dd81d9e9be82/go.mod h1:xe4pgH49k4SsmkQq5OT8abwhWmnzkhpgnXeekbx2efw=
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
github.com/wk8/go-ordered-map/v2 v2.1.8 h1:5h/BUHu93oj4gIdvHHHGsScSTMijfx5PeYkE/fJgbpc=
Expand Down
Loading
Loading