howone 0.2.3 → 0.2.6
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/package.json +1 -1
- package/templates/vite/.howone/skills/howone/01-architect/01-app-generation.md +8 -7
- package/templates/vite/.howone/skills/howone/01-architect/02-manifest-codegen.md +121 -436
- package/templates/vite/.howone/skills/howone/03-ai-capabilities/04-workflow-operations.md +13 -4
- package/templates/vite/.howone/skills/howone/04-app-sdk/01-client-setup.md +94 -261
- package/templates/vite/.howone/skills/howone/04-app-sdk/02-entity-operations.md +85 -465
- package/templates/vite/.howone/skills/howone/04-app-sdk/03-auth.md +11 -7
- package/templates/vite/.howone/skills/howone/04-app-sdk/04-react-integration.md +84 -137
- package/templates/vite/.howone/skills/howone/04-app-sdk/05-file-upload.md +66 -273
- package/templates/vite/.howone/skills/howone/04-app-sdk/06-raw-http.md +72 -249
- package/templates/vite/.howone/skills/howone/04-app-sdk/07-ai-action-calls.md +135 -499
- package/templates/vite/.howone/skills/howone/04-app-sdk/08-ai-manifest-handoff.md +49 -196
- package/templates/vite/.howone/skills/howone/04-app-sdk/09-extension-boundaries.md +4 -4
- package/templates/vite/.howone/skills/howone/04-app-sdk/10-workflow-execute-sse.md +94 -61
- package/templates/vite/.howone/skills/howone/04-app-sdk/11-entity-data-access-patterns.md +4 -3
- package/templates/vite/.howone/skills/howone/SKILL.md +48 -8
- package/templates/vite/.howone/skills/howone/references/common-errors.md +27 -0
- package/templates/vite/.howone/skills/howone/references/version-evidence.md +47 -0
- package/templates/vite/.howone/skills/howone/scripts/verify-project.mjs +151 -0
- package/templates/vite/package.json +1 -1
- package/templates/vite/src/App.tsx +9 -5
- package/templates/vite/src/lib/sdk.ts +7 -5
- package/templates/vite/bun.lock +0 -1478
package/package.json
CHANGED
|
@@ -126,10 +126,10 @@ Defaults: "my/private" → own; public catalog only when fields are safe; share
|
|
|
126
126
|
|
|
127
127
|
| Need | Client | Provider |
|
|
128
128
|
|---|---|---|
|
|
129
|
-
| HowOne AI, uploads, or authenticated/private entities | default `createClient` |
|
|
130
|
-
| Custom HowOne login UI | `auth: 'custom'`, real OTP/OAuth token flow |
|
|
131
|
-
| External IdP | headless + adapter |
|
|
132
|
-
| Manifest-approved public entities only |
|
|
129
|
+
| HowOne AI, uploads, or authenticated/private entities | default `createClient` | `<HowOneProvider client={howone}>`; hosted guard is inherited |
|
|
130
|
+
| Custom HowOne login UI | `auth: 'custom'`, real OTP/OAuth token flow | `<HowOneProvider client={howone}>`; custom guard is inherited |
|
|
131
|
+
| External IdP | headless + adapter | `<HowOneProvider client={howone}>`; adapter owns token |
|
|
132
|
+
| Manifest-approved public entities only | `auth: 'none'` or explicit public client | `<HowOneProvider client={howone}>` with no required guard |
|
|
133
133
|
| No HowOne runtime | no client required | no Provider required |
|
|
134
134
|
|
|
135
135
|
Keep default HowOne brand control unless user asks to hide. Resolve identity through the SDK track
|
|
@@ -142,7 +142,8 @@ When the final app uses any `@howone/sdk` runtime surface—including a synced e
|
|
|
142
142
|
public entities, uploads, auth, user/session APIs, or raw SDK requests:
|
|
143
143
|
|
|
144
144
|
1. Initialize the single app client in `src/lib/sdk.ts` with the generated project/env configuration.
|
|
145
|
-
2. Import that SDK module before `HowOneProvider`
|
|
145
|
+
2. Import that SDK module before `HowOneProvider` and pass the composed client so the Provider sees
|
|
146
|
+
the selected environment and instance-scoped auth state.
|
|
146
147
|
3. Keep `HowOneProvider` around the rendered application root. This is required for every active
|
|
147
148
|
HowOne SDK runtime, including public-only entity applications; replacing scaffold UI must not
|
|
148
149
|
remove it.
|
|
@@ -175,8 +176,8 @@ without default) need explicit user alignment before applying the final patch.
|
|
|
175
176
|
1. Read architecture + **catalog** (feasibility) + contract rules; use playbooks when they match.
|
|
176
177
|
2. Apply one complete capability patch → `sync_ai_artifacts`.
|
|
177
178
|
3. External workflow create/update per workflow-operations reference; keep job/request IDs from tool results.
|
|
178
|
-
4.
|
|
179
|
-
5.
|
|
179
|
+
4. Treat submission as asynchronous pending work, not a pause boundary. Continue independent app source, UI, persistence, and state implementation instead of ending the run to wait.
|
|
180
|
+
5. After the terminal result becomes available, run `sync_ai_artifacts` again, then read `{appRoot}/.howone/ai/manifest.json`. A successful update promotes its new workflow ID in the backend capability version.
|
|
180
181
|
6. Stop AI design. Read SDK references only if implementing app calls.
|
|
181
182
|
7. If persistence required: entity workflow after output contract is fixed.
|
|
182
183
|
|