├── .editorconfig ├── .eslintrc.cjs ├── .github └── workflows │ └── npm.yml ├── .gitignore ├── .vscode └── settings.json ├── LICENSE ├── NOTICE ├── README.md ├── docs └── images │ └── hostie.png ├── examples └── ding-dong-bot.ts ├── package.json ├── scripts ├── generate-package-json.sh ├── npm-pack-testing.sh └── package-publish-config-tag.sh ├── src ├── auth │ ├── README.md │ ├── auth-impl-token.spec.ts │ ├── auth-impl-token.ts │ ├── ca.spec.ts │ ├── ca.ts │ ├── call-cred.spec.ts │ ├── call-cred.ts │ ├── env-vars.ts │ ├── grpc-js.ts │ ├── mod.ts │ ├── mokey-patch-header-authorization.ts │ └── monkey-patch-header-authorization.spec.ts ├── client │ ├── duck │ │ ├── actions.ts │ │ ├── epic-recover.spec.ts │ │ ├── epic-recover.ts │ │ ├── epics.ts │ │ ├── mod.ts │ │ ├── operations.ts │ │ ├── reducers.ts │ │ ├── selectors.ts │ │ ├── tests.spec.ts │ │ ├── types.ts │ │ └── utils.ts │ ├── grpc-manager.spec.ts │ ├── grpc-manager.ts │ ├── payload-store.spec.ts │ ├── payload-store.ts │ ├── puppet-service.spec.ts │ └── puppet-service.ts ├── config.ts ├── deprecated │ ├── chunk-pb.spec.ts │ ├── chunk-pb.ts │ ├── conversation-id-file-box.spec.ts │ ├── conversation-id-file-box.ts │ ├── file-box-chunk.spec.ts │ ├── file-box-chunk.ts │ ├── file-box-pb.spec.ts │ ├── file-box-pb.ts │ ├── file-box-pb.type.ts │ ├── mod.ts │ ├── next-data.ts │ └── serialize-file-box.ts ├── env-vars.spec.ts ├── env-vars.ts ├── event-type-rev.ts ├── file-box-helper │ ├── mod.ts │ ├── normalize-filebox.spec.ts │ ├── normalize-filebox.ts │ ├── uuidify-file-box-grpc.ts │ └── uuidify-file-box-local.ts ├── mod.spec.ts ├── mod.ts ├── package-json.spec.ts ├── package-json.ts ├── pure-functions │ └── timestamp.ts ├── server │ ├── event-stream-manager.ts │ ├── grpc-error.ts │ ├── health-implementation.ts │ ├── puppet-implementation.ts │ ├── puppet-server.spec.ts │ └── puppet-server.ts └── typings.d.ts ├── tests ├── fixtures │ └── smoke-testing.ts ├── grpc-client.spec.ts ├── grpc-stream.spec.ts ├── integration.spec.ts ├── performance.spec.ts ├── ready-event.spec.ts ├── typings.d.ts └── uuid-file-box.spec.ts ├── tsconfig.cjs.json └── tsconfig.json /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintrc.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/.eslintrc.cjs -------------------------------------------------------------------------------- /.github/workflows/npm.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/.github/workflows/npm.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/.gitignore -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/LICENSE -------------------------------------------------------------------------------- /NOTICE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/NOTICE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/README.md -------------------------------------------------------------------------------- /docs/images/hostie.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/docs/images/hostie.png -------------------------------------------------------------------------------- /examples/ding-dong-bot.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/examples/ding-dong-bot.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/package.json -------------------------------------------------------------------------------- /scripts/generate-package-json.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/scripts/generate-package-json.sh -------------------------------------------------------------------------------- /scripts/npm-pack-testing.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/scripts/npm-pack-testing.sh -------------------------------------------------------------------------------- /scripts/package-publish-config-tag.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/scripts/package-publish-config-tag.sh -------------------------------------------------------------------------------- /src/auth/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/auth/README.md -------------------------------------------------------------------------------- /src/auth/auth-impl-token.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/auth/auth-impl-token.spec.ts -------------------------------------------------------------------------------- /src/auth/auth-impl-token.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/auth/auth-impl-token.ts -------------------------------------------------------------------------------- /src/auth/ca.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/auth/ca.spec.ts -------------------------------------------------------------------------------- /src/auth/ca.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/auth/ca.ts -------------------------------------------------------------------------------- /src/auth/call-cred.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/auth/call-cred.spec.ts -------------------------------------------------------------------------------- /src/auth/call-cred.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/auth/call-cred.ts -------------------------------------------------------------------------------- /src/auth/env-vars.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/auth/env-vars.ts -------------------------------------------------------------------------------- /src/auth/grpc-js.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/auth/grpc-js.ts -------------------------------------------------------------------------------- /src/auth/mod.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/auth/mod.ts -------------------------------------------------------------------------------- /src/auth/mokey-patch-header-authorization.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/auth/mokey-patch-header-authorization.ts -------------------------------------------------------------------------------- /src/auth/monkey-patch-header-authorization.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/auth/monkey-patch-header-authorization.spec.ts -------------------------------------------------------------------------------- /src/client/duck/actions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/client/duck/actions.ts -------------------------------------------------------------------------------- /src/client/duck/epic-recover.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/client/duck/epic-recover.spec.ts -------------------------------------------------------------------------------- /src/client/duck/epic-recover.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/client/duck/epic-recover.ts -------------------------------------------------------------------------------- /src/client/duck/epics.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/client/duck/epics.ts -------------------------------------------------------------------------------- /src/client/duck/mod.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/client/duck/mod.ts -------------------------------------------------------------------------------- /src/client/duck/operations.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/client/duck/operations.ts -------------------------------------------------------------------------------- /src/client/duck/reducers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/client/duck/reducers.ts -------------------------------------------------------------------------------- /src/client/duck/selectors.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/client/duck/selectors.ts -------------------------------------------------------------------------------- /src/client/duck/tests.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/client/duck/tests.spec.ts -------------------------------------------------------------------------------- /src/client/duck/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/client/duck/types.ts -------------------------------------------------------------------------------- /src/client/duck/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/client/duck/utils.ts -------------------------------------------------------------------------------- /src/client/grpc-manager.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/client/grpc-manager.spec.ts -------------------------------------------------------------------------------- /src/client/grpc-manager.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/client/grpc-manager.ts -------------------------------------------------------------------------------- /src/client/payload-store.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/client/payload-store.spec.ts -------------------------------------------------------------------------------- /src/client/payload-store.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/client/payload-store.ts -------------------------------------------------------------------------------- /src/client/puppet-service.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/client/puppet-service.spec.ts -------------------------------------------------------------------------------- /src/client/puppet-service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/client/puppet-service.ts -------------------------------------------------------------------------------- /src/config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/config.ts -------------------------------------------------------------------------------- /src/deprecated/chunk-pb.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/deprecated/chunk-pb.spec.ts -------------------------------------------------------------------------------- /src/deprecated/chunk-pb.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/deprecated/chunk-pb.ts -------------------------------------------------------------------------------- /src/deprecated/conversation-id-file-box.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/deprecated/conversation-id-file-box.spec.ts -------------------------------------------------------------------------------- /src/deprecated/conversation-id-file-box.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/deprecated/conversation-id-file-box.ts -------------------------------------------------------------------------------- /src/deprecated/file-box-chunk.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/deprecated/file-box-chunk.spec.ts -------------------------------------------------------------------------------- /src/deprecated/file-box-chunk.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/deprecated/file-box-chunk.ts -------------------------------------------------------------------------------- /src/deprecated/file-box-pb.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/deprecated/file-box-pb.spec.ts -------------------------------------------------------------------------------- /src/deprecated/file-box-pb.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/deprecated/file-box-pb.ts -------------------------------------------------------------------------------- /src/deprecated/file-box-pb.type.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/deprecated/file-box-pb.type.ts -------------------------------------------------------------------------------- /src/deprecated/mod.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/deprecated/mod.ts -------------------------------------------------------------------------------- /src/deprecated/next-data.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/deprecated/next-data.ts -------------------------------------------------------------------------------- /src/deprecated/serialize-file-box.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/deprecated/serialize-file-box.ts -------------------------------------------------------------------------------- /src/env-vars.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/env-vars.spec.ts -------------------------------------------------------------------------------- /src/env-vars.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/env-vars.ts -------------------------------------------------------------------------------- /src/event-type-rev.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/event-type-rev.ts -------------------------------------------------------------------------------- /src/file-box-helper/mod.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/file-box-helper/mod.ts -------------------------------------------------------------------------------- /src/file-box-helper/normalize-filebox.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/file-box-helper/normalize-filebox.spec.ts -------------------------------------------------------------------------------- /src/file-box-helper/normalize-filebox.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/file-box-helper/normalize-filebox.ts -------------------------------------------------------------------------------- /src/file-box-helper/uuidify-file-box-grpc.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/file-box-helper/uuidify-file-box-grpc.ts -------------------------------------------------------------------------------- /src/file-box-helper/uuidify-file-box-local.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/file-box-helper/uuidify-file-box-local.ts -------------------------------------------------------------------------------- /src/mod.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/mod.spec.ts -------------------------------------------------------------------------------- /src/mod.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/mod.ts -------------------------------------------------------------------------------- /src/package-json.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/package-json.spec.ts -------------------------------------------------------------------------------- /src/package-json.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/package-json.ts -------------------------------------------------------------------------------- /src/pure-functions/timestamp.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/pure-functions/timestamp.ts -------------------------------------------------------------------------------- /src/server/event-stream-manager.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/server/event-stream-manager.ts -------------------------------------------------------------------------------- /src/server/grpc-error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/server/grpc-error.ts -------------------------------------------------------------------------------- /src/server/health-implementation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/server/health-implementation.ts -------------------------------------------------------------------------------- /src/server/puppet-implementation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/server/puppet-implementation.ts -------------------------------------------------------------------------------- /src/server/puppet-server.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/server/puppet-server.spec.ts -------------------------------------------------------------------------------- /src/server/puppet-server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/server/puppet-server.ts -------------------------------------------------------------------------------- /src/typings.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/src/typings.d.ts -------------------------------------------------------------------------------- /tests/fixtures/smoke-testing.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/tests/fixtures/smoke-testing.ts -------------------------------------------------------------------------------- /tests/grpc-client.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/tests/grpc-client.spec.ts -------------------------------------------------------------------------------- /tests/grpc-stream.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/tests/grpc-stream.spec.ts -------------------------------------------------------------------------------- /tests/integration.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/tests/integration.spec.ts -------------------------------------------------------------------------------- /tests/performance.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/tests/performance.spec.ts -------------------------------------------------------------------------------- /tests/ready-event.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/tests/ready-event.spec.ts -------------------------------------------------------------------------------- /tests/typings.d.ts: -------------------------------------------------------------------------------- 1 | declare module 'why-is-node-running' 2 | -------------------------------------------------------------------------------- /tests/uuid-file-box.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/tests/uuid-file-box.spec.ts -------------------------------------------------------------------------------- /tsconfig.cjs.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/tsconfig.cjs.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wechaty/puppet-service/HEAD/tsconfig.json --------------------------------------------------------------------------------