@sprucelabs/mercury-chunking-emitter 1.0.4
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.
- package/.circleci/config.yml +71 -0
- package/.eslintignore +3 -0
- package/.eslintrc.js +3 -0
- package/.githooks/pre-push +17 -0
- package/.nvmrc +1 -0
- package/.vscode/launch.json +58 -0
- package/.vscode/settings.json +70 -0
- package/.vscode/tasks.json +112 -0
- package/CHANGELOG.md +16 -0
- package/README.md +24 -0
- package/package.json +84 -0
- package/release.config.js +7 -0
- package/src/.spruce/features/permission.plugin.ts +1 -0
- package/src/.spruce/permissions/permissions.types.ts +9 -0
- package/src/.spruce/schemas/chunkingEmitter/v2023_10_21/chunkPaging.schema.ts +29 -0
- package/src/.spruce/schemas/fields/fieldClassMap.ts +6 -0
- package/src/.spruce/schemas/fields/fields.types.ts +1 -0
- package/src/.spruce/schemas/schemas.types.ts +52 -0
- package/src/.spruce/schemas/spruce/v2020_07_22/choice.schema.ts +1 -0
- package/src/.spruce/schemas/spruce/v2020_07_22/link.schema.ts +1 -0
- package/src/.spruce/schemas/spruce/v2020_07_22/location.schema.ts +1 -0
- package/src/.spruce/schemas/spruce/v2020_07_22/message.schema.ts +1 -0
- package/src/.spruce/schemas/spruce/v2020_07_22/messageSource.schema.ts +1 -0
- package/src/.spruce/schemas/spruce/v2020_07_22/messageTarget.schema.ts +1 -0
- package/src/.spruce/schemas/spruce/v2020_07_22/organization.schema.ts +1 -0
- package/src/.spruce/schemas/spruce/v2020_07_22/person.schema.ts +1 -0
- package/src/.spruce/schemas/spruce/v2020_07_22/personLocation.schema.ts +1 -0
- package/src/.spruce/schemas/spruce/v2020_07_22/personOrganization.schema.ts +1 -0
- package/src/.spruce/schemas/spruce/v2020_07_22/role.schema.ts +1 -0
- package/src/.spruce/schemas/spruce/v2020_07_22/sendMessage.schema.ts +1 -0
- package/src/.spruce/schemas/spruce/v2020_07_22/skill.schema.ts +1 -0
- package/src/.spruce/schemas/spruce/v2020_07_22/skillCreator.schema.ts +1 -0
- package/src/.spruce/settings.json +14 -0
- package/src/__tests__/behavioral/ChunkingEmitter.test.ts +290 -0
- package/src/__tests__/behavioral/TestingChunkingEmitter.test.ts +163 -0
- package/src/__tests__/support/AbstractChunkingEmitterTest.ts +54 -0
- package/src/chunkingEmitter/ChunkingEmitter.ts +107 -0
- package/src/chunkingEmitter/MockChunkingEmitter.ts +84 -0
- package/src/chunkingEmitter/chunkFieldDefinition.ts +12 -0
- package/src/index.ts +3 -0
- package/src/schemas/v2023_10_21/chunkPaging.builder.ts +16 -0
- package/tsconfig.dist.json +36 -0
- package/tsconfig.json +40 -0
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
version: 2.1
|
|
2
|
+
orbs:
|
|
3
|
+
spruce: sprucelabsai/orb@1
|
|
4
|
+
jobs:
|
|
5
|
+
test:
|
|
6
|
+
docker:
|
|
7
|
+
- image: cimg/node:lts
|
|
8
|
+
working_directory: /mnt/ramdisk
|
|
9
|
+
steps:
|
|
10
|
+
- add_ssh_keys:
|
|
11
|
+
fingerprints:
|
|
12
|
+
- "ec:9f:2e:aa:1f:c9:ab:49:57:8f:c0:cd:2e:5b:f3:b0"
|
|
13
|
+
- checkout
|
|
14
|
+
- spruce/check_and_skip_if_npm_publish
|
|
15
|
+
- spruce/create_env_from_base64_env
|
|
16
|
+
- spruce/install_rsync
|
|
17
|
+
- spruce/install_deps_build_ci_test
|
|
18
|
+
- spruce/exit_if_not_auto_upgrade
|
|
19
|
+
- spruce/merge_auto_upgrade
|
|
20
|
+
npm_publish:
|
|
21
|
+
docker:
|
|
22
|
+
- image: cimg/node:lts
|
|
23
|
+
working_directory: /mnt/ramdisk
|
|
24
|
+
steps:
|
|
25
|
+
- add_ssh_keys:
|
|
26
|
+
fingerprints:
|
|
27
|
+
- "ec:9f:2e:aa:1f:c9:ab:49:57:8f:c0:cd:2e:5b:f3:b0"
|
|
28
|
+
- checkout
|
|
29
|
+
- spruce/check_and_skip_if_npm_publish
|
|
30
|
+
- spruce/install_rsync
|
|
31
|
+
- spruce/install_deps_build_dist_release
|
|
32
|
+
upgrade:
|
|
33
|
+
docker:
|
|
34
|
+
- image: cimg/node:lts
|
|
35
|
+
working_directory: /mnt/ramdisk
|
|
36
|
+
steps:
|
|
37
|
+
- spruce/check_for_autoupgrade_dns
|
|
38
|
+
- add_ssh_keys:
|
|
39
|
+
fingerprints:
|
|
40
|
+
- "ec:9f:2e:aa:1f:c9:ab:49:57:8f:c0:cd:2e:5b:f3:b0"
|
|
41
|
+
- spruce/check_for_ssh_keys_env
|
|
42
|
+
- spruce/setup_ct_npm_cache
|
|
43
|
+
- checkout
|
|
44
|
+
- spruce/set_target_branch_env
|
|
45
|
+
- spruce/install_rsync
|
|
46
|
+
- spruce/install_cli
|
|
47
|
+
- spruce/upgrade_check_for_major
|
|
48
|
+
- spruce/check_for_newline_only_diff
|
|
49
|
+
- spruce/create_pr
|
|
50
|
+
workflows:
|
|
51
|
+
version: 2.1
|
|
52
|
+
do_build:
|
|
53
|
+
jobs:
|
|
54
|
+
- test:
|
|
55
|
+
context: public_package_publish
|
|
56
|
+
- npm_publish:
|
|
57
|
+
requires:
|
|
58
|
+
- test
|
|
59
|
+
context: public_package_publish
|
|
60
|
+
filters:
|
|
61
|
+
branches:
|
|
62
|
+
only:
|
|
63
|
+
- master
|
|
64
|
+
upgrade:
|
|
65
|
+
jobs:
|
|
66
|
+
- upgrade:
|
|
67
|
+
context: public_package_publish
|
|
68
|
+
filters:
|
|
69
|
+
branches:
|
|
70
|
+
only:
|
|
71
|
+
- never_run_only_for_cron
|
package/.eslintignore
ADDED
package/.eslintrc.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
|
|
3
|
+
CMD="CI=true yarn fix.lint"
|
|
4
|
+
protected_branch='master'
|
|
5
|
+
|
|
6
|
+
current_branch=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,')
|
|
7
|
+
|
|
8
|
+
eval $CMD
|
|
9
|
+
RESULT=$?
|
|
10
|
+
|
|
11
|
+
if [[ $current_branch = $protected_branch ]]; then
|
|
12
|
+
if [ $RESULT -ne 0 ]; then
|
|
13
|
+
echo "failed $CMD"
|
|
14
|
+
exit 1
|
|
15
|
+
fi
|
|
16
|
+
fi
|
|
17
|
+
exit 0
|
package/.nvmrc
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
lts/*
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.2.0",
|
|
3
|
+
"configurations": [
|
|
4
|
+
{
|
|
5
|
+
"type": "node",
|
|
6
|
+
"request": "attach",
|
|
7
|
+
"name": "attach.tests",
|
|
8
|
+
"port": 5200,
|
|
9
|
+
"restart": true,
|
|
10
|
+
"timeout": 10000
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"type": "node",
|
|
14
|
+
"request": "launch",
|
|
15
|
+
"name": "test.file",
|
|
16
|
+
"runtimeExecutable": "node",
|
|
17
|
+
"runtimeArgs": [
|
|
18
|
+
"--inspect-brk",
|
|
19
|
+
"--trace-warnings",
|
|
20
|
+
"${workspaceFolder}/node_modules/.bin/jest",
|
|
21
|
+
"${fileBasenameNoExtension}",
|
|
22
|
+
"--detectOpenHandles"
|
|
23
|
+
],
|
|
24
|
+
"cwd": "${workspaceFolder}",
|
|
25
|
+
"console": "integratedTerminal",
|
|
26
|
+
"internalConsoleOptions": "neverOpen"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"type": "node",
|
|
30
|
+
"request": "launch",
|
|
31
|
+
"name": "test.all",
|
|
32
|
+
"runtimeExecutable": "node",
|
|
33
|
+
"runtimeArgs": [
|
|
34
|
+
"--inspect-brk",
|
|
35
|
+
"--trace-warnings",
|
|
36
|
+
"${workspaceFolder}/node_modules/.bin/jest"
|
|
37
|
+
],
|
|
38
|
+
"cwd": "${workspaceFolder}",
|
|
39
|
+
"console": "integratedTerminal",
|
|
40
|
+
"internalConsoleOptions": "neverOpen"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"type": "node",
|
|
44
|
+
"request": "launch",
|
|
45
|
+
"name": "boot",
|
|
46
|
+
"runtimeExecutable": "yarn",
|
|
47
|
+
"runtimeArgs": [
|
|
48
|
+
"run",
|
|
49
|
+
"--inspect-brk",
|
|
50
|
+
"--trace-warnings",
|
|
51
|
+
"boot"
|
|
52
|
+
],
|
|
53
|
+
"cwd": "${workspaceFolder}",
|
|
54
|
+
"console": "integratedTerminal",
|
|
55
|
+
"internalConsoleOptions": "neverOpen"
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"debug.node.autoAttach": "on",
|
|
3
|
+
"git.ignoreLimitWarning": true,
|
|
4
|
+
"javascript.validate.enable": false,
|
|
5
|
+
"editor.formatOnSave": true,
|
|
6
|
+
"files.watcherExclude": {
|
|
7
|
+
"**/.git/objects/**": true,
|
|
8
|
+
"**/.git/subtree-cache/**": true,
|
|
9
|
+
"**/build/**": true,
|
|
10
|
+
"**/node_modules/**": true,
|
|
11
|
+
},
|
|
12
|
+
"search.exclude": {
|
|
13
|
+
"**/build/**": true,
|
|
14
|
+
"**/node_modules/**": true,
|
|
15
|
+
"**/.next/**": true
|
|
16
|
+
},
|
|
17
|
+
"editor.maxTokenizationLineLength": 20000000,
|
|
18
|
+
"eslint.enable": true,
|
|
19
|
+
"eslint.validate": [
|
|
20
|
+
"javascript",
|
|
21
|
+
"javascriptreact",
|
|
22
|
+
"typescript",
|
|
23
|
+
"typescriptreact"
|
|
24
|
+
],
|
|
25
|
+
"[javascript]": {
|
|
26
|
+
"editor.formatOnSave": false
|
|
27
|
+
},
|
|
28
|
+
"[javascriptreact]": {
|
|
29
|
+
"editor.formatOnSave": false
|
|
30
|
+
},
|
|
31
|
+
"[typescript]": {
|
|
32
|
+
"editor.formatOnSave": false
|
|
33
|
+
},
|
|
34
|
+
"[typescriptreact]": {
|
|
35
|
+
"editor.formatOnSave": false
|
|
36
|
+
},
|
|
37
|
+
"[handlebars]": {
|
|
38
|
+
"editor.formatOnSave": false
|
|
39
|
+
},
|
|
40
|
+
"eslint.options": {
|
|
41
|
+
"extensions": [
|
|
42
|
+
".js",
|
|
43
|
+
".jsx",
|
|
44
|
+
".ts",
|
|
45
|
+
".tsx"
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
"typescript.tsdk": "node_modules/typescript/lib",
|
|
49
|
+
"editor.codeActionsOnSave": {
|
|
50
|
+
"source.fixAll.eslint": true
|
|
51
|
+
},
|
|
52
|
+
"cSpell.ignorePaths": [
|
|
53
|
+
"**/package-lock.json",
|
|
54
|
+
"**/node_modules/**",
|
|
55
|
+
"**/build/**",
|
|
56
|
+
"**/vscode-extension/**",
|
|
57
|
+
"**/.git/objects/**",
|
|
58
|
+
".vscode",
|
|
59
|
+
".spruce"
|
|
60
|
+
],
|
|
61
|
+
"cSpell.words": [
|
|
62
|
+
"arkit",
|
|
63
|
+
"autogenerated",
|
|
64
|
+
"scrollable",
|
|
65
|
+
"serializable"
|
|
66
|
+
],
|
|
67
|
+
"debug.javascript.unmapMissingSources": true,
|
|
68
|
+
"javascript.preferences.importModuleSpecifier": "relative",
|
|
69
|
+
"typescript.preferences.importModuleSpecifier": "relative"
|
|
70
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "2.0.0",
|
|
3
|
+
"tasks": [
|
|
4
|
+
{
|
|
5
|
+
"type": "npm",
|
|
6
|
+
"script": "watch.build.dev",
|
|
7
|
+
"group": "build",
|
|
8
|
+
"label": "watch.build.dev & problem.watcher",
|
|
9
|
+
"isBackground": true,
|
|
10
|
+
"runOptions": {
|
|
11
|
+
"runOn": "folderOpen"
|
|
12
|
+
},
|
|
13
|
+
"promptOnClose": false,
|
|
14
|
+
"presentation": {
|
|
15
|
+
"focus": false,
|
|
16
|
+
"reveal": "never"
|
|
17
|
+
},
|
|
18
|
+
"problemMatcher": {
|
|
19
|
+
"base": "$tsc-watch",
|
|
20
|
+
"applyTo": "allDocuments"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"label": "test.file",
|
|
25
|
+
"command": "spruce",
|
|
26
|
+
"args": [
|
|
27
|
+
"test",
|
|
28
|
+
"--inspect",
|
|
29
|
+
"5200",
|
|
30
|
+
"--pattern",
|
|
31
|
+
"${fileBasenameNoExtension}",
|
|
32
|
+
"--watchMode",
|
|
33
|
+
"standard"
|
|
34
|
+
],
|
|
35
|
+
"promptOnClose": false,
|
|
36
|
+
"group": {
|
|
37
|
+
"kind": "test",
|
|
38
|
+
"isDefault": true
|
|
39
|
+
},
|
|
40
|
+
"presentation": {
|
|
41
|
+
"reveal": "always",
|
|
42
|
+
"panel": "dedicated",
|
|
43
|
+
},
|
|
44
|
+
"problemMatcher": []
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"label": "test.reporter",
|
|
48
|
+
"command": "spruce",
|
|
49
|
+
"args": [
|
|
50
|
+
"test",
|
|
51
|
+
"--shouldHoldAtStart",
|
|
52
|
+
"true",
|
|
53
|
+
"--watchMode",
|
|
54
|
+
"smart"
|
|
55
|
+
],
|
|
56
|
+
"promptOnClose": false,
|
|
57
|
+
"group": "test",
|
|
58
|
+
"runOptions": {
|
|
59
|
+
"runOn": "folderOpen"
|
|
60
|
+
},
|
|
61
|
+
"presentation": {
|
|
62
|
+
"panel": "shared",
|
|
63
|
+
"focus": true,
|
|
64
|
+
"reveal": "always"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"label": "spruce",
|
|
69
|
+
"type": "shell",
|
|
70
|
+
"command": "spruce ${input:spruceCommand}",
|
|
71
|
+
"problemMatcher": [],
|
|
72
|
+
"presentation": {
|
|
73
|
+
"reveal": "always",
|
|
74
|
+
"focus": true,
|
|
75
|
+
"panel": "new",
|
|
76
|
+
"clear": false
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"label": "shell",
|
|
81
|
+
"type": "shell",
|
|
82
|
+
"command": "${input:command} ${input:optionsCommand}",
|
|
83
|
+
"problemMatcher": [],
|
|
84
|
+
"presentation": {
|
|
85
|
+
"reveal": "always",
|
|
86
|
+
"focus": true,
|
|
87
|
+
"panel": "new",
|
|
88
|
+
"clear": false
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
"inputs": [
|
|
93
|
+
{
|
|
94
|
+
"id": "spruceCommand",
|
|
95
|
+
"description": "spruce command",
|
|
96
|
+
"default": "create.test",
|
|
97
|
+
"type": "promptString"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"id": "command",
|
|
101
|
+
"description": "command",
|
|
102
|
+
"default": "yarn",
|
|
103
|
+
"type": "promptString"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"id": "optionsCommand",
|
|
107
|
+
"description": "optionsCommand",
|
|
108
|
+
"default": "add",
|
|
109
|
+
"type": "promptString"
|
|
110
|
+
}
|
|
111
|
+
]
|
|
112
|
+
}
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
## [1.0.4](https://github.com/sprucelabsai-community/spruce-chunking-emitter/compare/v1.0.3...v1.0.4) (2023-10-21)
|
|
2
|
+
|
|
3
|
+
## [1.0.3](https://github.com/sprucelabsai-community/spruce-chunking-emitter/compare/v1.0.2...v1.0.3) (2023-10-21)
|
|
4
|
+
|
|
5
|
+
## [1.0.2](https://github.com/sprucelabsai-community/spruce-chunking-emitter/compare/v1.0.1...v1.0.2) (2023-10-21)
|
|
6
|
+
|
|
7
|
+
## [1.0.1](https://github.com/sprucelabsai-community/spruce-chunking-emitter/compare/v1.0.0...v1.0.1) (2023-10-21)
|
|
8
|
+
|
|
9
|
+
# 1.0.0 (2023-10-21)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* can pass target ([9dfe34a](https://github.com/sprucelabsai-community/spruce-chunking-emitter/commit/9dfe34a))
|
|
15
|
+
* initial commit ([1197525](https://github.com/sprucelabsai-community/spruce-chunking-emitter/commit/1197525))
|
|
16
|
+
* mock chunking emitter ([b076ad1](https://github.com/sprucelabsai-community/spruce-chunking-emitter/commit/b076ad1))
|
package/README.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<img src="https://raw.githubusercontent.com/sprucelabsai/data-stores/master/docs/images/hero.jpg">
|
|
2
|
+
<h1 align="center">
|
|
3
|
+
Spruce XP Documentation
|
|
4
|
+
</h1>
|
|
5
|
+
<h3 align="center">Spruce XP is an Experience Platform built to create unforgettable experiences and long-lasting relationships.
|
|
6
|
+
</h3>
|
|
7
|
+
<p align="center">
|
|
8
|
+
<img align="center" width="80%" src="https://raw.githubusercontent.com/sprucelabsai/data-stores/master/docs/images/bullets.jpg">
|
|
9
|
+
</p>
|
|
10
|
+
<img src="https://raw.githubusercontent.com/sprucelabsai/data-stores/master/docs/images/spacer.png">
|
|
11
|
+
<br />
|
|
12
|
+
<p align="center">
|
|
13
|
+
<img align="center" width="80%" src="https://raw.githubusercontent.com/sprucelabsai/data-stores/master/docs/images/sprucebot-message.png">
|
|
14
|
+
</p>
|
|
15
|
+
|
|
16
|
+
<br />
|
|
17
|
+
|
|
18
|
+
<p align="center">
|
|
19
|
+
<a href="https://developer.spruce.ai/#/"><img width="250" src="https://raw.githubusercontent.com/sprucelabsai/data-stores/master/docs/images/read-full-docs.png" /></a>
|
|
20
|
+
</p>
|
|
21
|
+
|
|
22
|
+
### Dependencies
|
|
23
|
+
|
|
24
|
+
[Arkit diagram here](docs/dependencies.md).
|
package/package.json
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@sprucelabs/mercury-chunking-emitter",
|
|
3
|
+
"version": "1.0.4",
|
|
4
|
+
"scripts": {
|
|
5
|
+
"build.ci": "yarn build.tsc && yarn build.resolve-paths && yarn lint",
|
|
6
|
+
"build.dev": "yarn build.tsc --sourceMap ; yarn resolve-paths.lint",
|
|
7
|
+
"build.copy-files": "mkdir -p build && rsync -avzq --exclude='*.ts' ./src/ ./build/",
|
|
8
|
+
"build.resolve-paths": "resolve-path-aliases --target build --patterns '**/*.js,**/*.d.ts'",
|
|
9
|
+
"build.tsc": "yarn build.copy-files && tsc",
|
|
10
|
+
"build.esm-postbuild": "esm-postbuild --target esm --patterns '**/*.js'",
|
|
11
|
+
"build.dist": "tsc --project tsconfig.dist.json && yarn build.resolve-paths && mv build esm && yarn build.esm-postbuild && yarn build.tsc && yarn build.resolve-paths && mv esm build/ && yarn clean.dist",
|
|
12
|
+
"clean": "yarn clean.build",
|
|
13
|
+
"clean.dist": "rm -rf build/__tests__ build/esm/__tests__",
|
|
14
|
+
"clean.all": "yarn clean.dependencies && yarn clean.build",
|
|
15
|
+
"clean.build": "rm -rf build/",
|
|
16
|
+
"clean.dependencies": "rm -rf node_modules/ package-lock.json yarn.lock",
|
|
17
|
+
"fix.lint": "eslint --fix --cache '**/*.ts'",
|
|
18
|
+
"lint": "eslint --cache '**/*.ts'",
|
|
19
|
+
"lint.tsc": "tsc -p . --noEmit",
|
|
20
|
+
"post.watch.build": "yarn build.copy-files && yarn build.resolve-paths",
|
|
21
|
+
"rebuild": "yarn clean.all && yarn && yarn build.dev",
|
|
22
|
+
"update.dependencies": "yarn clean.dependencies && yarn",
|
|
23
|
+
"resolve-paths.lint": "yarn build.resolve-paths ; yarn lint",
|
|
24
|
+
"test": "jest",
|
|
25
|
+
"watch.build.dev": "tsc-watch --sourceMap --onCompilationComplete 'yarn post.watch.build'",
|
|
26
|
+
"watch.lint": "concurrently 'yarn lint' \"chokidar 'src/**/*' -c 'yarn lint.tsc'\"",
|
|
27
|
+
"watch.rebuild": "yarn clean.all && yarn && yarn watch.build.dev",
|
|
28
|
+
"watch.tsc": "tsc -w",
|
|
29
|
+
"release": "semantic-release"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@sprucelabs/jest-json-reporter": "^7.0.110",
|
|
33
|
+
"@sprucelabs/resolve-path-aliases": "^1.1.254",
|
|
34
|
+
"@sprucelabs/spruce-test-fixtures": "^60.0.136",
|
|
35
|
+
"@sprucelabs/test": "^8.0.22",
|
|
36
|
+
"@sprucelabs/test-utils": "^4.0.60",
|
|
37
|
+
"@types/node": "^20.8.7",
|
|
38
|
+
"chokidar-cli": "^3.0.0",
|
|
39
|
+
"concurrently": "^8.2.2",
|
|
40
|
+
"eslint": "^8.52.0",
|
|
41
|
+
"eslint-config-spruce": "^10.13.6",
|
|
42
|
+
"jest": "^29.7.0",
|
|
43
|
+
"jest-circus": "^29.7.0",
|
|
44
|
+
"prettier": "^3.0.3",
|
|
45
|
+
"ts-node": "^10.9.1",
|
|
46
|
+
"tsc-watch": "^6.0.4",
|
|
47
|
+
"typescript": "^5.2.2",
|
|
48
|
+
"@sprucelabs/esm-postbuild": "^5.0.83",
|
|
49
|
+
"@sprucelabs/semantic-release": "^4.0.8"
|
|
50
|
+
},
|
|
51
|
+
"description": "Need to emit a ton of data!? Just chunk it!",
|
|
52
|
+
"skill": {
|
|
53
|
+
"namespace": "chunking-emitter"
|
|
54
|
+
},
|
|
55
|
+
"jest": {
|
|
56
|
+
"testRunner": "jest-circus/runner",
|
|
57
|
+
"maxWorkers": 4,
|
|
58
|
+
"testTimeout": 120000,
|
|
59
|
+
"testEnvironment": "node",
|
|
60
|
+
"testPathIgnorePatterns": [
|
|
61
|
+
"<rootDir>/tmp/",
|
|
62
|
+
"<rootDir>/src/",
|
|
63
|
+
"<rootDir>/node_modules/",
|
|
64
|
+
"<rootDir>/build/__tests__/testDirsAndFiles/"
|
|
65
|
+
],
|
|
66
|
+
"testMatch": [
|
|
67
|
+
"**/__tests__/**/*.test.js?(x)"
|
|
68
|
+
],
|
|
69
|
+
"moduleNameMapper": {
|
|
70
|
+
"^#spruce/(.*)$": "<rootDir>/build/.spruce/$1"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"dependencies": {
|
|
74
|
+
"@sprucelabs/mercury-client": "^41.0.109",
|
|
75
|
+
"@sprucelabs/mercury-core-events": "^22.0.105",
|
|
76
|
+
"@sprucelabs/mercury-types": "^46.0.98",
|
|
77
|
+
"@sprucelabs/schema": "^29.0.71",
|
|
78
|
+
"@sprucelabs/spruce-core-schemas": "^39.0.104",
|
|
79
|
+
"@sprucelabs/spruce-event-plugin": "^60.0.136",
|
|
80
|
+
"@sprucelabs/spruce-event-utils": "^38.0.114",
|
|
81
|
+
"@sprucelabs/spruce-permission-plugin": "^30.0.206",
|
|
82
|
+
"@sprucelabs/spruce-skill-utils": "^30.0.54"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { plugin as default } from '@sprucelabs/spruce-permission-plugin'
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { SchemaRegistry } from '@sprucelabs/schema'
|
|
2
|
+
import { SpruceSchemas } from '../../schemas.types'
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
const chunkPagingSchema: SpruceSchemas.ChunkingEmitter.v2023_10_21.ChunkPagingSchema = {
|
|
7
|
+
id: 'chunkPaging',
|
|
8
|
+
version: 'v2023_10_21',
|
|
9
|
+
namespace: 'ChunkingEmitter',
|
|
10
|
+
name: 'Chunk Paging',
|
|
11
|
+
fields: {
|
|
12
|
+
/** . */
|
|
13
|
+
'total': {
|
|
14
|
+
type: 'number',
|
|
15
|
+
isRequired: true,
|
|
16
|
+
options: undefined
|
|
17
|
+
},
|
|
18
|
+
/** . */
|
|
19
|
+
'current': {
|
|
20
|
+
type: 'number',
|
|
21
|
+
isRequired: true,
|
|
22
|
+
options: undefined
|
|
23
|
+
},
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
SchemaRegistry.getInstance().trackSchema(chunkPagingSchema)
|
|
28
|
+
|
|
29
|
+
export default chunkPagingSchema
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FieldDefinitions, FieldDefinitionMap, FieldValueTypeGeneratorMap, FieldMap } from '@sprucelabs/schema'
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-namespace */
|
|
2
|
+
/* eslint-disable no-redeclare */
|
|
3
|
+
|
|
4
|
+
export { SpruceSchemas } from '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schemas.types'
|
|
5
|
+
|
|
6
|
+
import { default as SchemaEntity } from '@sprucelabs/schema'
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
import * as SpruceSchema from '@sprucelabs/schema'
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schemas.types' {
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
namespace SpruceSchemas.ChunkingEmitter.v2023_10_21 {
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
interface ChunkPaging {
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
'total': number
|
|
23
|
+
|
|
24
|
+
'current': number
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
interface ChunkPagingSchema extends SpruceSchema.Schema {
|
|
28
|
+
id: 'chunkPaging',
|
|
29
|
+
version: 'v2023_10_21',
|
|
30
|
+
namespace: 'ChunkingEmitter',
|
|
31
|
+
name: 'Chunk Paging',
|
|
32
|
+
fields: {
|
|
33
|
+
/** . */
|
|
34
|
+
'total': {
|
|
35
|
+
type: 'number',
|
|
36
|
+
isRequired: true,
|
|
37
|
+
options: undefined
|
|
38
|
+
},
|
|
39
|
+
/** . */
|
|
40
|
+
'current': {
|
|
41
|
+
type: 'number',
|
|
42
|
+
isRequired: true,
|
|
43
|
+
options: undefined
|
|
44
|
+
},
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
interface ChunkPagingEntity extends SchemaEntity<SpruceSchemas.ChunkingEmitter.v2023_10_21.ChunkPagingSchema> {}
|
|
49
|
+
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { choiceSchema as default } from '@sprucelabs/spruce-core-schemas'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { linkSchema as default } from '@sprucelabs/spruce-core-schemas'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { locationSchema as default } from '@sprucelabs/spruce-core-schemas'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { messageSchema as default } from '@sprucelabs/spruce-core-schemas'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { messageSourceSchema as default } from '@sprucelabs/spruce-core-schemas'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { messageTargetSchema as default } from '@sprucelabs/spruce-core-schemas'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { organizationSchema as default } from '@sprucelabs/spruce-core-schemas'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { personSchema as default } from '@sprucelabs/spruce-core-schemas'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { personLocationSchema as default } from '@sprucelabs/spruce-core-schemas'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { personOrganizationSchema as default } from '@sprucelabs/spruce-core-schemas'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { roleSchema as default } from '@sprucelabs/spruce-core-schemas'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { sendMessageSchema as default } from '@sprucelabs/spruce-core-schemas'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { skillSchema as default } from '@sprucelabs/spruce-core-schemas'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { skillCreatorSchema as default } from '@sprucelabs/spruce-core-schemas'
|