pi-roundtable-drawing 0.7.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.
@@ -0,0 +1,395 @@
1
+ {
2
+ "name": "Tarot (replace with your deck's name)",
3
+ "cards": [
4
+ {
5
+ "id": "The Fool",
6
+ "name": "The Fool",
7
+ "group": "major"
8
+ },
9
+ {
10
+ "id": "The Magician",
11
+ "name": "The Magician",
12
+ "group": "major"
13
+ },
14
+ {
15
+ "id": "The High Priestess",
16
+ "name": "The High Priestess",
17
+ "group": "major"
18
+ },
19
+ {
20
+ "id": "The Empress",
21
+ "name": "The Empress",
22
+ "group": "major"
23
+ },
24
+ {
25
+ "id": "The Emperor",
26
+ "name": "The Emperor",
27
+ "group": "major"
28
+ },
29
+ {
30
+ "id": "The Hierophant",
31
+ "name": "The Hierophant",
32
+ "group": "major"
33
+ },
34
+ {
35
+ "id": "The Lovers",
36
+ "name": "The Lovers",
37
+ "group": "major"
38
+ },
39
+ {
40
+ "id": "The Chariot",
41
+ "name": "The Chariot",
42
+ "group": "major"
43
+ },
44
+ {
45
+ "id": "Strength",
46
+ "name": "Strength",
47
+ "group": "major"
48
+ },
49
+ {
50
+ "id": "The Hermit",
51
+ "name": "The Hermit",
52
+ "group": "major"
53
+ },
54
+ {
55
+ "id": "Wheel of Fortune",
56
+ "name": "Wheel of Fortune",
57
+ "group": "major"
58
+ },
59
+ {
60
+ "id": "Justice",
61
+ "name": "Justice",
62
+ "group": "major"
63
+ },
64
+ {
65
+ "id": "The Hanged Man",
66
+ "name": "The Hanged Man",
67
+ "group": "major"
68
+ },
69
+ {
70
+ "id": "Death",
71
+ "name": "Death",
72
+ "group": "major"
73
+ },
74
+ {
75
+ "id": "Temperance",
76
+ "name": "Temperance",
77
+ "group": "major"
78
+ },
79
+ {
80
+ "id": "The Devil",
81
+ "name": "The Devil",
82
+ "group": "major"
83
+ },
84
+ {
85
+ "id": "The Tower",
86
+ "name": "The Tower",
87
+ "group": "major"
88
+ },
89
+ {
90
+ "id": "The Star",
91
+ "name": "The Star",
92
+ "group": "major"
93
+ },
94
+ {
95
+ "id": "The Moon",
96
+ "name": "The Moon",
97
+ "group": "major"
98
+ },
99
+ {
100
+ "id": "The Sun",
101
+ "name": "The Sun",
102
+ "group": "major"
103
+ },
104
+ {
105
+ "id": "Judgement",
106
+ "name": "Judgement",
107
+ "group": "major"
108
+ },
109
+ {
110
+ "id": "The World",
111
+ "name": "The World",
112
+ "group": "major"
113
+ },
114
+ {
115
+ "id": "Ace of Wands",
116
+ "name": "Ace of Wands",
117
+ "group": "wands"
118
+ },
119
+ {
120
+ "id": "Two of Wands",
121
+ "name": "Two of Wands",
122
+ "group": "wands"
123
+ },
124
+ {
125
+ "id": "Three of Wands",
126
+ "name": "Three of Wands",
127
+ "group": "wands"
128
+ },
129
+ {
130
+ "id": "Four of Wands",
131
+ "name": "Four of Wands",
132
+ "group": "wands"
133
+ },
134
+ {
135
+ "id": "Five of Wands",
136
+ "name": "Five of Wands",
137
+ "group": "wands"
138
+ },
139
+ {
140
+ "id": "Six of Wands",
141
+ "name": "Six of Wands",
142
+ "group": "wands"
143
+ },
144
+ {
145
+ "id": "Seven of Wands",
146
+ "name": "Seven of Wands",
147
+ "group": "wands"
148
+ },
149
+ {
150
+ "id": "Eight of Wands",
151
+ "name": "Eight of Wands",
152
+ "group": "wands"
153
+ },
154
+ {
155
+ "id": "Nine of Wands",
156
+ "name": "Nine of Wands",
157
+ "group": "wands"
158
+ },
159
+ {
160
+ "id": "Ten of Wands",
161
+ "name": "Ten of Wands",
162
+ "group": "wands"
163
+ },
164
+ {
165
+ "id": "Page of Wands",
166
+ "name": "Page of Wands",
167
+ "group": "wands"
168
+ },
169
+ {
170
+ "id": "Knight of Wands",
171
+ "name": "Knight of Wands",
172
+ "group": "wands"
173
+ },
174
+ {
175
+ "id": "Queen of Wands",
176
+ "name": "Queen of Wands",
177
+ "group": "wands"
178
+ },
179
+ {
180
+ "id": "King of Wands",
181
+ "name": "King of Wands",
182
+ "group": "wands"
183
+ },
184
+ {
185
+ "id": "Ace of Cups",
186
+ "name": "Ace of Cups",
187
+ "group": "cups"
188
+ },
189
+ {
190
+ "id": "Two of Cups",
191
+ "name": "Two of Cups",
192
+ "group": "cups"
193
+ },
194
+ {
195
+ "id": "Three of Cups",
196
+ "name": "Three of Cups",
197
+ "group": "cups"
198
+ },
199
+ {
200
+ "id": "Four of Cups",
201
+ "name": "Four of Cups",
202
+ "group": "cups"
203
+ },
204
+ {
205
+ "id": "Five of Cups",
206
+ "name": "Five of Cups",
207
+ "group": "cups"
208
+ },
209
+ {
210
+ "id": "Six of Cups",
211
+ "name": "Six of Cups",
212
+ "group": "cups"
213
+ },
214
+ {
215
+ "id": "Seven of Cups",
216
+ "name": "Seven of Cups",
217
+ "group": "cups"
218
+ },
219
+ {
220
+ "id": "Eight of Cups",
221
+ "name": "Eight of Cups",
222
+ "group": "cups"
223
+ },
224
+ {
225
+ "id": "Nine of Cups",
226
+ "name": "Nine of Cups",
227
+ "group": "cups"
228
+ },
229
+ {
230
+ "id": "Ten of Cups",
231
+ "name": "Ten of Cups",
232
+ "group": "cups"
233
+ },
234
+ {
235
+ "id": "Page of Cups",
236
+ "name": "Page of Cups",
237
+ "group": "cups"
238
+ },
239
+ {
240
+ "id": "Knight of Cups",
241
+ "name": "Knight of Cups",
242
+ "group": "cups"
243
+ },
244
+ {
245
+ "id": "Queen of Cups",
246
+ "name": "Queen of Cups",
247
+ "group": "cups"
248
+ },
249
+ {
250
+ "id": "King of Cups",
251
+ "name": "King of Cups",
252
+ "group": "cups"
253
+ },
254
+ {
255
+ "id": "Ace of Swords",
256
+ "name": "Ace of Swords",
257
+ "group": "swords"
258
+ },
259
+ {
260
+ "id": "Two of Swords",
261
+ "name": "Two of Swords",
262
+ "group": "swords"
263
+ },
264
+ {
265
+ "id": "Three of Swords",
266
+ "name": "Three of Swords",
267
+ "group": "swords"
268
+ },
269
+ {
270
+ "id": "Four of Swords",
271
+ "name": "Four of Swords",
272
+ "group": "swords"
273
+ },
274
+ {
275
+ "id": "Five of Swords",
276
+ "name": "Five of Swords",
277
+ "group": "swords"
278
+ },
279
+ {
280
+ "id": "Six of Swords",
281
+ "name": "Six of Swords",
282
+ "group": "swords"
283
+ },
284
+ {
285
+ "id": "Seven of Swords",
286
+ "name": "Seven of Swords",
287
+ "group": "swords"
288
+ },
289
+ {
290
+ "id": "Eight of Swords",
291
+ "name": "Eight of Swords",
292
+ "group": "swords"
293
+ },
294
+ {
295
+ "id": "Nine of Swords",
296
+ "name": "Nine of Swords",
297
+ "group": "swords"
298
+ },
299
+ {
300
+ "id": "Ten of Swords",
301
+ "name": "Ten of Swords",
302
+ "group": "swords"
303
+ },
304
+ {
305
+ "id": "Page of Swords",
306
+ "name": "Page of Swords",
307
+ "group": "swords"
308
+ },
309
+ {
310
+ "id": "Knight of Swords",
311
+ "name": "Knight of Swords",
312
+ "group": "swords"
313
+ },
314
+ {
315
+ "id": "Queen of Swords",
316
+ "name": "Queen of Swords",
317
+ "group": "swords"
318
+ },
319
+ {
320
+ "id": "King of Swords",
321
+ "name": "King of Swords",
322
+ "group": "swords"
323
+ },
324
+ {
325
+ "id": "Ace of Pentacles",
326
+ "name": "Ace of Pentacles",
327
+ "group": "pentacles"
328
+ },
329
+ {
330
+ "id": "Two of Pentacles",
331
+ "name": "Two of Pentacles",
332
+ "group": "pentacles"
333
+ },
334
+ {
335
+ "id": "Three of Pentacles",
336
+ "name": "Three of Pentacles",
337
+ "group": "pentacles"
338
+ },
339
+ {
340
+ "id": "Four of Pentacles",
341
+ "name": "Four of Pentacles",
342
+ "group": "pentacles"
343
+ },
344
+ {
345
+ "id": "Five of Pentacles",
346
+ "name": "Five of Pentacles",
347
+ "group": "pentacles"
348
+ },
349
+ {
350
+ "id": "Six of Pentacles",
351
+ "name": "Six of Pentacles",
352
+ "group": "pentacles"
353
+ },
354
+ {
355
+ "id": "Seven of Pentacles",
356
+ "name": "Seven of Pentacles",
357
+ "group": "pentacles"
358
+ },
359
+ {
360
+ "id": "Eight of Pentacles",
361
+ "name": "Eight of Pentacles",
362
+ "group": "pentacles"
363
+ },
364
+ {
365
+ "id": "Nine of Pentacles",
366
+ "name": "Nine of Pentacles",
367
+ "group": "pentacles"
368
+ },
369
+ {
370
+ "id": "Ten of Pentacles",
371
+ "name": "Ten of Pentacles",
372
+ "group": "pentacles"
373
+ },
374
+ {
375
+ "id": "Page of Pentacles",
376
+ "name": "Page of Pentacles",
377
+ "group": "pentacles"
378
+ },
379
+ {
380
+ "id": "Knight of Pentacles",
381
+ "name": "Knight of Pentacles",
382
+ "group": "pentacles"
383
+ },
384
+ {
385
+ "id": "Queen of Pentacles",
386
+ "name": "Queen of Pentacles",
387
+ "group": "pentacles"
388
+ },
389
+ {
390
+ "id": "King of Pentacles",
391
+ "name": "King of Pentacles",
392
+ "group": "pentacles"
393
+ }
394
+ ]
395
+ }
@@ -0,0 +1,23 @@
1
+ import type { RoundtableConfig } from "pi-roundtable";
2
+ import { drawing } from "pi-roundtable-drawing";
3
+
4
+ // Credentials come from .env, which Bun loads on its own; nothing secret belongs in this file.
5
+ const env = (name: string): string => process.env[name] ?? "";
6
+
7
+ export default {
8
+ name: "Roundtable",
9
+ owner: { id: env("OWNER_ID"), name: env("OWNER_NAME") },
10
+ discord: {
11
+ token: env("DISCORD_TOKEN"),
12
+ guild: env("DISCORD_GUILD_ID"),
13
+ entryChannel: env("DISCORD_ENTRY_CHANNEL_ID"),
14
+ },
15
+ database: { url: env("DATABASE_URL") },
16
+ dataDir: "./data",
17
+ model: env("MODEL"),
18
+ http: { publicUrl: env("PUBLIC_URL") },
19
+ plugins: [
20
+ // The deck directory is optional: without it the plugin has no draw_cards tool.
21
+ drawing({ deckDir: "./decks" }),
22
+ ],
23
+ } satisfies RoundtableConfig;
Binary file
package/fonts/OFL.txt ADDED
@@ -0,0 +1,92 @@
1
+ This Font Software is licensed under the SIL Open Font License,
2
+ Version 1.1.
3
+
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+ -----------------------------------------------------------
8
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
9
+ -----------------------------------------------------------
10
+
11
+ PREAMBLE
12
+ The goals of the Open Font License (OFL) are to stimulate worldwide
13
+ development of collaborative font projects, to support the font
14
+ creation efforts of academic and linguistic communities, and to
15
+ provide a free and open framework in which fonts may be shared and
16
+ improved in partnership with others.
17
+
18
+ The OFL allows the licensed fonts to be used, studied, modified and
19
+ redistributed freely as long as they are not sold by themselves. The
20
+ fonts, including any derivative works, can be bundled, embedded,
21
+ redistributed and/or sold with any software provided that any reserved
22
+ names are not used by derivative works. The fonts and derivatives,
23
+ however, cannot be released under any other type of license. The
24
+ requirement for fonts to remain under this license does not apply to
25
+ any document created using the fonts or their derivatives.
26
+
27
+ DEFINITIONS
28
+ "Font Software" refers to the set of files released by the Copyright
29
+ Holder(s) under this license and clearly marked as such. This may
30
+ include source files, build scripts and documentation.
31
+
32
+ "Reserved Font Name" refers to any names specified as such after the
33
+ copyright statement(s).
34
+
35
+ "Original Version" refers to the collection of Font Software
36
+ components as distributed by the Copyright Holder(s).
37
+
38
+ "Modified Version" refers to any derivative made by adding to,
39
+ deleting, or substituting -- in part or in whole -- any of the
40
+ components of the Original Version, by changing formats or by porting
41
+ the Font Software to a new environment.
42
+
43
+ "Author" refers to any designer, engineer, programmer, technical
44
+ writer or other person who contributed to the Font Software.
45
+
46
+ PERMISSION & CONDITIONS
47
+ Permission is hereby granted, free of charge, to any person obtaining
48
+ a copy of the Font Software, to use, study, copy, merge, embed,
49
+ modify, redistribute, and sell modified and unmodified copies of the
50
+ Font Software, subject to the following conditions:
51
+
52
+ 1) Neither the Font Software nor any of its individual components, in
53
+ Original or Modified Versions, may be sold by itself.
54
+
55
+ 2) Original or Modified Versions of the Font Software may be bundled,
56
+ redistributed and/or sold with any software, provided that each copy
57
+ contains the above copyright notice and this license. These can be
58
+ included either as stand-alone text files, human-readable headers or
59
+ in the appropriate machine-readable metadata fields within text or
60
+ binary files as long as those fields can be easily viewed by the user.
61
+
62
+ 3) No Modified Version of the Font Software may use the Reserved Font
63
+ Name(s) unless explicit written permission is granted by the
64
+ corresponding Copyright Holder. This restriction only applies to the
65
+ primary font name as presented to the users.
66
+
67
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
68
+ Software shall not be used to promote, endorse or advertise any
69
+ Modified Version, except to acknowledge the contribution(s) of the
70
+ Copyright Holder(s) and the Author(s) or with their explicit written
71
+ permission.
72
+
73
+ 5) The Font Software, modified or unmodified, in part or in whole,
74
+ must be distributed entirely under this license, and must not be
75
+ distributed under any other license. The requirement for fonts to
76
+ remain under this license does not apply to any document created using
77
+ the Font Software.
78
+
79
+ TERMINATION
80
+ This license becomes null and void if any of the above conditions are
81
+ not met.
82
+
83
+ DISCLAIMER
84
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
85
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
86
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
87
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
88
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
89
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
90
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
91
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
92
+ OTHER DEALINGS IN THE FONT SOFTWARE.
package/package.json ADDED
@@ -0,0 +1,54 @@
1
+ {
2
+ "name": "pi-roundtable-drawing",
3
+ "version": "0.7.0",
4
+ "description": "Relationship maps, magic circles, sigils, sacred geometry, and card spreads drawn locally for pi-roundtable",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "engines": {
8
+ "bun": ">=1.3.0"
9
+ },
10
+ "exports": {
11
+ ".": "./src/index.ts"
12
+ },
13
+ "files": [
14
+ "src",
15
+ "!src/**/*.test.ts",
16
+ "!src/testing",
17
+ "fonts",
18
+ "examples",
19
+ "!examples/**/*.test.ts",
20
+ "LICENSE",
21
+ "README.md",
22
+ "CHANGELOG.md"
23
+ ],
24
+ "repository": {
25
+ "type": "git",
26
+ "url": "git+https://github.com/wayne930242/pi-roundtable.git",
27
+ "directory": "packages/drawing"
28
+ },
29
+ "publishConfig": {
30
+ "access": "public",
31
+ "provenance": true
32
+ },
33
+ "scripts": {
34
+ "typecheck": "tsc --noEmit",
35
+ "lint": "biome check .",
36
+ "test": "bun test"
37
+ },
38
+ "dependencies": {
39
+ "@types/d3-force": "3.0.10",
40
+ "canvas": "3.2.3",
41
+ "d3-force": "3.0.0",
42
+ "roughjs": "4.6.6",
43
+ "typebox": "1.3.34"
44
+ },
45
+ "peerDependencies": {
46
+ "pi-roundtable": ">=0.7.0 <0.8.0"
47
+ },
48
+ "devDependencies": {
49
+ "@biomejs/biome": "2.5.15",
50
+ "@types/bun": "1.4.2",
51
+ "pi-roundtable": "0.7.0",
52
+ "typescript": "7.0.2"
53
+ }
54
+ }