Hi - I answer from the OpenSmartRoute documentation: routing, the API, plans and quotas, self-hosting. Ask away, or open a support ticket if you need a person.
Grounded in the docs - follow a source before acting on it.
Imported from webiny/webiny-js (skills/user-skills/generated/cli/SKILL.md). Install upstream with npx skills add webiny/webiny-js --skill cli. Copyright stays with the author.
cli
How to Use
Find the abstraction you need below
You MUST read the source file to get the exact interface and types!
Import: import { Name } from "<importPath>";
Abstractions
Name:LoggerServiceImport:import { LoggerService } from "webiny/cli"Source:@webiny/cli-core/abstractions/services/LoggerService.ts
Name:UiServiceImport:import { UiService } from "webiny/cli"Source:@webiny/cli-core/abstractions/services/UiService.ts
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
# after Install: the listing is in your workspace's routing pool - a plan picks it for its slot
curl -s -X POST https://api.opensmartroute.ai/api/v1/route -H 'Authorization: Bearer $OSR_API_KEY' -H 'Content-Type: application/json' -d '{"text": "...", "plan": true}'
Manifest
An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.
webiny-webiny-js-cli.ocm.jsonjson
{
"ocm": "1",
"id": "webiny-webiny-js-cli",
"kind": "skill",
"name": "webiny-cli-catalog",
"description": "cli — 2 abstractions.",
"publisher": "webiny",
"version": "1.0.0",
"capabilities": {
"domains": [
"general"
],
"tags": [
"skill-md",
"github"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"cli — 2 abstractions."
],
"primary": false,
"metadata": {
"source": {
"provider": "github",
"repository": "https://github.com/webiny/webiny-js",
"path": "skills/user-skills/generated/cli/SKILL.md",
"ref": "51e5179909e726c15a1d3587997f429e7885858a",
"url": "https://github.com/webiny/webiny-js/blob/51e5179909e726c15a1d3587997f429e7885858a/skills/user-skills/generated/cli/SKILL.md",
"key": "webiny/webiny-js/skills/user-skills/generated/cli/SKILL.md"
}
},
"instructions": "# cli\n\n## How to Use\n\n1. Find the abstraction you need below\n2. You MUST read the source file to get the exact interface and types!\n3. Import: `import { Name } from \"<importPath>\";`\n\n## Abstractions\n\n---\n\n**Name:** `LoggerService`\n**Import:** `import { LoggerService } from \"webiny/cli\"`\n**Source:** `@webiny/cli-core/abstractions/services/LoggerService.ts`\n\n---\n\n**Name:** `UiService`\n**Import:** `import { UiService } from \"webiny/cli\"`\n**Source:** `@webiny/cli-core/abstractions/services/UiService.ts`\n\n---",
"cost": {
"context_tokens": 127
}
}
Fetch it by URL: GET /api/v1/registry/webiny-webiny-js-cli/manifest?version=1.0.0
Reviews
Star ratings from people who tried it. One review per account; edit yours any time.
No reviews yet. Install it, try it, and be the first to rate it.