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
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
runs-on: ubuntu-latest
environment:
name: npm
url: https://www.npmjs.com/package/@agentrust/telemetry
url: https://www.npmjs.com/package/@agentrust-io/telemetry
permissions:
id-token: write
steps:
Expand Down
4 changes: 2 additions & 2 deletions RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ Configure PyPI pending trusted publishing with:
- workflow: `release.yml`
- environment: `pypi`

Configure the npm trusted publisher for `@agentrust/telemetry` with:
Configure the npm trusted publisher for `@agentrust-io/telemetry` with:

- organization/repository: `agentrust-io/agentrust-telemetry`
- workflow: `release.yml`
- environment: `npm`
- allowed action: `npm publish`

The npm package must be owned by the AgentTrust npm organization before its
The npm package must be owned by the `agentrust-io` npm organization before its
trusted publisher can be configured. If npm does not expose publisher settings
until the first version exists, bootstrap only that first package ownership
using npm's interactive 2FA flow, then configure trusted publishing before any
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# `@agentrust/telemetry`
# `@agentrust-io/telemetry`

TypeScript reference SDK for the AgentTrust Telemetry `0.1.0-alpha.1` contract.

Expand Down
4 changes: 2 additions & 2 deletions packages/typescript/package-lock.json

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

2 changes: 1 addition & 1 deletion packages/typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@agentrust/telemetry",
"name": "@agentrust-io/telemetry",
"version": "0.1.0-alpha.1",
"description": "TypeScript reference SDK for AgentTrust governance telemetry",
"keywords": ["ai-agents", "governance", "opentelemetry", "observability", "telemetry"],
Expand Down
21 changes: 16 additions & 5 deletions tools/check_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@


ROOT = Path(__file__).resolve().parents[1]
EXPECTED_NPM_NAME = "@agentrust-io/telemetry"


def ecosystem_versions(contract: str) -> tuple[str, str]:
Expand Down Expand Up @@ -43,15 +44,25 @@ def main() -> int:
except ValueError as error:
print(f"FAIL {error}", file=sys.stderr)
return 1
npm_package = json.loads(
npm_manifest = json.loads(
(ROOT / "packages" / "typescript" / "package.json").read_text(encoding="utf-8")
)["version"]
if package == init_version == expected_package and npm_package == expected_npm:
print(f"PASS contract={contract} python={package} npm={npm_package}")
)
npm_name = npm_manifest["name"]
npm_package = npm_manifest["version"]
if (
package == init_version == expected_package
and npm_package == expected_npm
and npm_name == EXPECTED_NPM_NAME
):
print(
f"PASS contract={contract} python={package} "
f"npm_name={npm_name} npm={npm_package}"
)
return 0
print(
f"FAIL version drift contract={contract} expected_package={expected_package} "
f"pyproject={package} __init__={init_version} expected_npm={expected_npm} npm={npm_package}",
f"pyproject={package} __init__={init_version} expected_npm_name={EXPECTED_NPM_NAME} "
f"npm_name={npm_name} expected_npm={expected_npm} npm={npm_package}",
file=sys.stderr,
)
return 1
Expand Down