create-coline-app 2.1.0 → 2.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-coline-app",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "Scaffold, push, and iterate on Coline Apps.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -65,27 +65,43 @@ export default defineApp({
65
65
  files: [noteFileType],
66
66
  tools: [createNote],
67
67
  handlers: {
68
+ // The starter home screen — replace this with your app's real UI.
68
69
  renderHome: async (context) => {
69
70
  const { files } = await context.coline.files.list({
70
71
  typeKey: "__APP_KEY__.note",
71
72
  });
72
- return ui.stack([
73
- ui.heading("__APP_NAME__"),
74
- files.length === 0
75
- ? ui.emptyState({
76
- title: "No notes yet",
77
- description: "Ask Kairo to create one.",
78
- })
79
- : ui.stack(
80
- files.map((file) =>
81
- ui.fileCard({
82
- title: file.name,
83
- fileId: file.fileId,
84
- action: actions.openFile(file.fileId),
85
- }),
86
- ),
87
- ),
88
- ]);
73
+ return ui.stack(
74
+ [
75
+ ui.heading("__APP_NAME__ is running", { level: 1 }),
76
+ ui.text("Edit app.config.ts and save — dev mode hot-swaps this screen instantly.", {
77
+ tone: "muted",
78
+ }),
79
+ ui.card({
80
+ title: "Try the example tool",
81
+ description:
82
+ "This starter ships one Kairo tool and one file type. Ask Kairo: “create a note called Hello”.",
83
+ children:
84
+ files.length === 0
85
+ ? [ui.text("Notes it creates will show up here.", { tone: "muted" })]
86
+ : files.map((file) =>
87
+ ui.fileCard({
88
+ title: file.name,
89
+ fileId: file.fileId,
90
+ action: actions.openFile(file.fileId),
91
+ }),
92
+ ),
93
+ }),
94
+ ui.card({
95
+ title: "Where things live",
96
+ children: [
97
+ ui.text("app.config.ts — manifest, tools, file types, this screen"),
98
+ ui.text("app.test.ts — tests against an in-memory workspace"),
99
+ ui.text("Docs: /developers/docs · API reference: /developers/docs/reference"),
100
+ ],
101
+ }),
102
+ ],
103
+ { gap: "lg" },
104
+ );
89
105
  },
90
106
  },
91
107
  });