bare-script 4.2.0__tar.gz → 4.2.1__tar.gz
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.
- {bare_script-4.2.0/src/bare_script.egg-info → bare_script-4.2.1}/PKG-INFO +7 -1
- {bare_script-4.2.0 → bare_script-4.2.1}/README.md +6 -0
- {bare_script-4.2.0 → bare_script-4.2.1}/setup.cfg +1 -1
- {bare_script-4.2.0 → bare_script-4.2.1}/src/bare_script/include/markdownUp.bare +42 -0
- {bare_script-4.2.0 → bare_script-4.2.1/src/bare_script.egg-info}/PKG-INFO +7 -1
- {bare_script-4.2.0 → bare_script-4.2.1}/LICENSE +0 -0
- {bare_script-4.2.0 → bare_script-4.2.1}/pyproject.toml +0 -0
- {bare_script-4.2.0 → bare_script-4.2.1}/setup.py +0 -0
- {bare_script-4.2.0 → bare_script-4.2.1}/src/bare_script/__init__.py +0 -0
- {bare_script-4.2.0 → bare_script-4.2.1}/src/bare_script/__main__.py +0 -0
- {bare_script-4.2.0 → bare_script-4.2.1}/src/bare_script/bare.py +0 -0
- {bare_script-4.2.0 → bare_script-4.2.1}/src/bare_script/include/__init__.py +0 -0
- {bare_script-4.2.0 → bare_script-4.2.1}/src/bare_script/include/args.bare +0 -0
- {bare_script-4.2.0 → bare_script-4.2.1}/src/bare_script/include/baredoc.bare +0 -0
- {bare_script-4.2.0 → bare_script-4.2.1}/src/bare_script/include/baredocCLI.bare +0 -0
- {bare_script-4.2.0 → bare_script-4.2.1}/src/bare_script/include/data.bare +0 -0
- {bare_script-4.2.0 → bare_script-4.2.1}/src/bare_script/include/dataLineChart.bare +0 -0
- {bare_script-4.2.0 → bare_script-4.2.1}/src/bare_script/include/dataTable.bare +0 -0
- {bare_script-4.2.0 → bare_script-4.2.1}/src/bare_script/include/dataUtil.bare +0 -0
- {bare_script-4.2.0 → bare_script-4.2.1}/src/bare_script/include/diff.bare +0 -0
- {bare_script-4.2.0 → bare_script-4.2.1}/src/bare_script/include/draw.bare +0 -0
- {bare_script-4.2.0 → bare_script-4.2.1}/src/bare_script/include/elementModel.bare +0 -0
- {bare_script-4.2.0 → bare_script-4.2.1}/src/bare_script/include/forms.bare +0 -0
- {bare_script-4.2.0 → bare_script-4.2.1}/src/bare_script/include/markdown.bare +0 -0
- {bare_script-4.2.0 → bare_script-4.2.1}/src/bare_script/include/markdownElements.bare +0 -0
- {bare_script-4.2.0 → bare_script-4.2.1}/src/bare_script/include/markdownHighlight.bare +0 -0
- {bare_script-4.2.0 → bare_script-4.2.1}/src/bare_script/include/markdownParser.bare +0 -0
- {bare_script-4.2.0 → bare_script-4.2.1}/src/bare_script/include/pager.bare +0 -0
- {bare_script-4.2.0 → bare_script-4.2.1}/src/bare_script/include/qrcode.bare +0 -0
- {bare_script-4.2.0 → bare_script-4.2.1}/src/bare_script/include/schemaDoc.bare +0 -0
- {bare_script-4.2.0 → bare_script-4.2.1}/src/bare_script/include/unittest.bare +0 -0
- {bare_script-4.2.0 → bare_script-4.2.1}/src/bare_script/include/unittestMock.bare +0 -0
- {bare_script-4.2.0 → bare_script-4.2.1}/src/bare_script/library.py +0 -0
- {bare_script-4.2.0 → bare_script-4.2.1}/src/bare_script/model.py +0 -0
- {bare_script-4.2.0 → bare_script-4.2.1}/src/bare_script/options.py +0 -0
- {bare_script-4.2.0 → bare_script-4.2.1}/src/bare_script/parser.py +0 -0
- {bare_script-4.2.0 → bare_script-4.2.1}/src/bare_script/runtime.py +0 -0
- {bare_script-4.2.0 → bare_script-4.2.1}/src/bare_script/runtime_c.c +0 -0
- {bare_script-4.2.0 → bare_script-4.2.1}/src/bare_script/value.py +0 -0
- {bare_script-4.2.0 → bare_script-4.2.1}/src/bare_script.egg-info/SOURCES.txt +0 -0
- {bare_script-4.2.0 → bare_script-4.2.1}/src/bare_script.egg-info/dependency_links.txt +0 -0
- {bare_script-4.2.0 → bare_script-4.2.1}/src/bare_script.egg-info/entry_points.txt +0 -0
- {bare_script-4.2.0 → bare_script-4.2.1}/src/bare_script.egg-info/requires.txt +0 -0
- {bare_script-4.2.0 → bare_script-4.2.1}/src/bare_script.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: bare-script
|
|
3
|
-
Version: 4.2.
|
|
3
|
+
Version: 4.2.1
|
|
4
4
|
Summary: bare-script
|
|
5
5
|
Home-page: https://github.com/craigahobbs/bare-script
|
|
6
6
|
Author: Craig A. Hobbs
|
|
@@ -224,6 +224,12 @@ Once installed, you can prompt the assistant with tasks like:
|
|
|
224
224
|
> Build a MarkdownUp application that plays tic-tac-toe against the user, with a reset button
|
|
225
225
|
> and a running win/loss/draw tally rendered as a bar chart.
|
|
226
226
|
|
|
227
|
+
The BareScript library is also documented as single-page Markdown, which can be fetched directly
|
|
228
|
+
into an assistant's context alongside `SKILL.md`:
|
|
229
|
+
|
|
230
|
+
- [The BareScript Library](https://craigahobbs.github.io/bare-script-py/library/barescript-library.md)
|
|
231
|
+
- [The BareScript Library Models](https://craigahobbs.github.io/bare-script-py/library/barescript-library-model.md)
|
|
232
|
+
|
|
227
233
|
|
|
228
234
|
## Development
|
|
229
235
|
|
|
@@ -199,6 +199,12 @@ Once installed, you can prompt the assistant with tasks like:
|
|
|
199
199
|
> Build a MarkdownUp application that plays tic-tac-toe against the user, with a reset button
|
|
200
200
|
> and a running win/loss/draw tally rendered as a bar chart.
|
|
201
201
|
|
|
202
|
+
The BareScript library is also documented as single-page Markdown, which can be fetched directly
|
|
203
|
+
into an assistant's context alongside `SKILL.md`:
|
|
204
|
+
|
|
205
|
+
- [The BareScript Library](https://craigahobbs.github.io/bare-script-py/library/barescript-library.md)
|
|
206
|
+
- [The BareScript Library Models](https://craigahobbs.github.io/bare-script-py/library/barescript-library-model.md)
|
|
207
|
+
|
|
202
208
|
|
|
203
209
|
## Development
|
|
204
210
|
|
|
@@ -332,6 +332,48 @@ function windowHeight():
|
|
|
332
332
|
endfunction
|
|
333
333
|
|
|
334
334
|
|
|
335
|
+
# $function: windowKeyState
|
|
336
|
+
# $group: markdownUp.bare
|
|
337
|
+
# $doc: Test whether a key combination is currently held down. Unlike `documentSetKeyDown`, which
|
|
338
|
+
# $doc: fires a callback once per key press, this polls the live keyboard state and is intended for
|
|
339
|
+
# $doc: game loops and animations. The modifier-key states must match exactly, so by default the key
|
|
340
|
+
# $doc: must be pressed with no modifier keys held. For example:
|
|
341
|
+
# $doc:
|
|
342
|
+
# $doc: ```barescript
|
|
343
|
+
# $doc: if windowKeyState('ArrowLeft'):
|
|
344
|
+
# $doc: playerX = playerX - playerSpeed
|
|
345
|
+
# $doc: endif
|
|
346
|
+
# $doc: if windowKeyState('ArrowRight'):
|
|
347
|
+
# $doc: playerX = playerX + playerSpeed
|
|
348
|
+
# $doc: endif
|
|
349
|
+
# $doc: ```
|
|
350
|
+
# $doc:
|
|
351
|
+
# $doc: The key is matched against the physical key code (e.g., "ArrowUp", "KeyW", "Space", "Enter").
|
|
352
|
+
# $arg key: The physical key code (e.g., "ArrowUp", "ArrowDown", "KeyA", "KeyW", "Space")
|
|
353
|
+
# $arg ctrl: If true, the control key must be down; if false (the default), it must be up
|
|
354
|
+
# $arg shift: If true, the shift key must be down; if false (the default), it must be up
|
|
355
|
+
# $arg alt: If true, the alt key must be down; if false (the default), it must be up
|
|
356
|
+
# $arg meta: If true, the meta (command) key must be down; if false (the default), it must be up
|
|
357
|
+
# $return: true if the key is down and all modifier-key states match, false otherwise
|
|
358
|
+
function windowKeyState():
|
|
359
|
+
endfunction
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
# $function: windowPlaySound
|
|
363
|
+
# $group: markdownUp.bare
|
|
364
|
+
# $doc: Play a generated sound effect. Unknown sounds are ignored. The sound name is one of:
|
|
365
|
+
# $doc:
|
|
366
|
+
# $doc: - **UI** - "beep", "click", "error", "success", "warning"
|
|
367
|
+
# $doc: - **Arcade** - "coin", "jump", "laser", "explosion", "powerup", "powerdown", "hit", "blip", "gameover"
|
|
368
|
+
# $doc: - **Notes** - "noteC4", "noteCs4", "noteD4", "noteDs4", "noteE4", "noteF4", "noteFs4", "noteG4",
|
|
369
|
+
# $doc: "noteGs4", "noteA4", "noteAs4", "noteB4", "noteC5"
|
|
370
|
+
# $doc: - **Drums** - "drumKick", "drumSnare", "drumHihat", "drumOpenhat", "drumTomLow", "drumTomMid",
|
|
371
|
+
# $doc: "drumTomHigh", "drumClap", "drumCrash", "drumRide"
|
|
372
|
+
# $arg sound: The sound name
|
|
373
|
+
function windowPlaySound():
|
|
374
|
+
endfunction
|
|
375
|
+
|
|
376
|
+
|
|
335
377
|
# $function: windowSetLocation
|
|
336
378
|
# $group: markdownUp.bare
|
|
337
379
|
# $doc: Navigate the browser window to a location URL
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: bare-script
|
|
3
|
-
Version: 4.2.
|
|
3
|
+
Version: 4.2.1
|
|
4
4
|
Summary: bare-script
|
|
5
5
|
Home-page: https://github.com/craigahobbs/bare-script
|
|
6
6
|
Author: Craig A. Hobbs
|
|
@@ -224,6 +224,12 @@ Once installed, you can prompt the assistant with tasks like:
|
|
|
224
224
|
> Build a MarkdownUp application that plays tic-tac-toe against the user, with a reset button
|
|
225
225
|
> and a running win/loss/draw tally rendered as a bar chart.
|
|
226
226
|
|
|
227
|
+
The BareScript library is also documented as single-page Markdown, which can be fetched directly
|
|
228
|
+
into an assistant's context alongside `SKILL.md`:
|
|
229
|
+
|
|
230
|
+
- [The BareScript Library](https://craigahobbs.github.io/bare-script-py/library/barescript-library.md)
|
|
231
|
+
- [The BareScript Library Models](https://craigahobbs.github.io/bare-script-py/library/barescript-library-model.md)
|
|
232
|
+
|
|
227
233
|
|
|
228
234
|
## Development
|
|
229
235
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|