Skip to content

Commit

Permalink
publish Wechaty Actor (wechaty/bot5-assistant#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
huan committed May 8, 2022
1 parent 731ffb2 commit 53f32a7
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 68 deletions.
4 changes: 4 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
const rules = {
'no-redeclare': 'off',
'array-bracket-spacing': [
'error',
'always',
],
}

module.exports = {
Expand Down
7 changes: 3 additions & 4 deletions NOTICE
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# Wechaty Actor

Copyright 2022 Huan LI (李卓桓) <https://github.com/huan>
Wechaty is a Conversational SDK for Chatbot Makers.
Copyright 2016-now Huan (李卓桓) and Wechaty Community Contributors.

This product includes software developed at
The Wechaty Organization <https://github.com/wechaty>.
The Wechaty Organization (https://github.com/wechaty).

This software contains code derived from the Stackoverflow,
including various modifications by GitHub.
21 changes: 15 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,15 @@ that applies the Actor Model with XState and CQRS.

![Actors](docs/images/actor.webp)

> The Actor Model is a computational model for designing concurrent, distributed systems around the principal of self-contained Actors which operate on sending and receiving messages.
> The Actor Model is a computational model for designing concurrent,
distributed systems around the principal of self-contained Actors
which operate on sending and receiving messages.
> &mdash; [Introduction to the Actor Model...](https://medium.com/xandr-tech/introduction-to-the-actor-model-for-concurrent-computation-56c0391f8f92)
## Features

1. Working with [wechaty-cqrs](https://github.com/wechaty/cqrs) by receiving the CQRS Commands and Queries, and responding Responses.
1. Working with [wechaty-cqrs](https://github.com/wechaty/cqrs) by receiving
the CQRS Commands and Queries, and responding Responses.
2. Implemented with [XState](https://xstate.js.org/) and [Mailbox](https://github.com/huan/mailbox)
3. Native designed for Domain Driven Design (DDD)

Expand Down Expand Up @@ -72,7 +75,10 @@ Read Wechaty Actor API Reference at: <https://paka.dev/npm/wechaty-actor>

- [The actor model in 10 minutes](https://www.brianstorti.com/the-actor-model/)
- [Node.js actor framework](https://github.com/untu/comedy)
- [Beautiful State Machines](https://xstate-catalogue.com/) - XState Catalogue is a collection of professionally designed state machines you can drop into your projects. Get started by browsing the catalogue, interacting with the machines, and copying the code.
- [Beautiful State Machines](https://xstate-catalogue.com/) - XState Catalogue is
a collection of professionally designed state machines you can drop into your projects.
Get started by browsing the catalogue, interacting with the machines,
and copying the code.
- [XState: Should this be an action or a service?](https://dev.to/mpocock1/xstate-should-this-be-an-action-or-a-service-2cp0)
- [Introduction to the Actor Model for Concurrent Computation, John Murray, Sep 29, 2015, Tech Talks @ AppNexus](https://www.youtube.com/watch?v=lPTqcecwkJg)
- [Kotlin Concurrency with Actors, Jag Saund, Jun 14, 2018](https://medium.com/@jagsaund/kotlin-concurrency-with-actors-34bd12531182)
Expand All @@ -88,11 +94,14 @@ Read Wechaty Actor API Reference at: <https://paka.dev/npm/wechaty-actor>

## Author

[Huan LI](http://linkedin.com/in/zixia) is a serial entrepreneur, active angel investor with strong technology background.
Huan is a widely recognized technical leader on conversational AI and open source cloud architectures.
[Huan LI](http://linkedin.com/in/zixia) is a serial entrepreneur,
active angel investor with strong technology background.
Huan is a widely recognized technical leader on conversational AI
and open source cloud architectures.
He co-authored guide books "Chatbot 0 to 1" and "Concise Handbook of TensorFlow 2"
and has been recognized both by Microsoft and Google as MVP/GDE.
Huan is a Chatbot Architect and speaks regularly at technical conferences around the world.
Huan is a Chatbot Architect and speaks regularly
at technical conferences around the world.
Find out more about his work at <https://github.com/huan>

## Copyright & License
Expand Down
42 changes: 8 additions & 34 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,44 +1,15 @@
{
"name": "wechaty-actor",
"version": "0.0.1",
"version": "0.3.0",
"description": "Wechaty Actor Model, Powered by XState, Mailbox, and CQRS",
"type": "module",
"exports": {
".": {
"import": "./dist/esm/src/mods/mod.js",
"require": "./dist/cjs/src/mods/mod.js"
},
"./event$": {
"import": "./dist/esm/src/mods/event$.js",
"require": "./dist/cjs/src/mods/event$.js"
},
"./sayable": {
"import": "./dist/esm/src/mods/sayable.js",
"require": "./dist/cjs/src/mods/sayable.js"
},
"./duck": {
"import": "./dist/esm/src/mods/duck.js",
"require": "./dist/cjs/src/mods/duck.js"
},
"./helpers": {
"import": "./dist/esm/src/mods/helpers.js",
"require": "./dist/cjs/src/mods/helpers.js"
"import": "./dist/esm/src/mod.js",
"require": "./dist/cjs/src/mod.js"
}
},
"typesVersions": {
"*": {
"sayables": [
"./dist/esm/src/mods/sayables.d.ts"
],
"duck": [
"./dist/esm/src/mods/duck.d.ts"
],
"helpers": [
"./dist/esm/src/mods/helpers.d.ts"
]
}
},
"types": "./dist/esm/src/mods/mod.d.ts",
"types": "./dist/esm/src/mod.d.ts",
"engines": {
"node": ">=16",
"npm": ">=7"
Expand Down Expand Up @@ -76,9 +47,11 @@
"url": "https://github.com/wechaty/actor/issues"
},
"dependencies": {
"wechaty-cqrs": "^0.15.4"
"mailbox": "^0.10.12",
"xstate": "4.31.0"
},
"peerDependencies": {
"wechaty-cqrs": "^0.15.4",
"wechaty": "^1.19.10"
},
"devDependencies": {
Expand All @@ -92,6 +65,7 @@
"@types/uuid": "^8.3.4",
"glob": "^7.2.0",
"tstest": "^1.2.8",
"wechaty-mocker": "^1.11.3",
"wechaty-puppet-mock": "^1.18.2",
"wechaty-puppet-wechat": "^1.18.1"
},
Expand Down
24 changes: 0 additions & 24 deletions src/mods/mod.ts

This file was deleted.

0 comments on commit 53f32a7

Please sign in to comment.