promptgraph-mcp 2.4.6 → 2.4.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/github-import.js +4 -4
  2. package/index.js +47 -14
  3. package/indexer.js +14 -7
  4. package/package.json +1 -1
  5. package/parser.js +21 -115
  6. package/registry/training/bad/accepts-HISTORY.md +250 -0
  7. package/registry/training/bad/argparse-CHANGELOG.md +185 -0
  8. package/registry/training/bad/balanced-match-LICENSE.md +23 -0
  9. package/registry/training/bad/better-sqlite3-README.md +99 -0
  10. package/registry/training/bad/bindings-LICENSE.md +22 -0
  11. package/registry/training/bad/bl-LICENSE.md +13 -0
  12. package/registry/training/bad/body-parser-README.md +494 -0
  13. package/registry/training/bad/bytes-HISTORY.md +97 -0
  14. package/registry/training/bad/camelcase-README.md +135 -0
  15. package/registry/training/bad/chai-README.md +162 -0
  16. package/registry/training/bad/cli-progress-LICENSE.md +24 -0
  17. package/registry/training/bad/content-type-HISTORY.md +29 -0
  18. package/registry/training/bad/cookie-SECURITY.md +25 -0
  19. package/registry/training/bad/cookie-signature-HISTORY.md +70 -0
  20. package/registry/training/bad/cors-README.md +277 -0
  21. package/registry/training/bad/cross-spawn-README.md +89 -0
  22. package/registry/training/bad/deep-extend-CHANGELOG.md +46 -0
  23. package/registry/training/bad/depd-HISTORY.md +103 -0
  24. package/registry/training/bad/esprima-README.md +46 -0
  25. package/registry/training/bad/etag-HISTORY.md +83 -0
  26. package/registry/training/bad/expect-type-SECURITY.md +14 -0
  27. package/registry/training/bad/finalhandler-HISTORY.md +239 -0
  28. package/registry/training/bad/fresh-HISTORY.md +80 -0
  29. package/registry/training/bad/glob-LICENSE.md +63 -0
  30. package/registry/training/bad/hono-README.md +85 -0
  31. package/registry/training/bad/http-errors-HISTORY.md +186 -0
  32. package/registry/training/bad/jose-LICENSE.md +21 -0
  33. package/registry/training/bad/jose-README.md +153 -0
  34. package/registry/training/bad/js-yaml-README.md +299 -0
  35. package/registry/training/bad/json-schema-typed-LICENSE.md +57 -0
  36. package/registry/training/bad/json-stringify-safe-CHANGELOG.md +14 -0
  37. package/registry/training/bad/lru-cache-LICENSE.md +55 -0
  38. package/registry/training/bad/media-typer-HISTORY.md +50 -0
  39. package/registry/training/bad/minimatch-LICENSE.md +55 -0
  40. package/registry/training/bad/minimist-CHANGELOG.md +298 -0
  41. package/registry/training/bad/minimist-README.md +121 -0
  42. package/registry/training/bad/ms-LICENSE.md +21 -0
  43. package/registry/training/bad/negotiator-HISTORY.md +114 -0
  44. package/registry/training/bad/on-finished-HISTORY.md +98 -0
  45. package/registry/training/bad/pkce-challenge-CHANGELOG.md +114 -0
  46. package/registry/training/bad/postcss-README.md +28 -0
  47. package/registry/training/bad/prebuild-install-CHANGELOG.md +131 -0
  48. package/registry/training/bad/proxy-addr-HISTORY.md +161 -0
  49. package/registry/training/bad/qs-CHANGELOG.md +822 -0
  50. package/registry/training/bad/rc-README.md +227 -0
  51. package/registry/training/bad/readable-stream-CONTRIBUTING.md +38 -0
  52. package/registry/training/bad/router-HISTORY.md +228 -0
  53. package/registry/training/bad/semver-README.md +680 -0
  54. package/registry/training/bad/send-README.md +317 -0
  55. package/registry/training/bad/serve-static-README.md +253 -0
  56. package/registry/training/bad/statuses-HISTORY.md +87 -0
  57. package/registry/training/bad/type-is-HISTORY.md +292 -0
  58. package/registry/training/bad/vary-HISTORY.md +39 -0
  59. package/registry/training/bad/vite-LICENSE.md +2230 -0
  60. package/registry/training/bad/which-CHANGELOG.md +166 -0
  61. package/registry/training/bad/zod-README.md +191 -0
  62. package/registry/training/good/skills-store-autopilot.md +85 -0
  63. package/registry/training/good/skills-store-bot-builder.md +70 -0
  64. package/registry/training/good/skills-store-chain.md +136 -0
  65. package/registry/training/good/skills-store-evolve.md +100 -0
  66. package/registry/training/good/skills-store-game.md +27 -0
  67. package/registry/training/good/skills-store-hunt.md +102 -0
  68. package/registry/training/good/skills-store-intel.md +56 -0
  69. package/registry/training/good/skills-store-memory-gc.md +58 -0
  70. package/registry/training/good/skills-store-pcsort.md +207 -0
  71. package/registry/training/good/skills-store-pickup.md +60 -0
  72. package/registry/training/good/skills-store-recon.md +141 -0
  73. package/registry/training/good/skills-store-remember.md +64 -0
  74. package/registry/training/good/skills-store-report.md +117 -0
  75. package/registry/training/good/skills-store-router.md +225 -0
  76. package/registry/training/good/skills-store-search.md +168 -0
  77. package/registry/training/good/skills-store-surface.md +53 -0
  78. package/registry/training/good/skills-store-token-scan.md +141 -0
  79. package/registry/training/good/skills-store-triage.md +97 -0
  80. package/registry/training/good/skills-store-unity.md +733 -0
  81. package/registry/training/good/skills-store-validate.md +135 -0
  82. package/registry/training/good/skills-store-web3-audit.md +217 -0
  83. package/src/filter/classifier.js +88 -0
  84. package/src/filter/cluster.js +52 -0
  85. package/src/filter/dedup.js +36 -0
  86. package/src/filter/hard-filter.js +57 -0
  87. package/src/filter/train.js +64 -0
