Skip to content
Draft
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
65 changes: 65 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Release

on:
push:
tags:
- "v*"

permissions: {}

concurrency:
group: release-${{ github.ref }}
cancel-in-progress: false

jobs:
release:
name: Stage npm package and create GitHub release
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v7
with:
persist-credentials: false
- name: Validate release version
run: |
package_version="$(node -p "require('./plugins/tracing/package.json').version")"
manifest_version="$(node -p "require('./plugins/tracing/.codex-plugin/plugin.json').version")"
if [[ "$GITHUB_REF_NAME" != "v$package_version" ]]; then
echo "Tag $GITHUB_REF_NAME does not match package.json version $package_version" >&2
exit 1
fi
if [[ "$manifest_version" != "$package_version" ]]; then
echo "plugin.json version $manifest_version does not match package.json version $package_version" >&2
exit 1
fi
- name: Setup pnpm
uses: pnpm/action-setup@v5
- name: Setup Node.js
uses: actions/setup-node@v7
with:
node-version: 22.x
registry-url: https://registry.npmjs.org
package-manager-cache: false
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Lint
run: pnpm run lint
- name: Test
run: pnpm test
- name: Stage npm package
working-directory: plugins/tracing
run: |
if [[ "$GITHUB_REF_NAME" == *-* ]]; then
pnpm exec npm stage publish --provenance --access public --tag next
else
pnpm exec npm stage publish --provenance --access public
fi
- name: Create draft GitHub release
run: gh release create "$GITHUB_REF_NAME" --draft --generate-notes --verify-tag
env:
GH_TOKEN: ${{ github.token }}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@langfuse/codex-observability-plugin",
"name": "codex-observability-plugin-workspace",
"version": "0.1.0",
"private": true,
"description": "OpenAI Codex plugin that traces agent turns, tool calls, and subagents to Langfuse",
"keywords": [
"codex",
Expand Down Expand Up @@ -43,6 +44,7 @@
},
"devDependencies": {
"@types/node": "^22.10.0",
"npm": "11.15.0",
"prettier": "^3.9.4",
"tsdown": "^0.18.0",
"typescript": "^5.7.2",
Expand Down
37 changes: 37 additions & 0 deletions plugins/tracing/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"name": "@langfuse/codex-observability-plugin",
"version": "0.1.0",
"description": "Langfuse observability plugin for the OpenAI Codex coding agent for tracing prompts, agent turns, model generations, and tool calls.",
"license": "MIT",
"author": "Langfuse",
"type": "module",
"repository": {
"type": "git",
"url": "git+https://github.com/langfuse/codex-observability-plugin.git",
"directory": "plugins/tracing"
},
"bugs": {
"url": "https://github.com/langfuse/codex-observability-plugin/issues"
},
"homepage": "https://github.com/langfuse/codex-observability-plugin#readme",
"keywords": [
"codex",
"codex-plugin",
"langfuse",
"openai",
"observability",
"tracing",
"opentelemetry"
],
"files": [
".codex-plugin",
"hooks",
"dist"
],
"scripts": {
"prepack": "pnpm -w run build"
},
"engines": {
"node": ">=22"
}
}
76 changes: 76 additions & 0 deletions pnpm-lock.yaml

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