@homie-rocks/studio 0.58.20 → 0.58.23
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/CHANGELOG.md +48 -0
- package/bin/homie-studio.mjs +1 -1
- package/guides/playtest/SKILL.md +2 -2
- package/guides/servers/SKILL.md +5 -5
- package/guides/studio-setup/SKILL.md +11 -11
- package/lib/doctor.mjs +1 -1
- package/lib/job-runner.mjs +133 -0
- package/lib/jobs.mjs +200 -37
- package/lib/local-ai.mjs +2 -2
- package/lib/mcp-tools.mjs +41 -31
- package/lib/parts-store.mjs +46 -2
- package/lib/parts.mjs +13 -1
- package/lib/scaffold.mjs +13 -12
- package/lib/template-history.json +150 -6
- package/package.json +20 -5
- package/parts/PARTS.md +27 -0
- package/parts/README.md +1 -0
- package/parts/catalogue.json +138 -0
- package/parts/venue-desk/LICENSE +202 -0
- package/parts/venue-desk/NOTICE +3 -0
- package/parts/venue-desk/README.md +34 -0
- package/parts/venue-desk/part.json +138 -0
- package/parts/venue-desk/preview/index.html +7 -0
- package/parts/venue-desk/src/index.ts +228 -0
- package/parts/venue-desk/tools/venue-booking-cancel.ts +2 -0
- package/parts/venue-desk/tools/venue-booking-confirm.ts +2 -0
- package/parts/venue-desk/tools/venue-booking-details.ts +2 -0
- package/parts/venue-desk/tools/venue-booking-status.ts +2 -0
- package/parts/venue-desk/tools/venue-desk.ts +2 -0
- package/parts/venue-desk/tools/venue-info-set.ts +2 -0
- package/parts/venue-desk/tools/venue-info.ts +2 -0
- package/parts/venue-desk/tools/venue-waitlist-join.ts +2 -0
- package/parts/venue-desk/tools/venue-waitlist-offer.ts +2 -0
- package/parts/venue-desk/tools/venue-waitlist-status.ts +2 -0
- package/parts/venue-desk/tuning.json +1 -0
- package/tools/TOOLS.md +14 -0
- package/worker/booking-availability.mjs +1 -1
- package/worker/booking-holds.mjs +48 -21
- package/worker/booking-options.mjs +1 -1
- package/worker/build-id.mjs +1 -1
- package/worker/customer-mcp.mjs +15 -1
- package/worker/mcp-room.mjs +3 -2
- package/worker/mcp-tools.mjs +9 -1
- package/worker/mcp.mjs +6 -1
- package/worker/room.mjs +3 -2
- package/worker/version.mjs +1 -1
package/parts/PARTS.md
CHANGED
|
@@ -115,6 +115,33 @@ whose files were changed locally; a part with no licence; credit owed and missin
|
|
|
115
115
|
share-alike part is pointed out for the person's decision, and a licence the toolkit does not know is said to be
|
|
116
116
|
one to read.
|
|
117
117
|
|
|
118
|
+
## An agent part
|
|
119
|
+
|
|
120
|
+
A part of kind `agent` is a template for one of the studio's agents. In the chat, **New agent** lists the studio's
|
|
121
|
+
agent parts; choosing one makes an agent with that name, persona and instructions (its own chat and memory start
|
|
122
|
+
empty). Nothing in it runs: it is words, so it needs no `entry`.
|
|
123
|
+
|
|
124
|
+
```json
|
|
125
|
+
{
|
|
126
|
+
"id": "bookings-desk",
|
|
127
|
+
"name": "Bookings desk",
|
|
128
|
+
"kind": "agent",
|
|
129
|
+
"version": "1.0.0",
|
|
130
|
+
"summary": "Answers booking questions and keeps the calendar tidy.",
|
|
131
|
+
"agent": {
|
|
132
|
+
"name": "Bookings",
|
|
133
|
+
"persona": "Answers booking questions and keeps the calendar tidy.",
|
|
134
|
+
"instructions": "Check the calendar before promising a time. Ask Homie before changing the site.",
|
|
135
|
+
"tools": null
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
`agent.name` (1 to 40 characters) is required; `persona` (up to 400) and `instructions` (up to 8000) are text;
|
|
141
|
+
`tools` is left out or `null` for every tool, or a list of up to 40 tool names the agent may use. Agents can ask
|
|
142
|
+
each other for help (two hops at most, three asks a turn, never back round a loop). Make one with
|
|
143
|
+
`homie-studio parts new bookings-desk --kind agent`.
|
|
144
|
+
|
|
118
145
|
## What a studio's site serves
|
|
119
146
|
|
|
120
147
|
`sharedPartsOf(studio)` (`lib/parts.mjs`) is the single answer to what a studio shares: its parts with
|
package/parts/README.md
CHANGED
|
@@ -7,6 +7,7 @@ are the standard `part.json` records, also collected in `catalogue.json` for loc
|
|
|
7
7
|
| --- | --- | --- | --- |
|
|
8
8
|
| [Owner action checklist](owner-action-checklist/README.md) | Consequence-first owner/staff action UI, server integration boundary, optional undo | Owner action checklist / Homie toolkit | Apache-2.0 |
|
|
9
9
|
| [Terrain route map](terrain-route-map/README.md) | Local heightmap coast, draped route, markers and phone/TV camera controls | Terrain route map / Homie toolkit | Apache-2.0 (three.js MIT) |
|
|
10
|
+
| [Venue desk](venue-desk/README.md) | Venue info, booking contact and confirmation, waitlist and owner outbox as studio tools, schema.org outputs | Venue desk / Homie toolkit | Apache-2.0 |
|
|
10
11
|
|
|
11
12
|
Each folder includes its licence, attribution, AI integration contract, tunables and small
|
|
12
13
|
working preview. Ryan Campbell authored both. To preview locally, serve this directory with
|
package/parts/catalogue.json
CHANGED
|
@@ -231,6 +231,144 @@
|
|
|
231
231
|
"id": "terrain-route-map",
|
|
232
232
|
"studio": "Homie toolkit"
|
|
233
233
|
}
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"id": "venue-desk",
|
|
237
|
+
"name": "Venue desk",
|
|
238
|
+
"kind": "tools",
|
|
239
|
+
"version": "1.0.1",
|
|
240
|
+
"summary": "Public venue info (hours, closures, policies, FAQ), booking contact and confirmation on top of studio holds, and a waitlist with an owner outbox. Any venue, schema.org outputs.",
|
|
241
|
+
"license": "Apache-2.0",
|
|
242
|
+
"attribution": "Ryan Campbell — Homie toolkit",
|
|
243
|
+
"share": true,
|
|
244
|
+
"tags": [
|
|
245
|
+
"venue",
|
|
246
|
+
"booking",
|
|
247
|
+
"reservation",
|
|
248
|
+
"waitlist",
|
|
249
|
+
"hours",
|
|
250
|
+
"faq",
|
|
251
|
+
"schema-org",
|
|
252
|
+
"tools",
|
|
253
|
+
"mcp"
|
|
254
|
+
],
|
|
255
|
+
"uses": [
|
|
256
|
+
"app"
|
|
257
|
+
],
|
|
258
|
+
"entry": "src/index.ts",
|
|
259
|
+
"preview": {
|
|
260
|
+
"page": "preview/index.html",
|
|
261
|
+
"aspect": "4:3",
|
|
262
|
+
"phoneAspect": "2:3"
|
|
263
|
+
},
|
|
264
|
+
"requires": {
|
|
265
|
+
"packages": {
|
|
266
|
+
"@homie-rocks/studio": "^0.58.0"
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
"provenance": {
|
|
270
|
+
"source": "original",
|
|
271
|
+
"notes": "Original code authored for the Homie toolkit."
|
|
272
|
+
},
|
|
273
|
+
"contract": {
|
|
274
|
+
"inputs": {
|
|
275
|
+
"tools": "Re-export each tool from tools/<name>.ts; see README"
|
|
276
|
+
},
|
|
277
|
+
"state": {
|
|
278
|
+
"authority": "Studio tools own all data in the venue-desk tool namespace; holds stay in ctx.bookings"
|
|
279
|
+
},
|
|
280
|
+
"netplay": "local"
|
|
281
|
+
},
|
|
282
|
+
"from": {
|
|
283
|
+
"kind": "app",
|
|
284
|
+
"id": "venue-desk",
|
|
285
|
+
"studio": "Homie toolkit"
|
|
286
|
+
},
|
|
287
|
+
"files": [
|
|
288
|
+
{
|
|
289
|
+
"path": "LICENSE",
|
|
290
|
+
"sha256": "cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30",
|
|
291
|
+
"bytes": 11358
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"path": "NOTICE",
|
|
295
|
+
"sha256": "de5550bb70ec59421656c648a89fd9b75c8d1d7ae39317262c5e932e1abe0fdd",
|
|
296
|
+
"bytes": 78
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"path": "README.md",
|
|
300
|
+
"sha256": "eee6191c6ff2b270dcd9b2d8eac14c41c1a81e6540eba6ea68c9a8ca3084eafe",
|
|
301
|
+
"bytes": 2923
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"path": "preview/index.html",
|
|
305
|
+
"sha256": "994a3aab3cfcc8d58d4500dd474fd1bd388b8ca68ccfd518faae0eef3ef10075",
|
|
306
|
+
"bytes": 950
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"path": "src/index.ts",
|
|
310
|
+
"sha256": "16622b3ce82ffd38cf1ba9288fd6161da15aba36b63ac43ce55ef6acdd414868",
|
|
311
|
+
"bytes": 19883
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"path": "tools/venue-booking-cancel.ts",
|
|
315
|
+
"sha256": "573e7c0e441fa584dec936b65c62b0d43ad2872ad5a7376f1f71d8387ab26964",
|
|
316
|
+
"bytes": 184
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"path": "tools/venue-booking-confirm.ts",
|
|
320
|
+
"sha256": "926a5ee084855f7f11ab083c4c9ac65f52139998d18377250b6df5de1dd805c2",
|
|
321
|
+
"bytes": 185
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
"path": "tools/venue-booking-details.ts",
|
|
325
|
+
"sha256": "337c4ce2999c7914713d665ffe953ae3e9835e6bbbe866d82d7cb200c9d4576a",
|
|
326
|
+
"bytes": 185
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"path": "tools/venue-booking-status.ts",
|
|
330
|
+
"sha256": "8bb7fccf5f3114758ed48f050a8e67dd1d9f56aa16d64e12b66e29930e6b4c33",
|
|
331
|
+
"bytes": 184
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"path": "tools/venue-desk.ts",
|
|
335
|
+
"sha256": "00dc1a1d776ffa45db5c9e9383ed38db64687e0a0c793b5873c741192d720880",
|
|
336
|
+
"bytes": 175
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"path": "tools/venue-info-set.ts",
|
|
340
|
+
"sha256": "25470987a92db94e40be7a864495984403dd78427c23c24ea56a3fe880dd2c7f",
|
|
341
|
+
"bytes": 178
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
"path": "tools/venue-info.ts",
|
|
345
|
+
"sha256": "cde9c5db9c05b289bc3d0a466d7c41d51f840638e3029d3887b1a1a4331c1438",
|
|
346
|
+
"bytes": 175
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
"path": "tools/venue-waitlist-join.ts",
|
|
350
|
+
"sha256": "562ff05d8838a0495ec38b0de3a7d8c4d39fe2dea4c61aa6ed11b3dac9164be1",
|
|
351
|
+
"bytes": 183
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"path": "tools/venue-waitlist-offer.ts",
|
|
355
|
+
"sha256": "adb2ccf20f67aa60c7f6716782f67c55bac0408426bcec7b8ceeb31121614f51",
|
|
356
|
+
"bytes": 184
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"path": "tools/venue-waitlist-status.ts",
|
|
360
|
+
"sha256": "2c00100aec0e0bfa04b94fec3eaaa5ad98d473c52dcb740fe4000647fc07fa7c",
|
|
361
|
+
"bytes": 185
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
"path": "tuning.json",
|
|
365
|
+
"sha256": "f212afabe47c7c0e0321bfb9dda8cf9ae2237fbd9d419c028d607e1c0185ddd1",
|
|
366
|
+
"bytes": 44
|
|
367
|
+
}
|
|
368
|
+
],
|
|
369
|
+
"cost": {
|
|
370
|
+
"bytes": 37054
|
|
371
|
+
}
|
|
234
372
|
}
|
|
235
373
|
]
|
|
236
374
|
}
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Venue desk
|
|
2
|
+
|
|
3
|
+
One generic, opt-in set of studio tools for any venue (surf school, restaurant, studio class, court, room). It sits on top of the toolkit's own booking holds (`studio_availability`, `studio_book`, `studio_checkout`) and adds what an agent such as Ask/Enjoy needs to finish a booking for a person:
|
|
4
|
+
|
|
5
|
+
| Tool | Who | What |
|
|
6
|
+
| --- | --- | --- |
|
|
7
|
+
| `venue_info` | public | schema.org `LocalBusiness` with opening hours, holiday exceptions and time zone, a `FAQPage`, policies, contact and which app/collection to book |
|
|
8
|
+
| `venue_booking_details` | public (hold token) | attach name, email or phone, party size and notes to a hold |
|
|
9
|
+
| `venue_booking_confirm` | public (hold token) | turn a held slot into a confirmed booking; if the venue takes payment in advance it points to `studio_checkout` instead |
|
|
10
|
+
| `venue_booking_status` | public (hold token) | schema.org `Reservation` for a hold |
|
|
11
|
+
| `venue_booking_cancel` | public (hold token) | release a hold or booking |
|
|
12
|
+
| `venue_waitlist_join` | public (own token) | join a waitlist for a full slot, or a wanted time |
|
|
13
|
+
| `venue_waitlist_status` | public (own token) | position and offer; `leave: true` leaves |
|
|
14
|
+
| `venue_info_set` | owner | edit hours, exceptions, policies, FAQ, contact, booking settings from chat |
|
|
15
|
+
| `venue_desk` | owner | bookings with contacts, waitlist, the unsent outbox and the recent log |
|
|
16
|
+
| `venue_waitlist_offer` | owner | offer a freed slot to a waitlist entry; writes an outbox item. **Homie never sends anything** — the owner or their agent sends it and marks it `sent` |
|
|
17
|
+
|
|
18
|
+
Anonymous callers prove ownership with a private token they generate (32–128 characters, the same pattern as `studio_book`). Waitlist tokens are stored only as SHA-256 hashes. Nothing here charges money; payment, when the venue wants it, stays in `studio_checkout`.
|
|
19
|
+
|
|
20
|
+
## Agent flow
|
|
21
|
+
|
|
22
|
+
1. `venue_info` → read hours, policies and `booking.app` / `booking.collection`.
|
|
23
|
+
2. `studio_availability {app, collection, from, to}` → pick a slot.
|
|
24
|
+
3. `studio_book {app, collection, slot, hold, token, expiresAt}` → a hold.
|
|
25
|
+
4. `venue_booking_details {hold, token, name, email|phone, partySize, notes}`.
|
|
26
|
+
5. `venue_booking_confirm {hold, token}` → `ReservationConfirmed`, or `next: "studio_checkout"` when `booking.paymentInAdvance` is set and the person approves payment.
|
|
27
|
+
6. Full? `venue_waitlist_join {id, token, slot|wanted, name, email|phone, partySize}`.
|
|
28
|
+
|
|
29
|
+
## Install
|
|
30
|
+
|
|
31
|
+
1. `part_add "<sharing studio host>/venue-desk"` (or copy this folder to `parts/venue-desk`).
|
|
32
|
+
2. Copy the files in this part's `tools/` folder into the studio's `tools/` folder. Each is one line, e.g.
|
|
33
|
+
`export { venueInfo as default } from "@parts/<host>/venue-desk";` (use `@parts/venue-desk` when the part sits in `parts/venue-desk`). Leave out any tool you do not want.
|
|
34
|
+
3. Deploy. Then, as owner, call `venue_info_set` with the venue's name, time zone, hours and the booking app and collection.
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "venue-desk",
|
|
3
|
+
"name": "Venue desk",
|
|
4
|
+
"kind": "tools",
|
|
5
|
+
"version": "1.0.1",
|
|
6
|
+
"summary": "Public venue info (hours, closures, policies, FAQ), booking contact and confirmation on top of studio holds, and a waitlist with an owner outbox. Any venue, schema.org outputs.",
|
|
7
|
+
"license": "Apache-2.0",
|
|
8
|
+
"attribution": "Ryan Campbell — Homie toolkit",
|
|
9
|
+
"share": true,
|
|
10
|
+
"tags": [
|
|
11
|
+
"venue",
|
|
12
|
+
"booking",
|
|
13
|
+
"reservation",
|
|
14
|
+
"waitlist",
|
|
15
|
+
"hours",
|
|
16
|
+
"faq",
|
|
17
|
+
"schema-org",
|
|
18
|
+
"tools",
|
|
19
|
+
"mcp"
|
|
20
|
+
],
|
|
21
|
+
"uses": [
|
|
22
|
+
"app"
|
|
23
|
+
],
|
|
24
|
+
"entry": "src/index.ts",
|
|
25
|
+
"preview": {
|
|
26
|
+
"page": "preview/index.html",
|
|
27
|
+
"aspect": "4:3",
|
|
28
|
+
"phoneAspect": "2:3"
|
|
29
|
+
},
|
|
30
|
+
"requires": {
|
|
31
|
+
"packages": {
|
|
32
|
+
"@homie-rocks/studio": "^0.58.0"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"provenance": {
|
|
36
|
+
"source": "original",
|
|
37
|
+
"notes": "Original code authored for the Homie toolkit."
|
|
38
|
+
},
|
|
39
|
+
"contract": {
|
|
40
|
+
"inputs": {
|
|
41
|
+
"tools": "Re-export each tool from tools/<name>.ts; see README"
|
|
42
|
+
},
|
|
43
|
+
"state": {
|
|
44
|
+
"authority": "Studio tools own all data in the venue-desk tool namespace; holds stay in ctx.bookings"
|
|
45
|
+
},
|
|
46
|
+
"netplay": "local"
|
|
47
|
+
},
|
|
48
|
+
"from": {
|
|
49
|
+
"kind": "app",
|
|
50
|
+
"id": "venue-desk",
|
|
51
|
+
"studio": "Homie toolkit"
|
|
52
|
+
},
|
|
53
|
+
"files": [
|
|
54
|
+
{
|
|
55
|
+
"path": "LICENSE",
|
|
56
|
+
"sha256": "cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30",
|
|
57
|
+
"bytes": 11358
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"path": "NOTICE",
|
|
61
|
+
"sha256": "de5550bb70ec59421656c648a89fd9b75c8d1d7ae39317262c5e932e1abe0fdd",
|
|
62
|
+
"bytes": 78
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"path": "README.md",
|
|
66
|
+
"sha256": "eee6191c6ff2b270dcd9b2d8eac14c41c1a81e6540eba6ea68c9a8ca3084eafe",
|
|
67
|
+
"bytes": 2923
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"path": "preview/index.html",
|
|
71
|
+
"sha256": "994a3aab3cfcc8d58d4500dd474fd1bd388b8ca68ccfd518faae0eef3ef10075",
|
|
72
|
+
"bytes": 950
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"path": "src/index.ts",
|
|
76
|
+
"sha256": "16622b3ce82ffd38cf1ba9288fd6161da15aba36b63ac43ce55ef6acdd414868",
|
|
77
|
+
"bytes": 19883
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"path": "tools/venue-booking-cancel.ts",
|
|
81
|
+
"sha256": "573e7c0e441fa584dec936b65c62b0d43ad2872ad5a7376f1f71d8387ab26964",
|
|
82
|
+
"bytes": 184
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"path": "tools/venue-booking-confirm.ts",
|
|
86
|
+
"sha256": "926a5ee084855f7f11ab083c4c9ac65f52139998d18377250b6df5de1dd805c2",
|
|
87
|
+
"bytes": 185
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"path": "tools/venue-booking-details.ts",
|
|
91
|
+
"sha256": "337c4ce2999c7914713d665ffe953ae3e9835e6bbbe866d82d7cb200c9d4576a",
|
|
92
|
+
"bytes": 185
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"path": "tools/venue-booking-status.ts",
|
|
96
|
+
"sha256": "8bb7fccf5f3114758ed48f050a8e67dd1d9f56aa16d64e12b66e29930e6b4c33",
|
|
97
|
+
"bytes": 184
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"path": "tools/venue-desk.ts",
|
|
101
|
+
"sha256": "00dc1a1d776ffa45db5c9e9383ed38db64687e0a0c793b5873c741192d720880",
|
|
102
|
+
"bytes": 175
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"path": "tools/venue-info-set.ts",
|
|
106
|
+
"sha256": "25470987a92db94e40be7a864495984403dd78427c23c24ea56a3fe880dd2c7f",
|
|
107
|
+
"bytes": 178
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"path": "tools/venue-info.ts",
|
|
111
|
+
"sha256": "cde9c5db9c05b289bc3d0a466d7c41d51f840638e3029d3887b1a1a4331c1438",
|
|
112
|
+
"bytes": 175
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"path": "tools/venue-waitlist-join.ts",
|
|
116
|
+
"sha256": "562ff05d8838a0495ec38b0de3a7d8c4d39fe2dea4c61aa6ed11b3dac9164be1",
|
|
117
|
+
"bytes": 183
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"path": "tools/venue-waitlist-offer.ts",
|
|
121
|
+
"sha256": "adb2ccf20f67aa60c7f6716782f67c55bac0408426bcec7b8ceeb31121614f51",
|
|
122
|
+
"bytes": 184
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"path": "tools/venue-waitlist-status.ts",
|
|
126
|
+
"sha256": "2c00100aec0e0bfa04b94fec3eaaa5ad98d473c52dcb740fe4000647fc07fa7c",
|
|
127
|
+
"bytes": 185
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"path": "tuning.json",
|
|
131
|
+
"sha256": "f212afabe47c7c0e0321bfb9dda8cf9ae2237fbd9d419c028d607e1c0185ddd1",
|
|
132
|
+
"bytes": 44
|
|
133
|
+
}
|
|
134
|
+
],
|
|
135
|
+
"cost": {
|
|
136
|
+
"bytes": 37054
|
|
137
|
+
}
|
|
138
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<!doctype html><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Venue desk</title>
|
|
2
|
+
<style>body{font:15px system-ui;margin:0;padding:20px;background:#f6f4ef;color:#222}h1{font-size:20px;margin:0 0 4px}.c{background:#fff;border-radius:12px;padding:14px;margin:10px 0;box-shadow:0 1px 3px #0002}code{background:#eee;padding:1px 5px;border-radius:4px}small{color:#666}</style>
|
|
3
|
+
<h1>Venue desk</h1><small>Tools for any venue: info, booking confirmation, waitlist.</small>
|
|
4
|
+
<div class="c"><b>venue_info</b> → hours (America/Vancouver), closed 25 Dec, cancellation 24h, FAQ</div>
|
|
5
|
+
<div class="c"><b>studio_book</b> → hold <code>sat-0900</code> · <b>venue_booking_details</b> Ann, 2 people</div>
|
|
6
|
+
<div class="c"><b>venue_booking_confirm</b> → <code>ReservationConfirmed</code></div>
|
|
7
|
+
<div class="c"><b>venue_waitlist_join</b> → position 1 · owner <b>venue_waitlist_offer</b> → outbox (owner sends)</div>
|