@@ -0,0 +1,135 @@
1
+ # camelcase
2
+
3
+ > Convert a dash/dot/underscore/space separated string to camelCase or PascalCase: `foo-bar` → `fooBar`
4
+
5
+ Correctly handles Unicode strings.
6
+
7
+ If you use this on untrusted user input, don't forget to limit the length to something reasonable.
8
+
9
+ ## Install
10
+
11
+ ```sh
12
+ npm install camelcase
13
+ ```
14
+
15
+ ## Usage
16
+
17
+ ```js
18
+ import camelCase from 'camelcase';
19
+
20
+ camelCase('foo-bar');
21
+ //=> 'fooBar'
22
+
23
+ camelCase('foo_bar');
24
+ //=> 'fooBar'
25
+
26
+ camelCase('Foo-Bar');
27
+ //=> 'fooBar'
28
+
29
+ camelCase('розовый_пушистый_единорог');
30
+ //=> 'розовыйПушистыйЕдинорог'
31
+
32
+ camelCase('Foo-Bar', {pascalCase: true});
33
+ //=> 'FooBar'
34
+
35
+ camelCase('--foo.bar', {pascalCase: false});
36
+ //=> 'fooBar'
37
+
38
+ camelCase('Foo-BAR', {preserveConsecutiveUppercase: true});
39
+ //=> 'fooBAR'
40
+
41
+ camelCase('fooBAR', {pascalCase: true, preserveConsecutiveUppercase: true});
42
+ //=> 'FooBAR'
43
+
44
+ camelCase('foo bar');
45
+ //=> 'fooBar'
46
+
47
+ console.log(process.argv[3]);
48
+ //=> '--foo-bar'
49
+ camelCase(process.argv[3]);
50
+ //=> 'fooBar'
51
+
52
+ camelCase(['foo', 'bar']);
53
+ //=> 'fooBar'
54
+
55
+ camelCase(['__foo__', '--bar'], {pascalCase: true});
56
+ //=> 'FooBar'
57
+
58
+ camelCase(['foo', 'BAR'], {pascalCase: true, preserveConsecutiveUppercase: true})
59
+ //=> 'FooBAR'
60
+
61
+ camelCase('lorem-ipsum', {locale: 'en-US'});
62
+ //=> 'loremIpsum'
63
+ ```
64
+
65
+ ## API
66
+
67
+ ### camelCase(input, options?)
68
+
69
+ #### input
70
+
71
+ Type: `string | string[]`
72
+
73
+ The string to convert to camel case.
74
+
75
+ #### options
76
+
77
+ Type: `object`
78
+
79
+ ##### pascalCase
80
+
81
+ Type: `boolean`\
82
+ Default: `false`
83
+
84
+ Uppercase the first character: `foo-bar` → `FooBar`
85
+
86
+ ##### preserveConsecutiveUppercase
87
+
88
+ Type: `boolean`\
89
+ Default: `false`
90
+
91
+ Preserve consecutive uppercase characters: `foo-BAR` → `FooBAR`.
92
+
93
+ ##### locale
94
+
95
+ Type: `false | string | string[]`\
96
+ Default: The host environment’s current locale.
97
+
98
+ The locale parameter indicates the locale to be used to convert to upper/lower case according to any locale-specific case mappings. If multiple locales are given in an array, the best available locale is used.
99
+
100
+ ```js
101
+ import camelCase from 'camelcase';
102
+
103
+ camelCase('lorem-ipsum', {locale: 'en-US'});
104
+ //=> 'loremIpsum'
105
+
106
+ camelCase('lorem-ipsum', {locale: 'tr-TR'});
107
+ //=> 'loremİpsum'
108
+
109
+ camelCase('lorem-ipsum', {locale: ['en-US', 'en-GB']});
110
+ //=> 'loremIpsum'
111
+
112
+ camelCase('lorem-ipsum', {locale: ['tr', 'TR', 'tr-TR']});
113
+ //=> 'loremİpsum'
114
+ ```
115
+
116
+ Setting `locale: false` ignores the platform locale and uses the [Unicode Default Case Conversion](https://unicode-org.github.io/icu/userguide/transforms/casemappings.html#simple-single-character-case-mapping) algorithm:
117
+
118
+ ```js
119
+ import camelCase from 'camelcase';
120
+
121
+ // On a platform with 'tr-TR'
122
+
123
+ camelCase('lorem-ipsum');
124
+ //=> 'loremİpsum'
125
+
126
+ camelCase('lorem-ipsum', {locale: false});
127
+ //=> 'loremIpsum'
128
+ ```
129
+
130
+ ## Related
131
+
132
+ - [decamelize](https://github.com/sindresorhus/decamelize) - The inverse of this module
133
+ - [titleize](https://github.com/sindresorhus/titleize) - Capitalize every word in string
134
+ - [humanize-string](https://github.com/sindresorhus/humanize-string) - Convert a camelized/dasherized/underscored string into a humanized one
135
+ - [camelcase-keys](https://github.com/sindresorhus/camelcase-keys) - Convert object keys to camel case
@@ -0,0 +1,162 @@
1
+ <h1 align=center>
2
+ <a href="http://chaijs.com" title="Chai Documentation">
3
+ <img alt="ChaiJS" src="http://chaijs.com/img/chai-logo.png">
4
+ </a>
5
+ <br>
6
+ chai
7
+ </h1>
8
+
9
+ <p align=center>
10
+ Chai is a BDD / TDD assertion library for <a href="http://nodejs.org">node</a> and the browser that can be delightfully paired with any javascript testing framework.
11
+ </p>
12
+
13
+ <p align=center>
14
+ <a href="https://www.npmjs.com/package/chai">
15
+ <img
16
+ alt="downloads:?"
17
+ src="https://img.shields.io/npm/dm/chai.svg?style=flat-square"
18
+ />
19
+ </a>
20
+ <a href="https://www.npmjs.com/package/chai">
21
+ <img
22
+ alt="node:?"
23
+ src="https://img.shields.io/badge/node-%3E=18.0-blue.svg?style=flat-square"
24
+ />
25
+ </a>
26
+ <br/>
27
+ <a href="https://chai-slack.herokuapp.com/">
28
+ <img
29
+ alt="Join the Slack chat"
30
+ src="https://img.shields.io/badge/slack-join%20chat-E2206F.svg?style=flat-square"
31
+ />
32
+ </a>
33
+ <a href="https://gitter.im/chaijs/chai">
34
+ <img
35
+ alt="Join the Gitter chat"
36
+ src="https://img.shields.io/badge/gitter-join%20chat-D0104D.svg?style=flat-square"
37
+ />
38
+ </a>
39
+ <a href="https://opencollective.com/chaijs">
40
+ <img
41
+ alt="OpenCollective Backers"
42
+ src="https://opencollective.com/chaijs/backers/badge.svg?style=flat-square"
43
+ />
44
+ </a>
45
+ </p>
46
+
47
+ For more information or to download plugins, view the [documentation](http://chaijs.com).
48
+
49
+ ## What is Chai?
50
+
51
+ Chai is an _assertion library_, similar to Node's built-in `assert`. It makes testing much easier by giving you lots of assertions you can run against your code.
52
+
53
+ ## Installation
54
+
55
+ ### Node.js
56
+
57
+ `chai` is available on [npm](http://npmjs.org). To install it, type:
58
+
59
+ $ npm install --save-dev chai
60
+
61
+ ### Browsers
62
+
63
+ You can also use it within the browser; install via npm and use the `index.js` file found within the download. For example:
64
+
65
+ ```html
66
+ <script src="./node_modules/chai/index.js" type="module"></script>
67
+ ```
68
+
69
+ ## Usage
70
+
71
+ Import the library in your code, and then pick one of the styles you'd like to use - either `assert`, `expect` or `should`:
72
+
73
+ ```js
74
+ import { assert } from 'chai'; // Using Assert style
75
+ import { expect } from 'chai'; // Using Expect style
76
+ import { should } from 'chai'; // Using Should style
77
+ ```
78
+
79
+ ### Register the chai testing style globally
80
+
81
+ ```js
82
+ import 'chai/register-assert'; // Using Assert style
83
+ import 'chai/register-expect'; // Using Expect style
84
+ import 'chai/register-should'; // Using Should style
85
+ ```
86
+
87
+ ### Import assertion styles as local variables
88
+
89
+ ```js
90
+ import { assert } from 'chai'; // Using Assert style
91
+ import { expect } from 'chai'; // Using Expect style
92
+ import { should } from 'chai'; // Using Should style
93
+ should(); // Modifies `Object.prototype`
94
+
95
+ import { expect, use } from 'chai'; // Creates local variables `expect` and `use`; useful for plugin use
96
+ ```
97
+
98
+ ### Usage with Mocha
99
+
100
+ ```bash
101
+ mocha spec.js --require chai/register-assert.js # Using Assert style
102
+ mocha spec.js --require chai/register-expect.js # Using Expect style
103
+ mocha spec.js --require chai/register-should.js # Using Should style
104
+ ```
105
+
106
+ [Read more about these styles in our docs](http://chaijs.com/guide/styles/).
107
+
108
+ ## Plugins
109
+
110
+ Chai offers a robust Plugin architecture for extending Chai's assertions and interfaces.
111
+
112
+ - Need a plugin? View the [official plugin list](http://chaijs.com/plugins).
113
+ - Want to build a plugin? Read the [plugin api documentation](http://chaijs.com/guide/plugins/).
114
+ - Have a plugin and want it listed? Simply add the following keywords to your package.json:
115
+ - `chai-plugin`
116
+ - `browser` if your plugin works in the browser as well as Node.js
117
+ - `browser-only` if your plugin does not work with Node.js
118
+
119
+ ### Related Projects
120
+
121
+ - [chaijs / chai-docs](https://github.com/chaijs/chai-docs): The chaijs.com website source code.
122
+ - [chaijs / assertion-error](https://github.com/chaijs/assertion-error): Custom `Error` constructor thrown upon an assertion failing.
123
+ - [chaijs / deep-eql](https://github.com/chaijs/deep-eql): Improved deep equality testing for Node.js and the browser.
124
+ - [chaijs / check-error](https://github.com/chaijs/check-error): Error comparison and information related utility for Node.js and the browser.
125
+ - [chaijs / loupe](https://github.com/chaijs/loupe): Inspect utility for Node.js and browsers.
126
+ - [chaijs / pathval](https://github.com/chaijs/pathval): Object value retrieval given a string path.
127
+
128
+ ### Contributing
129
+
130
+ Thank you very much for considering to contribute!
131
+
132
+ Please make sure you follow our [Code Of Conduct](https://github.com/chaijs/chai/blob/master/CODE_OF_CONDUCT.md) and we also strongly recommend reading our [Contributing Guide](https://github.com/chaijs/chai/blob/master/CONTRIBUTING.md).
133
+
134
+ Here are a few issues other contributors frequently ran into when opening pull requests:
135
+
136
+ - Please do not commit changes to the `chai.js` build. We do it once per release.
137
+ - Before pushing your commits, please make sure you [rebase](https://github.com/chaijs/chai/blob/master/CONTRIBUTING.md#pull-requests) them.
138
+
139
+ ### Contributors
140
+
141
+ Please see the full
142
+ [Contributors Graph](https://github.com/chaijs/chai/graphs/contributors) for our
143
+ list of contributors.
144
+
145
+ ### Core Contributors
146
+
147
+ Feel free to reach out to any of the core contributors with your questions or
148
+ concerns. We will do our best to respond in a timely manner.
149
+
150
+ [![Keith Cirkel](https://avatars3.githubusercontent.com/u/118266?v=3&s=50)](https://github.com/keithamus)
151
+ [![James Garbutt](https://avatars3.githubusercontent.com/u/5677153?v=3&s=50)](https://github.com/43081j)
152
+ [![Kristján Oddsson](https://avatars3.githubusercontent.com/u/318208?v=3&s=50)](https://github.com/koddsson)
153
+
154
+ ### Core Contributor Alumni
155
+
156
+ This project would not be what it is without the contributions from our prior
157
+ core contributors, for whom we are forever grateful:
158
+
159
+ [![Jake Luer](https://avatars3.githubusercontent.com/u/58988?v=3&s=50)](https://github.com/logicalparadox)
160
+ [![Veselin Todorov](https://avatars3.githubusercontent.com/u/330048?v=3&s=50)](https://github.com/vesln)
161
+ [![Lucas Fernandes da Costa](https://avatars3.githubusercontent.com/u/6868147?v=3&s=50)](https://github.com/lucasfcosta)
162
+ [![Grant Snodgrass](https://avatars3.githubusercontent.com/u/17260989?v=3&s=50)](https://github.com/meeber)
@@ -0,0 +1,24 @@
1
+ The MIT License (X11 License)
2
+
3
+ Copyright (c) 2015-2022 Andi Dittrich
4
+
5
+ Permission is hereby granted, free of charge, to any person
6
+ obtaining a copy of this software and associated documentation
7
+ files (the "Software"), to deal in the Software without
8
+ restriction, including without limitation the rights to use,
9
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the
11
+ Software is furnished to do so, subject to the following
12
+ conditions:
13
+
14
+ The above copyright notice and this permission notice shall be
15
+ included in all copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
19
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
21
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
22
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
24
+ OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,29 @@
1
+ 1.0.5 / 2023-01-29
2
+ ==================
3
+
4
+ * perf: skip value escaping when unnecessary
5
+
6
+ 1.0.4 / 2017-09-11
7
+ ==================
8
+
9
+ * perf: skip parameter parsing when no parameters
10
+
11
+ 1.0.3 / 2017-09-10
12
+ ==================
13
+
14
+ * perf: remove argument reassignment
15
+
16
+ 1.0.2 / 2016-05-09
17
+ ==================
18
+
19
+ * perf: enable strict mode
20
+
21
+ 1.0.1 / 2015-02-13
22
+ ==================
23
+
24
+ * Improve missing `Content-Type` header error message
25
+
26
+ 1.0.0 / 2015-02-01
27
+ ==================
28
+
29
+ * Initial implementation, derived from `media-typer@0.3.0`
@@ -0,0 +1,25 @@
1
+ # Security Policies and Procedures
2
+
3
+ ## Reporting a Bug
4
+
5
+ The `cookie` team and community take all security bugs seriously. Thank
6
+ you for improving the security of the project. We appreciate your efforts and
7
+ responsible disclosure and will make every effort to acknowledge your
8
+ contributions.
9
+
10
+ Report security bugs by emailing the current owner(s) of `cookie`. This
11
+ information can be found in the npm registry using the command
12
+ `npm owner ls cookie`.
13
+ If unsure or unable to get the information from the above, open an issue
14
+ in the [project issue tracker](https://github.com/jshttp/cookie/issues)
15
+ asking for the current contact information.
16
+
17
+ To ensure the timely response to your report, please ensure that the entirety
18
+ of the report is contained within the email body and not solely behind a web
19
+ link or an attachment.
20
+
21
+ At least one owner will acknowledge your email within 48 hours, and will send a
22
+ more detailed response within 48 hours indicating the next steps in handling
23
+ your report. After the initial reply to your report, the owners will
24
+ endeavor to keep you informed of the progress towards a fix and full
25
+ announcement, and may ask for additional information or guidance.
@@ -0,0 +1,70 @@
1
+ 1.2.2 / 2024-10-29
2
+ ==================
3
+
4
+ * various metadata/documentation tweaks (incl. #51)
5
+
6
+
7
+ 1.2.1 / 2023-02-27
8
+ ==================
9
+
10
+ * update annotations for allowed secret key types (#44, thanks @jyasskin!)
11
+
12
+
13
+ 1.2.0 / 2022-02-17
14
+ ==================
15
+
16
+ * allow buffer and other node-supported types as key (#33)
17
+ * be pickier about extra content after signed portion (#40)
18
+ * some internal code clarity/cleanup improvements (#26)
19
+
20
+
21
+ 1.1.0 / 2018-01-18
22
+ ==================
23
+
24
+ * switch to built-in `crypto.timingSafeEqual` for validation instead of previous double-hash method (thank you @jodevsa!)
25
+
26
+
27
+ 1.0.7 / 2023-04-12
28
+ ==================
29
+
30
+ Later release for older node.js versions. See the [v1.0.x branch notes](https://github.com/tj/node-cookie-signature/blob/v1.0.x/History.md#107--2023-04-12).
31
+
32
+
33
+ 1.0.6 / 2015-02-03
34
+ ==================
35
+
36
+ * use `npm test` instead of `make test` to run tests
37
+ * clearer assertion messages when checking input
38
+
39
+
40
+ 1.0.5 / 2014-09-05
41
+ ==================
42
+
43
+ * add license to package.json
44
+
45
+ 1.0.4 / 2014-06-25
46
+ ==================
47
+
48
+ * corrected avoidance of timing attacks (thanks @tenbits!)
49
+
50
+ 1.0.3 / 2014-01-28
51
+ ==================
52
+
53
+ * [incorrect] fix for timing attacks
54
+
55
+ 1.0.2 / 2014-01-28
56
+ ==================
57
+
58
+ * fix missing repository warning
59
+ * fix typo in test
60
+
61
+ 1.0.1 / 2013-04-15
62
+ ==================
63
+
64
+ * Revert "Changed underlying HMAC algo. to sha512."
65
+ * Revert "Fix for timing attacks on MAC verification."
66
+
67
+ 0.0.1 / 2010-01-03
68
+ ==================
69
+
70
+ * Initial release