Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- novas/novacore-zephyr/claude-code-router/node_modules/.bin/anthropic-ai-sdk +3 -0
- novas/novacore-zephyr/claude-code-router/node_modules/.bin/browserslist +3 -0
- novas/novacore-zephyr/claude-code-router/node_modules/.bin/create-jest +3 -0
- novas/novacore-zephyr/claude-code-router/node_modules/.bin/esbuild +3 -0
- novas/novacore-zephyr/claude-code-router/node_modules/.bin/esparse +3 -0
- novas/novacore-zephyr/claude-code-router/node_modules/.bin/esvalidate +3 -0
- novas/novacore-zephyr/claude-code-router/node_modules/.bin/glob +3 -0
- novas/novacore-zephyr/claude-code-router/node_modules/.bin/handlebars +3 -0
- novas/novacore-zephyr/claude-code-router/node_modules/.bin/import-local-fixture +3 -0
- novas/novacore-zephyr/claude-code-router/node_modules/.bin/jest +3 -0
- novas/novacore-zephyr/claude-code-router/node_modules/.bin/js-yaml +3 -0
- novas/novacore-zephyr/claude-code-router/node_modules/.bin/jsesc +3 -0
- novas/novacore-zephyr/claude-code-router/node_modules/.bin/json5 +3 -0
- novas/novacore-zephyr/claude-code-router/node_modules/.bin/jsonrepair +3 -0
- novas/novacore-zephyr/claude-code-router/node_modules/.bin/mime +3 -0
- novas/novacore-zephyr/claude-code-router/node_modules/.bin/node-which +3 -0
- novas/novacore-zephyr/claude-code-router/node_modules/.bin/openai +3 -0
- novas/novacore-zephyr/claude-code-router/node_modules/.bin/parser +3 -0
- novas/novacore-zephyr/claude-code-router/node_modules/.bin/pino +3 -0
- novas/novacore-zephyr/claude-code-router/node_modules/.bin/resolve +3 -0
- novas/novacore-zephyr/claude-code-router/node_modules/.bin/semver +3 -0
- novas/novacore-zephyr/claude-code-router/node_modules/.bin/shjs +3 -0
- novas/novacore-zephyr/claude-code-router/node_modules/.bin/shx +3 -0
- novas/novacore-zephyr/claude-code-router/node_modules/.bin/ts-jest +3 -0
- novas/novacore-zephyr/claude-code-router/node_modules/.bin/tsc +3 -0
- novas/novacore-zephyr/claude-code-router/node_modules/.bin/tsserver +3 -0
- novas/novacore-zephyr/claude-code-router/node_modules/.bin/uglifyjs +3 -0
- novas/novacore-zephyr/claude-code-router/node_modules/.bin/update-browserslist-db +3 -0
- novas/novacore-zephyr/claude-code-router/node_modules/.bin/uuid +3 -0
- novas/novacore-zephyr/claude-code-router/node_modules/abstract-logging/Readme.md +47 -0
- novas/novacore-zephyr/claude-code-router/node_modules/abstract-logging/index.js +18 -0
- novas/novacore-zephyr/claude-code-router/node_modules/abstract-logging/package.json +25 -0
- novas/novacore-zephyr/claude-code-router/node_modules/abstract-logging/test.js +17 -0
- novas/novacore-zephyr/claude-code-router/node_modules/agent-base/LICENSE +22 -0
- novas/novacore-zephyr/claude-code-router/node_modules/agent-base/README.md +69 -0
- novas/novacore-zephyr/claude-code-router/node_modules/agent-base/package.json +46 -0
- novas/novacore-zephyr/claude-code-router/node_modules/ajv-formats/LICENSE +21 -0
- novas/novacore-zephyr/claude-code-router/node_modules/ajv-formats/README.md +125 -0
- novas/novacore-zephyr/claude-code-router/node_modules/ajv-formats/package.json +74 -0
- novas/novacore-zephyr/claude-code-router/node_modules/ajv/.runkit_example.js +23 -0
- novas/novacore-zephyr/claude-code-router/node_modules/ajv/LICENSE +22 -0
- novas/novacore-zephyr/claude-code-router/node_modules/ajv/README.md +207 -0
- novas/novacore-zephyr/claude-code-router/node_modules/ajv/package.json +126 -0
- novas/novacore-zephyr/claude-code-router/node_modules/ansi-escapes/index.d.ts +248 -0
- novas/novacore-zephyr/claude-code-router/node_modules/ansi-escapes/index.js +157 -0
- novas/novacore-zephyr/claude-code-router/node_modules/ansi-escapes/license +9 -0
- novas/novacore-zephyr/claude-code-router/node_modules/ansi-escapes/package.json +57 -0
- novas/novacore-zephyr/claude-code-router/node_modules/ansi-escapes/readme.md +245 -0
- novas/novacore-zephyr/claude-code-router/node_modules/ansi-regex/index.d.ts +33 -0
- novas/novacore-zephyr/claude-code-router/node_modules/ansi-regex/index.js +14 -0
novas/novacore-zephyr/claude-code-router/node_modules/.bin/anthropic-ai-sdk
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:622a4596e0f48c53dcc84ce83e6cb5b2be384ab847a778ee5ece70d5a95ad19c
|
| 3 |
+
size 1221
|
novas/novacore-zephyr/claude-code-router/node_modules/.bin/browserslist
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0529540ec3f1805330afdb3b826fc5b006f7f9b946155fbb7e5932cbcf876015
|
| 3 |
+
size 4347
|
novas/novacore-zephyr/claude-code-router/node_modules/.bin/create-jest
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e8290e6b07c03014103963b5467974f1459c723e92b973d1053460c01265d702
|
| 3 |
+
size 235
|
novas/novacore-zephyr/claude-code-router/node_modules/.bin/esbuild
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:92d1ca653cf188da8d7650ddfe1c32d5a139bf3a9a2808f3e622e6d667ce0389
|
| 3 |
+
size 10305688
|
novas/novacore-zephyr/claude-code-router/node_modules/.bin/esparse
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:503d1d9067c1c662a036dc378a0cbe7dbb99c332cd4b7e4bd4b2ba09a30d69c0
|
| 3 |
+
size 4948
|
novas/novacore-zephyr/claude-code-router/node_modules/.bin/esvalidate
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1c38a63e723365b57dcc71ca327d0d2ebb7d3deeaccbb22b2468e8faf80a28ee
|
| 3 |
+
size 7744
|
novas/novacore-zephyr/claude-code-router/node_modules/.bin/glob
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:13d386ca6afb3706c528e432fd6d1bc4d123e4107157e0eba25ccd318685a02f
|
| 3 |
+
size 9690
|
novas/novacore-zephyr/claude-code-router/node_modules/.bin/handlebars
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b23f27e9aeae2daffd28696df638c1817290491450396679c04f5d7f9baefa8f
|
| 3 |
+
size 4244
|
novas/novacore-zephyr/claude-code-router/node_modules/.bin/import-local-fixture
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:da7afc4ca58c75558c1f6fc2513a172fb1541b7d9768db809417649bfeda911f
|
| 3 |
+
size 126
|
novas/novacore-zephyr/claude-code-router/node_modules/.bin/jest
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2a9b435eab8a343bd09fe285b2e2043ff9ff89fae4e1d1f46ba3df28659d8a2c
|
| 3 |
+
size 324
|
novas/novacore-zephyr/claude-code-router/node_modules/.bin/js-yaml
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3d0c9cbce9363a08e5d932e6c843013059758e4bd426cd77d2e09a2a229a443f
|
| 3 |
+
size 2727
|
novas/novacore-zephyr/claude-code-router/node_modules/.bin/jsesc
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:775eddbcc7769fa4d7d4d7b29c155a1bcd4221190462789545410f82e8328892
|
| 3 |
+
size 3833
|
novas/novacore-zephyr/claude-code-router/node_modules/.bin/json5
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5625791d31c1a385ca8e8823119fc659b61cd53957b2bd494bc8941486684bd4
|
| 3 |
+
size 3592
|
novas/novacore-zephyr/claude-code-router/node_modules/.bin/jsonrepair
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4bca6385c31f88bf12a81388eb21bd04a92ae8c0a0faaffb28e24b3b51ac79a3
|
| 3 |
+
size 4687
|
novas/novacore-zephyr/claude-code-router/node_modules/.bin/mime
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:15da8d89bd7fc3a4025f79197a02a62284a95add244ec67bdd2b8dff918b5052
|
| 3 |
+
size 1196
|
novas/novacore-zephyr/claude-code-router/node_modules/.bin/node-which
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:055f0ac4eed1a1591d033d59462972968bf3483b4cc07e163589569c0fb999f0
|
| 3 |
+
size 985
|
novas/novacore-zephyr/claude-code-router/node_modules/.bin/openai
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c85d063e1001222aa7e7df8cdfd85f7bd11c9798495b8b27d270251217b21073
|
| 3 |
+
size 1151
|
novas/novacore-zephyr/claude-code-router/node_modules/.bin/parser
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c7c62937ddbdad55475054a193073fca01092879a86b278182b28a850b8d4ebd
|
| 3 |
+
size 363
|
novas/novacore-zephyr/claude-code-router/node_modules/.bin/pino
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:734d67ca9a554b2dd4275a960df26a955209bd56de57c70174e35d1d67b058ea
|
| 3 |
+
size 170
|
novas/novacore-zephyr/claude-code-router/node_modules/.bin/resolve
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:38bfe8e320fb462083ff58d54aee6fc4cc2db9baef9ce9f88830652d55863e8b
|
| 3 |
+
size 1535
|
novas/novacore-zephyr/claude-code-router/node_modules/.bin/semver
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ad25dc10977d5f51e783a48f8721fcc8f0f2284f1a99614d14eb1428b959ce47
|
| 3 |
+
size 4739
|
novas/novacore-zephyr/claude-code-router/node_modules/.bin/shjs
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9f56ae6e4de004dc3649d1b46fe2c0348f365d03a1d6c52bc40ebb70347d0dda
|
| 3 |
+
size 1288
|
novas/novacore-zephyr/claude-code-router/node_modules/.bin/shx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c169dddb13017bfaaf18e57ae0e5bc5f343dff64d6c92092b8d9687e312c4a3d
|
| 3 |
+
size 1269
|
novas/novacore-zephyr/claude-code-router/node_modules/.bin/ts-jest
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d6e4c35c475356c793054638a34f40980007d65337300519d56b749facbfc697
|
| 3 |
+
size 57
|
novas/novacore-zephyr/claude-code-router/node_modules/.bin/tsc
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8d5fa5bd883fec0979fc2004f1fe1d99aef40570155d550eadc0b03b55513bf0
|
| 3 |
+
size 45
|
novas/novacore-zephyr/claude-code-router/node_modules/.bin/tsserver
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a088f0c3419bcb2f7b860ad42e4c9f25ead067eda70af6a10d0a7d453954aada
|
| 3 |
+
size 50
|
novas/novacore-zephyr/claude-code-router/node_modules/.bin/uglifyjs
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5cfb9db8f3324089b295b17bc76988ad3c7cd7e522f979a0c6f66c87ab2f2375
|
| 3 |
+
size 24463
|
novas/novacore-zephyr/claude-code-router/node_modules/.bin/update-browserslist-db
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:047bd636b5ff5b27c7a85c6fe64da0d03dd60649e818869b939d4e7897ddb3fa
|
| 3 |
+
size 912
|
novas/novacore-zephyr/claude-code-router/node_modules/.bin/uuid
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a9dc67d05c3b08842280064e7e65fab9de3f4257b1dfd88e6e51d5afd967bdf4
|
| 3 |
+
size 45
|
novas/novacore-zephyr/claude-code-router/node_modules/abstract-logging/Readme.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# abstract-logging
|
| 2 |
+
|
| 3 |
+
This module provides an interface for modules to include so that they can
|
| 4 |
+
support logging via an external logger that conforms to the standard Log4j
|
| 5 |
+
interface. One such logger is [Pino](https://npm.im/pino). This module
|
| 6 |
+
is intended for modules that are meant to be used by other modules.
|
| 7 |
+
|
| 8 |
+
Example:
|
| 9 |
+
|
| 10 |
+
```js
|
| 11 |
+
'use strict'
|
| 12 |
+
|
| 13 |
+
function AwesomeLibrary (options) {
|
| 14 |
+
this.log = (options.logger) ? options.logger : require('abstract-logging')
|
| 15 |
+
}
|
| 16 |
+
|
| 17 |
+
AwesomeLibrary.prototype.coolMethod = function () {
|
| 18 |
+
this.log.trace('AwesomeLibrary.coolMethod was invoked')
|
| 19 |
+
return {}
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
module.exports = AwesomeLibrary
|
| 23 |
+
```
|
| 24 |
+
|
| 25 |
+
## Interface
|
| 26 |
+
|
| 27 |
+
Available methods:
|
| 28 |
+
|
| 29 |
+
+ `fatal`
|
| 30 |
+
+ `error`
|
| 31 |
+
+ `warn`
|
| 32 |
+
+ `info`
|
| 33 |
+
+ `debug`
|
| 34 |
+
+ `trace`
|
| 35 |
+
|
| 36 |
+
All methods are no operation functions.
|
| 37 |
+
|
| 38 |
+
Some loggers, like [Pino](https://getpino.io/), implement a `child()` method. This method can be easily added to an `abstract-logging` instance when stubbing out such loggers:
|
| 39 |
+
|
| 40 |
+
```js
|
| 41 |
+
const logger = require('abstract-logging')
|
| 42 |
+
logger.child = () => logger
|
| 43 |
+
```
|
| 44 |
+
|
| 45 |
+
## License
|
| 46 |
+
|
| 47 |
+
[MIT License](http://jsumners.mit-license.org/)
|
novas/novacore-zephyr/claude-code-router/node_modules/abstract-logging/index.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict'
|
| 2 |
+
|
| 3 |
+
function noop () { }
|
| 4 |
+
|
| 5 |
+
const proto = {
|
| 6 |
+
fatal: noop,
|
| 7 |
+
error: noop,
|
| 8 |
+
warn: noop,
|
| 9 |
+
info: noop,
|
| 10 |
+
debug: noop,
|
| 11 |
+
trace: noop
|
| 12 |
+
}
|
| 13 |
+
|
| 14 |
+
Object.defineProperty(module, 'exports', {
|
| 15 |
+
get () {
|
| 16 |
+
return Object.create(proto)
|
| 17 |
+
}
|
| 18 |
+
})
|
novas/novacore-zephyr/claude-code-router/node_modules/abstract-logging/package.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "abstract-logging",
|
| 3 |
+
"version": "2.0.1",
|
| 4 |
+
"description": "A noop logger that conforms to the Log4j interface for modules to stub out internal logging",
|
| 5 |
+
"main": "index.js",
|
| 6 |
+
"scripts": {
|
| 7 |
+
"test": "node test.js"
|
| 8 |
+
},
|
| 9 |
+
"repository": {
|
| 10 |
+
"type": "git",
|
| 11 |
+
"url": "git+https://github.com/jsumners/abstract-logging.git"
|
| 12 |
+
},
|
| 13 |
+
"keywords": [
|
| 14 |
+
"log",
|
| 15 |
+
"logging",
|
| 16 |
+
"logger",
|
| 17 |
+
"pino"
|
| 18 |
+
],
|
| 19 |
+
"author": "James Sumners <james.sumners@gmail.com>",
|
| 20 |
+
"license": "MIT",
|
| 21 |
+
"bugs": {
|
| 22 |
+
"url": "https://github.com/jsumners/abstract-logging/issues"
|
| 23 |
+
},
|
| 24 |
+
"homepage": "https://github.com/jsumners/abstract-logging#readme"
|
| 25 |
+
}
|
novas/novacore-zephyr/claude-code-router/node_modules/abstract-logging/test.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict'
|
| 2 |
+
|
| 3 |
+
const assert = require('assert')
|
| 4 |
+
|
| 5 |
+
const one = require('./')
|
| 6 |
+
const two = require('./')
|
| 7 |
+
|
| 8 |
+
assert.notEqual(one, two)
|
| 9 |
+
assert.ok(one.info)
|
| 10 |
+
assert.equal(Function.prototype.isPrototypeOf(one.info), true)
|
| 11 |
+
two.info = () => 'info'
|
| 12 |
+
|
| 13 |
+
const result1 = one.info()
|
| 14 |
+
assert.equal(result1, undefined)
|
| 15 |
+
|
| 16 |
+
const result2 = two.info()
|
| 17 |
+
assert.equal(result2, 'info')
|
novas/novacore-zephyr/claude-code-router/node_modules/agent-base/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
(The MIT License)
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2013 Nathan Rajlich <nathan@tootallnate.net>
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining
|
| 6 |
+
a copy of this software and associated documentation files (the
|
| 7 |
+
'Software'), to deal in the Software without restriction, including
|
| 8 |
+
without limitation the rights to use, copy, modify, merge, publish,
|
| 9 |
+
distribute, sublicense, and/or sell copies of the Software, and to
|
| 10 |
+
permit persons to whom the Software is furnished to do so, subject to
|
| 11 |
+
the following conditions:
|
| 12 |
+
|
| 13 |
+
The above copyright notice and this permission notice shall be
|
| 14 |
+
included in all copies or substantial portions of the Software.
|
| 15 |
+
|
| 16 |
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
| 17 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
| 18 |
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
| 19 |
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
| 20 |
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
| 21 |
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
| 22 |
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
novas/novacore-zephyr/claude-code-router/node_modules/agent-base/README.md
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
agent-base
|
| 2 |
+
==========
|
| 3 |
+
### Turn a function into an [`http.Agent`][http.Agent] instance
|
| 4 |
+
|
| 5 |
+
This module is a thin wrapper around the base `http.Agent` class.
|
| 6 |
+
|
| 7 |
+
It provides an abstract class that must define a `connect()` function,
|
| 8 |
+
which is responsible for creating the underlying socket that the HTTP
|
| 9 |
+
client requests will use.
|
| 10 |
+
|
| 11 |
+
The `connect()` function may return an arbitrary `Duplex` stream, or
|
| 12 |
+
another `http.Agent` instance to delegate the request to, and may be
|
| 13 |
+
asynchronous (by defining an `async` function).
|
| 14 |
+
|
| 15 |
+
Instances of this agent can be used with the `http` and `https`
|
| 16 |
+
modules. To differentiate, the options parameter in the `connect()`
|
| 17 |
+
function includes a `secureEndpoint` property, which can be checked
|
| 18 |
+
to determine what type of socket should be returned.
|
| 19 |
+
|
| 20 |
+
#### Some subclasses:
|
| 21 |
+
|
| 22 |
+
Here are some more interesting uses of `agent-base`.
|
| 23 |
+
Send a pull request to list yours!
|
| 24 |
+
|
| 25 |
+
* [`http-proxy-agent`][http-proxy-agent]: An HTTP(s) proxy `http.Agent` implementation for HTTP endpoints
|
| 26 |
+
* [`https-proxy-agent`][https-proxy-agent]: An HTTP(s) proxy `http.Agent` implementation for HTTPS endpoints
|
| 27 |
+
* [`pac-proxy-agent`][pac-proxy-agent]: A PAC file proxy `http.Agent` implementation for HTTP and HTTPS
|
| 28 |
+
* [`socks-proxy-agent`][socks-proxy-agent]: A SOCKS proxy `http.Agent` implementation for HTTP and HTTPS
|
| 29 |
+
|
| 30 |
+
Example
|
| 31 |
+
-------
|
| 32 |
+
|
| 33 |
+
Here's a minimal example that creates a new `net.Socket` or `tls.Socket`
|
| 34 |
+
based on the `secureEndpoint` property. This agent can be used with both
|
| 35 |
+
the `http` and `https` modules.
|
| 36 |
+
|
| 37 |
+
```ts
|
| 38 |
+
import * as net from 'net';
|
| 39 |
+
import * as tls from 'tls';
|
| 40 |
+
import * as http from 'http';
|
| 41 |
+
import { Agent } from 'agent-base';
|
| 42 |
+
|
| 43 |
+
class MyAgent extends Agent {
|
| 44 |
+
connect(req, opts) {
|
| 45 |
+
// `secureEndpoint` is true when using the "https" module
|
| 46 |
+
if (opts.secureEndpoint) {
|
| 47 |
+
return tls.connect(opts);
|
| 48 |
+
} else {
|
| 49 |
+
return net.connect(opts);
|
| 50 |
+
}
|
| 51 |
+
}
|
| 52 |
+
});
|
| 53 |
+
|
| 54 |
+
// Keep alive enabled means that `connect()` will only be
|
| 55 |
+
// invoked when a new connection needs to be created
|
| 56 |
+
const agent = new MyAgent({ keepAlive: true });
|
| 57 |
+
|
| 58 |
+
// Pass the `agent` option when creating the HTTP request
|
| 59 |
+
http.get('http://nodejs.org/api/', { agent }, (res) => {
|
| 60 |
+
console.log('"response" event!', res.headers);
|
| 61 |
+
res.pipe(process.stdout);
|
| 62 |
+
});
|
| 63 |
+
```
|
| 64 |
+
|
| 65 |
+
[http-proxy-agent]: ../http-proxy-agent
|
| 66 |
+
[https-proxy-agent]: ../https-proxy-agent
|
| 67 |
+
[pac-proxy-agent]: ../pac-proxy-agent
|
| 68 |
+
[socks-proxy-agent]: ../socks-proxy-agent
|
| 69 |
+
[http.Agent]: https://nodejs.org/api/http.html#http_class_http_agent
|
novas/novacore-zephyr/claude-code-router/node_modules/agent-base/package.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "agent-base",
|
| 3 |
+
"version": "7.1.4",
|
| 4 |
+
"description": "Turn a function into an `http.Agent` instance",
|
| 5 |
+
"main": "./dist/index.js",
|
| 6 |
+
"types": "./dist/index.d.ts",
|
| 7 |
+
"files": [
|
| 8 |
+
"dist"
|
| 9 |
+
],
|
| 10 |
+
"repository": {
|
| 11 |
+
"type": "git",
|
| 12 |
+
"url": "https://github.com/TooTallNate/proxy-agents.git",
|
| 13 |
+
"directory": "packages/agent-base"
|
| 14 |
+
},
|
| 15 |
+
"keywords": [
|
| 16 |
+
"http",
|
| 17 |
+
"agent",
|
| 18 |
+
"base",
|
| 19 |
+
"barebones",
|
| 20 |
+
"https"
|
| 21 |
+
],
|
| 22 |
+
"author": "Nathan Rajlich <nathan@tootallnate.net> (http://n8.io/)",
|
| 23 |
+
"license": "MIT",
|
| 24 |
+
"devDependencies": {
|
| 25 |
+
"@types/debug": "^4.1.7",
|
| 26 |
+
"@types/jest": "^29.5.1",
|
| 27 |
+
"@types/node": "^14.18.45",
|
| 28 |
+
"@types/semver": "^7.3.13",
|
| 29 |
+
"@types/ws": "^6.0.4",
|
| 30 |
+
"async-listen": "^3.0.0",
|
| 31 |
+
"jest": "^29.5.0",
|
| 32 |
+
"ts-jest": "^29.1.0",
|
| 33 |
+
"typescript": "^5.0.4",
|
| 34 |
+
"ws": "^5.2.4",
|
| 35 |
+
"tsconfig": "0.0.0"
|
| 36 |
+
},
|
| 37 |
+
"engines": {
|
| 38 |
+
"node": ">= 14"
|
| 39 |
+
},
|
| 40 |
+
"scripts": {
|
| 41 |
+
"build": "tsc",
|
| 42 |
+
"test": "jest --env node --verbose --bail",
|
| 43 |
+
"lint": "eslint . --ext .ts",
|
| 44 |
+
"pack": "node ../../scripts/pack.mjs"
|
| 45 |
+
}
|
| 46 |
+
}
|
novas/novacore-zephyr/claude-code-router/node_modules/ajv-formats/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2020 Evgeny Poberezkin
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
+
SOFTWARE.
|
novas/novacore-zephyr/claude-code-router/node_modules/ajv-formats/README.md
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ajv-formats
|
| 2 |
+
|
| 3 |
+
JSON Schema formats for Ajv
|
| 4 |
+
|
| 5 |
+
[](https://travis-ci.org/ajv-validator/ajv-formats)
|
| 6 |
+
[](https://www.npmjs.com/package/ajv-formats)
|
| 7 |
+
[](https://gitter.im/ajv-validator/ajv)
|
| 8 |
+
[](https://github.com/sponsors/epoberezkin)
|
| 9 |
+
|
| 10 |
+
## Usage
|
| 11 |
+
|
| 12 |
+
```javascript
|
| 13 |
+
// ESM/TypeScript import
|
| 14 |
+
import Ajv from "ajv"
|
| 15 |
+
import addFormats from "ajv-formats"
|
| 16 |
+
// Node.js require:
|
| 17 |
+
const Ajv = require("ajv")
|
| 18 |
+
const addFormats = require("ajv-formats")
|
| 19 |
+
|
| 20 |
+
const ajv = new Ajv()
|
| 21 |
+
addFormats(ajv)
|
| 22 |
+
```
|
| 23 |
+
|
| 24 |
+
## Formats
|
| 25 |
+
|
| 26 |
+
The package defines these formats:
|
| 27 |
+
|
| 28 |
+
- _date_: full-date according to [RFC3339](http://tools.ietf.org/html/rfc3339#section-5.6).
|
| 29 |
+
- _time_: time (time-zone is mandatory).
|
| 30 |
+
- _date-time_: date-time (time-zone is mandatory).
|
| 31 |
+
- _iso-time_: time with optional time-zone.
|
| 32 |
+
- _iso-date-time_: date-time with optional time-zone.
|
| 33 |
+
- _duration_: duration from [RFC3339](https://tools.ietf.org/html/rfc3339#appendix-A)
|
| 34 |
+
- _uri_: full URI.
|
| 35 |
+
- _uri-reference_: URI reference, including full and relative URIs.
|
| 36 |
+
- _uri-template_: URI template according to [RFC6570](https://tools.ietf.org/html/rfc6570)
|
| 37 |
+
- _url_ (deprecated): [URL record](https://url.spec.whatwg.org/#concept-url).
|
| 38 |
+
- _email_: email address.
|
| 39 |
+
- _hostname_: host name according to [RFC1034](http://tools.ietf.org/html/rfc1034#section-3.5).
|
| 40 |
+
- _ipv4_: IP address v4.
|
| 41 |
+
- _ipv6_: IP address v6.
|
| 42 |
+
- _regex_: tests whether a string is a valid regular expression by passing it to RegExp constructor.
|
| 43 |
+
- _uuid_: Universally Unique IDentifier according to [RFC4122](http://tools.ietf.org/html/rfc4122).
|
| 44 |
+
- _json-pointer_: JSON-pointer according to [RFC6901](https://tools.ietf.org/html/rfc6901).
|
| 45 |
+
- _relative-json-pointer_: relative JSON-pointer according to [this draft](http://tools.ietf.org/html/draft-luff-relative-json-pointer-00).
|
| 46 |
+
- _byte_: base64 encoded data according to the [openApi 3.0.0 specification](https://spec.openapis.org/oas/v3.0.0#data-types)
|
| 47 |
+
- _int32_: signed 32 bits integer according to the [openApi 3.0.0 specification](https://spec.openapis.org/oas/v3.0.0#data-types)
|
| 48 |
+
- _int64_: signed 64 bits according to the [openApi 3.0.0 specification](https://spec.openapis.org/oas/v3.0.0#data-types)
|
| 49 |
+
- _float_: float according to the [openApi 3.0.0 specification](https://spec.openapis.org/oas/v3.0.0#data-types)
|
| 50 |
+
- _double_: double according to the [openApi 3.0.0 specification](https://spec.openapis.org/oas/v3.0.0#data-types)
|
| 51 |
+
- _password_: password string according to the [openApi 3.0.0 specification](https://spec.openapis.org/oas/v3.0.0#data-types)
|
| 52 |
+
- _binary_: binary string according to the [openApi 3.0.0 specification](https://spec.openapis.org/oas/v3.0.0#data-types)
|
| 53 |
+
|
| 54 |
+
See regular expressions used for format validation and the sources that were used in [formats.ts](https://github.com/ajv-validator/ajv-formats/blob/master/src/formats.ts).
|
| 55 |
+
|
| 56 |
+
**Please note**: JSON Schema draft-07 also defines formats `iri`, `iri-reference`, `idn-hostname` and `idn-email` for URLs, hostnames and emails with international characters. These formats are available in [ajv-formats-draft2019](https://github.com/luzlab/ajv-formats-draft2019) plugin.
|
| 57 |
+
|
| 58 |
+
## Keywords to compare values: `formatMaximum` / `formatMinimum` and `formatExclusiveMaximum` / `formatExclusiveMinimum`
|
| 59 |
+
|
| 60 |
+
These keywords allow to define minimum/maximum constraints when the format keyword defines ordering (`compare` function in format definition).
|
| 61 |
+
|
| 62 |
+
These keywords are added to ajv instance when ajv-formats is used without options or with option `keywords: true`.
|
| 63 |
+
|
| 64 |
+
These keywords apply only to strings. If the data is not a string, the validation succeeds.
|
| 65 |
+
|
| 66 |
+
The value of keywords `formatMaximum`/`formatMinimum` and `formatExclusiveMaximum`/`formatExclusiveMinimum` should be a string or [\$data reference](https://github.com/ajv-validator/ajv/blob/master/docs/validation.md#data-reference). This value is the maximum (minimum) allowed value for the data to be valid as determined by `format` keyword. If `format` keyword is not present schema compilation will throw exception.
|
| 67 |
+
|
| 68 |
+
When these keyword are added, they also add comparison functions to formats `"date"`, `"time"` and `"date-time"`. User-defined formats also can have comparison functions. See [addFormat](https://github.com/ajv-validator/ajv/blob/master/docs/api.md#api-addformat) method.
|
| 69 |
+
|
| 70 |
+
```javascript
|
| 71 |
+
require("ajv-formats")(ajv)
|
| 72 |
+
|
| 73 |
+
const schema = {
|
| 74 |
+
type: "string",
|
| 75 |
+
format: "date",
|
| 76 |
+
formatMinimum: "2016-02-06",
|
| 77 |
+
formatExclusiveMaximum: "2016-12-27",
|
| 78 |
+
}
|
| 79 |
+
|
| 80 |
+
const validDataList = ["2016-02-06", "2016-12-26"]
|
| 81 |
+
|
| 82 |
+
const invalidDataList = ["2016-02-05", "2016-12-27", "abc"]
|
| 83 |
+
```
|
| 84 |
+
|
| 85 |
+
## Options
|
| 86 |
+
|
| 87 |
+
Options can be passed via the second parameter. Options value can be
|
| 88 |
+
|
| 89 |
+
1. The list of format names that will be added to ajv instance:
|
| 90 |
+
|
| 91 |
+
```javascript
|
| 92 |
+
addFormats(ajv, ["date", "time"])
|
| 93 |
+
```
|
| 94 |
+
|
| 95 |
+
**Please note**: when ajv encounters an undefined format it throws exception (unless ajv instance was configured with `strict: false` option). To allow specific undefined formats they have to be passed to ajv instance via `formats` option with `true` value:
|
| 96 |
+
|
| 97 |
+
```javascript
|
| 98 |
+
const ajv = new Ajv((formats: {date: true, time: true})) // to ignore "date" and "time" formats in schemas.
|
| 99 |
+
```
|
| 100 |
+
|
| 101 |
+
2. Format validation mode (default is `"full"`) with optional list of format names and `keywords` option to add additional format comparison keywords:
|
| 102 |
+
|
| 103 |
+
```javascript
|
| 104 |
+
addFormats(ajv, {mode: "fast"})
|
| 105 |
+
```
|
| 106 |
+
|
| 107 |
+
or
|
| 108 |
+
|
| 109 |
+
```javascript
|
| 110 |
+
addFormats(ajv, {mode: "fast", formats: ["date", "time"], keywords: true})
|
| 111 |
+
```
|
| 112 |
+
|
| 113 |
+
In `"fast"` mode the following formats are simplified: `"date"`, `"time"`, `"date-time"`, `"iso-time"`, `"iso-date-time"`, `"uri"`, `"uri-reference"`, `"email"`. For example, `"date"`, `"time"` and `"date-time"` do not validate ranges in `"fast"` mode, only string structure, and other formats have simplified regular expressions.
|
| 114 |
+
|
| 115 |
+
## Tests
|
| 116 |
+
|
| 117 |
+
```bash
|
| 118 |
+
npm install
|
| 119 |
+
git submodule update --init
|
| 120 |
+
npm test
|
| 121 |
+
```
|
| 122 |
+
|
| 123 |
+
## License
|
| 124 |
+
|
| 125 |
+
[MIT](https://github.com/ajv-validator/ajv-formats/blob/master/LICENSE)
|
novas/novacore-zephyr/claude-code-router/node_modules/ajv-formats/package.json
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "ajv-formats",
|
| 3 |
+
"version": "3.0.1",
|
| 4 |
+
"description": "Format validation for Ajv v7+",
|
| 5 |
+
"main": "dist/index.js",
|
| 6 |
+
"types": "dist/index.d.ts",
|
| 7 |
+
"files": [
|
| 8 |
+
"src/",
|
| 9 |
+
"dist/"
|
| 10 |
+
],
|
| 11 |
+
"scripts": {
|
| 12 |
+
"build": "tsc",
|
| 13 |
+
"prettier:write": "prettier --write \"./**/*.{md,json,yaml,js,ts}\"",
|
| 14 |
+
"prettier:check": "prettier --list-different \"./**/*.{md,json,yaml,js,ts}\"",
|
| 15 |
+
"eslint": "eslint --ext .ts ./src/**/*",
|
| 16 |
+
"test-spec": "jest",
|
| 17 |
+
"test-cov": "jest --coverage",
|
| 18 |
+
"test": "npm run prettier:check && npm run build && npm run eslint && npm run test-cov",
|
| 19 |
+
"ci-test": "npm run test"
|
| 20 |
+
},
|
| 21 |
+
"repository": {
|
| 22 |
+
"type": "git",
|
| 23 |
+
"url": "git+https://github.com/ajv-validator/ajv-formats.git"
|
| 24 |
+
},
|
| 25 |
+
"keywords": [
|
| 26 |
+
"Ajv",
|
| 27 |
+
"JSON-Schema",
|
| 28 |
+
"format",
|
| 29 |
+
"validation"
|
| 30 |
+
],
|
| 31 |
+
"author": "Evgeny Poberezkin",
|
| 32 |
+
"license": "MIT",
|
| 33 |
+
"bugs": {
|
| 34 |
+
"url": "https://github.com/ajv-validator/ajv-formats/issues"
|
| 35 |
+
},
|
| 36 |
+
"homepage": "https://github.com/ajv-validator/ajv-formats#readme",
|
| 37 |
+
"dependencies": {
|
| 38 |
+
"ajv": "^8.0.0"
|
| 39 |
+
},
|
| 40 |
+
"peerDependencies": {
|
| 41 |
+
"ajv": "^8.0.0"
|
| 42 |
+
},
|
| 43 |
+
"peerDependenciesMeta": {
|
| 44 |
+
"ajv": {
|
| 45 |
+
"optional": true
|
| 46 |
+
}
|
| 47 |
+
},
|
| 48 |
+
"devDependencies": {
|
| 49 |
+
"@ajv-validator/config": "^0.3.0",
|
| 50 |
+
"@types/jest": "^26.0.5",
|
| 51 |
+
"@types/node": "^14.10.1",
|
| 52 |
+
"@typescript-eslint/eslint-plugin": "^3.7.0",
|
| 53 |
+
"@typescript-eslint/parser": "^3.7.0",
|
| 54 |
+
"ajv": "^8.0.0",
|
| 55 |
+
"eslint": "^7.5.0",
|
| 56 |
+
"eslint-config-prettier": "^6.11.0",
|
| 57 |
+
"husky": "^4.2.5",
|
| 58 |
+
"jest": "^26.1.0",
|
| 59 |
+
"json-schema-test": "^2.0.0",
|
| 60 |
+
"lint-staged": "^10.2.11",
|
| 61 |
+
"prettier": "^2.3.2",
|
| 62 |
+
"ts-jest": "^26.1.3",
|
| 63 |
+
"typescript": "^4.0.0"
|
| 64 |
+
},
|
| 65 |
+
"prettier": "@ajv-validator/config/prettierrc.json",
|
| 66 |
+
"husky": {
|
| 67 |
+
"hooks": {
|
| 68 |
+
"pre-commit": "lint-staged && npm test"
|
| 69 |
+
}
|
| 70 |
+
},
|
| 71 |
+
"lint-staged": {
|
| 72 |
+
"*.{md,json,yaml,js,ts}": "prettier --write"
|
| 73 |
+
}
|
| 74 |
+
}
|
novas/novacore-zephyr/claude-code-router/node_modules/ajv/.runkit_example.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
const Ajv = require("ajv")
|
| 2 |
+
const ajv = new Ajv({allErrors: true})
|
| 3 |
+
|
| 4 |
+
const schema = {
|
| 5 |
+
type: "object",
|
| 6 |
+
properties: {
|
| 7 |
+
foo: {type: "string"},
|
| 8 |
+
bar: {type: "number", maximum: 3},
|
| 9 |
+
},
|
| 10 |
+
required: ["foo", "bar"],
|
| 11 |
+
additionalProperties: false,
|
| 12 |
+
}
|
| 13 |
+
|
| 14 |
+
const validate = ajv.compile(schema)
|
| 15 |
+
|
| 16 |
+
test({foo: "abc", bar: 2})
|
| 17 |
+
test({foo: 2, bar: 4})
|
| 18 |
+
|
| 19 |
+
function test(data) {
|
| 20 |
+
const valid = validate(data)
|
| 21 |
+
if (valid) console.log("Valid!")
|
| 22 |
+
else console.log("Invalid: " + ajv.errorsText(validate.errors))
|
| 23 |
+
}
|
novas/novacore-zephyr/claude-code-router/node_modules/ajv/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
The MIT License (MIT)
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2015-2021 Evgeny Poberezkin
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
+
SOFTWARE.
|
| 22 |
+
|
novas/novacore-zephyr/claude-code-router/node_modules/ajv/README.md
ADDED
|
@@ -0,0 +1,207 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<img align="right" alt="Ajv logo" width="160" src="https://ajv.js.org/img/ajv.svg">
|
| 2 |
+
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
# Ajv JSON schema validator
|
| 6 |
+
|
| 7 |
+
The fastest JSON validator for Node.js and browser.
|
| 8 |
+
|
| 9 |
+
Supports JSON Schema draft-04/06/07/2019-09/2020-12 ([draft-04 support](https://ajv.js.org/json-schema.html#draft-04) requires ajv-draft-04 package) and JSON Type Definition [RFC8927](https://datatracker.ietf.org/doc/rfc8927/).
|
| 10 |
+
|
| 11 |
+
[](https://github.com/ajv-validator/ajv/actions?query=workflow%3Abuild)
|
| 12 |
+
[](https://www.npmjs.com/package/ajv)
|
| 13 |
+
[](https://www.npmjs.com/package/ajv)
|
| 14 |
+
[](https://coveralls.io/github/ajv-validator/ajv?branch=master)
|
| 15 |
+
[](https://simplex.chat/contact#/?v=1-2&smp=smp%3A%2F%2Fu2dS9sG8nMNURyZwqASV4yROM28Er0luVTx5X1CsMrU%3D%40smp4.simplex.im%2F8KvvURM6J38Gdq9dCuPswMOkMny0xCOJ%23%2F%3Fv%3D1-2%26dh%3DMCowBQYDK2VuAyEAr8rPVRuMOXv6kwF2yUAap-eoVg-9ssOFCi1fIrxTUw0%253D%26srv%3Do5vmywmrnaxalvz6wi3zicyftgio6psuvyniis6gco6bp6ekl4cqj4id.onion&data=%7B%22type%22%3A%22group%22%2C%22groupLinkId%22%3A%224pwLRgWHU9tlroMWHz0uOg%3D%3D%22%7D)
|
| 16 |
+
[](https://gitter.im/ajv-validator/ajv)
|
| 17 |
+
[](https://github.com/sponsors/epoberezkin)
|
| 18 |
+
|
| 19 |
+
## Ajv sponsors
|
| 20 |
+
|
| 21 |
+
[<img src="https://ajv.js.org/img/mozilla.svg" width="45%" alt="Mozilla">](https://www.mozilla.org)<img src="https://ajv.js.org/img/gap.svg" width="9%">[<img src="https://ajv.js.org/img/reserved.svg" width="45%">](https://opencollective.com/ajv)
|
| 22 |
+
|
| 23 |
+
[<img src="https://ajv.js.org/img/microsoft.png" width="31%" alt="Microsoft">](https://opensource.microsoft.com)<img src="https://ajv.js.org/img/gap.svg" width="3%">[<img src="https://ajv.js.org/img/reserved.svg" width="31%">](https://opencollective.com/ajv)<img src="https://ajv.js.org/img/gap.svg" width="3%">[<img src="https://ajv.js.org/img/reserved.svg" width="31%">](https://opencollective.com/ajv)
|
| 24 |
+
|
| 25 |
+
[<img src="https://ajv.js.org/img/retool.svg" width="22.5%" alt="Retool">](https://retool.com/?utm_source=sponsor&utm_campaign=ajv)<img src="https://ajv.js.org/img/gap.svg" width="3%">[<img src="https://ajv.js.org/img/tidelift.svg" width="22.5%" alt="Tidelift">](https://tidelift.com/subscription/pkg/npm-ajv?utm_source=npm-ajv&utm_medium=referral&utm_campaign=enterprise)<img src="https://ajv.js.org/img/gap.svg" width="3%">[<img src="https://ajv.js.org/img/simplex.svg" width="22.5%" alt="SimpleX">](https://github.com/simplex-chat/simplex-chat)<img src="https://ajv.js.org/img/gap.svg" width="3%">[<img src="https://ajv.js.org/img/reserved.svg" width="22.5%">](https://opencollective.com/ajv)
|
| 26 |
+
|
| 27 |
+
## Contributing
|
| 28 |
+
|
| 29 |
+
More than 100 people contributed to Ajv, and we would love to have you join the development. We welcome implementing new features that will benefit many users and ideas to improve our documentation.
|
| 30 |
+
|
| 31 |
+
Please review [Contributing guidelines](./CONTRIBUTING.md) and [Code components](https://ajv.js.org/components.html).
|
| 32 |
+
|
| 33 |
+
## Documentation
|
| 34 |
+
|
| 35 |
+
All documentation is available on the [Ajv website](https://ajv.js.org).
|
| 36 |
+
|
| 37 |
+
Some useful site links:
|
| 38 |
+
|
| 39 |
+
- [Getting started](https://ajv.js.org/guide/getting-started.html)
|
| 40 |
+
- [JSON Schema vs JSON Type Definition](https://ajv.js.org/guide/schema-language.html)
|
| 41 |
+
- [API reference](https://ajv.js.org/api.html)
|
| 42 |
+
- [Strict mode](https://ajv.js.org/strict-mode.html)
|
| 43 |
+
- [Standalone validation code](https://ajv.js.org/standalone.html)
|
| 44 |
+
- [Security considerations](https://ajv.js.org/security.html)
|
| 45 |
+
- [Command line interface](https://ajv.js.org/packages/ajv-cli.html)
|
| 46 |
+
- [Frequently Asked Questions](https://ajv.js.org/faq.html)
|
| 47 |
+
|
| 48 |
+
## <a name="sponsors"></a>Please [sponsor Ajv development](https://github.com/sponsors/epoberezkin)
|
| 49 |
+
|
| 50 |
+
Since I asked to support Ajv development 40 people and 6 organizations contributed via GitHub and OpenCollective - this support helped receiving the MOSS grant!
|
| 51 |
+
|
| 52 |
+
Your continuing support is very important - the funds will be used to develop and maintain Ajv once the next major version is released.
|
| 53 |
+
|
| 54 |
+
Please sponsor Ajv via:
|
| 55 |
+
|
| 56 |
+
- [GitHub sponsors page](https://github.com/sponsors/epoberezkin) (GitHub will match it)
|
| 57 |
+
- [Ajv Open Collective](https://opencollective.com/ajv)
|
| 58 |
+
|
| 59 |
+
Thank you.
|
| 60 |
+
|
| 61 |
+
#### Open Collective sponsors
|
| 62 |
+
|
| 63 |
+
<a href="https://opencollective.com/ajv"><img src="https://opencollective.com/ajv/individuals.svg?width=890"></a>
|
| 64 |
+
|
| 65 |
+
<a href="https://opencollective.com/ajv/organization/0/website"><img src="https://opencollective.com/ajv/organization/0/avatar.svg"></a>
|
| 66 |
+
<a href="https://opencollective.com/ajv/organization/1/website"><img src="https://opencollective.com/ajv/organization/1/avatar.svg"></a>
|
| 67 |
+
<a href="https://opencollective.com/ajv/organization/2/website"><img src="https://opencollective.com/ajv/organization/2/avatar.svg"></a>
|
| 68 |
+
<a href="https://opencollective.com/ajv/organization/3/website"><img src="https://opencollective.com/ajv/organization/3/avatar.svg"></a>
|
| 69 |
+
<a href="https://opencollective.com/ajv/organization/4/website"><img src="https://opencollective.com/ajv/organization/4/avatar.svg"></a>
|
| 70 |
+
<a href="https://opencollective.com/ajv/organization/5/website"><img src="https://opencollective.com/ajv/organization/5/avatar.svg"></a>
|
| 71 |
+
<a href="https://opencollective.com/ajv/organization/6/website"><img src="https://opencollective.com/ajv/organization/6/avatar.svg"></a>
|
| 72 |
+
<a href="https://opencollective.com/ajv/organization/7/website"><img src="https://opencollective.com/ajv/organization/7/avatar.svg"></a>
|
| 73 |
+
<a href="https://opencollective.com/ajv/organization/8/website"><img src="https://opencollective.com/ajv/organization/8/avatar.svg"></a>
|
| 74 |
+
<a href="https://opencollective.com/ajv/organization/9/website"><img src="https://opencollective.com/ajv/organization/9/avatar.svg"></a>
|
| 75 |
+
<a href="https://opencollective.com/ajv/organization/10/website"><img src="https://opencollective.com/ajv/organization/10/avatar.svg"></a>
|
| 76 |
+
<a href="https://opencollective.com/ajv/organization/11/website"><img src="https://opencollective.com/ajv/organization/11/avatar.svg"></a>
|
| 77 |
+
<a href="https://opencollective.com/ajv/organization/12/website"><img src="https://opencollective.com/ajv/organization/12/avatar.svg"></a>
|
| 78 |
+
<a href="https://opencollective.com/ajv/organization/13/website"><img src="https://opencollective.com/ajv/organization/13/avatar.svg"></a>
|
| 79 |
+
<a href="https://opencollective.com/ajv/organization/14/website"><img src="https://opencollective.com/ajv/organization/14/avatar.svg"></a>
|
| 80 |
+
<a href="https://opencollective.com/ajv/organization/15/website"><img src="https://opencollective.com/ajv/organization/15/avatar.svg"></a>
|
| 81 |
+
<a href="https://opencollective.com/ajv/organization/16/website"><img src="https://opencollective.com/ajv/organization/16/avatar.svg"></a>
|
| 82 |
+
<a href="https://opencollective.com/ajv/organization/17/website"><img src="https://opencollective.com/ajv/organization/17/avatar.svg"></a>
|
| 83 |
+
<a href="https://opencollective.com/ajv/organization/18/website"><img src="https://opencollective.com/ajv/organization/18/avatar.svg"></a>
|
| 84 |
+
<a href="https://opencollective.com/ajv/organization/19/website"><img src="https://opencollective.com/ajv/organization/19/avatar.svg"></a>
|
| 85 |
+
<a href="https://opencollective.com/ajv/organization/20/website"><img src="https://opencollective.com/ajv/organization/20/avatar.svg"></a>
|
| 86 |
+
<a href="https://opencollective.com/ajv/organization/21/website"><img src="https://opencollective.com/ajv/organization/21/avatar.svg"></a>
|
| 87 |
+
<a href="https://opencollective.com/ajv/organization/22/website"><img src="https://opencollective.com/ajv/organization/22/avatar.svg"></a>
|
| 88 |
+
<a href="https://opencollective.com/ajv/organization/23/website"><img src="https://opencollective.com/ajv/organization/23/avatar.svg"></a>
|
| 89 |
+
<a href="https://opencollective.com/ajv/organization/24/website"><img src="https://opencollective.com/ajv/organization/24/avatar.svg"></a>
|
| 90 |
+
|
| 91 |
+
## Performance
|
| 92 |
+
|
| 93 |
+
Ajv generates code to turn JSON Schemas into super-fast validation functions that are efficient for v8 optimization.
|
| 94 |
+
|
| 95 |
+
Currently Ajv is the fastest and the most standard compliant validator according to these benchmarks:
|
| 96 |
+
|
| 97 |
+
- [json-schema-benchmark](https://github.com/ebdrup/json-schema-benchmark) - 50% faster than the second place
|
| 98 |
+
- [jsck benchmark](https://github.com/pandastrike/jsck#benchmarks) - 20-190% faster
|
| 99 |
+
- [z-schema benchmark](https://rawgit.com/zaggino/z-schema/master/benchmark/results.html)
|
| 100 |
+
- [themis benchmark](https://cdn.rawgit.com/playlyfe/themis/master/benchmark/results.html)
|
| 101 |
+
|
| 102 |
+
Performance of different validators by [json-schema-benchmark](https://github.com/ebdrup/json-schema-benchmark):
|
| 103 |
+
|
| 104 |
+
[](https://github.com/ebdrup/json-schema-benchmark/blob/master/README.md#performance)
|
| 105 |
+
|
| 106 |
+
## Features
|
| 107 |
+
|
| 108 |
+
- Ajv implements JSON Schema [draft-06/07/2019-09/2020-12](http://json-schema.org/) standards (draft-04 is supported in v6):
|
| 109 |
+
- all validation keywords (see [JSON Schema validation keywords](https://ajv.js.org/json-schema.html))
|
| 110 |
+
- [OpenAPI](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.3.md) extensions:
|
| 111 |
+
- NEW: keyword [discriminator](https://ajv.js.org/json-schema.html#discriminator).
|
| 112 |
+
- keyword [nullable](https://ajv.js.org/json-schema.html#nullable).
|
| 113 |
+
- full support of remote references (remote schemas have to be added with `addSchema` or compiled to be available)
|
| 114 |
+
- support of recursive references between schemas
|
| 115 |
+
- correct string lengths for strings with unicode pairs
|
| 116 |
+
- JSON Schema [formats](https://ajv.js.org/guide/formats.html) (with [ajv-formats](https://github.com/ajv-validator/ajv-formats) plugin).
|
| 117 |
+
- [validates schemas against meta-schema](https://ajv.js.org/api.html#api-validateschema)
|
| 118 |
+
- NEW: supports [JSON Type Definition](https://datatracker.ietf.org/doc/rfc8927/):
|
| 119 |
+
- all keywords (see [JSON Type Definition schema forms](https://ajv.js.org/json-type-definition.html))
|
| 120 |
+
- meta-schema for JTD schemas
|
| 121 |
+
- "union" keyword and user-defined keywords (can be used inside "metadata" member of the schema)
|
| 122 |
+
- supports [browsers](https://ajv.js.org/guide/environments.html#browsers) and Node.js 10.x - current
|
| 123 |
+
- [asynchronous loading](https://ajv.js.org/guide/managing-schemas.html#asynchronous-schema-loading) of referenced schemas during compilation
|
| 124 |
+
- "All errors" validation mode with [option allErrors](https://ajv.js.org/options.html#allerrors)
|
| 125 |
+
- [error messages with parameters](https://ajv.js.org/api.html#validation-errors) describing error reasons to allow error message generation
|
| 126 |
+
- i18n error messages support with [ajv-i18n](https://github.com/ajv-validator/ajv-i18n) package
|
| 127 |
+
- [removing-additional-properties](https://ajv.js.org/guide/modifying-data.html#removing-additional-properties)
|
| 128 |
+
- [assigning defaults](https://ajv.js.org/guide/modifying-data.html#assigning-defaults) to missing properties and items
|
| 129 |
+
- [coercing data](https://ajv.js.org/guide/modifying-data.html#coercing-data-types) to the types specified in `type` keywords
|
| 130 |
+
- [user-defined keywords](https://ajv.js.org/guide/user-keywords.html)
|
| 131 |
+
- additional extension keywords with [ajv-keywords](https://github.com/ajv-validator/ajv-keywords) package
|
| 132 |
+
- [\$data reference](https://ajv.js.org/guide/combining-schemas.html#data-reference) to use values from the validated data as values for the schema keywords
|
| 133 |
+
- [asynchronous validation](https://ajv.js.org/guide/async-validation.html) of user-defined formats and keywords
|
| 134 |
+
|
| 135 |
+
## Install
|
| 136 |
+
|
| 137 |
+
To install version 8:
|
| 138 |
+
|
| 139 |
+
```
|
| 140 |
+
npm install ajv
|
| 141 |
+
```
|
| 142 |
+
|
| 143 |
+
## <a name="usage"></a>Getting started
|
| 144 |
+
|
| 145 |
+
Try it in the Node.js REPL: https://runkit.com/npm/ajv
|
| 146 |
+
|
| 147 |
+
In JavaScript:
|
| 148 |
+
|
| 149 |
+
```javascript
|
| 150 |
+
// or ESM/TypeScript import
|
| 151 |
+
import Ajv from "ajv"
|
| 152 |
+
// Node.js require:
|
| 153 |
+
const Ajv = require("ajv")
|
| 154 |
+
|
| 155 |
+
const ajv = new Ajv() // options can be passed, e.g. {allErrors: true}
|
| 156 |
+
|
| 157 |
+
const schema = {
|
| 158 |
+
type: "object",
|
| 159 |
+
properties: {
|
| 160 |
+
foo: {type: "integer"},
|
| 161 |
+
bar: {type: "string"},
|
| 162 |
+
},
|
| 163 |
+
required: ["foo"],
|
| 164 |
+
additionalProperties: false,
|
| 165 |
+
}
|
| 166 |
+
|
| 167 |
+
const data = {
|
| 168 |
+
foo: 1,
|
| 169 |
+
bar: "abc",
|
| 170 |
+
}
|
| 171 |
+
|
| 172 |
+
const validate = ajv.compile(schema)
|
| 173 |
+
const valid = validate(data)
|
| 174 |
+
if (!valid) console.log(validate.errors)
|
| 175 |
+
```
|
| 176 |
+
|
| 177 |
+
Learn how to use Ajv and see more examples in the [Guide: getting started](https://ajv.js.org/guide/getting-started.html)
|
| 178 |
+
|
| 179 |
+
## Changes history
|
| 180 |
+
|
| 181 |
+
See [https://github.com/ajv-validator/ajv/releases](https://github.com/ajv-validator/ajv/releases)
|
| 182 |
+
|
| 183 |
+
**Please note**: [Changes in version 8.0.0](https://github.com/ajv-validator/ajv/releases/tag/v8.0.0)
|
| 184 |
+
|
| 185 |
+
[Version 7.0.0](https://github.com/ajv-validator/ajv/releases/tag/v7.0.0)
|
| 186 |
+
|
| 187 |
+
[Version 6.0.0](https://github.com/ajv-validator/ajv/releases/tag/v6.0.0).
|
| 188 |
+
|
| 189 |
+
## Code of conduct
|
| 190 |
+
|
| 191 |
+
Please review and follow the [Code of conduct](./CODE_OF_CONDUCT.md).
|
| 192 |
+
|
| 193 |
+
Please report any unacceptable behaviour to ajv.validator@gmail.com - it will be reviewed by the project team.
|
| 194 |
+
|
| 195 |
+
## Security contact
|
| 196 |
+
|
| 197 |
+
To report a security vulnerability, please use the
|
| 198 |
+
[Tidelift security contact](https://tidelift.com/security).
|
| 199 |
+
Tidelift will coordinate the fix and disclosure. Please do NOT report security vulnerabilities via GitHub issues.
|
| 200 |
+
|
| 201 |
+
## Open-source software support
|
| 202 |
+
|
| 203 |
+
Ajv is a part of [Tidelift subscription](https://tidelift.com/subscription/pkg/npm-ajv?utm_source=npm-ajv&utm_medium=referral&utm_campaign=readme) - it provides a centralised support to open-source software users, in addition to the support provided by software maintainers.
|
| 204 |
+
|
| 205 |
+
## License
|
| 206 |
+
|
| 207 |
+
[MIT](./LICENSE)
|
novas/novacore-zephyr/claude-code-router/node_modules/ajv/package.json
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "ajv",
|
| 3 |
+
"version": "8.17.1",
|
| 4 |
+
"description": "Another JSON Schema Validator",
|
| 5 |
+
"main": "dist/ajv.js",
|
| 6 |
+
"types": "dist/ajv.d.ts",
|
| 7 |
+
"files": [
|
| 8 |
+
"lib/",
|
| 9 |
+
"dist/",
|
| 10 |
+
".runkit_example.js"
|
| 11 |
+
],
|
| 12 |
+
"scripts": {
|
| 13 |
+
"eslint": "eslint \"lib/**/*.ts\" \"spec/**/*.*s\" --ignore-pattern spec/JSON-Schema-Test-Suite",
|
| 14 |
+
"prettier:write": "prettier --write \"./**/*.{json,yaml,js,ts}\"",
|
| 15 |
+
"prettier:check": "prettier --list-different \"./**/*.{json,yaml,js,ts}\"",
|
| 16 |
+
"test-spec": "cross-env TS_NODE_PROJECT=spec/tsconfig.json mocha -r ts-node/register \"spec/**/*.spec.{ts,js}\" -R dot",
|
| 17 |
+
"test-codegen": "nyc cross-env TS_NODE_PROJECT=spec/tsconfig.json mocha -r ts-node/register 'spec/codegen.spec.ts' -R spec",
|
| 18 |
+
"test-debug": "npm run test-spec -- --inspect-brk",
|
| 19 |
+
"test-cov": "nyc npm run test-spec",
|
| 20 |
+
"rollup": "rm -rf bundle && rollup -c",
|
| 21 |
+
"bundle": "rm -rf bundle && node ./scripts/bundle.js ajv ajv7 ajv7 && node ./scripts/bundle.js 2019 ajv2019 ajv2019 && node ./scripts/bundle.js 2020 ajv2020 ajv2020 && node ./scripts/bundle.js jtd ajvJTD ajvJTD",
|
| 22 |
+
"build": "rm -rf dist && tsc && cp -r lib/refs dist && rm dist/refs/json-schema-2019-09/index.ts && rm dist/refs/json-schema-2020-12/index.ts && rm dist/refs/jtd-schema.ts",
|
| 23 |
+
"json-tests": "rm -rf spec/_json/*.js && node scripts/jsontests",
|
| 24 |
+
"test-karma": "karma start",
|
| 25 |
+
"test-browser": "rm -rf .browser && npm run bundle && scripts/prepare-tests && karma start",
|
| 26 |
+
"test-all": "npm run test-cov && if-node-version 12 npm run test-browser",
|
| 27 |
+
"test": "npm run json-tests && npm run prettier:check && npm run eslint && npm link && npm link --legacy-peer-deps ajv && npm run test-cov",
|
| 28 |
+
"test-ci": "AJV_FULL_TEST=true npm test",
|
| 29 |
+
"prepublish": "npm run build",
|
| 30 |
+
"benchmark": "npm i && npm run build && npm link && cd ./benchmark && npm link --legacy-peer-deps ajv && npm i && node ./jtd",
|
| 31 |
+
"docs:dev": "./scripts/prepare-site && vuepress dev docs",
|
| 32 |
+
"docs:build": "./scripts/prepare-site && vuepress build docs"
|
| 33 |
+
},
|
| 34 |
+
"nyc": {
|
| 35 |
+
"exclude": [
|
| 36 |
+
"**/spec/**",
|
| 37 |
+
"node_modules"
|
| 38 |
+
],
|
| 39 |
+
"reporter": [
|
| 40 |
+
"lcov",
|
| 41 |
+
"text-summary"
|
| 42 |
+
]
|
| 43 |
+
},
|
| 44 |
+
"repository": "ajv-validator/ajv",
|
| 45 |
+
"keywords": [
|
| 46 |
+
"JSON",
|
| 47 |
+
"schema",
|
| 48 |
+
"validator",
|
| 49 |
+
"validation",
|
| 50 |
+
"jsonschema",
|
| 51 |
+
"json-schema",
|
| 52 |
+
"json-schema-validator",
|
| 53 |
+
"json-schema-validation"
|
| 54 |
+
],
|
| 55 |
+
"author": "Evgeny Poberezkin",
|
| 56 |
+
"license": "MIT",
|
| 57 |
+
"bugs": "https://github.com/ajv-validator/ajv/issues",
|
| 58 |
+
"homepage": "https://ajv.js.org",
|
| 59 |
+
"runkitExampleFilename": ".runkit_example.js",
|
| 60 |
+
"dependencies": {
|
| 61 |
+
"fast-deep-equal": "^3.1.3",
|
| 62 |
+
"fast-uri": "^3.0.1",
|
| 63 |
+
"json-schema-traverse": "^1.0.0",
|
| 64 |
+
"require-from-string": "^2.0.2"
|
| 65 |
+
},
|
| 66 |
+
"devDependencies": {
|
| 67 |
+
"@ajv-validator/config": "^0.5.0",
|
| 68 |
+
"@rollup/plugin-commonjs": "^25.0.7",
|
| 69 |
+
"@rollup/plugin-json": "^6.1.0",
|
| 70 |
+
"@rollup/plugin-node-resolve": "^15.2.3",
|
| 71 |
+
"@rollup/plugin-typescript": "^11.1.6",
|
| 72 |
+
"@types/chai": "^4.3.11",
|
| 73 |
+
"@types/mocha": "^10.0.6",
|
| 74 |
+
"@types/node": "^20.11.30",
|
| 75 |
+
"@types/require-from-string": "^1.2.3",
|
| 76 |
+
"@typescript-eslint/eslint-plugin": "^7.3.1",
|
| 77 |
+
"@typescript-eslint/parser": "^7.3.1",
|
| 78 |
+
"ajv-formats": "^3.0.1",
|
| 79 |
+
"browserify": "^17.0.0",
|
| 80 |
+
"chai": "^4.4.1",
|
| 81 |
+
"cross-env": "^7.0.3",
|
| 82 |
+
"dayjs": "^1.11.10",
|
| 83 |
+
"dayjs-plugin-utc": "^0.1.2",
|
| 84 |
+
"eslint": "^8.57.0",
|
| 85 |
+
"eslint-config-prettier": "^9.1.0",
|
| 86 |
+
"glob": "^10.3.10",
|
| 87 |
+
"husky": "^9.0.11",
|
| 88 |
+
"if-node-version": "^1.1.1",
|
| 89 |
+
"jimp": "^0.22.10",
|
| 90 |
+
"js-beautify": "^1.15.1",
|
| 91 |
+
"json-schema-test": "^2.0.0",
|
| 92 |
+
"karma": "^6.4.2",
|
| 93 |
+
"karma-chrome-launcher": "^3.2.0",
|
| 94 |
+
"karma-mocha": "^2.0.1",
|
| 95 |
+
"lint-staged": "^15.2.2",
|
| 96 |
+
"mocha": "^10.3.0",
|
| 97 |
+
"module-from-string": "^3.3.0",
|
| 98 |
+
"node-fetch": "^3.3.2",
|
| 99 |
+
"nyc": "^15.1.0",
|
| 100 |
+
"prettier": "3.0.3",
|
| 101 |
+
"re2": "^1.20.9",
|
| 102 |
+
"rollup": "^2.79.1",
|
| 103 |
+
"rollup-plugin-terser": "^7.0.2",
|
| 104 |
+
"ts-node": "^10.9.2",
|
| 105 |
+
"tsify": "^5.0.4",
|
| 106 |
+
"typescript": "5.3.3",
|
| 107 |
+
"uri-js": "^4.4.1"
|
| 108 |
+
},
|
| 109 |
+
"collective": {
|
| 110 |
+
"type": "opencollective",
|
| 111 |
+
"url": "https://opencollective.com/ajv"
|
| 112 |
+
},
|
| 113 |
+
"funding": {
|
| 114 |
+
"type": "github",
|
| 115 |
+
"url": "https://github.com/sponsors/epoberezkin"
|
| 116 |
+
},
|
| 117 |
+
"prettier": "@ajv-validator/config/prettierrc.json",
|
| 118 |
+
"husky": {
|
| 119 |
+
"hooks": {
|
| 120 |
+
"pre-commit": "lint-staged && npm test"
|
| 121 |
+
}
|
| 122 |
+
},
|
| 123 |
+
"lint-staged": {
|
| 124 |
+
"*.{json,yaml,js,ts}": "prettier --write"
|
| 125 |
+
}
|
| 126 |
+
}
|
novas/novacore-zephyr/claude-code-router/node_modules/ansi-escapes/index.d.ts
ADDED
|
@@ -0,0 +1,248 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/// <reference types="node"/>
|
| 2 |
+
import {LiteralUnion} from 'type-fest';
|
| 3 |
+
|
| 4 |
+
declare namespace ansiEscapes {
|
| 5 |
+
interface ImageOptions {
|
| 6 |
+
/**
|
| 7 |
+
The width is given as a number followed by a unit, or the word `'auto'`.
|
| 8 |
+
|
| 9 |
+
- `N`: N character cells.
|
| 10 |
+
- `Npx`: N pixels.
|
| 11 |
+
- `N%`: N percent of the session's width or height.
|
| 12 |
+
- `auto`: The image's inherent size will be used to determine an appropriate dimension.
|
| 13 |
+
*/
|
| 14 |
+
readonly width?: LiteralUnion<'auto', number | string>;
|
| 15 |
+
|
| 16 |
+
/**
|
| 17 |
+
The height is given as a number followed by a unit, or the word `'auto'`.
|
| 18 |
+
|
| 19 |
+
- `N`: N character cells.
|
| 20 |
+
- `Npx`: N pixels.
|
| 21 |
+
- `N%`: N percent of the session's width or height.
|
| 22 |
+
- `auto`: The image's inherent size will be used to determine an appropriate dimension.
|
| 23 |
+
*/
|
| 24 |
+
readonly height?: LiteralUnion<'auto', number | string>;
|
| 25 |
+
|
| 26 |
+
readonly preserveAspectRatio?: boolean;
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
interface AnnotationOptions {
|
| 30 |
+
/**
|
| 31 |
+
Nonzero number of columns to annotate.
|
| 32 |
+
|
| 33 |
+
Default: The remainder of the line.
|
| 34 |
+
*/
|
| 35 |
+
readonly length?: number;
|
| 36 |
+
|
| 37 |
+
/**
|
| 38 |
+
Starting X coordinate.
|
| 39 |
+
|
| 40 |
+
Must be used with `y` and `length`.
|
| 41 |
+
|
| 42 |
+
Default: The cursor position
|
| 43 |
+
*/
|
| 44 |
+
readonly x?: number;
|
| 45 |
+
|
| 46 |
+
/**
|
| 47 |
+
Starting Y coordinate.
|
| 48 |
+
|
| 49 |
+
Must be used with `x` and `length`.
|
| 50 |
+
|
| 51 |
+
Default: Cursor position.
|
| 52 |
+
*/
|
| 53 |
+
readonly y?: number;
|
| 54 |
+
|
| 55 |
+
/**
|
| 56 |
+
Create a "hidden" annotation.
|
| 57 |
+
|
| 58 |
+
Annotations created this way can be shown using the "Show Annotations" iTerm command.
|
| 59 |
+
*/
|
| 60 |
+
readonly isHidden?: boolean;
|
| 61 |
+
}
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
declare const ansiEscapes: {
|
| 65 |
+
/**
|
| 66 |
+
Set the absolute position of the cursor. `x0` `y0` is the top left of the screen.
|
| 67 |
+
*/
|
| 68 |
+
cursorTo(x: number, y?: number): string;
|
| 69 |
+
|
| 70 |
+
/**
|
| 71 |
+
Set the position of the cursor relative to its current position.
|
| 72 |
+
*/
|
| 73 |
+
cursorMove(x: number, y?: number): string;
|
| 74 |
+
|
| 75 |
+
/**
|
| 76 |
+
Move cursor up a specific amount of rows.
|
| 77 |
+
|
| 78 |
+
@param count - Count of rows to move up. Default is `1`.
|
| 79 |
+
*/
|
| 80 |
+
cursorUp(count?: number): string;
|
| 81 |
+
|
| 82 |
+
/**
|
| 83 |
+
Move cursor down a specific amount of rows.
|
| 84 |
+
|
| 85 |
+
@param count - Count of rows to move down. Default is `1`.
|
| 86 |
+
*/
|
| 87 |
+
cursorDown(count?: number): string;
|
| 88 |
+
|
| 89 |
+
/**
|
| 90 |
+
Move cursor forward a specific amount of rows.
|
| 91 |
+
|
| 92 |
+
@param count - Count of rows to move forward. Default is `1`.
|
| 93 |
+
*/
|
| 94 |
+
cursorForward(count?: number): string;
|
| 95 |
+
|
| 96 |
+
/**
|
| 97 |
+
Move cursor backward a specific amount of rows.
|
| 98 |
+
|
| 99 |
+
@param count - Count of rows to move backward. Default is `1`.
|
| 100 |
+
*/
|
| 101 |
+
cursorBackward(count?: number): string;
|
| 102 |
+
|
| 103 |
+
/**
|
| 104 |
+
Move cursor to the left side.
|
| 105 |
+
*/
|
| 106 |
+
cursorLeft: string;
|
| 107 |
+
|
| 108 |
+
/**
|
| 109 |
+
Save cursor position.
|
| 110 |
+
*/
|
| 111 |
+
cursorSavePosition: string;
|
| 112 |
+
|
| 113 |
+
/**
|
| 114 |
+
Restore saved cursor position.
|
| 115 |
+
*/
|
| 116 |
+
cursorRestorePosition: string;
|
| 117 |
+
|
| 118 |
+
/**
|
| 119 |
+
Get cursor position.
|
| 120 |
+
*/
|
| 121 |
+
cursorGetPosition: string;
|
| 122 |
+
|
| 123 |
+
/**
|
| 124 |
+
Move cursor to the next line.
|
| 125 |
+
*/
|
| 126 |
+
cursorNextLine: string;
|
| 127 |
+
|
| 128 |
+
/**
|
| 129 |
+
Move cursor to the previous line.
|
| 130 |
+
*/
|
| 131 |
+
cursorPrevLine: string;
|
| 132 |
+
|
| 133 |
+
/**
|
| 134 |
+
Hide cursor.
|
| 135 |
+
*/
|
| 136 |
+
cursorHide: string;
|
| 137 |
+
|
| 138 |
+
/**
|
| 139 |
+
Show cursor.
|
| 140 |
+
*/
|
| 141 |
+
cursorShow: string;
|
| 142 |
+
|
| 143 |
+
/**
|
| 144 |
+
Erase from the current cursor position up the specified amount of rows.
|
| 145 |
+
|
| 146 |
+
@param count - Count of rows to erase.
|
| 147 |
+
*/
|
| 148 |
+
eraseLines(count: number): string;
|
| 149 |
+
|
| 150 |
+
/**
|
| 151 |
+
Erase from the current cursor position to the end of the current line.
|
| 152 |
+
*/
|
| 153 |
+
eraseEndLine: string;
|
| 154 |
+
|
| 155 |
+
/**
|
| 156 |
+
Erase from the current cursor position to the start of the current line.
|
| 157 |
+
*/
|
| 158 |
+
eraseStartLine: string;
|
| 159 |
+
|
| 160 |
+
/**
|
| 161 |
+
Erase the entire current line.
|
| 162 |
+
*/
|
| 163 |
+
eraseLine: string;
|
| 164 |
+
|
| 165 |
+
/**
|
| 166 |
+
Erase the screen from the current line down to the bottom of the screen.
|
| 167 |
+
*/
|
| 168 |
+
eraseDown: string;
|
| 169 |
+
|
| 170 |
+
/**
|
| 171 |
+
Erase the screen from the current line up to the top of the screen.
|
| 172 |
+
*/
|
| 173 |
+
eraseUp: string;
|
| 174 |
+
|
| 175 |
+
/**
|
| 176 |
+
Erase the screen and move the cursor the top left position.
|
| 177 |
+
*/
|
| 178 |
+
eraseScreen: string;
|
| 179 |
+
|
| 180 |
+
/**
|
| 181 |
+
Scroll display up one line.
|
| 182 |
+
*/
|
| 183 |
+
scrollUp: string;
|
| 184 |
+
|
| 185 |
+
/**
|
| 186 |
+
Scroll display down one line.
|
| 187 |
+
*/
|
| 188 |
+
scrollDown: string;
|
| 189 |
+
|
| 190 |
+
/**
|
| 191 |
+
Clear the terminal screen. (Viewport)
|
| 192 |
+
*/
|
| 193 |
+
clearScreen: string;
|
| 194 |
+
|
| 195 |
+
/**
|
| 196 |
+
Clear the whole terminal, including scrollback buffer. (Not just the visible part of it)
|
| 197 |
+
*/
|
| 198 |
+
clearTerminal: string;
|
| 199 |
+
|
| 200 |
+
/**
|
| 201 |
+
Output a beeping sound.
|
| 202 |
+
*/
|
| 203 |
+
beep: string;
|
| 204 |
+
|
| 205 |
+
/**
|
| 206 |
+
Create a clickable link.
|
| 207 |
+
|
| 208 |
+
[Supported terminals.](https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda) Use [`supports-hyperlinks`](https://github.com/jamestalmage/supports-hyperlinks) to detect link support.
|
| 209 |
+
*/
|
| 210 |
+
link(text: string, url: string): string;
|
| 211 |
+
|
| 212 |
+
/**
|
| 213 |
+
Display an image.
|
| 214 |
+
|
| 215 |
+
_Currently only supported on iTerm2 >=3_
|
| 216 |
+
|
| 217 |
+
See [term-img](https://github.com/sindresorhus/term-img) for a higher-level module.
|
| 218 |
+
|
| 219 |
+
@param buffer - Buffer of an image. Usually read in with `fs.readFile()`.
|
| 220 |
+
*/
|
| 221 |
+
image(buffer: Buffer, options?: ansiEscapes.ImageOptions): string;
|
| 222 |
+
|
| 223 |
+
iTerm: {
|
| 224 |
+
/**
|
| 225 |
+
[Inform iTerm2](https://www.iterm2.com/documentation-escape-codes.html) of the current directory to help semantic history and enable [Cmd-clicking relative paths](https://coderwall.com/p/b7e82q/quickly-open-files-in-iterm-with-cmd-click).
|
| 226 |
+
|
| 227 |
+
@param cwd - Current directory. Default: `process.cwd()`.
|
| 228 |
+
*/
|
| 229 |
+
setCwd(cwd?: string): string;
|
| 230 |
+
|
| 231 |
+
/**
|
| 232 |
+
An annotation looks like this when shown:
|
| 233 |
+
|
| 234 |
+

|
| 235 |
+
|
| 236 |
+
See the [iTerm Proprietary Escape Codes documentation](https://iterm2.com/documentation-escape-codes.html) for more information.
|
| 237 |
+
|
| 238 |
+
@param message - The message to display within the annotation. The `|` character is disallowed and will be stripped.
|
| 239 |
+
@returns An escape code which will create an annotation when printed in iTerm2.
|
| 240 |
+
*/
|
| 241 |
+
annotation(message: string, options?: ansiEscapes.AnnotationOptions): string;
|
| 242 |
+
};
|
| 243 |
+
|
| 244 |
+
// TODO: remove this in the next major version
|
| 245 |
+
default: typeof ansiEscapes;
|
| 246 |
+
};
|
| 247 |
+
|
| 248 |
+
export = ansiEscapes;
|
novas/novacore-zephyr/claude-code-router/node_modules/ansi-escapes/index.js
ADDED
|
@@ -0,0 +1,157 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict';
|
| 2 |
+
const ansiEscapes = module.exports;
|
| 3 |
+
// TODO: remove this in the next major version
|
| 4 |
+
module.exports.default = ansiEscapes;
|
| 5 |
+
|
| 6 |
+
const ESC = '\u001B[';
|
| 7 |
+
const OSC = '\u001B]';
|
| 8 |
+
const BEL = '\u0007';
|
| 9 |
+
const SEP = ';';
|
| 10 |
+
const isTerminalApp = process.env.TERM_PROGRAM === 'Apple_Terminal';
|
| 11 |
+
|
| 12 |
+
ansiEscapes.cursorTo = (x, y) => {
|
| 13 |
+
if (typeof x !== 'number') {
|
| 14 |
+
throw new TypeError('The `x` argument is required');
|
| 15 |
+
}
|
| 16 |
+
|
| 17 |
+
if (typeof y !== 'number') {
|
| 18 |
+
return ESC + (x + 1) + 'G';
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
return ESC + (y + 1) + ';' + (x + 1) + 'H';
|
| 22 |
+
};
|
| 23 |
+
|
| 24 |
+
ansiEscapes.cursorMove = (x, y) => {
|
| 25 |
+
if (typeof x !== 'number') {
|
| 26 |
+
throw new TypeError('The `x` argument is required');
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
let ret = '';
|
| 30 |
+
|
| 31 |
+
if (x < 0) {
|
| 32 |
+
ret += ESC + (-x) + 'D';
|
| 33 |
+
} else if (x > 0) {
|
| 34 |
+
ret += ESC + x + 'C';
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
if (y < 0) {
|
| 38 |
+
ret += ESC + (-y) + 'A';
|
| 39 |
+
} else if (y > 0) {
|
| 40 |
+
ret += ESC + y + 'B';
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
return ret;
|
| 44 |
+
};
|
| 45 |
+
|
| 46 |
+
ansiEscapes.cursorUp = (count = 1) => ESC + count + 'A';
|
| 47 |
+
ansiEscapes.cursorDown = (count = 1) => ESC + count + 'B';
|
| 48 |
+
ansiEscapes.cursorForward = (count = 1) => ESC + count + 'C';
|
| 49 |
+
ansiEscapes.cursorBackward = (count = 1) => ESC + count + 'D';
|
| 50 |
+
|
| 51 |
+
ansiEscapes.cursorLeft = ESC + 'G';
|
| 52 |
+
ansiEscapes.cursorSavePosition = isTerminalApp ? '\u001B7' : ESC + 's';
|
| 53 |
+
ansiEscapes.cursorRestorePosition = isTerminalApp ? '\u001B8' : ESC + 'u';
|
| 54 |
+
ansiEscapes.cursorGetPosition = ESC + '6n';
|
| 55 |
+
ansiEscapes.cursorNextLine = ESC + 'E';
|
| 56 |
+
ansiEscapes.cursorPrevLine = ESC + 'F';
|
| 57 |
+
ansiEscapes.cursorHide = ESC + '?25l';
|
| 58 |
+
ansiEscapes.cursorShow = ESC + '?25h';
|
| 59 |
+
|
| 60 |
+
ansiEscapes.eraseLines = count => {
|
| 61 |
+
let clear = '';
|
| 62 |
+
|
| 63 |
+
for (let i = 0; i < count; i++) {
|
| 64 |
+
clear += ansiEscapes.eraseLine + (i < count - 1 ? ansiEscapes.cursorUp() : '');
|
| 65 |
+
}
|
| 66 |
+
|
| 67 |
+
if (count) {
|
| 68 |
+
clear += ansiEscapes.cursorLeft;
|
| 69 |
+
}
|
| 70 |
+
|
| 71 |
+
return clear;
|
| 72 |
+
};
|
| 73 |
+
|
| 74 |
+
ansiEscapes.eraseEndLine = ESC + 'K';
|
| 75 |
+
ansiEscapes.eraseStartLine = ESC + '1K';
|
| 76 |
+
ansiEscapes.eraseLine = ESC + '2K';
|
| 77 |
+
ansiEscapes.eraseDown = ESC + 'J';
|
| 78 |
+
ansiEscapes.eraseUp = ESC + '1J';
|
| 79 |
+
ansiEscapes.eraseScreen = ESC + '2J';
|
| 80 |
+
ansiEscapes.scrollUp = ESC + 'S';
|
| 81 |
+
ansiEscapes.scrollDown = ESC + 'T';
|
| 82 |
+
|
| 83 |
+
ansiEscapes.clearScreen = '\u001Bc';
|
| 84 |
+
|
| 85 |
+
ansiEscapes.clearTerminal = process.platform === 'win32' ?
|
| 86 |
+
`${ansiEscapes.eraseScreen}${ESC}0f` :
|
| 87 |
+
// 1. Erases the screen (Only done in case `2` is not supported)
|
| 88 |
+
// 2. Erases the whole screen including scrollback buffer
|
| 89 |
+
// 3. Moves cursor to the top-left position
|
| 90 |
+
// More info: https://www.real-world-systems.com/docs/ANSIcode.html
|
| 91 |
+
`${ansiEscapes.eraseScreen}${ESC}3J${ESC}H`;
|
| 92 |
+
|
| 93 |
+
ansiEscapes.beep = BEL;
|
| 94 |
+
|
| 95 |
+
ansiEscapes.link = (text, url) => {
|
| 96 |
+
return [
|
| 97 |
+
OSC,
|
| 98 |
+
'8',
|
| 99 |
+
SEP,
|
| 100 |
+
SEP,
|
| 101 |
+
url,
|
| 102 |
+
BEL,
|
| 103 |
+
text,
|
| 104 |
+
OSC,
|
| 105 |
+
'8',
|
| 106 |
+
SEP,
|
| 107 |
+
SEP,
|
| 108 |
+
BEL
|
| 109 |
+
].join('');
|
| 110 |
+
};
|
| 111 |
+
|
| 112 |
+
ansiEscapes.image = (buffer, options = {}) => {
|
| 113 |
+
let ret = `${OSC}1337;File=inline=1`;
|
| 114 |
+
|
| 115 |
+
if (options.width) {
|
| 116 |
+
ret += `;width=${options.width}`;
|
| 117 |
+
}
|
| 118 |
+
|
| 119 |
+
if (options.height) {
|
| 120 |
+
ret += `;height=${options.height}`;
|
| 121 |
+
}
|
| 122 |
+
|
| 123 |
+
if (options.preserveAspectRatio === false) {
|
| 124 |
+
ret += ';preserveAspectRatio=0';
|
| 125 |
+
}
|
| 126 |
+
|
| 127 |
+
return ret + ':' + buffer.toString('base64') + BEL;
|
| 128 |
+
};
|
| 129 |
+
|
| 130 |
+
ansiEscapes.iTerm = {
|
| 131 |
+
setCwd: (cwd = process.cwd()) => `${OSC}50;CurrentDir=${cwd}${BEL}`,
|
| 132 |
+
|
| 133 |
+
annotation: (message, options = {}) => {
|
| 134 |
+
let ret = `${OSC}1337;`;
|
| 135 |
+
|
| 136 |
+
const hasX = typeof options.x !== 'undefined';
|
| 137 |
+
const hasY = typeof options.y !== 'undefined';
|
| 138 |
+
if ((hasX || hasY) && !(hasX && hasY && typeof options.length !== 'undefined')) {
|
| 139 |
+
throw new Error('`x`, `y` and `length` must be defined when `x` or `y` is defined');
|
| 140 |
+
}
|
| 141 |
+
|
| 142 |
+
message = message.replace(/\|/g, '');
|
| 143 |
+
|
| 144 |
+
ret += options.isHidden ? 'AddHiddenAnnotation=' : 'AddAnnotation=';
|
| 145 |
+
|
| 146 |
+
if (options.length > 0) {
|
| 147 |
+
ret +=
|
| 148 |
+
(hasX ?
|
| 149 |
+
[message, options.length, options.x, options.y] :
|
| 150 |
+
[options.length, message]).join('|');
|
| 151 |
+
} else {
|
| 152 |
+
ret += message;
|
| 153 |
+
}
|
| 154 |
+
|
| 155 |
+
return ret + BEL;
|
| 156 |
+
}
|
| 157 |
+
};
|
novas/novacore-zephyr/claude-code-router/node_modules/ansi-escapes/license
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
| 6 |
+
|
| 7 |
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
| 8 |
+
|
| 9 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
novas/novacore-zephyr/claude-code-router/node_modules/ansi-escapes/package.json
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "ansi-escapes",
|
| 3 |
+
"version": "4.3.2",
|
| 4 |
+
"description": "ANSI escape codes for manipulating the terminal",
|
| 5 |
+
"license": "MIT",
|
| 6 |
+
"repository": "sindresorhus/ansi-escapes",
|
| 7 |
+
"funding": "https://github.com/sponsors/sindresorhus",
|
| 8 |
+
"author": {
|
| 9 |
+
"name": "Sindre Sorhus",
|
| 10 |
+
"email": "sindresorhus@gmail.com",
|
| 11 |
+
"url": "https://sindresorhus.com"
|
| 12 |
+
},
|
| 13 |
+
"engines": {
|
| 14 |
+
"node": ">=8"
|
| 15 |
+
},
|
| 16 |
+
"scripts": {
|
| 17 |
+
"test": "xo && ava && tsd"
|
| 18 |
+
},
|
| 19 |
+
"files": [
|
| 20 |
+
"index.js",
|
| 21 |
+
"index.d.ts"
|
| 22 |
+
],
|
| 23 |
+
"keywords": [
|
| 24 |
+
"ansi",
|
| 25 |
+
"terminal",
|
| 26 |
+
"console",
|
| 27 |
+
"cli",
|
| 28 |
+
"string",
|
| 29 |
+
"tty",
|
| 30 |
+
"escape",
|
| 31 |
+
"escapes",
|
| 32 |
+
"formatting",
|
| 33 |
+
"shell",
|
| 34 |
+
"xterm",
|
| 35 |
+
"log",
|
| 36 |
+
"logging",
|
| 37 |
+
"command-line",
|
| 38 |
+
"text",
|
| 39 |
+
"vt100",
|
| 40 |
+
"sequence",
|
| 41 |
+
"control",
|
| 42 |
+
"code",
|
| 43 |
+
"codes",
|
| 44 |
+
"cursor",
|
| 45 |
+
"iterm",
|
| 46 |
+
"iterm2"
|
| 47 |
+
],
|
| 48 |
+
"dependencies": {
|
| 49 |
+
"type-fest": "^0.21.3"
|
| 50 |
+
},
|
| 51 |
+
"devDependencies": {
|
| 52 |
+
"@types/node": "^13.7.7",
|
| 53 |
+
"ava": "^2.1.0",
|
| 54 |
+
"tsd": "^0.14.0",
|
| 55 |
+
"xo": "^0.25.3"
|
| 56 |
+
}
|
| 57 |
+
}
|
novas/novacore-zephyr/claude-code-router/node_modules/ansi-escapes/readme.md
ADDED
|
@@ -0,0 +1,245 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ansi-escapes
|
| 2 |
+
|
| 3 |
+
> [ANSI escape codes](http://www.termsys.demon.co.uk/vtansi.htm) for manipulating the terminal
|
| 4 |
+
|
| 5 |
+
## Install
|
| 6 |
+
|
| 7 |
+
```
|
| 8 |
+
$ npm install ansi-escapes
|
| 9 |
+
```
|
| 10 |
+
|
| 11 |
+
## Usage
|
| 12 |
+
|
| 13 |
+
```js
|
| 14 |
+
const ansiEscapes = require('ansi-escapes');
|
| 15 |
+
|
| 16 |
+
// Moves the cursor two rows up and to the left
|
| 17 |
+
process.stdout.write(ansiEscapes.cursorUp(2) + ansiEscapes.cursorLeft);
|
| 18 |
+
//=> '\u001B[2A\u001B[1000D'
|
| 19 |
+
```
|
| 20 |
+
|
| 21 |
+
## API
|
| 22 |
+
|
| 23 |
+
### cursorTo(x, y?)
|
| 24 |
+
|
| 25 |
+
Set the absolute position of the cursor. `x0` `y0` is the top left of the screen.
|
| 26 |
+
|
| 27 |
+
### cursorMove(x, y?)
|
| 28 |
+
|
| 29 |
+
Set the position of the cursor relative to its current position.
|
| 30 |
+
|
| 31 |
+
### cursorUp(count)
|
| 32 |
+
|
| 33 |
+
Move cursor up a specific amount of rows. Default is `1`.
|
| 34 |
+
|
| 35 |
+
### cursorDown(count)
|
| 36 |
+
|
| 37 |
+
Move cursor down a specific amount of rows. Default is `1`.
|
| 38 |
+
|
| 39 |
+
### cursorForward(count)
|
| 40 |
+
|
| 41 |
+
Move cursor forward a specific amount of columns. Default is `1`.
|
| 42 |
+
|
| 43 |
+
### cursorBackward(count)
|
| 44 |
+
|
| 45 |
+
Move cursor backward a specific amount of columns. Default is `1`.
|
| 46 |
+
|
| 47 |
+
### cursorLeft
|
| 48 |
+
|
| 49 |
+
Move cursor to the left side.
|
| 50 |
+
|
| 51 |
+
### cursorSavePosition
|
| 52 |
+
|
| 53 |
+
Save cursor position.
|
| 54 |
+
|
| 55 |
+
### cursorRestorePosition
|
| 56 |
+
|
| 57 |
+
Restore saved cursor position.
|
| 58 |
+
|
| 59 |
+
### cursorGetPosition
|
| 60 |
+
|
| 61 |
+
Get cursor position.
|
| 62 |
+
|
| 63 |
+
### cursorNextLine
|
| 64 |
+
|
| 65 |
+
Move cursor to the next line.
|
| 66 |
+
|
| 67 |
+
### cursorPrevLine
|
| 68 |
+
|
| 69 |
+
Move cursor to the previous line.
|
| 70 |
+
|
| 71 |
+
### cursorHide
|
| 72 |
+
|
| 73 |
+
Hide cursor.
|
| 74 |
+
|
| 75 |
+
### cursorShow
|
| 76 |
+
|
| 77 |
+
Show cursor.
|
| 78 |
+
|
| 79 |
+
### eraseLines(count)
|
| 80 |
+
|
| 81 |
+
Erase from the current cursor position up the specified amount of rows.
|
| 82 |
+
|
| 83 |
+
### eraseEndLine
|
| 84 |
+
|
| 85 |
+
Erase from the current cursor position to the end of the current line.
|
| 86 |
+
|
| 87 |
+
### eraseStartLine
|
| 88 |
+
|
| 89 |
+
Erase from the current cursor position to the start of the current line.
|
| 90 |
+
|
| 91 |
+
### eraseLine
|
| 92 |
+
|
| 93 |
+
Erase the entire current line.
|
| 94 |
+
|
| 95 |
+
### eraseDown
|
| 96 |
+
|
| 97 |
+
Erase the screen from the current line down to the bottom of the screen.
|
| 98 |
+
|
| 99 |
+
### eraseUp
|
| 100 |
+
|
| 101 |
+
Erase the screen from the current line up to the top of the screen.
|
| 102 |
+
|
| 103 |
+
### eraseScreen
|
| 104 |
+
|
| 105 |
+
Erase the screen and move the cursor the top left position.
|
| 106 |
+
|
| 107 |
+
### scrollUp
|
| 108 |
+
|
| 109 |
+
Scroll display up one line.
|
| 110 |
+
|
| 111 |
+
### scrollDown
|
| 112 |
+
|
| 113 |
+
Scroll display down one line.
|
| 114 |
+
|
| 115 |
+
### clearScreen
|
| 116 |
+
|
| 117 |
+
Clear the terminal screen. (Viewport)
|
| 118 |
+
|
| 119 |
+
### clearTerminal
|
| 120 |
+
|
| 121 |
+
Clear the whole terminal, including scrollback buffer. (Not just the visible part of it)
|
| 122 |
+
|
| 123 |
+
### beep
|
| 124 |
+
|
| 125 |
+
Output a beeping sound.
|
| 126 |
+
|
| 127 |
+
### link(text, url)
|
| 128 |
+
|
| 129 |
+
Create a clickable link.
|
| 130 |
+
|
| 131 |
+
[Supported terminals.](https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda) Use [`supports-hyperlinks`](https://github.com/jamestalmage/supports-hyperlinks) to detect link support.
|
| 132 |
+
|
| 133 |
+
### image(filePath, options?)
|
| 134 |
+
|
| 135 |
+
Display an image.
|
| 136 |
+
|
| 137 |
+
*Currently only supported on iTerm2 >=3*
|
| 138 |
+
|
| 139 |
+
See [term-img](https://github.com/sindresorhus/term-img) for a higher-level module.
|
| 140 |
+
|
| 141 |
+
#### input
|
| 142 |
+
|
| 143 |
+
Type: `Buffer`
|
| 144 |
+
|
| 145 |
+
Buffer of an image. Usually read in with `fs.readFile()`.
|
| 146 |
+
|
| 147 |
+
#### options
|
| 148 |
+
|
| 149 |
+
Type: `object`
|
| 150 |
+
|
| 151 |
+
##### width
|
| 152 |
+
##### height
|
| 153 |
+
|
| 154 |
+
Type: `string | number`
|
| 155 |
+
|
| 156 |
+
The width and height are given as a number followed by a unit, or the word "auto".
|
| 157 |
+
|
| 158 |
+
- `N`: N character cells.
|
| 159 |
+
- `Npx`: N pixels.
|
| 160 |
+
- `N%`: N percent of the session's width or height.
|
| 161 |
+
- `auto`: The image's inherent size will be used to determine an appropriate dimension.
|
| 162 |
+
|
| 163 |
+
##### preserveAspectRatio
|
| 164 |
+
|
| 165 |
+
Type: `boolean`\
|
| 166 |
+
Default: `true`
|
| 167 |
+
|
| 168 |
+
### iTerm.setCwd(path?)
|
| 169 |
+
|
| 170 |
+
Type: `string`\
|
| 171 |
+
Default: `process.cwd()`
|
| 172 |
+
|
| 173 |
+
[Inform iTerm2](https://www.iterm2.com/documentation-escape-codes.html) of the current directory to help semantic history and enable [Cmd-clicking relative paths](https://coderwall.com/p/b7e82q/quickly-open-files-in-iterm-with-cmd-click).
|
| 174 |
+
|
| 175 |
+
### iTerm.annotation(message, options?)
|
| 176 |
+
|
| 177 |
+
Creates an escape code to display an "annotation" in iTerm2.
|
| 178 |
+
|
| 179 |
+
An annotation looks like this when shown:
|
| 180 |
+
|
| 181 |
+
<img src="https://user-images.githubusercontent.com/924465/64382136-b60ac700-cfe9-11e9-8a35-9682e8dc4b72.png" width="500">
|
| 182 |
+
|
| 183 |
+
See the [iTerm Proprietary Escape Codes documentation](https://iterm2.com/documentation-escape-codes.html) for more information.
|
| 184 |
+
|
| 185 |
+
#### message
|
| 186 |
+
|
| 187 |
+
Type: `string`
|
| 188 |
+
|
| 189 |
+
The message to display within the annotation.
|
| 190 |
+
|
| 191 |
+
The `|` character is disallowed and will be stripped.
|
| 192 |
+
|
| 193 |
+
#### options
|
| 194 |
+
|
| 195 |
+
Type: `object`
|
| 196 |
+
|
| 197 |
+
##### length
|
| 198 |
+
|
| 199 |
+
Type: `number`\
|
| 200 |
+
Default: The remainder of the line
|
| 201 |
+
|
| 202 |
+
Nonzero number of columns to annotate.
|
| 203 |
+
|
| 204 |
+
##### x
|
| 205 |
+
|
| 206 |
+
Type: `number`\
|
| 207 |
+
Default: Cursor position
|
| 208 |
+
|
| 209 |
+
Starting X coordinate.
|
| 210 |
+
|
| 211 |
+
Must be used with `y` and `length`.
|
| 212 |
+
|
| 213 |
+
##### y
|
| 214 |
+
|
| 215 |
+
Type: `number`\
|
| 216 |
+
Default: Cursor position
|
| 217 |
+
|
| 218 |
+
Starting Y coordinate.
|
| 219 |
+
|
| 220 |
+
Must be used with `x` and `length`.
|
| 221 |
+
|
| 222 |
+
##### isHidden
|
| 223 |
+
|
| 224 |
+
Type: `boolean`\
|
| 225 |
+
Default: `false`
|
| 226 |
+
|
| 227 |
+
Create a "hidden" annotation.
|
| 228 |
+
|
| 229 |
+
Annotations created this way can be shown using the "Show Annotations" iTerm command.
|
| 230 |
+
|
| 231 |
+
## Related
|
| 232 |
+
|
| 233 |
+
- [ansi-styles](https://github.com/chalk/ansi-styles) - ANSI escape codes for styling strings in the terminal
|
| 234 |
+
|
| 235 |
+
---
|
| 236 |
+
|
| 237 |
+
<div align="center">
|
| 238 |
+
<b>
|
| 239 |
+
<a href="https://tidelift.com/subscription/pkg/npm-ansi-escapes?utm_source=npm-ansi-escapes&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
|
| 240 |
+
</b>
|
| 241 |
+
<br>
|
| 242 |
+
<sub>
|
| 243 |
+
Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
|
| 244 |
+
</sub>
|
| 245 |
+
</div>
|
novas/novacore-zephyr/claude-code-router/node_modules/ansi-regex/index.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export type Options = {
|
| 2 |
+
/**
|
| 3 |
+
Match only the first ANSI escape.
|
| 4 |
+
|
| 5 |
+
@default false
|
| 6 |
+
*/
|
| 7 |
+
readonly onlyFirst: boolean;
|
| 8 |
+
};
|
| 9 |
+
|
| 10 |
+
/**
|
| 11 |
+
Regular expression for matching ANSI escape codes.
|
| 12 |
+
|
| 13 |
+
@example
|
| 14 |
+
```
|
| 15 |
+
import ansiRegex from 'ansi-regex';
|
| 16 |
+
|
| 17 |
+
ansiRegex().test('\u001B[4mcake\u001B[0m');
|
| 18 |
+
//=> true
|
| 19 |
+
|
| 20 |
+
ansiRegex().test('cake');
|
| 21 |
+
//=> false
|
| 22 |
+
|
| 23 |
+
'\u001B[4mcake\u001B[0m'.match(ansiRegex());
|
| 24 |
+
//=> ['\u001B[4m', '\u001B[0m']
|
| 25 |
+
|
| 26 |
+
'\u001B[4mcake\u001B[0m'.match(ansiRegex({onlyFirst: true}));
|
| 27 |
+
//=> ['\u001B[4m']
|
| 28 |
+
|
| 29 |
+
'\u001B]8;;https://github.com\u0007click\u001B]8;;\u0007'.match(ansiRegex());
|
| 30 |
+
//=> ['\u001B]8;;https://github.com\u0007', '\u001B]8;;\u0007']
|
| 31 |
+
```
|
| 32 |
+
*/
|
| 33 |
+
export default function ansiRegex(options?: Options): RegExp;
|
novas/novacore-zephyr/claude-code-router/node_modules/ansi-regex/index.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export default function ansiRegex({onlyFirst = false} = {}) {
|
| 2 |
+
// Valid string terminator sequences are BEL, ESC\, and 0x9c
|
| 3 |
+
const ST = '(?:\\u0007|\\u001B\\u005C|\\u009C)';
|
| 4 |
+
|
| 5 |
+
// OSC sequences only: ESC ] ... ST (non-greedy until the first ST)
|
| 6 |
+
const osc = `(?:\\u001B\\][\\s\\S]*?${ST})`;
|
| 7 |
+
|
| 8 |
+
// CSI and related: ESC/C1, optional intermediates, optional params (supports ; and :) then final byte
|
| 9 |
+
const csi = '[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]';
|
| 10 |
+
|
| 11 |
+
const pattern = `${osc}|${csi}`;
|
| 12 |
+
|
| 13 |
+
return new RegExp(pattern, onlyFirst ? undefined : 'g');
|
| 14 |
+
}
|