Eddie Antonio Santos
|
0e1cb0d55b
|
Rearrange different message type definitions.
|
2019-01-10 15:56:30 -07:00 |
|
Eddie Antonio Santos
|
f2dde2a7f9
|
Refactor: extract method: setupInitialState().
|
2019-01-10 15:39:56 -07:00 |
|
Eddie Antonio Santos
|
d943bdd54e
|
Refactor: LMLayerWorker now implements the state pattern: uninitialized and ready states.
|
2019-01-10 15:34:07 -07:00 |
|
Eddie Antonio Santos
|
f2b1335c97
|
LMLayerWorker [message: predict] works.
|
2019-01-10 14:35:23 -07:00 |
|
Eddie Antonio Santos
|
c35250c358
|
Fix how test was sending model.
|
2019-01-10 14:19:06 -07:00 |
|
Eddie Antonio Santos
|
3bae3faf5e
|
Change interfaces to allow for the dummy model.
|
2019-01-10 14:11:31 -07:00 |
|
Eddie Antonio Santos
|
88519d1497
|
Implement DummyModel future.
|
2019-01-08 15:27:55 -07:00 |
|
Eddie Antonio Santos
|
11f6685e70
|
DummyModel#predict() returns any injected suggestions immediately.
|
2019-01-08 15:18:40 -07:00 |
|
Eddie Antonio Santos
|
eb8aec564f
|
Import Transform, Context, and Suggestion types. Update predict() interface to match.
|
2019-01-08 14:51:08 -07:00 |
|
Eddie Antonio Santos
|
06555c3630
|
Implement simple, injectable configuration.
|
2019-01-08 13:54:36 -07:00 |
|
Eddie Antonio Santos
|
b2becde2ae
|
Add capabilities argument to WorkerInternalModel constructor.
|
2019-01-08 13:16:04 -07:00 |
|
Eddie Antonio Santos
|
f07c715d06
|
Embetter comments.
|
2019-01-08 13:03:14 -07:00 |
|
Eddie Antonio Santos
|
f1c6dca02d
|
Factor out worker interfaces and types into worker-interfaces.ts.
|
2019-01-08 12:54:26 -07:00 |
|
Eddie Antonio Santos
|
26ad83d52b
|
Put dummy model into its own file.
|
2019-01-07 14:57:57 -07:00 |
|
Eddie Antonio Santos
|
fc8f1eaa63
|
Add internal models to LMLayerWorker.models.
|
2019-01-07 14:49:11 -07:00 |
|
Eddie Antonio Santos
|
f1382fe58c
|
Remove undeveloped "model" interface.
|
2018-11-30 13:44:58 -07:00 |
|
Eddie Antonio Santos
|
36e18e4019
|
Refactor: extract interfaces common to worker and top-level.
|
2018-11-30 13:43:29 -07:00 |
|
Eddie Antonio Santos
|
140efa7dc7
|
Require the capabilities object in the initialize message.
|
2018-11-30 13:35:40 -07:00 |
|
Joshua A. Horton
|
cf13caa98e
|
Merge branch 'lmlayer-init' into lmlayer-build-reorg
|
2018-11-29 23:35:37 +07:00 |
|
Joshua A. Horton
|
32b834521e
|
Reorganized the build structure into something simpler to -clean.
|
2018-11-29 09:11:26 +07:00 |
|
Eddie Antonio Santos
|
8404ef3c13
|
Comment ALL THE THINGS.
|
2018-11-28 14:20:09 -07:00 |
|
Eddie Antonio Santos
|
17dfd2d76e
|
Merge branch 'lmlayer-init' into lmlayer-sans-import-scripts
|
2018-11-19 19:58:35 -07:00 |
|
Eddie Antonio Santos
|
0dfa36a3b6
|
Attempt to clarify comment on LMLayerWorker.install().
|
2018-11-19 18:35:58 -07:00 |
|
Eddie Antonio Santos
|
d774f08cc7
|
Clarify comment.
|
2018-11-19 17:23:43 -07:00 |
|
Eddie Antonio Santos
|
5e3f59f68b
|
Fix invalid invocation.
|
2018-11-19 17:05:50 -07:00 |
|
Eddie Antonio Santos
|
d1f8d71026
|
Install an LMLayerWorker when in a Worker scope.
|
2018-11-19 15:29:26 -07:00 |
|
Eddie Antonio Santos
|
e7fe927718
|
Clean up recently imported interfaces.
|
2018-11-19 13:52:19 -07:00 |
|
Eddie Antonio Santos
|
bb25564c92
|
Add a bunch of types that may or may not be useful.
|
2018-11-19 13:41:10 -07:00 |
|
Eddie Antonio Santos
|
ef3e718639
|
Raise an error when sent a message other than 'initialize' on instantiation.
|
2018-11-19 13:30:39 -07:00 |
|
Eddie Antonio Santos
|
f0decd6204
|
Extact method: loadModel().
|
2018-11-19 13:20:24 -07:00 |
|
Eddie Antonio Santos
|
2f3eb5d10e
|
Set configuration from values sent by keyboard.
|
2018-11-19 13:07:41 -07:00 |
|
Eddie Antonio Santos
|
748a504e14
|
Run source code passed in as 'model'
|
2018-11-19 12:58:08 -07:00 |
|
Eddie Antonio Santos
|
ef3a93fd4a
|
Remove usage of importScripts().
|
2018-11-19 12:35:48 -07:00 |
|
Eddie Antonio Santos
|
88b181286a
|
Convert Message type to OutgoingMessage.
|
2018-11-19 11:19:54 -07:00 |
|
Eddie Antonio Santos
|
963aa634d0
|
Import the model.
|
2018-11-19 11:10:41 -07:00 |
|
Eddie Antonio Santos
|
feeb7ffbdb
|
Add need for importScripts(); but this breaks all the tests :c
|
2018-11-19 11:00:35 -07:00 |
|
Eddie Antonio Santos
|
84257770da
|
Implement .install() static method.
|
2018-11-19 10:42:43 -07:00 |
|
Eddie Antonio Santos
|
06f5bb55a5
|
Factor out cast() method.
|
2018-11-16 15:15:48 -07:00 |
|
Eddie Antonio Santos
|
86a72d4985
|
Send back a fake, but reasonable configuration.
|
2018-11-16 15:10:15 -07:00 |
|
Eddie Antonio Santos
|
0d9aa37db8
|
#onMessage() throws an error if not receiving a message.
|
2018-11-16 14:34:57 -07:00 |
|
Eddie Antonio Santos
|
1cf1e444d6
|
Only export class as worker's export.
|
2018-11-16 10:56:13 -07:00 |
|
Eddie Antonio Santos
|
ede432e225
|
Revert tsconfig.json; addresses @jahorton's comment.
|
2018-11-16 10:55:49 -07:00 |
|
Eddie Antonio Santos
|
e52221de2b
|
Export for both browser; resolve typing issue.
|
2018-11-16 10:53:49 -07:00 |
|
Eddie Antonio Santos
|
538393930d
|
Comment existing methods.
|
2018-11-15 14:48:24 -07:00 |
|
Eddie Antonio Santos
|
a33be397d0
|
Implement postMessage() mocking.
|
2018-11-15 14:40:19 -07:00 |
|
Eddie Antonio Santos
|
35af8a3f27
|
Scaffolding for the LMLayerWorker.
|
2018-11-15 14:20:00 -07:00 |
|
Eddie Antonio Santos
|
6148e4811d
|
Get headless TDD working for ./worker.
|
2018-11-15 13:18:41 -07:00 |
|