oneie 4.2.1 → 5.0.0

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/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oneie",
3
- "version": "4.2.1",
3
+ "version": "5.0.0",
4
4
  "description": "ONE agent CLI",
5
5
  "type": "module",
6
6
  "bin": {
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ export default _default;
@@ -0,0 +1,22 @@
1
+ // @ts-nocheck — template file; typechecked in the target Astro project, not the CLI
2
+ // Install: bun add @oneie/frontend
3
+ // After setup: copy ONE_API_KEY from .env.local into backend.apiKey
4
+ import { defineOne } from '@oneie/frontend';
5
+ // The only per-node configuration:
6
+ // - backend.apiKey: your workspace's scoped API key (from one setup)
7
+ // - brand.tokens: 6 color tokens to match your brand
8
+ export default defineOne({
9
+ backend: {
10
+ apiKey: process.env.ONE_API_KEY ?? '',
11
+ },
12
+ brand: {
13
+ tokens: {
14
+ primary: 'hsl(216 55% 25%)', // your brand primary
15
+ secondary: 'hsl(160 40% 45%)', // secondary / accent
16
+ tertiary: 'hsl(38 90% 55%)', // highlight / CTA
17
+ background: 'hsl(0 0% 100%)', // page background
18
+ foreground: 'hsl(220 20% 15%)', // body text
19
+ font: 'Inter, system-ui, sans-serif',
20
+ },
21
+ },
22
+ });
@@ -97,6 +97,28 @@ export function workflowCmd() {
97
97
  const r = await call(opts.api, opts.slug, 'workflow:run', { workflowId: id });
98
98
  out(cmd, { ok: !!r.runId, ...r });
99
99
  });
100
+ // publish takes the workflow ID, like every sibling above — `loadOwned` looks
101
+ // up by id deliberately ("not name, to prevent name-guessing"), and `workflow
102
+ // list` is the door from a name to an id. The seller is NOT passed: the
103
+ // receiver derives it from the key's own attested workspace, so --slug here
104
+ // only picks the API host's workspace context, exactly as the siblings use it.
105
+ cmd.command('publish <id>')
106
+ .description('List a workflow you own on the marketplace at a price (credits; 0 = free)')
107
+ .requiredOption('--slug <slug>', 'Workspace slug')
108
+ .option('--price <n>', 'Price in credits', (v) => Number(v))
109
+ .option('--name <name>', "Listing title (defaults to the workflow's own name)")
110
+ .option('--tags <csv>', 'Comma-separated tags (workflow is always added)')
111
+ .option('--api <url>', 'API base URL', DEFAULT_API)
112
+ .action(async (id, opts) => {
113
+ const tags = opts.tags ? opts.tags.split(',').map((t) => t.trim()).filter(Boolean) : undefined;
114
+ const r = await call(opts.api, opts.slug, 'workflow:publish', {
115
+ workflowId: id,
116
+ ...(opts.price !== undefined ? { price: opts.price } : {}),
117
+ ...(opts.name ? { name: opts.name } : {}),
118
+ ...(tags ? { tags } : {}),
119
+ });
120
+ out(cmd, { ok: !!r.ok, ...r });
121
+ });
100
122
  cmd.command('validate <id> <file>')
101
123
  .description('Validate a diff-JSON file against a workflow (§9 gate, never persists)')
102
124
  .requiredOption('--slug <slug>', 'Workspace slug')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oneie",
3
- "version": "4.2.1",
3
+ "version": "5.0.0",
4
4
  "description": "ONE agent CLI",
5
5
  "type": "module",
6
6
  "bin": {