Skip to content

prog schema#179

Merged
mmkal merged 13 commits intomainfrom
mmkal/26/01/22/prog-schema
Mar 18, 2026
Merged

prog schema#179
mmkal merged 13 commits intomainfrom
mmkal/26/01/22/prog-schema

Conversation

@mmkal
Copy link
Owner

@mmkal mmkal commented Feb 10, 2026

import {obj} from 'trpc-cli/dist/progressive-object.js'
import {z} from 'zod'

const router = trpc.router({
  createApp: trpc.procedure
    .input(
      obj
        .prop('framework', z.enum(['react', 'vue']))
        .prop('rpcLibrary', z.enum(['trpc', 'orpc']), (type, inputs) =>
          type.default(inputs.framework === 'react' ? 'trpc' : 'orpc'),
        )
        .prop('typescript', z.boolean(), (type, inputs) => type.default(inputs.framework === 'react')),
    )
    .query(({input}) => JSON.stringify(input)),
})

createCli({ router }).run()

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 26, 2026

Open in StackBlitz

npm i https://pkg.pr.new/mmkal/trpc-cli@179

commit: 8a3f6e9

@mmkal mmkal force-pushed the mmkal/26/01/22/prog-schema branch from e239858 to fc66ee4 Compare February 26, 2026 23:00
@mmkal mmkal marked this pull request as ready for review March 18, 2026 09:10
@pullfrog
Copy link

pullfrog bot commented Mar 18, 2026

no API key found. Pullfrog requires at least one LLM provider API key.

to fix this, add the required secret to your GitHub repository:

  1. go to: https://github.com/mmkal/trpc-cli/settings/secrets/actions
  2. click "New repository secret"
  3. set the name to your provider's key (e.g., ANTHROPIC_API_KEY, OPENAI_API_KEY, GEMINI_API_KEY)
  4. set the value to your API key
  5. click "Add secret"

configure your model at https://pullfrog.com/console/mmkal/trpc-cli

Pullfrog  | Rerun failed job ➔View workflow run | Triggered by Pullfrogpullfrog.com𝕏

@mmkal mmkal merged commit 6f31046 into main Mar 18, 2026
55 checks passed
@github-actions
Copy link
Contributor

This is included in v0.14.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant