Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

1.1 KB
Raw Blame
# Macro SDK tasks.

set positional-arguments

# Fully refresh all generated code: rebuild the OpenAPI specs from the Rust
# services (via apps/web's gen-api), copy them into ./specs, and regenerate
# ./generated with orval.
update-generated:
    cd ../../apps/web && bun install && bun run gen-api
    bun install
    bun run sync-specs
    bun run generate

# Regenerate ./generated from the specs already in ./specs (no Rust build).
generate:
    bun install
    bun run generate

# Typecheck the SDK (hand-written + generated layers).
check:
    bun install
    bun run check

# Check endpoint coverage: every generated endpoint must either have a call
# site under src/ or be hand-listed in src/coverage/skipped.ts.
coverage:
    bun install
    bun run coverage

# Interactively create and verify a webhook. In `local` mode, register against
# http://sdk-webhook-relay:8787/macro-events and run the receiver on the host.
webhook *ARGS:
    bun run webhook -- "$@"

# Bump the published version: `just bump patch|minor|major`, or an explicit
# `X.Y.Z`. Merging the bump to main is what publishes; see RELEASING.md.
bump level="patch":
    bun scripts/bump.ts {{level}}