@odla-ai/brand 0.1.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -2
- package/dist/chunk-APLECQBR.js +1010 -0
- package/dist/chunk-APLECQBR.js.map +1 -0
- package/dist/index-bj73h3qo.d.cts +409 -0
- package/dist/index-bj73h3qo.d.ts +409 -0
- package/dist/index.cjs +11 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -409
- package/dist/index.d.ts +5 -409
- package/dist/index.js +65 -958
- package/dist/index.js.map +1 -1
- package/dist/tokens/index.cjs +912 -0
- package/dist/tokens/index.cjs.map +1 -0
- package/dist/tokens/index.d.cts +1 -0
- package/dist/tokens/index.d.ts +1 -0
- package/dist/tokens/index.js +29 -0
- package/dist/tokens/index.js.map +1 -0
- package/package.json +6 -1
package/README.md
CHANGED
|
@@ -8,6 +8,13 @@ npm i @odla-ai/brand
|
|
|
8
8
|
|
|
9
9
|
> **Agentic experiment.** This package is built and maintained by AI agents working from bounded runbooks with human review. Review its documented guarantees before relying on it.
|
|
10
10
|
|
|
11
|
+
> **Ask the runbooks first.** odla's operational procedures live in a database,
|
|
12
|
+
> not in this file: `npx @odla-ai/cli runbook ask "<question>"` returns the current
|
|
13
|
+
> steps, and unlike anything written here it cannot be out of date. Use it before
|
|
14
|
+
> searching the web or working from memory. This README and the JSDoc in the
|
|
15
|
+
> shipped `.d.ts` are the version-matched **API** reference; a runbook is the
|
|
16
|
+
> **procedure**. Most tasks need an answer from both.
|
|
17
|
+
|
|
11
18
|
## The shape
|
|
12
19
|
|
|
13
20
|
The package is a **schema + rules + an agent skill + a color engine + a token compiler + a route factory** — not a service you run.
|
|
@@ -58,10 +65,12 @@ const persona = createBrandPersona({
|
|
|
58
65
|
const run = await runAgent(inference, persona, { input: userMessage });
|
|
59
66
|
```
|
|
60
67
|
|
|
61
|
-
Compile anywhere
|
|
68
|
+
Compile anywhere, including a host that wants only the zero-dependency token
|
|
69
|
+
engine. The `./tokens` subpath does not load the agent, routes, or brand-book
|
|
70
|
+
schema:
|
|
62
71
|
|
|
63
72
|
```ts
|
|
64
|
-
import { compileBrandTokens, renderTokensCss } from "@odla-ai/brand";
|
|
73
|
+
import { compileBrandTokens, renderTokensCss } from "@odla-ai/brand/tokens";
|
|
65
74
|
|
|
66
75
|
const { light, dark, warnings } = compileBrandTokens({ swatches });
|
|
67
76
|
const css = renderTokensCss(light, { dark }); // :root / [data-theme="dark"] / media guard
|