trimprompt 1.0.3 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli.js +2 -0
- package/dashboard.js +1 -0
- package/executor.js +1 -0
- package/filters/devops.js +1 -0
- package/filters/generic.js +1 -0
- package/filters/git.js +1 -0
- package/filters/go.js +1 -0
- package/filters/index.js +1 -0
- package/filters/js.js +1 -0
- package/filters/python.js +1 -0
- package/filters/rust.js +1 -0
- package/filters/shell.js +1 -0
- package/mcp.js +1 -0
- package/package.json +21 -29
- package/redactor.js +1 -0
- package/seed.js +1 -0
- package/shims.js +1 -0
- package/simulate.js +1 -0
- package/sync.js +1 -0
- package/tracker.js +1 -0
- package/.claude/settings.local.json +0 -7
- package/aicg-spec/README.md +0 -55
- package/aicg-spec/architecture.md +0 -263
- package/aicg-spec/dsl-spec.md +0 -109
- package/aicg-spec/insights/cargo.md +0 -46
- package/aicg-spec/insights/cloud_cli.md +0 -38
- package/aicg-spec/insights/docker_k8s.md +0 -45
- package/aicg-spec/insights/generic.md +0 -62
- package/aicg-spec/insights/git.md +0 -85
- package/aicg-spec/insights/js.md +0 -74
- package/aicg-spec/insights/python.md +0 -86
- package/aicg-spec/integrations/claude.md +0 -57
- package/aicg-spec/integrations/copilot.md +0 -69
- package/aicg-spec/integrations/cursor.md +0 -59
- package/aicg-spec/rules.yaml +0 -555
- package/aicg-spec/schema.md +0 -93
- package/aicg-spec/ui-spec.md +0 -135
- package/client/dist/cli.js +0 -256
- package/client/dist/dashboard.js +0 -102
- package/client/dist/executor.js +0 -80
- package/client/dist/filters/generic.js +0 -58
- package/client/dist/filters/git.js +0 -157
- package/client/dist/filters/index.js +0 -83
- package/client/dist/filters/js.js +0 -78
- package/client/dist/filters/python.js +0 -130
- package/client/dist/mcp.js +0 -90
- package/client/dist/redactor.js +0 -42
- package/client/dist/seed.js +0 -11
- package/client/dist/shims.js +0 -169
- package/client/dist/simulate.js +0 -76
- package/client/dist/sync.js +0 -237
- package/client/dist/tracker.js +0 -247
- package/client/node_modules/.bin/is-docker +0 -16
- package/client/node_modules/.bin/is-docker.cmd +0 -17
- package/client/node_modules/.bin/is-docker.ps1 +0 -28
- package/client/node_modules/.bin/mime +0 -16
- package/client/node_modules/.bin/mime.cmd +0 -17
- package/client/node_modules/.bin/mime.ps1 +0 -28
- package/client/node_modules/.bin/tsc +0 -16
- package/client/node_modules/.bin/tsc.cmd +0 -17
- package/client/node_modules/.bin/tsc.ps1 +0 -28
- package/client/node_modules/.bin/tsserver +0 -16
- package/client/node_modules/.bin/tsserver.cmd +0 -17
- package/client/node_modules/.bin/tsserver.ps1 +0 -28
- package/client/node_modules/.package-lock.json +0 -934
- package/client/node_modules/@types/body-parser/LICENSE +0 -21
- package/client/node_modules/@types/body-parser/README.md +0 -15
- package/client/node_modules/@types/body-parser/index.d.ts +0 -95
- package/client/node_modules/@types/body-parser/package.json +0 -64
- package/client/node_modules/@types/connect/LICENSE +0 -21
- package/client/node_modules/@types/connect/README.md +0 -15
- package/client/node_modules/@types/connect/index.d.ts +0 -91
- package/client/node_modules/@types/connect/package.json +0 -32
- package/client/node_modules/@types/express/LICENSE +0 -21
- package/client/node_modules/@types/express/README.md +0 -15
- package/client/node_modules/@types/express/index.d.ts +0 -128
- package/client/node_modules/@types/express/package.json +0 -46
- package/client/node_modules/@types/express-serve-static-core/LICENSE +0 -21
- package/client/node_modules/@types/express-serve-static-core/README.md +0 -15
- package/client/node_modules/@types/express-serve-static-core/index.d.ts +0 -1281
- package/client/node_modules/@types/express-serve-static-core/package.json +0 -51
- package/client/node_modules/@types/http-errors/LICENSE +0 -21
- package/client/node_modules/@types/http-errors/README.md +0 -15
- package/client/node_modules/@types/http-errors/index.d.ts +0 -77
- package/client/node_modules/@types/http-errors/package.json +0 -36
- package/client/node_modules/@types/mime/LICENSE +0 -21
- package/client/node_modules/@types/mime/Mime.d.ts +0 -10
- package/client/node_modules/@types/mime/README.md +0 -15
- package/client/node_modules/@types/mime/index.d.ts +0 -31
- package/client/node_modules/@types/mime/lite.d.ts +0 -7
- package/client/node_modules/@types/mime/package.json +0 -30
- package/client/node_modules/@types/node/LICENSE +0 -21
- package/client/node_modules/@types/node/README.md +0 -15
- package/client/node_modules/@types/node/assert/strict.d.ts +0 -8
- package/client/node_modules/@types/node/assert.d.ts +0 -1062
- package/client/node_modules/@types/node/async_hooks.d.ts +0 -605
- package/client/node_modules/@types/node/buffer.buffer.d.ts +0 -471
- package/client/node_modules/@types/node/buffer.d.ts +0 -1936
- package/client/node_modules/@types/node/child_process.d.ts +0 -1475
- package/client/node_modules/@types/node/cluster.d.ts +0 -577
- package/client/node_modules/@types/node/compatibility/disposable.d.ts +0 -16
- package/client/node_modules/@types/node/compatibility/index.d.ts +0 -9
- package/client/node_modules/@types/node/compatibility/indexable.d.ts +0 -20
- package/client/node_modules/@types/node/compatibility/iterators.d.ts +0 -21
- package/client/node_modules/@types/node/console.d.ts +0 -452
- package/client/node_modules/@types/node/constants.d.ts +0 -21
- package/client/node_modules/@types/node/crypto.d.ts +0 -4590
- package/client/node_modules/@types/node/dgram.d.ts +0 -597
- package/client/node_modules/@types/node/diagnostics_channel.d.ts +0 -578
- package/client/node_modules/@types/node/dns/promises.d.ts +0 -479
- package/client/node_modules/@types/node/dns.d.ts +0 -871
- package/client/node_modules/@types/node/domain.d.ts +0 -170
- package/client/node_modules/@types/node/events.d.ts +0 -977
- package/client/node_modules/@types/node/fs/promises.d.ts +0 -1270
- package/client/node_modules/@types/node/fs.d.ts +0 -4375
- package/client/node_modules/@types/node/globals.d.ts +0 -172
- package/client/node_modules/@types/node/globals.typedarray.d.ts +0 -38
- package/client/node_modules/@types/node/http.d.ts +0 -2049
- package/client/node_modules/@types/node/http2.d.ts +0 -2712
- package/client/node_modules/@types/node/https.d.ts +0 -578
- package/client/node_modules/@types/node/index.d.ts +0 -93
- package/client/node_modules/@types/node/inspector.generated.d.ts +0 -3966
- package/client/node_modules/@types/node/module.d.ts +0 -539
- package/client/node_modules/@types/node/net.d.ts +0 -1031
- package/client/node_modules/@types/node/os.d.ts +0 -506
- package/client/node_modules/@types/node/package.json +0 -140
- package/client/node_modules/@types/node/path.d.ts +0 -200
- package/client/node_modules/@types/node/perf_hooks.d.ts +0 -961
- package/client/node_modules/@types/node/process.d.ts +0 -1961
- package/client/node_modules/@types/node/punycode.d.ts +0 -117
- package/client/node_modules/@types/node/querystring.d.ts +0 -152
- package/client/node_modules/@types/node/readline/promises.d.ts +0 -162
- package/client/node_modules/@types/node/readline.d.ts +0 -589
- package/client/node_modules/@types/node/repl.d.ts +0 -430
- package/client/node_modules/@types/node/sea.d.ts +0 -153
- package/client/node_modules/@types/node/stream/consumers.d.ts +0 -38
- package/client/node_modules/@types/node/stream/promises.d.ts +0 -90
- package/client/node_modules/@types/node/stream/web.d.ts +0 -533
- package/client/node_modules/@types/node/stream.d.ts +0 -1698
- package/client/node_modules/@types/node/string_decoder.d.ts +0 -67
- package/client/node_modules/@types/node/test.d.ts +0 -1787
- package/client/node_modules/@types/node/timers/promises.d.ts +0 -108
- package/client/node_modules/@types/node/timers.d.ts +0 -286
- package/client/node_modules/@types/node/tls.d.ts +0 -1259
- package/client/node_modules/@types/node/trace_events.d.ts +0 -197
- package/client/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -468
- package/client/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -34
- package/client/node_modules/@types/node/ts5.6/index.d.ts +0 -93
- package/client/node_modules/@types/node/tty.d.ts +0 -208
- package/client/node_modules/@types/node/url.d.ts +0 -964
- package/client/node_modules/@types/node/util.d.ts +0 -2331
- package/client/node_modules/@types/node/v8.d.ts +0 -809
- package/client/node_modules/@types/node/vm.d.ts +0 -1001
- package/client/node_modules/@types/node/wasi.d.ts +0 -181
- package/client/node_modules/@types/node/web-globals/abortcontroller.d.ts +0 -34
- package/client/node_modules/@types/node/web-globals/domexception.d.ts +0 -68
- package/client/node_modules/@types/node/web-globals/events.d.ts +0 -97
- package/client/node_modules/@types/node/web-globals/fetch.d.ts +0 -55
- package/client/node_modules/@types/node/worker_threads.d.ts +0 -715
- package/client/node_modules/@types/node/zlib.d.ts +0 -598
- package/client/node_modules/@types/qs/LICENSE +0 -21
- package/client/node_modules/@types/qs/README.md +0 -15
- package/client/node_modules/@types/qs/index.d.ts +0 -83
- package/client/node_modules/@types/qs/package.json +0 -66
- package/client/node_modules/@types/range-parser/LICENSE +0 -21
- package/client/node_modules/@types/range-parser/README.md +0 -53
- package/client/node_modules/@types/range-parser/index.d.ts +0 -34
- package/client/node_modules/@types/range-parser/package.json +0 -25
- package/client/node_modules/@types/send/LICENSE +0 -21
- package/client/node_modules/@types/send/README.md +0 -15
- package/client/node_modules/@types/send/index.d.ts +0 -187
- package/client/node_modules/@types/send/package.json +0 -38
- package/client/node_modules/@types/serve-static/LICENSE +0 -21
- package/client/node_modules/@types/serve-static/README.md +0 -15
- package/client/node_modules/@types/serve-static/index.d.ts +0 -107
- package/client/node_modules/@types/serve-static/node_modules/@types/send/LICENSE +0 -21
- package/client/node_modules/@types/serve-static/node_modules/@types/send/README.md +0 -15
- package/client/node_modules/@types/serve-static/node_modules/@types/send/index.d.ts +0 -225
- package/client/node_modules/@types/serve-static/node_modules/@types/send/package.json +0 -39
- package/client/node_modules/@types/serve-static/package.json +0 -45
- package/client/node_modules/accepts/HISTORY.md +0 -243
- package/client/node_modules/accepts/LICENSE +0 -23
- package/client/node_modules/accepts/README.md +0 -140
- package/client/node_modules/accepts/index.js +0 -238
- package/client/node_modules/accepts/package.json +0 -47
- package/client/node_modules/array-flatten/LICENSE +0 -21
- package/client/node_modules/array-flatten/README.md +0 -43
- package/client/node_modules/array-flatten/array-flatten.js +0 -64
- package/client/node_modules/array-flatten/package.json +0 -39
- package/client/node_modules/body-parser/HISTORY.md +0 -686
- package/client/node_modules/body-parser/LICENSE +0 -23
- package/client/node_modules/body-parser/README.md +0 -476
- package/client/node_modules/body-parser/index.js +0 -156
- package/client/node_modules/body-parser/lib/read.js +0 -205
- package/client/node_modules/body-parser/lib/types/json.js +0 -243
- package/client/node_modules/body-parser/lib/types/raw.js +0 -101
- package/client/node_modules/body-parser/lib/types/text.js +0 -121
- package/client/node_modules/body-parser/lib/types/urlencoded.js +0 -299
- package/client/node_modules/body-parser/package.json +0 -55
- package/client/node_modules/bytes/History.md +0 -97
- package/client/node_modules/bytes/LICENSE +0 -23
- package/client/node_modules/bytes/Readme.md +0 -152
- package/client/node_modules/bytes/index.js +0 -170
- package/client/node_modules/bytes/package.json +0 -42
- package/client/node_modules/call-bind-apply-helpers/.eslintrc +0 -17
- package/client/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +0 -12
- package/client/node_modules/call-bind-apply-helpers/.nycrc +0 -9
- package/client/node_modules/call-bind-apply-helpers/CHANGELOG.md +0 -30
- package/client/node_modules/call-bind-apply-helpers/LICENSE +0 -21
- package/client/node_modules/call-bind-apply-helpers/README.md +0 -62
- package/client/node_modules/call-bind-apply-helpers/actualApply.d.ts +0 -1
- package/client/node_modules/call-bind-apply-helpers/actualApply.js +0 -10
- package/client/node_modules/call-bind-apply-helpers/applyBind.d.ts +0 -19
- package/client/node_modules/call-bind-apply-helpers/applyBind.js +0 -10
- package/client/node_modules/call-bind-apply-helpers/functionApply.d.ts +0 -1
- package/client/node_modules/call-bind-apply-helpers/functionApply.js +0 -4
- package/client/node_modules/call-bind-apply-helpers/functionCall.d.ts +0 -1
- package/client/node_modules/call-bind-apply-helpers/functionCall.js +0 -4
- package/client/node_modules/call-bind-apply-helpers/index.d.ts +0 -64
- package/client/node_modules/call-bind-apply-helpers/index.js +0 -15
- package/client/node_modules/call-bind-apply-helpers/package.json +0 -85
- package/client/node_modules/call-bind-apply-helpers/reflectApply.d.ts +0 -3
- package/client/node_modules/call-bind-apply-helpers/reflectApply.js +0 -4
- package/client/node_modules/call-bind-apply-helpers/test/index.js +0 -63
- package/client/node_modules/call-bind-apply-helpers/tsconfig.json +0 -9
- package/client/node_modules/call-bound/.eslintrc +0 -13
- package/client/node_modules/call-bound/.github/FUNDING.yml +0 -12
- package/client/node_modules/call-bound/.nycrc +0 -9
- package/client/node_modules/call-bound/CHANGELOG.md +0 -42
- package/client/node_modules/call-bound/LICENSE +0 -21
- package/client/node_modules/call-bound/README.md +0 -53
- package/client/node_modules/call-bound/index.d.ts +0 -94
- package/client/node_modules/call-bound/index.js +0 -19
- package/client/node_modules/call-bound/package.json +0 -99
- package/client/node_modules/call-bound/test/index.js +0 -61
- package/client/node_modules/call-bound/tsconfig.json +0 -10
- package/client/node_modules/commander/LICENSE +0 -22
- package/client/node_modules/commander/Readme.md +0 -1148
- package/client/node_modules/commander/esm.mjs +0 -16
- package/client/node_modules/commander/index.js +0 -26
- package/client/node_modules/commander/lib/argument.js +0 -145
- package/client/node_modules/commander/lib/command.js +0 -2179
- package/client/node_modules/commander/lib/error.js +0 -43
- package/client/node_modules/commander/lib/help.js +0 -462
- package/client/node_modules/commander/lib/option.js +0 -329
- package/client/node_modules/commander/lib/suggestSimilar.js +0 -100
- package/client/node_modules/commander/package-support.json +0 -16
- package/client/node_modules/commander/package.json +0 -80
- package/client/node_modules/commander/typings/esm.d.mts +0 -3
- package/client/node_modules/commander/typings/index.d.ts +0 -884
- package/client/node_modules/content-disposition/HISTORY.md +0 -60
- package/client/node_modules/content-disposition/LICENSE +0 -22
- package/client/node_modules/content-disposition/README.md +0 -142
- package/client/node_modules/content-disposition/index.js +0 -458
- package/client/node_modules/content-disposition/package.json +0 -44
- package/client/node_modules/content-type/HISTORY.md +0 -29
- package/client/node_modules/content-type/LICENSE +0 -22
- package/client/node_modules/content-type/README.md +0 -94
- package/client/node_modules/content-type/index.js +0 -225
- package/client/node_modules/content-type/package.json +0 -42
- package/client/node_modules/cookie/LICENSE +0 -24
- package/client/node_modules/cookie/README.md +0 -317
- package/client/node_modules/cookie/SECURITY.md +0 -25
- package/client/node_modules/cookie/index.js +0 -335
- package/client/node_modules/cookie/package.json +0 -44
- package/client/node_modules/cookie-signature/History.md +0 -42
- package/client/node_modules/cookie-signature/Readme.md +0 -42
- package/client/node_modules/cookie-signature/index.js +0 -51
- package/client/node_modules/cookie-signature/package.json +0 -18
- package/client/node_modules/debug/.coveralls.yml +0 -1
- package/client/node_modules/debug/.eslintrc +0 -11
- package/client/node_modules/debug/.travis.yml +0 -14
- package/client/node_modules/debug/CHANGELOG.md +0 -362
- package/client/node_modules/debug/LICENSE +0 -19
- package/client/node_modules/debug/Makefile +0 -50
- package/client/node_modules/debug/README.md +0 -312
- package/client/node_modules/debug/component.json +0 -19
- package/client/node_modules/debug/karma.conf.js +0 -70
- package/client/node_modules/debug/node.js +0 -1
- package/client/node_modules/debug/package.json +0 -49
- package/client/node_modules/debug/src/browser.js +0 -185
- package/client/node_modules/debug/src/debug.js +0 -202
- package/client/node_modules/debug/src/index.js +0 -10
- package/client/node_modules/debug/src/inspector-log.js +0 -15
- package/client/node_modules/debug/src/node.js +0 -248
- package/client/node_modules/define-lazy-prop/index.d.ts +0 -33
- package/client/node_modules/define-lazy-prop/index.js +0 -19
- package/client/node_modules/define-lazy-prop/license +0 -9
- package/client/node_modules/define-lazy-prop/package.json +0 -48
- package/client/node_modules/define-lazy-prop/readme.md +0 -64
- package/client/node_modules/depd/History.md +0 -103
- package/client/node_modules/depd/LICENSE +0 -22
- package/client/node_modules/depd/Readme.md +0 -280
- package/client/node_modules/depd/index.js +0 -538
- package/client/node_modules/depd/lib/browser/index.js +0 -77
- package/client/node_modules/depd/package.json +0 -45
- package/client/node_modules/destroy/LICENSE +0 -23
- package/client/node_modules/destroy/README.md +0 -63
- package/client/node_modules/destroy/index.js +0 -209
- package/client/node_modules/destroy/package.json +0 -48
- package/client/node_modules/dunder-proto/.eslintrc +0 -5
- package/client/node_modules/dunder-proto/.github/FUNDING.yml +0 -12
- package/client/node_modules/dunder-proto/.nycrc +0 -13
- package/client/node_modules/dunder-proto/CHANGELOG.md +0 -24
- package/client/node_modules/dunder-proto/LICENSE +0 -21
- package/client/node_modules/dunder-proto/README.md +0 -54
- package/client/node_modules/dunder-proto/get.d.ts +0 -5
- package/client/node_modules/dunder-proto/get.js +0 -30
- package/client/node_modules/dunder-proto/package.json +0 -76
- package/client/node_modules/dunder-proto/set.d.ts +0 -5
- package/client/node_modules/dunder-proto/set.js +0 -35
- package/client/node_modules/dunder-proto/test/get.js +0 -34
- package/client/node_modules/dunder-proto/test/index.js +0 -4
- package/client/node_modules/dunder-proto/test/set.js +0 -50
- package/client/node_modules/dunder-proto/tsconfig.json +0 -9
- package/client/node_modules/ee-first/LICENSE +0 -22
- package/client/node_modules/ee-first/README.md +0 -80
- package/client/node_modules/ee-first/index.js +0 -95
- package/client/node_modules/ee-first/package.json +0 -29
- package/client/node_modules/encodeurl/LICENSE +0 -22
- package/client/node_modules/encodeurl/README.md +0 -109
- package/client/node_modules/encodeurl/index.js +0 -60
- package/client/node_modules/encodeurl/package.json +0 -40
- package/client/node_modules/es-define-property/.eslintrc +0 -13
- package/client/node_modules/es-define-property/.github/FUNDING.yml +0 -12
- package/client/node_modules/es-define-property/.nycrc +0 -9
- package/client/node_modules/es-define-property/CHANGELOG.md +0 -29
- package/client/node_modules/es-define-property/LICENSE +0 -21
- package/client/node_modules/es-define-property/README.md +0 -49
- package/client/node_modules/es-define-property/index.d.ts +0 -3
- package/client/node_modules/es-define-property/index.js +0 -14
- package/client/node_modules/es-define-property/package.json +0 -81
- package/client/node_modules/es-define-property/test/index.js +0 -56
- package/client/node_modules/es-define-property/tsconfig.json +0 -10
- package/client/node_modules/es-errors/.eslintrc +0 -5
- package/client/node_modules/es-errors/.github/FUNDING.yml +0 -12
- package/client/node_modules/es-errors/CHANGELOG.md +0 -40
- package/client/node_modules/es-errors/LICENSE +0 -21
- package/client/node_modules/es-errors/README.md +0 -55
- package/client/node_modules/es-errors/eval.d.ts +0 -3
- package/client/node_modules/es-errors/eval.js +0 -4
- package/client/node_modules/es-errors/index.d.ts +0 -3
- package/client/node_modules/es-errors/index.js +0 -4
- package/client/node_modules/es-errors/package.json +0 -80
- package/client/node_modules/es-errors/range.d.ts +0 -3
- package/client/node_modules/es-errors/range.js +0 -4
- package/client/node_modules/es-errors/ref.d.ts +0 -3
- package/client/node_modules/es-errors/ref.js +0 -4
- package/client/node_modules/es-errors/syntax.d.ts +0 -3
- package/client/node_modules/es-errors/syntax.js +0 -4
- package/client/node_modules/es-errors/test/index.js +0 -19
- package/client/node_modules/es-errors/tsconfig.json +0 -49
- package/client/node_modules/es-errors/type.d.ts +0 -3
- package/client/node_modules/es-errors/type.js +0 -4
- package/client/node_modules/es-errors/uri.d.ts +0 -3
- package/client/node_modules/es-errors/uri.js +0 -4
- package/client/node_modules/es-object-atoms/.eslintrc +0 -16
- package/client/node_modules/es-object-atoms/.github/FUNDING.yml +0 -12
- package/client/node_modules/es-object-atoms/CHANGELOG.md +0 -44
- package/client/node_modules/es-object-atoms/LICENSE +0 -21
- package/client/node_modules/es-object-atoms/README.md +0 -63
- package/client/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +0 -3
- package/client/node_modules/es-object-atoms/RequireObjectCoercible.js +0 -11
- package/client/node_modules/es-object-atoms/ToObject.d.ts +0 -7
- package/client/node_modules/es-object-atoms/ToObject.js +0 -10
- package/client/node_modules/es-object-atoms/index.d.ts +0 -3
- package/client/node_modules/es-object-atoms/index.js +0 -4
- package/client/node_modules/es-object-atoms/isObject.d.ts +0 -3
- package/client/node_modules/es-object-atoms/isObject.js +0 -6
- package/client/node_modules/es-object-atoms/package.json +0 -79
- package/client/node_modules/es-object-atoms/test/index.js +0 -38
- package/client/node_modules/es-object-atoms/tsconfig.json +0 -7
- package/client/node_modules/escape-html/LICENSE +0 -24
- package/client/node_modules/escape-html/Readme.md +0 -43
- package/client/node_modules/escape-html/index.js +0 -78
- package/client/node_modules/escape-html/package.json +0 -24
- package/client/node_modules/etag/HISTORY.md +0 -83
- package/client/node_modules/etag/LICENSE +0 -22
- package/client/node_modules/etag/README.md +0 -159
- package/client/node_modules/etag/index.js +0 -131
- package/client/node_modules/etag/package.json +0 -47
- package/client/node_modules/express/History.md +0 -3676
- package/client/node_modules/express/LICENSE +0 -24
- package/client/node_modules/express/Readme.md +0 -260
- package/client/node_modules/express/index.js +0 -11
- package/client/node_modules/express/lib/application.js +0 -661
- package/client/node_modules/express/lib/express.js +0 -116
- package/client/node_modules/express/lib/middleware/init.js +0 -43
- package/client/node_modules/express/lib/middleware/query.js +0 -47
- package/client/node_modules/express/lib/request.js +0 -525
- package/client/node_modules/express/lib/response.js +0 -1179
- package/client/node_modules/express/lib/router/index.js +0 -673
- package/client/node_modules/express/lib/router/layer.js +0 -181
- package/client/node_modules/express/lib/router/route.js +0 -230
- package/client/node_modules/express/lib/utils.js +0 -304
- package/client/node_modules/express/lib/view.js +0 -182
- package/client/node_modules/express/package.json +0 -102
- package/client/node_modules/finalhandler/HISTORY.md +0 -216
- package/client/node_modules/finalhandler/LICENSE +0 -22
- package/client/node_modules/finalhandler/README.md +0 -147
- package/client/node_modules/finalhandler/SECURITY.md +0 -25
- package/client/node_modules/finalhandler/index.js +0 -341
- package/client/node_modules/finalhandler/package.json +0 -47
- package/client/node_modules/forwarded/HISTORY.md +0 -21
- package/client/node_modules/forwarded/LICENSE +0 -22
- package/client/node_modules/forwarded/README.md +0 -57
- package/client/node_modules/forwarded/index.js +0 -90
- package/client/node_modules/forwarded/package.json +0 -45
- package/client/node_modules/fresh/HISTORY.md +0 -70
- package/client/node_modules/fresh/LICENSE +0 -23
- package/client/node_modules/fresh/README.md +0 -119
- package/client/node_modules/fresh/index.js +0 -137
- package/client/node_modules/fresh/package.json +0 -46
- package/client/node_modules/function-bind/.eslintrc +0 -21
- package/client/node_modules/function-bind/.github/FUNDING.yml +0 -12
- package/client/node_modules/function-bind/.github/SECURITY.md +0 -3
- package/client/node_modules/function-bind/.nycrc +0 -13
- package/client/node_modules/function-bind/CHANGELOG.md +0 -136
- package/client/node_modules/function-bind/LICENSE +0 -20
- package/client/node_modules/function-bind/README.md +0 -46
- package/client/node_modules/function-bind/implementation.js +0 -84
- package/client/node_modules/function-bind/index.js +0 -5
- package/client/node_modules/function-bind/package.json +0 -87
- package/client/node_modules/function-bind/test/.eslintrc +0 -9
- package/client/node_modules/function-bind/test/index.js +0 -252
- package/client/node_modules/get-intrinsic/.eslintrc +0 -42
- package/client/node_modules/get-intrinsic/.github/FUNDING.yml +0 -12
- package/client/node_modules/get-intrinsic/.nycrc +0 -9
- package/client/node_modules/get-intrinsic/CHANGELOG.md +0 -186
- package/client/node_modules/get-intrinsic/LICENSE +0 -21
- package/client/node_modules/get-intrinsic/README.md +0 -71
- package/client/node_modules/get-intrinsic/index.js +0 -378
- package/client/node_modules/get-intrinsic/package.json +0 -97
- package/client/node_modules/get-intrinsic/test/GetIntrinsic.js +0 -274
- package/client/node_modules/get-proto/.eslintrc +0 -10
- package/client/node_modules/get-proto/.github/FUNDING.yml +0 -12
- package/client/node_modules/get-proto/.nycrc +0 -9
- package/client/node_modules/get-proto/CHANGELOG.md +0 -21
- package/client/node_modules/get-proto/LICENSE +0 -21
- package/client/node_modules/get-proto/Object.getPrototypeOf.d.ts +0 -5
- package/client/node_modules/get-proto/Object.getPrototypeOf.js +0 -6
- package/client/node_modules/get-proto/README.md +0 -50
- package/client/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +0 -3
- package/client/node_modules/get-proto/Reflect.getPrototypeOf.js +0 -4
- package/client/node_modules/get-proto/index.d.ts +0 -5
- package/client/node_modules/get-proto/index.js +0 -27
- package/client/node_modules/get-proto/package.json +0 -81
- package/client/node_modules/get-proto/test/index.js +0 -68
- package/client/node_modules/get-proto/tsconfig.json +0 -9
- package/client/node_modules/gopd/.eslintrc +0 -16
- package/client/node_modules/gopd/.github/FUNDING.yml +0 -12
- package/client/node_modules/gopd/CHANGELOG.md +0 -45
- package/client/node_modules/gopd/LICENSE +0 -21
- package/client/node_modules/gopd/README.md +0 -40
- package/client/node_modules/gopd/gOPD.d.ts +0 -1
- package/client/node_modules/gopd/gOPD.js +0 -4
- package/client/node_modules/gopd/index.d.ts +0 -5
- package/client/node_modules/gopd/index.js +0 -15
- package/client/node_modules/gopd/package.json +0 -77
- package/client/node_modules/gopd/test/index.js +0 -36
- package/client/node_modules/gopd/tsconfig.json +0 -9
- package/client/node_modules/has-symbols/.eslintrc +0 -11
- package/client/node_modules/has-symbols/.github/FUNDING.yml +0 -12
- package/client/node_modules/has-symbols/.nycrc +0 -9
- package/client/node_modules/has-symbols/CHANGELOG.md +0 -91
- package/client/node_modules/has-symbols/LICENSE +0 -21
- package/client/node_modules/has-symbols/README.md +0 -46
- package/client/node_modules/has-symbols/index.d.ts +0 -3
- package/client/node_modules/has-symbols/index.js +0 -14
- package/client/node_modules/has-symbols/package.json +0 -111
- package/client/node_modules/has-symbols/shams.d.ts +0 -3
- package/client/node_modules/has-symbols/shams.js +0 -45
- package/client/node_modules/has-symbols/test/index.js +0 -22
- package/client/node_modules/has-symbols/test/shams/core-js.js +0 -29
- package/client/node_modules/has-symbols/test/shams/get-own-property-symbols.js +0 -29
- package/client/node_modules/has-symbols/test/tests.js +0 -58
- package/client/node_modules/has-symbols/tsconfig.json +0 -10
- package/client/node_modules/hasown/.github/FUNDING.yml +0 -12
- package/client/node_modules/hasown/.nycrc +0 -13
- package/client/node_modules/hasown/CHANGELOG.md +0 -58
- package/client/node_modules/hasown/LICENSE +0 -21
- package/client/node_modules/hasown/README.md +0 -40
- package/client/node_modules/hasown/eslint.config.mjs +0 -6
- package/client/node_modules/hasown/index.d.ts +0 -3
- package/client/node_modules/hasown/index.js +0 -8
- package/client/node_modules/hasown/package.json +0 -91
- package/client/node_modules/hasown/tsconfig.json +0 -6
- package/client/node_modules/http-errors/HISTORY.md +0 -186
- package/client/node_modules/http-errors/LICENSE +0 -23
- package/client/node_modules/http-errors/README.md +0 -169
- package/client/node_modules/http-errors/index.js +0 -290
- package/client/node_modules/http-errors/package.json +0 -54
- package/client/node_modules/iconv-lite/Changelog.md +0 -162
- package/client/node_modules/iconv-lite/LICENSE +0 -21
- package/client/node_modules/iconv-lite/README.md +0 -156
- package/client/node_modules/iconv-lite/encodings/dbcs-codec.js +0 -555
- package/client/node_modules/iconv-lite/encodings/dbcs-data.js +0 -176
- package/client/node_modules/iconv-lite/encodings/index.js +0 -22
- package/client/node_modules/iconv-lite/encodings/internal.js +0 -188
- package/client/node_modules/iconv-lite/encodings/sbcs-codec.js +0 -72
- package/client/node_modules/iconv-lite/encodings/sbcs-data-generated.js +0 -451
- package/client/node_modules/iconv-lite/encodings/sbcs-data.js +0 -174
- package/client/node_modules/iconv-lite/encodings/tables/big5-added.json +0 -122
- package/client/node_modules/iconv-lite/encodings/tables/cp936.json +0 -264
- package/client/node_modules/iconv-lite/encodings/tables/cp949.json +0 -273
- package/client/node_modules/iconv-lite/encodings/tables/cp950.json +0 -177
- package/client/node_modules/iconv-lite/encodings/tables/eucjp.json +0 -182
- package/client/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +0 -1
- package/client/node_modules/iconv-lite/encodings/tables/gbk-added.json +0 -55
- package/client/node_modules/iconv-lite/encodings/tables/shiftjis.json +0 -125
- package/client/node_modules/iconv-lite/encodings/utf16.js +0 -177
- package/client/node_modules/iconv-lite/encodings/utf7.js +0 -290
- package/client/node_modules/iconv-lite/lib/bom-handling.js +0 -52
- package/client/node_modules/iconv-lite/lib/extend-node.js +0 -217
- package/client/node_modules/iconv-lite/lib/index.d.ts +0 -24
- package/client/node_modules/iconv-lite/lib/index.js +0 -153
- package/client/node_modules/iconv-lite/lib/streams.js +0 -121
- package/client/node_modules/iconv-lite/package.json +0 -46
- package/client/node_modules/inherits/LICENSE +0 -16
- package/client/node_modules/inherits/README.md +0 -42
- package/client/node_modules/inherits/inherits.js +0 -9
- package/client/node_modules/inherits/inherits_browser.js +0 -27
- package/client/node_modules/inherits/package.json +0 -29
- package/client/node_modules/ipaddr.js/LICENSE +0 -19
- package/client/node_modules/ipaddr.js/README.md +0 -233
- package/client/node_modules/ipaddr.js/ipaddr.min.js +0 -1
- package/client/node_modules/ipaddr.js/lib/ipaddr.js +0 -673
- package/client/node_modules/ipaddr.js/lib/ipaddr.js.d.ts +0 -68
- package/client/node_modules/ipaddr.js/package.json +0 -35
- package/client/node_modules/is-docker/cli.js +0 -5
- package/client/node_modules/is-docker/index.d.ts +0 -15
- package/client/node_modules/is-docker/index.js +0 -29
- package/client/node_modules/is-docker/license +0 -9
- package/client/node_modules/is-docker/package.json +0 -42
- package/client/node_modules/is-docker/readme.md +0 -27
- package/client/node_modules/is-wsl/index.d.ts +0 -15
- package/client/node_modules/is-wsl/index.js +0 -31
- package/client/node_modules/is-wsl/license +0 -9
- package/client/node_modules/is-wsl/package.json +0 -45
- package/client/node_modules/is-wsl/readme.md +0 -36
- package/client/node_modules/math-intrinsics/.eslintrc +0 -16
- package/client/node_modules/math-intrinsics/.github/FUNDING.yml +0 -12
- package/client/node_modules/math-intrinsics/CHANGELOG.md +0 -24
- package/client/node_modules/math-intrinsics/LICENSE +0 -21
- package/client/node_modules/math-intrinsics/README.md +0 -50
- package/client/node_modules/math-intrinsics/abs.d.ts +0 -1
- package/client/node_modules/math-intrinsics/abs.js +0 -4
- package/client/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +0 -3
- package/client/node_modules/math-intrinsics/constants/maxArrayLength.js +0 -4
- package/client/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +0 -3
- package/client/node_modules/math-intrinsics/constants/maxSafeInteger.js +0 -5
- package/client/node_modules/math-intrinsics/constants/maxValue.d.ts +0 -3
- package/client/node_modules/math-intrinsics/constants/maxValue.js +0 -5
- package/client/node_modules/math-intrinsics/floor.d.ts +0 -1
- package/client/node_modules/math-intrinsics/floor.js +0 -4
- package/client/node_modules/math-intrinsics/isFinite.d.ts +0 -3
- package/client/node_modules/math-intrinsics/isFinite.js +0 -12
- package/client/node_modules/math-intrinsics/isInteger.d.ts +0 -3
- package/client/node_modules/math-intrinsics/isInteger.js +0 -16
- package/client/node_modules/math-intrinsics/isNaN.d.ts +0 -1
- package/client/node_modules/math-intrinsics/isNaN.js +0 -6
- package/client/node_modules/math-intrinsics/isNegativeZero.d.ts +0 -3
- package/client/node_modules/math-intrinsics/isNegativeZero.js +0 -6
- package/client/node_modules/math-intrinsics/max.d.ts +0 -1
- package/client/node_modules/math-intrinsics/max.js +0 -4
- package/client/node_modules/math-intrinsics/min.d.ts +0 -1
- package/client/node_modules/math-intrinsics/min.js +0 -4
- package/client/node_modules/math-intrinsics/mod.d.ts +0 -3
- package/client/node_modules/math-intrinsics/mod.js +0 -9
- package/client/node_modules/math-intrinsics/package.json +0 -86
- package/client/node_modules/math-intrinsics/pow.d.ts +0 -1
- package/client/node_modules/math-intrinsics/pow.js +0 -4
- package/client/node_modules/math-intrinsics/round.d.ts +0 -1
- package/client/node_modules/math-intrinsics/round.js +0 -4
- package/client/node_modules/math-intrinsics/sign.d.ts +0 -3
- package/client/node_modules/math-intrinsics/sign.js +0 -11
- package/client/node_modules/math-intrinsics/test/index.js +0 -192
- package/client/node_modules/math-intrinsics/tsconfig.json +0 -3
- package/client/node_modules/media-typer/HISTORY.md +0 -22
- package/client/node_modules/media-typer/LICENSE +0 -22
- package/client/node_modules/media-typer/README.md +0 -81
- package/client/node_modules/media-typer/index.js +0 -270
- package/client/node_modules/media-typer/package.json +0 -26
- package/client/node_modules/merge-descriptors/HISTORY.md +0 -21
- package/client/node_modules/merge-descriptors/LICENSE +0 -23
- package/client/node_modules/merge-descriptors/README.md +0 -49
- package/client/node_modules/merge-descriptors/index.js +0 -60
- package/client/node_modules/merge-descriptors/package.json +0 -39
- package/client/node_modules/methods/HISTORY.md +0 -29
- package/client/node_modules/methods/LICENSE +0 -24
- package/client/node_modules/methods/README.md +0 -51
- package/client/node_modules/methods/index.js +0 -69
- package/client/node_modules/methods/package.json +0 -36
- package/client/node_modules/mime/CHANGELOG.md +0 -164
- package/client/node_modules/mime/LICENSE +0 -21
- package/client/node_modules/mime/README.md +0 -90
- package/client/node_modules/mime/cli.js +0 -8
- package/client/node_modules/mime/mime.js +0 -108
- package/client/node_modules/mime/package.json +0 -44
- package/client/node_modules/mime/src/build.js +0 -53
- package/client/node_modules/mime/src/test.js +0 -60
- package/client/node_modules/mime/types.json +0 -1
- package/client/node_modules/mime-db/HISTORY.md +0 -507
- package/client/node_modules/mime-db/LICENSE +0 -23
- package/client/node_modules/mime-db/README.md +0 -100
- package/client/node_modules/mime-db/db.json +0 -8519
- package/client/node_modules/mime-db/index.js +0 -12
- package/client/node_modules/mime-db/package.json +0 -60
- package/client/node_modules/mime-types/HISTORY.md +0 -397
- package/client/node_modules/mime-types/LICENSE +0 -23
- package/client/node_modules/mime-types/README.md +0 -113
- package/client/node_modules/mime-types/index.js +0 -188
- package/client/node_modules/mime-types/package.json +0 -44
- package/client/node_modules/ms/index.js +0 -152
- package/client/node_modules/ms/license.md +0 -21
- package/client/node_modules/ms/package.json +0 -37
- package/client/node_modules/ms/readme.md +0 -51
- package/client/node_modules/negotiator/HISTORY.md +0 -108
- package/client/node_modules/negotiator/LICENSE +0 -24
- package/client/node_modules/negotiator/README.md +0 -203
- package/client/node_modules/negotiator/index.js +0 -82
- package/client/node_modules/negotiator/lib/charset.js +0 -169
- package/client/node_modules/negotiator/lib/encoding.js +0 -184
- package/client/node_modules/negotiator/lib/language.js +0 -179
- package/client/node_modules/negotiator/lib/mediaType.js +0 -294
- package/client/node_modules/negotiator/package.json +0 -42
- package/client/node_modules/object-inspect/.eslintrc +0 -53
- package/client/node_modules/object-inspect/.github/FUNDING.yml +0 -12
- package/client/node_modules/object-inspect/.nycrc +0 -13
- package/client/node_modules/object-inspect/CHANGELOG.md +0 -424
- package/client/node_modules/object-inspect/LICENSE +0 -21
- package/client/node_modules/object-inspect/example/all.js +0 -23
- package/client/node_modules/object-inspect/example/circular.js +0 -6
- package/client/node_modules/object-inspect/example/fn.js +0 -5
- package/client/node_modules/object-inspect/example/inspect.js +0 -10
- package/client/node_modules/object-inspect/index.js +0 -544
- package/client/node_modules/object-inspect/package-support.json +0 -20
- package/client/node_modules/object-inspect/package.json +0 -105
- package/client/node_modules/object-inspect/readme.markdown +0 -84
- package/client/node_modules/object-inspect/test/bigint.js +0 -58
- package/client/node_modules/object-inspect/test/browser/dom.js +0 -15
- package/client/node_modules/object-inspect/test/circular.js +0 -16
- package/client/node_modules/object-inspect/test/deep.js +0 -12
- package/client/node_modules/object-inspect/test/element.js +0 -53
- package/client/node_modules/object-inspect/test/err.js +0 -48
- package/client/node_modules/object-inspect/test/fakes.js +0 -29
- package/client/node_modules/object-inspect/test/fn.js +0 -76
- package/client/node_modules/object-inspect/test/global.js +0 -17
- package/client/node_modules/object-inspect/test/has.js +0 -15
- package/client/node_modules/object-inspect/test/holes.js +0 -15
- package/client/node_modules/object-inspect/test/indent-option.js +0 -271
- package/client/node_modules/object-inspect/test/inspect.js +0 -139
- package/client/node_modules/object-inspect/test/lowbyte.js +0 -12
- package/client/node_modules/object-inspect/test/number.js +0 -58
- package/client/node_modules/object-inspect/test/quoteStyle.js +0 -26
- package/client/node_modules/object-inspect/test/toStringTag.js +0 -40
- package/client/node_modules/object-inspect/test/undef.js +0 -12
- package/client/node_modules/object-inspect/test/values.js +0 -261
- package/client/node_modules/object-inspect/test-core-js.js +0 -26
- package/client/node_modules/object-inspect/util.inspect.js +0 -1
- package/client/node_modules/on-finished/HISTORY.md +0 -98
- package/client/node_modules/on-finished/LICENSE +0 -23
- package/client/node_modules/on-finished/README.md +0 -162
- package/client/node_modules/on-finished/index.js +0 -234
- package/client/node_modules/on-finished/package.json +0 -39
- package/client/node_modules/open/index.d.ts +0 -153
- package/client/node_modules/open/index.js +0 -334
- package/client/node_modules/open/license +0 -9
- package/client/node_modules/open/package.json +0 -61
- package/client/node_modules/open/readme.md +0 -171
- package/client/node_modules/open/xdg-open +0 -1066
- package/client/node_modules/parseurl/HISTORY.md +0 -58
- package/client/node_modules/parseurl/LICENSE +0 -24
- package/client/node_modules/parseurl/README.md +0 -133
- package/client/node_modules/parseurl/index.js +0 -158
- package/client/node_modules/parseurl/package.json +0 -40
- package/client/node_modules/path-to-regexp/LICENSE +0 -21
- package/client/node_modules/path-to-regexp/Readme.md +0 -35
- package/client/node_modules/path-to-regexp/index.js +0 -158
- package/client/node_modules/path-to-regexp/package.json +0 -30
- package/client/node_modules/proxy-addr/HISTORY.md +0 -161
- package/client/node_modules/proxy-addr/LICENSE +0 -22
- package/client/node_modules/proxy-addr/README.md +0 -139
- package/client/node_modules/proxy-addr/index.js +0 -327
- package/client/node_modules/proxy-addr/package.json +0 -47
- package/client/node_modules/qs/.editorconfig +0 -46
- package/client/node_modules/qs/.github/FUNDING.yml +0 -12
- package/client/node_modules/qs/.github/SECURITY.md +0 -11
- package/client/node_modules/qs/.github/THREAT_MODEL.md +0 -78
- package/client/node_modules/qs/.nycrc +0 -13
- package/client/node_modules/qs/CHANGELOG.md +0 -822
- package/client/node_modules/qs/LICENSE.md +0 -29
- package/client/node_modules/qs/README.md +0 -758
- package/client/node_modules/qs/dist/qs.js +0 -141
- package/client/node_modules/qs/eslint.config.mjs +0 -57
- package/client/node_modules/qs/lib/formats.js +0 -23
- package/client/node_modules/qs/lib/index.js +0 -11
- package/client/node_modules/qs/lib/parse.js +0 -403
- package/client/node_modules/qs/lib/stringify.js +0 -363
- package/client/node_modules/qs/lib/utils.js +0 -342
- package/client/node_modules/qs/package.json +0 -94
- package/client/node_modules/qs/test/empty-keys-cases.js +0 -267
- package/client/node_modules/qs/test/parse.js +0 -1703
- package/client/node_modules/qs/test/stringify.js +0 -1448
- package/client/node_modules/qs/test/utils.js +0 -432
- package/client/node_modules/range-parser/HISTORY.md +0 -56
- package/client/node_modules/range-parser/LICENSE +0 -23
- package/client/node_modules/range-parser/README.md +0 -84
- package/client/node_modules/range-parser/index.js +0 -162
- package/client/node_modules/range-parser/package.json +0 -44
- package/client/node_modules/raw-body/LICENSE +0 -22
- package/client/node_modules/raw-body/README.md +0 -223
- package/client/node_modules/raw-body/index.d.ts +0 -87
- package/client/node_modules/raw-body/index.js +0 -336
- package/client/node_modules/raw-body/package.json +0 -47
- package/client/node_modules/safe-buffer/LICENSE +0 -21
- package/client/node_modules/safe-buffer/README.md +0 -584
- package/client/node_modules/safe-buffer/index.d.ts +0 -187
- package/client/node_modules/safe-buffer/index.js +0 -65
- package/client/node_modules/safe-buffer/package.json +0 -51
- package/client/node_modules/safer-buffer/LICENSE +0 -21
- package/client/node_modules/safer-buffer/Porting-Buffer.md +0 -268
- package/client/node_modules/safer-buffer/Readme.md +0 -156
- package/client/node_modules/safer-buffer/dangerous.js +0 -58
- package/client/node_modules/safer-buffer/package.json +0 -34
- package/client/node_modules/safer-buffer/safer.js +0 -77
- package/client/node_modules/safer-buffer/tests.js +0 -406
- package/client/node_modules/send/HISTORY.md +0 -538
- package/client/node_modules/send/LICENSE +0 -23
- package/client/node_modules/send/README.md +0 -327
- package/client/node_modules/send/SECURITY.md +0 -24
- package/client/node_modules/send/index.js +0 -1142
- package/client/node_modules/send/node_modules/ms/index.js +0 -162
- package/client/node_modules/send/node_modules/ms/license.md +0 -21
- package/client/node_modules/send/node_modules/ms/package.json +0 -38
- package/client/node_modules/send/node_modules/ms/readme.md +0 -59
- package/client/node_modules/send/package.json +0 -62
- package/client/node_modules/serve-static/HISTORY.md +0 -493
- package/client/node_modules/serve-static/LICENSE +0 -25
- package/client/node_modules/serve-static/README.md +0 -257
- package/client/node_modules/serve-static/index.js +0 -209
- package/client/node_modules/serve-static/package.json +0 -42
- package/client/node_modules/setprototypeof/LICENSE +0 -13
- package/client/node_modules/setprototypeof/README.md +0 -31
- package/client/node_modules/setprototypeof/index.d.ts +0 -2
- package/client/node_modules/setprototypeof/index.js +0 -17
- package/client/node_modules/setprototypeof/package.json +0 -38
- package/client/node_modules/setprototypeof/test/index.js +0 -24
- package/client/node_modules/side-channel/.editorconfig +0 -9
- package/client/node_modules/side-channel/.eslintrc +0 -12
- package/client/node_modules/side-channel/.github/FUNDING.yml +0 -12
- package/client/node_modules/side-channel/.nycrc +0 -13
- package/client/node_modules/side-channel/CHANGELOG.md +0 -120
- package/client/node_modules/side-channel/LICENSE +0 -21
- package/client/node_modules/side-channel/README.md +0 -61
- package/client/node_modules/side-channel/index.d.ts +0 -14
- package/client/node_modules/side-channel/index.js +0 -46
- package/client/node_modules/side-channel/package.json +0 -85
- package/client/node_modules/side-channel/test/index.js +0 -120
- package/client/node_modules/side-channel/tsconfig.json +0 -9
- package/client/node_modules/side-channel-list/.editorconfig +0 -9
- package/client/node_modules/side-channel-list/.eslintrc +0 -11
- package/client/node_modules/side-channel-list/.github/FUNDING.yml +0 -12
- package/client/node_modules/side-channel-list/.nycrc +0 -13
- package/client/node_modules/side-channel-list/CHANGELOG.md +0 -36
- package/client/node_modules/side-channel-list/LICENSE +0 -21
- package/client/node_modules/side-channel-list/README.md +0 -62
- package/client/node_modules/side-channel-list/index.d.ts +0 -13
- package/client/node_modules/side-channel-list/index.js +0 -111
- package/client/node_modules/side-channel-list/list.d.ts +0 -14
- package/client/node_modules/side-channel-list/package.json +0 -77
- package/client/node_modules/side-channel-list/test/index.js +0 -154
- package/client/node_modules/side-channel-list/tsconfig.json +0 -9
- package/client/node_modules/side-channel-map/.editorconfig +0 -9
- package/client/node_modules/side-channel-map/.eslintrc +0 -11
- package/client/node_modules/side-channel-map/.github/FUNDING.yml +0 -12
- package/client/node_modules/side-channel-map/.nycrc +0 -13
- package/client/node_modules/side-channel-map/CHANGELOG.md +0 -22
- package/client/node_modules/side-channel-map/LICENSE +0 -21
- package/client/node_modules/side-channel-map/README.md +0 -62
- package/client/node_modules/side-channel-map/index.d.ts +0 -15
- package/client/node_modules/side-channel-map/index.js +0 -68
- package/client/node_modules/side-channel-map/package.json +0 -80
- package/client/node_modules/side-channel-map/test/index.js +0 -114
- package/client/node_modules/side-channel-map/tsconfig.json +0 -9
- package/client/node_modules/side-channel-weakmap/.editorconfig +0 -9
- package/client/node_modules/side-channel-weakmap/.eslintrc +0 -12
- package/client/node_modules/side-channel-weakmap/.github/FUNDING.yml +0 -12
- package/client/node_modules/side-channel-weakmap/.nycrc +0 -13
- package/client/node_modules/side-channel-weakmap/CHANGELOG.md +0 -28
- package/client/node_modules/side-channel-weakmap/LICENSE +0 -21
- package/client/node_modules/side-channel-weakmap/README.md +0 -62
- package/client/node_modules/side-channel-weakmap/index.d.ts +0 -15
- package/client/node_modules/side-channel-weakmap/index.js +0 -84
- package/client/node_modules/side-channel-weakmap/package.json +0 -87
- package/client/node_modules/side-channel-weakmap/test/index.js +0 -114
- package/client/node_modules/side-channel-weakmap/tsconfig.json +0 -9
- package/client/node_modules/statuses/HISTORY.md +0 -87
- package/client/node_modules/statuses/LICENSE +0 -23
- package/client/node_modules/statuses/README.md +0 -139
- package/client/node_modules/statuses/codes.json +0 -65
- package/client/node_modules/statuses/index.js +0 -146
- package/client/node_modules/statuses/package.json +0 -49
- package/client/node_modules/toidentifier/HISTORY.md +0 -9
- package/client/node_modules/toidentifier/LICENSE +0 -21
- package/client/node_modules/toidentifier/README.md +0 -61
- package/client/node_modules/toidentifier/index.js +0 -32
- package/client/node_modules/toidentifier/package.json +0 -38
- package/client/node_modules/type-is/HISTORY.md +0 -259
- package/client/node_modules/type-is/LICENSE +0 -23
- package/client/node_modules/type-is/README.md +0 -170
- package/client/node_modules/type-is/index.js +0 -266
- package/client/node_modules/type-is/package.json +0 -45
- package/client/node_modules/typescript/LICENSE.txt +0 -55
- package/client/node_modules/typescript/README.md +0 -50
- package/client/node_modules/typescript/SECURITY.md +0 -41
- package/client/node_modules/typescript/ThirdPartyNoticeText.txt +0 -193
- package/client/node_modules/typescript/bin/tsc +0 -2
- package/client/node_modules/typescript/bin/tsserver +0 -2
- package/client/node_modules/typescript/lib/_tsc.js +0 -133818
- package/client/node_modules/typescript/lib/_tsserver.js +0 -659
- package/client/node_modules/typescript/lib/_typingsInstaller.js +0 -222
- package/client/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +0 -2122
- package/client/node_modules/typescript/lib/de/diagnosticMessages.generated.json +0 -2122
- package/client/node_modules/typescript/lib/es/diagnosticMessages.generated.json +0 -2122
- package/client/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +0 -2122
- package/client/node_modules/typescript/lib/it/diagnosticMessages.generated.json +0 -2122
- package/client/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +0 -2122
- package/client/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +0 -2122
- package/client/node_modules/typescript/lib/lib.d.ts +0 -22
- package/client/node_modules/typescript/lib/lib.decorators.d.ts +0 -384
- package/client/node_modules/typescript/lib/lib.decorators.legacy.d.ts +0 -22
- package/client/node_modules/typescript/lib/lib.dom.asynciterable.d.ts +0 -41
- package/client/node_modules/typescript/lib/lib.dom.d.ts +0 -39429
- package/client/node_modules/typescript/lib/lib.dom.iterable.d.ts +0 -571
- package/client/node_modules/typescript/lib/lib.es2015.collection.d.ts +0 -147
- package/client/node_modules/typescript/lib/lib.es2015.core.d.ts +0 -597
- package/client/node_modules/typescript/lib/lib.es2015.d.ts +0 -28
- package/client/node_modules/typescript/lib/lib.es2015.generator.d.ts +0 -77
- package/client/node_modules/typescript/lib/lib.es2015.iterable.d.ts +0 -605
- package/client/node_modules/typescript/lib/lib.es2015.promise.d.ts +0 -81
- package/client/node_modules/typescript/lib/lib.es2015.proxy.d.ts +0 -128
- package/client/node_modules/typescript/lib/lib.es2015.reflect.d.ts +0 -144
- package/client/node_modules/typescript/lib/lib.es2015.symbol.d.ts +0 -46
- package/client/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts +0 -326
- package/client/node_modules/typescript/lib/lib.es2016.array.include.d.ts +0 -116
- package/client/node_modules/typescript/lib/lib.es2016.d.ts +0 -21
- package/client/node_modules/typescript/lib/lib.es2016.full.d.ts +0 -23
- package/client/node_modules/typescript/lib/lib.es2016.intl.d.ts +0 -31
- package/client/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts +0 -21
- package/client/node_modules/typescript/lib/lib.es2017.d.ts +0 -26
- package/client/node_modules/typescript/lib/lib.es2017.date.d.ts +0 -31
- package/client/node_modules/typescript/lib/lib.es2017.full.d.ts +0 -23
- package/client/node_modules/typescript/lib/lib.es2017.intl.d.ts +0 -44
- package/client/node_modules/typescript/lib/lib.es2017.object.d.ts +0 -49
- package/client/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts +0 -135
- package/client/node_modules/typescript/lib/lib.es2017.string.d.ts +0 -45
- package/client/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts +0 -53
- package/client/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts +0 -77
- package/client/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts +0 -53
- package/client/node_modules/typescript/lib/lib.es2018.d.ts +0 -24
- package/client/node_modules/typescript/lib/lib.es2018.full.d.ts +0 -24
- package/client/node_modules/typescript/lib/lib.es2018.intl.d.ts +0 -83
- package/client/node_modules/typescript/lib/lib.es2018.promise.d.ts +0 -30
- package/client/node_modules/typescript/lib/lib.es2018.regexp.d.ts +0 -37
- package/client/node_modules/typescript/lib/lib.es2019.array.d.ts +0 -79
- package/client/node_modules/typescript/lib/lib.es2019.d.ts +0 -24
- package/client/node_modules/typescript/lib/lib.es2019.full.d.ts +0 -24
- package/client/node_modules/typescript/lib/lib.es2019.intl.d.ts +0 -23
- package/client/node_modules/typescript/lib/lib.es2019.object.d.ts +0 -33
- package/client/node_modules/typescript/lib/lib.es2019.string.d.ts +0 -37
- package/client/node_modules/typescript/lib/lib.es2019.symbol.d.ts +0 -24
- package/client/node_modules/typescript/lib/lib.es2020.bigint.d.ts +0 -765
- package/client/node_modules/typescript/lib/lib.es2020.d.ts +0 -27
- package/client/node_modules/typescript/lib/lib.es2020.date.d.ts +0 -42
- package/client/node_modules/typescript/lib/lib.es2020.full.d.ts +0 -24
- package/client/node_modules/typescript/lib/lib.es2020.intl.d.ts +0 -474
- package/client/node_modules/typescript/lib/lib.es2020.number.d.ts +0 -28
- package/client/node_modules/typescript/lib/lib.es2020.promise.d.ts +0 -47
- package/client/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts +0 -99
- package/client/node_modules/typescript/lib/lib.es2020.string.d.ts +0 -44
- package/client/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts +0 -41
- package/client/node_modules/typescript/lib/lib.es2021.d.ts +0 -23
- package/client/node_modules/typescript/lib/lib.es2021.full.d.ts +0 -24
- package/client/node_modules/typescript/lib/lib.es2021.intl.d.ts +0 -166
- package/client/node_modules/typescript/lib/lib.es2021.promise.d.ts +0 -48
- package/client/node_modules/typescript/lib/lib.es2021.string.d.ts +0 -33
- package/client/node_modules/typescript/lib/lib.es2021.weakref.d.ts +0 -78
- package/client/node_modules/typescript/lib/lib.es2022.array.d.ts +0 -121
- package/client/node_modules/typescript/lib/lib.es2022.d.ts +0 -25
- package/client/node_modules/typescript/lib/lib.es2022.error.d.ts +0 -75
- package/client/node_modules/typescript/lib/lib.es2022.full.d.ts +0 -24
- package/client/node_modules/typescript/lib/lib.es2022.intl.d.ts +0 -145
- package/client/node_modules/typescript/lib/lib.es2022.object.d.ts +0 -26
- package/client/node_modules/typescript/lib/lib.es2022.regexp.d.ts +0 -39
- package/client/node_modules/typescript/lib/lib.es2022.string.d.ts +0 -25
- package/client/node_modules/typescript/lib/lib.es2023.array.d.ts +0 -924
- package/client/node_modules/typescript/lib/lib.es2023.collection.d.ts +0 -21
- package/client/node_modules/typescript/lib/lib.es2023.d.ts +0 -22
- package/client/node_modules/typescript/lib/lib.es2023.full.d.ts +0 -24
- package/client/node_modules/typescript/lib/lib.es2023.intl.d.ts +0 -56
- package/client/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts +0 -65
- package/client/node_modules/typescript/lib/lib.es2024.collection.d.ts +0 -29
- package/client/node_modules/typescript/lib/lib.es2024.d.ts +0 -26
- package/client/node_modules/typescript/lib/lib.es2024.full.d.ts +0 -24
- package/client/node_modules/typescript/lib/lib.es2024.object.d.ts +0 -29
- package/client/node_modules/typescript/lib/lib.es2024.promise.d.ts +0 -35
- package/client/node_modules/typescript/lib/lib.es2024.regexp.d.ts +0 -25
- package/client/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts +0 -68
- package/client/node_modules/typescript/lib/lib.es2024.string.d.ts +0 -29
- package/client/node_modules/typescript/lib/lib.es5.d.ts +0 -4601
- package/client/node_modules/typescript/lib/lib.es6.d.ts +0 -23
- package/client/node_modules/typescript/lib/lib.esnext.array.d.ts +0 -35
- package/client/node_modules/typescript/lib/lib.esnext.collection.d.ts +0 -96
- package/client/node_modules/typescript/lib/lib.esnext.d.ts +0 -29
- package/client/node_modules/typescript/lib/lib.esnext.decorators.d.ts +0 -28
- package/client/node_modules/typescript/lib/lib.esnext.disposable.d.ts +0 -193
- package/client/node_modules/typescript/lib/lib.esnext.error.d.ts +0 -24
- package/client/node_modules/typescript/lib/lib.esnext.float16.d.ts +0 -445
- package/client/node_modules/typescript/lib/lib.esnext.full.d.ts +0 -24
- package/client/node_modules/typescript/lib/lib.esnext.intl.d.ts +0 -21
- package/client/node_modules/typescript/lib/lib.esnext.iterator.d.ts +0 -148
- package/client/node_modules/typescript/lib/lib.esnext.promise.d.ts +0 -34
- package/client/node_modules/typescript/lib/lib.esnext.sharedmemory.d.ts +0 -25
- package/client/node_modules/typescript/lib/lib.scripthost.d.ts +0 -322
- package/client/node_modules/typescript/lib/lib.webworker.asynciterable.d.ts +0 -41
- package/client/node_modules/typescript/lib/lib.webworker.d.ts +0 -13150
- package/client/node_modules/typescript/lib/lib.webworker.importscripts.d.ts +0 -23
- package/client/node_modules/typescript/lib/lib.webworker.iterable.d.ts +0 -340
- package/client/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +0 -2122
- package/client/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +0 -2122
- package/client/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +0 -2122
- package/client/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +0 -2122
- package/client/node_modules/typescript/lib/tsc.js +0 -8
- package/client/node_modules/typescript/lib/tsserver.js +0 -8
- package/client/node_modules/typescript/lib/tsserverlibrary.d.ts +0 -17
- package/client/node_modules/typescript/lib/tsserverlibrary.js +0 -21
- package/client/node_modules/typescript/lib/typesMap.json +0 -497
- package/client/node_modules/typescript/lib/typescript.d.ts +0 -11437
- package/client/node_modules/typescript/lib/typescript.js +0 -200276
- package/client/node_modules/typescript/lib/typingsInstaller.js +0 -8
- package/client/node_modules/typescript/lib/watchGuard.js +0 -53
- package/client/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json +0 -2122
- package/client/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json +0 -2122
- package/client/node_modules/typescript/package.json +0 -120
- package/client/node_modules/undici-types/LICENSE +0 -21
- package/client/node_modules/undici-types/README.md +0 -6
- package/client/node_modules/undici-types/agent.d.ts +0 -31
- package/client/node_modules/undici-types/api.d.ts +0 -43
- package/client/node_modules/undici-types/balanced-pool.d.ts +0 -29
- package/client/node_modules/undici-types/cache.d.ts +0 -36
- package/client/node_modules/undici-types/client.d.ts +0 -108
- package/client/node_modules/undici-types/connector.d.ts +0 -34
- package/client/node_modules/undici-types/content-type.d.ts +0 -21
- package/client/node_modules/undici-types/cookies.d.ts +0 -28
- package/client/node_modules/undici-types/diagnostics-channel.d.ts +0 -66
- package/client/node_modules/undici-types/dispatcher.d.ts +0 -256
- package/client/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -21
- package/client/node_modules/undici-types/errors.d.ts +0 -149
- package/client/node_modules/undici-types/eventsource.d.ts +0 -61
- package/client/node_modules/undici-types/fetch.d.ts +0 -209
- package/client/node_modules/undici-types/file.d.ts +0 -39
- package/client/node_modules/undici-types/filereader.d.ts +0 -54
- package/client/node_modules/undici-types/formdata.d.ts +0 -108
- package/client/node_modules/undici-types/global-dispatcher.d.ts +0 -9
- package/client/node_modules/undici-types/global-origin.d.ts +0 -7
- package/client/node_modules/undici-types/handlers.d.ts +0 -15
- package/client/node_modules/undici-types/header.d.ts +0 -4
- package/client/node_modules/undici-types/index.d.ts +0 -71
- package/client/node_modules/undici-types/interceptors.d.ts +0 -17
- package/client/node_modules/undici-types/mock-agent.d.ts +0 -50
- package/client/node_modules/undici-types/mock-client.d.ts +0 -25
- package/client/node_modules/undici-types/mock-errors.d.ts +0 -12
- package/client/node_modules/undici-types/mock-interceptor.d.ts +0 -93
- package/client/node_modules/undici-types/mock-pool.d.ts +0 -25
- package/client/node_modules/undici-types/package.json +0 -55
- package/client/node_modules/undici-types/patch.d.ts +0 -33
- package/client/node_modules/undici-types/pool-stats.d.ts +0 -19
- package/client/node_modules/undici-types/pool.d.ts +0 -39
- package/client/node_modules/undici-types/proxy-agent.d.ts +0 -28
- package/client/node_modules/undici-types/readable.d.ts +0 -65
- package/client/node_modules/undici-types/retry-agent.d.ts +0 -8
- package/client/node_modules/undici-types/retry-handler.d.ts +0 -116
- package/client/node_modules/undici-types/util.d.ts +0 -18
- package/client/node_modules/undici-types/webidl.d.ts +0 -228
- package/client/node_modules/undici-types/websocket.d.ts +0 -150
- package/client/node_modules/unpipe/HISTORY.md +0 -4
- package/client/node_modules/unpipe/LICENSE +0 -22
- package/client/node_modules/unpipe/README.md +0 -43
- package/client/node_modules/unpipe/index.js +0 -69
- package/client/node_modules/unpipe/package.json +0 -27
- package/client/node_modules/utils-merge/LICENSE +0 -20
- package/client/node_modules/utils-merge/README.md +0 -34
- package/client/node_modules/utils-merge/index.js +0 -23
- package/client/node_modules/utils-merge/package.json +0 -40
- package/client/node_modules/vary/HISTORY.md +0 -39
- package/client/node_modules/vary/LICENSE +0 -22
- package/client/node_modules/vary/README.md +0 -101
- package/client/node_modules/vary/index.js +0 -149
- package/client/node_modules/vary/package.json +0 -43
- package/client/obfuscate.js +0 -132
- package/client/package-lock.json +0 -956
- package/client/package.json +0 -32
- package/client/src/cli.ts +0 -273
- package/client/src/dashboard.ts +0 -85
- package/client/src/executor.ts +0 -65
- package/client/src/filters/generic.ts +0 -60
- package/client/src/filters/git.ts +0 -150
- package/client/src/filters/index.ts +0 -113
- package/client/src/filters/js.ts +0 -102
- package/client/src/filters/python.ts +0 -152
- package/client/src/index.html +0 -779
- package/client/src/mcp.ts +0 -88
- package/client/src/redactor.ts +0 -54
- package/client/src/seed.ts +0 -35
- package/client/src/shims.ts +0 -142
- package/client/src/simulate.ts +0 -98
- package/client/src/sync.ts +0 -252
- package/client/src/tracker.ts +0 -269
- package/client/tsconfig.json +0 -14
- package/install.bat +0 -48
- package/test_e2e.js +0 -156
- package/tsconfig.json +0 -15
- /package/{client/dist/index.html → index.html} +0 -0
|
@@ -1,263 +0,0 @@
|
|
|
1
|
-
# PromptShave.ai - Architecture Specification
|
|
2
|
-
|
|
3
|
-
This document describes the technical architecture and component layout of the **PromptShave.ai** system.
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## 1. Component Topology
|
|
8
|
-
|
|
9
|
-
```
|
|
10
|
-
+---------------------------------------------------------------------------------------------------+
|
|
11
|
-
| DEVELOPER MACHINE (Local-First) |
|
|
12
|
-
| |
|
|
13
|
-
| +------------------------+ Command +-----------------------+ |
|
|
14
|
-
| | AI Coding Assistant | -----------------> | PromptShave Shims | |
|
|
15
|
-
| | (Cursor, Claude, etc.)| <----------------- | (git, npm, kubectl) | |
|
|
16
|
-
| +------------------------+ Filtered Output +-----------------------+ |
|
|
17
|
-
| | |
|
|
18
|
-
| v |
|
|
19
|
-
| +------------------------+ +-----------------------+ |
|
|
20
|
-
| | Developer UI | | PromptShave CLI | |
|
|
21
|
-
| | (Browser SPA @4000) | | (TypeScript) | |
|
|
22
|
-
| +------------------------+ +-----------------------+ |
|
|
23
|
-
| | / \ |
|
|
24
|
-
| | Read / Writes \ Redacts |
|
|
25
|
-
| v v v |
|
|
26
|
-
| +------------------------+ +--------------+ +--------------+ |
|
|
27
|
-
| |~/.promptshave/stats.db | <----------- | Telemetry DB | | PII / Secret | |
|
|
28
|
-
| | (SQLite) | | Manager | | Redactor | |
|
|
29
|
-
| +------------------------+ +--------------+ +--------------+ |
|
|
30
|
-
| | | |
|
|
31
|
-
| | Read/Write v |
|
|
32
|
-
| | +-----------------------+ |
|
|
33
|
-
| +------------------------- | Background Sync daemon| |
|
|
34
|
-
| +-----------------------+ |
|
|
35
|
-
+------------------------------------------------------|--------------------------------------------+
|
|
36
|
-
|
|
|
37
|
-
| HTTP POST (Redacted logs)
|
|
38
|
-
v
|
|
39
|
-
+---------------------------------------------------------------------------------------------------+
|
|
40
|
-
| ENTERPRISE HUB (Centralized Server) |
|
|
41
|
-
| |
|
|
42
|
-
| +------------------------+ +-----------------------+ |
|
|
43
|
-
| | Manager Dashboard UI | ------------ | Telemetry API | |
|
|
44
|
-
| | (HTML/React Web) | | (Node.js / Go) | |
|
|
45
|
-
| +------------------------+ +-----------------------+ |
|
|
46
|
-
| | |
|
|
47
|
-
| v |
|
|
48
|
-
| +-----------------------+ |
|
|
49
|
-
| | Central Database | |
|
|
50
|
-
| | (PostgreSQL / SQLite) | |
|
|
51
|
-
| +-----------------------+ |
|
|
52
|
-
+---------------------------------------------------------------------------------------------------+
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
---
|
|
56
|
-
|
|
57
|
-
## 2. Telemetry & Background Sync Mechanism
|
|
58
|
-
|
|
59
|
-
To avoid blockages or latency overhead in developer terminals, telemetry logging must never block the CLI's main thread.
|
|
60
|
-
|
|
61
|
-
### Event Logging Sequence:
|
|
62
|
-
1. **Execution:** The developer (or AI) runs a proxied command.
|
|
63
|
-
2. **Compression & Print:** PromptShave intercepts, filters, and prints the compressed output to standard output immediately.
|
|
64
|
-
3. **Local Write:** PromptShave opens a connection to `~/.promptshave/stats.db` and writes a new execution record. This SQLite write is extremely fast (<1ms).
|
|
65
|
-
4. **Subprocess Termination:** The CLI process terminates and returns control to the shell immediately.
|
|
66
|
-
|
|
67
|
-
### Background Sync Engine:
|
|
68
|
-
1. When a new row is added, if `telemetry_url` is configured, PromptShave spawns a detached background process (a daemon script) that runs independently:
|
|
69
|
-
```js
|
|
70
|
-
const { spawn } = require('child_process');
|
|
71
|
-
const out = fs.openSync('/dev/null', 'a');
|
|
72
|
-
const err = fs.openSync('/dev/null', 'a');
|
|
73
|
-
|
|
74
|
-
const child = spawn('node', ['path/to/sync-daemon.js'], {
|
|
75
|
-
detached: true,
|
|
76
|
-
stdio: ['ignore', out, err]
|
|
77
|
-
});
|
|
78
|
-
child.unref();
|
|
79
|
-
```
|
|
80
|
-
2. The `sync-daemon.js` reads unsynced logs from SQLite, sends them in a single batch request to `telemetry_url`, and marks them as synced.
|
|
81
|
-
3. If the network is down, the daemon terminates and will retry on the next command execution.
|
|
82
|
-
|
|
83
|
-
---
|
|
84
|
-
|
|
85
|
-
## 3. Telemetry Event Schema
|
|
86
|
-
|
|
87
|
-
```json
|
|
88
|
-
{
|
|
89
|
-
"developer_id": "sha256_hash_of_local_username",
|
|
90
|
-
"os": "windows",
|
|
91
|
-
"command": "git diff",
|
|
92
|
-
"subcommand": "diff",
|
|
93
|
-
"raw_chars": 28400,
|
|
94
|
-
"compressed_chars": 1200,
|
|
95
|
-
"estimated_raw_tokens": 7100,
|
|
96
|
-
"estimated_compressed_tokens": 300,
|
|
97
|
-
"tokens_saved": 6800,
|
|
98
|
-
"model_used": "claude-3-5-sonnet",
|
|
99
|
-
"timestamp": "2026-06-16T08:30:00Z"
|
|
100
|
-
}
|
|
101
|
-
```
|
|
102
|
-
*Note: The actual command arguments and output text are never sent to the Hub to guarantee enterprise data compliance.*
|
|
103
|
-
|
|
104
|
-
---
|
|
105
|
-
|
|
106
|
-
## 4. Cost Savings Calculation Engine
|
|
107
|
-
|
|
108
|
-
The savings are calculated dynamically by both the Local Developer UI and the Enterprise Hub UI.
|
|
109
|
-
|
|
110
|
-
### Formula:
|
|
111
|
-
$$\text{Cost Saved (USD)} = (\text{Estimated Raw Tokens} - \text{Estimated Compressed Tokens}) \times \frac{\text{Model Input Token Price (USD)}}{1,000,000}$$
|
|
112
|
-
|
|
113
|
-
### Default LLM Pricing Directory (updated dynamically):
|
|
114
|
-
|
|
115
|
-
| Model Key | Model Name | Input Price Per 1M Tokens (USD) | Output Price Per 1M Tokens (USD) |
|
|
116
|
-
| :--- | :--- | :---: | :---: |
|
|
117
|
-
| `claude-3-5-sonnet` | Claude 3.5 Sonnet | $3.00 | $15.00 |
|
|
118
|
-
| `claude-3-opus` | Claude 3 Opus | $15.00 | $75.00 |
|
|
119
|
-
| `claude-3-haiku` | Claude 3 Haiku | $0.25 | $1.25 |
|
|
120
|
-
| `gpt-4o` | GPT-4o | $5.00 | $15.00 |
|
|
121
|
-
| `gpt-4o-mini` | GPT-4o Mini | $0.150 | $0.600 |
|
|
122
|
-
| `gemini-1-5-pro` | Gemini 1.5 Pro | $1.25 | $5.00 |
|
|
123
|
-
| `gemini-1-5-flash` | Gemini 1.5 Flash | $0.075 | $0.30 |
|
|
124
|
-
|
|
125
|
-
*Note: For the input savings calculation, we use the Input Token Price since PromptShave filters command outputs that are fed into the LLM's prompt context (input).*
|
|
126
|
-
|
|
127
|
-
---
|
|
128
|
-
|
|
129
|
-
## 5. Enterprise Deployment & Configuration Methods
|
|
130
|
-
|
|
131
|
-
To deploy PromptShave across an entire enterprise with minimal friction, IT administrators can configure the central Hub URL globally using one of the following methods, sorted by priority:
|
|
132
|
-
|
|
133
|
-
### Method A: Global Environment Variable (Recommended for MDM / GPO)
|
|
134
|
-
IT managers use Mobile Device Management (MDM) tools like Jamf (macOS), Microsoft Intune (Windows), or Group Policy Objects (GPO) to set a system-wide environment variable on all developer machines:
|
|
135
|
-
```bash
|
|
136
|
-
PROMPTSHAVE_TELEMETRY_URL="https://shave-hub.mycompany.com/api/telemetry"
|
|
137
|
-
```
|
|
138
|
-
* **How it works:** When the `pshave` CLI runs, it checks for `process.env.PROMPTSHAVE_TELEMETRY_URL`. If present, it automatically routes telemetry to the central Hub. No developer action or configuration file is required.
|
|
139
|
-
|
|
140
|
-
### Method B: System-Wide Configuration File (Best for Bootstrapping Scripts)
|
|
141
|
-
During automated laptop provisioning, the IT administrator writes a global, read-only configuration file to a system folder:
|
|
142
|
-
* **macOS / Linux:** `/etc/promptshave/config.yaml`
|
|
143
|
-
* **Windows:** `C:\ProgramData\promptshave\config.yaml`
|
|
144
|
-
|
|
145
|
-
```yaml
|
|
146
|
-
# System-wide configuration file (Read-Only)
|
|
147
|
-
telemetry_url: "https://shave-hub.mycompany.com/api/telemetry"
|
|
148
|
-
```
|
|
149
|
-
* **How it works:** The `pshave` CLI reads this file first to establish base policies and the Hub endpoint. It then merges it with the developer's local file (`~/.promptshave/config.yaml`), prioritizing the system-wide URL.
|
|
150
|
-
|
|
151
|
-
### Method C: Custom Enterprise NPM Package Wrapper
|
|
152
|
-
If the enterprise uses an internal package registry (e.g., Artifactory, Verdaccio, or private NPM organizations):
|
|
153
|
-
1. The IT team publishes a private package named `@mycompany/pshave`.
|
|
154
|
-
2. The package contains a post-installation script that automatically runs:
|
|
155
|
-
```bash
|
|
156
|
-
pshave config set telemetry_url https://shave-hub.mycompany.com/api/telemetry
|
|
157
|
-
pshave shims install
|
|
158
|
-
```
|
|
159
|
-
3. Developers simply run: `npm install -g @mycompany/pshave` to get a fully configured version.
|
|
160
|
-
|
|
161
|
-
---
|
|
162
|
-
|
|
163
|
-
## 6. Developer Local UI (Local-First Access)
|
|
164
|
-
|
|
165
|
-
Regardless of whether telemetry is synced to the Enterprise Hub, every developer has direct access to their own local stats:
|
|
166
|
-
* Running `pshave ui` starts a local Node process serving the dashboard from the npm package globally.
|
|
167
|
-
* The local web page (`http://localhost:4000`) queries the local SQLite DB (`~/.promptshave/stats.db`).
|
|
168
|
-
* Developers see their personal savings chart, list of commands, and exact compression logs, ensuring transparency.
|
|
169
|
-
|
|
170
|
-
---
|
|
171
|
-
|
|
172
|
-
## 7. Enterprise Rapid Distribution (Frictionless Rollout)
|
|
173
|
-
|
|
174
|
-
To achieve 100% adoption across all developer machines quickly, PromptShave supports three automated distribution channels, catering to both Node and non-Node environments:
|
|
175
|
-
|
|
176
|
-
### Channel A: One-Command Bootstrap Script (Self-Service & provisioning)
|
|
177
|
-
The IT team hosts a simple installation script on their internal Hub server. Developers run a single command in their terminal, which automatically detects their OS, downloads the correct pre-compiled binary, installs it, configures the telemetry URL, and sets up the shims.
|
|
178
|
-
* **macOS / Linux:**
|
|
179
|
-
```bash
|
|
180
|
-
curl -fsSL https://shave-hub.mycompany.com/install.sh | sh
|
|
181
|
-
```
|
|
182
|
-
* **Windows (PowerShell):**
|
|
183
|
-
```powershell
|
|
184
|
-
irm https://shave-hub.mycompany.com/install.ps1 | iex
|
|
185
|
-
```
|
|
186
|
-
|
|
187
|
-
### Channel B: Silent MDM / Active Directory Push (Zero-Touch IT Deployment)
|
|
188
|
-
For a forced or silent rollout, the IT manager packages pre-compiled standalone binaries using their Mobile Device Management (MDM) software (Microsoft Intune, Jamf, or SCCM) or **Active Directory (AD) Group Policy Objects (GPO)**:
|
|
189
|
-
|
|
190
|
-
1. **Standalone Binaries / MSI Package:** The Node.js codebase is compiled into single-binary executables (`pshave.exe` for Windows, `pshave` for macOS/Linux) using Node's Single Executable Applications (SEA) or PKG. For Windows AD environments, the binary is wrapped inside a standard `.msi` (Microsoft Installer) package.
|
|
191
|
-
2. **AD GPO Software Installation:** The IT administrator configures a Group Policy Object under `Computer Configuration > Policies > Software Settings > Software installation` to assign the `pshave.msi` package to all domain-joined computers. Windows installs it silently at the next system startup.
|
|
192
|
-
3. **AD GPO Environment Variables:** To configure the telemetry endpoint system-wide, the administrator creates a GPO Preference under `Computer Configuration > Preferences > Windows Settings > Environment` to set the system variable:
|
|
193
|
-
* **Name:** `PROMPTSHAVE_TELEMETRY_URL`
|
|
194
|
-
* **Value:** `https://shave-hub.mycompany.com/api/telemetry`
|
|
195
|
-
4. **AD GPO Startup Script:** To register the shims system-wide, the administrator configures a GPO Startup Script (`Computer Configuration > Policies > Windows Settings > Scripts (Startup)`) that executes:
|
|
196
|
-
```powershell
|
|
197
|
-
& "C:\Program Files\promptshave\pshave.exe" shims install --silent
|
|
198
|
-
```
|
|
199
|
-
This ensures command interception is automatically activated for all users on the domain computers.
|
|
200
|
-
|
|
201
|
-
### Channel C: Private NPM Registry Proxy
|
|
202
|
-
For organizations where developers mainly use JavaScript/TypeScript:
|
|
203
|
-
* The IT admin publishes `@mycompany/pshave` to the corporate private NPM registry.
|
|
204
|
-
* Developers are instructed to run: `npm install -g @mycompany/pshave`
|
|
205
|
-
* A `postinstall` script in the package runs the shim installation and registers the telemetry URL automatically.
|
|
206
|
-
|
|
207
|
-
---
|
|
208
|
-
|
|
209
|
-
## 8. Enterprise Hub Server Deployment Specification
|
|
210
|
-
|
|
211
|
-
To make the central telemetry dashboard easy for IT administrators to deploy and maintain, the **PromptShave Hub** is distributed as a lightweight Dockerized application.
|
|
212
|
-
|
|
213
|
-
### Deployment Method A: Docker Compose (On-Premise / Single VM)
|
|
214
|
-
IT managers can spin up the PromptShave Hub and a PostgreSQL database on any Linux/Windows server with a single command.
|
|
215
|
-
|
|
216
|
-
#### `docker-compose.yml`
|
|
217
|
-
```yaml
|
|
218
|
-
version: '3.8'
|
|
219
|
-
|
|
220
|
-
services:
|
|
221
|
-
postgres:
|
|
222
|
-
image: postgres:15-alpine
|
|
223
|
-
container_name: promptshave-db
|
|
224
|
-
environment:
|
|
225
|
-
POSTGRES_DB: promptshave
|
|
226
|
-
POSTGRES_USER: shave_admin
|
|
227
|
-
POSTGRES_PASSWORD: secure_db_password_123
|
|
228
|
-
volumes:
|
|
229
|
-
- pgdata:/var/lib/postgresql/data
|
|
230
|
-
restart: always
|
|
231
|
-
|
|
232
|
-
hub:
|
|
233
|
-
image: promptshave/hub:latest
|
|
234
|
-
container_name: promptshave-hub
|
|
235
|
-
ports:
|
|
236
|
-
- "80:80"
|
|
237
|
-
environment:
|
|
238
|
-
- PORT=80
|
|
239
|
-
- DATABASE_URL=postgres://shave_admin:secure_db_password_123@postgres:5432/promptshave
|
|
240
|
-
- JWT_SECRET=random_jwt_signing_key_456
|
|
241
|
-
- INITIAL_ADMIN_PASSWORD=admin_setup_password
|
|
242
|
-
- TOKEN_PRICING_AUTO_UPDATE=true # Auto-fetch official Claude/Gemini/GPT prices
|
|
243
|
-
depends_on:
|
|
244
|
-
- postgres
|
|
245
|
-
restart: always
|
|
246
|
-
|
|
247
|
-
volumes:
|
|
248
|
-
pgdata:
|
|
249
|
-
```
|
|
250
|
-
|
|
251
|
-
### Deployment Method B: Kubernetes (Helm Chart)
|
|
252
|
-
For large-scale enterprise environments running on AWS EKS, Google GKE, or Azure AKS:
|
|
253
|
-
* We provide a standard **Helm Chart** (`promptshave-hub`) containing deployments for the API services, Horizontal Pod Autoscalers (HPA), ingress definitions, and secret management.
|
|
254
|
-
* PromptsShave Hub scales stateless pods behind a load balancer, storing persistent logs in an external managed database (e.g., AWS RDS PostgreSQL).
|
|
255
|
-
|
|
256
|
-
### Server Initial Setup & Configuration Sequence:
|
|
257
|
-
1. **DNS & SSL:** The administrator configures a DNS record pointing to the server (e.g. `shave-hub.mycompany.com`) and installs a TLS/SSL certificate (e.g. Let's Encrypt or corporate proxy certificate).
|
|
258
|
-
2. **First-Time Login:** The admin logs into `https://shave-hub.mycompany.com` using the temporary `INITIAL_ADMIN_PASSWORD` defined in the environment variables and sets a secure custom password.
|
|
259
|
-
3. **Price Setup:** The admin reviews the token pricing page. If the company has custom volume pricing or an Enterprise Agreement with OpenAI or Anthropic, they can customize the cost-per-million-tokens values.
|
|
260
|
-
4. **Endpoint URL:** The telemetry endpoint is now live at:
|
|
261
|
-
`https://shave-hub.mycompany.com/api/telemetry`
|
|
262
|
-
This is the exact URL distributed via Active Directory GPO (`PROMPTSHAVE_TELEMETRY_URL`).
|
|
263
|
-
|
package/aicg-spec/dsl-spec.md
DELETED
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
# PromptShave.ai - Declarative Filter DSL Specification
|
|
2
|
-
|
|
3
|
-
This document defines the schema, pipeline stages, and execution flow of the **PromptShave.ai Declarative Filter DSL**.
|
|
4
|
-
|
|
5
|
-
The DSL is written in YAML (or TOML) and allows defining lightweight filters for commands that do not require deep AST or structural parsing. In addition to basic noise reduction, our DSL includes **Enterprise Compliance & DLP (Data Loss Prevention)** extensions.
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## 1. DSL Schema
|
|
10
|
-
|
|
11
|
-
Each filter is declared in a YAML configuration structure:
|
|
12
|
-
|
|
13
|
-
```yaml
|
|
14
|
-
# Example: c:\pshave\aicg-spec\filters\df.yaml
|
|
15
|
-
filter:
|
|
16
|
-
name: "df"
|
|
17
|
-
description: "Filters disk free space output to show only essential device rows."
|
|
18
|
-
match_command: "^df(\\s|$)"
|
|
19
|
-
strip_ansi: true
|
|
20
|
-
filter_stderr: false
|
|
21
|
-
|
|
22
|
-
# Noise Reduction
|
|
23
|
-
strip_lines_matching:
|
|
24
|
-
- "^Filesystem\\s+Size\\s+Used" # Strip headers
|
|
25
|
-
- "^tmpfs" # Strip temp filesystems
|
|
26
|
-
- "^devtmpfs"
|
|
27
|
-
- "^overlay"
|
|
28
|
-
|
|
29
|
-
keep_lines_matching: [] # If populated, only keep lines matching these regexes
|
|
30
|
-
|
|
31
|
-
replace: # Regex substitutions
|
|
32
|
-
- pattern: "\\s{2,}"
|
|
33
|
-
replacement: " " # Collapse multiple spaces to a single space
|
|
34
|
-
|
|
35
|
-
truncate_lines_at: 120 # Max character width per line
|
|
36
|
-
max_lines: 30 # Keep only the first N lines
|
|
37
|
-
tail_lines: 0 # Keep only the last N lines (applied last)
|
|
38
|
-
on_empty: "df: no physical filesystems found"
|
|
39
|
-
|
|
40
|
-
# Enterprise Security & Compliance Extensions
|
|
41
|
-
compliance:
|
|
42
|
-
redact_pii: true # Apply global API key / IP redaction profiles
|
|
43
|
-
redaction_profiles: # Domain-specific redaction profiles
|
|
44
|
-
- "credentials"
|
|
45
|
-
- "internal_hosts"
|
|
46
|
-
block_if_contains: # Hard block if output leaks extremely sensitive keywords
|
|
47
|
-
- "(?i)CONFIDENTIAL_INTERNAL_KEY_[A-Z0-9]{10,}"
|
|
48
|
-
telemetry_sync: true # Set to false to disable telemetry reporting for this sensitive command
|
|
49
|
-
allow_raw_via_env: "PSHAVE_BYPASS_DF" # Enable a custom bypass env var
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
---
|
|
53
|
-
|
|
54
|
-
## 2. Execution Pipeline Stages
|
|
55
|
-
|
|
56
|
-
When a command output is captured, it is processed through an **8-stage synchronous pipeline**:
|
|
57
|
-
|
|
58
|
-
```
|
|
59
|
-
[Raw Command stdout/stderr]
|
|
60
|
-
|
|
|
61
|
-
v
|
|
62
|
-
Stage 1: Merge Stderr (if filter_stderr: true)
|
|
63
|
-
|
|
|
64
|
-
v
|
|
65
|
-
Stage 2: Strip ANSI Escape Sequences (if strip_ansi: true)
|
|
66
|
-
|
|
|
67
|
-
v
|
|
68
|
-
Stage 3: DLP Leak Blocker (check compliance.block_if_contains) ---> [Abort & Return Error]
|
|
69
|
-
|
|
|
70
|
-
v
|
|
71
|
-
Stage 4: Redaction Engine (apply global/profile regexes)
|
|
72
|
-
|
|
|
73
|
-
v
|
|
74
|
-
Stage 5: Regex Replacements (apply replace rules)
|
|
75
|
-
|
|
|
76
|
-
v
|
|
77
|
-
Stage 6: Line Filtering (apply strip_lines_matching and keep_lines_matching)
|
|
78
|
-
|
|
|
79
|
-
v
|
|
80
|
-
Stage 7: Truncation (apply truncate_lines_at, tail_lines, and max_lines)
|
|
81
|
-
|
|
|
82
|
-
v
|
|
83
|
-
Stage 8: Empty Check (if output is empty, return on_empty)
|
|
84
|
-
|
|
|
85
|
-
v
|
|
86
|
-
[Compressed Output]
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
---
|
|
90
|
-
|
|
91
|
-
## 3. Core Enterprise DSL Properties
|
|
92
|
-
|
|
93
|
-
| Parameter | Type | Required | Description |
|
|
94
|
-
| :--- | :--- | :---: | :--- |
|
|
95
|
-
| `name` | string | Yes | Unique identifier for the filter. |
|
|
96
|
-
| `description` | string | Yes | Human-readable explanation. |
|
|
97
|
-
| `match_command` | regex | Yes | Regex pattern matching the command string (e.g. `^ps\s+aux`). |
|
|
98
|
-
| `strip_ansi` | boolean | No | Default `true`. Removes color codes before matching regexes. |
|
|
99
|
-
| `filter_stderr` | boolean | No | Default `false`. If true, captures stderr and merges it with stdout before processing. |
|
|
100
|
-
| `strip_lines_matching` | string[] | No | List of regex patterns. Lines matching any pattern are dropped. |
|
|
101
|
-
| `keep_lines_matching` | string[] | No | List of regex patterns. If set, only lines matching at least one pattern are kept. |
|
|
102
|
-
| `replace` | object[] | No | Array of `{ pattern: regex, replacement: string }` rules. |
|
|
103
|
-
| `truncate_lines_at` | integer | No | Maximum characters allowed per line. Longer lines are truncated with `...`. |
|
|
104
|
-
| `max_lines` | integer | No | Maximum output lines kept from the top. |
|
|
105
|
-
| `tail_lines` | integer | No | Maximum output lines kept from the bottom. |
|
|
106
|
-
| `on_empty` | string | No | String to return if output is entirely empty. |
|
|
107
|
-
| `compliance.redact_pii` | boolean | No | Default `true`. Integrates global credential/secret scanning. |
|
|
108
|
-
| `compliance.block_if_contains`| string[] | No | List of regexes that trigger a hard execution abort to prevent leaks. |
|
|
109
|
-
| `compliance.telemetry_sync` | boolean | No | Default `true`. If `false`, prevents token savings from being logged to the Hub. |
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
# PromptShave.ai - Cargo Toolchain Insights Specification
|
|
2
|
-
|
|
3
|
-
This document details the command optimizations, filtering criteria, and output formatting applied to **Rust/Cargo** developer tools.
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## 1. `cargo test` (Test Runner)
|
|
8
|
-
|
|
9
|
-
### Output Filtering
|
|
10
|
-
1. **Clean Test Pass Case:** If the test suite compiles and all tests pass with no failures, collapse the output to:
|
|
11
|
-
```text
|
|
12
|
-
Cargo: N tests passed (all suites clean)
|
|
13
|
-
```
|
|
14
|
-
2. **Compilation Failure:** If compilation fails, do not attempt to parse test results. Pass the compiler errors through but truncate to the first **10 compiler errors**.
|
|
15
|
-
3. **Test Failures:**
|
|
16
|
-
* Parse the output.
|
|
17
|
-
* If there are test failures, list the summary count (e.g. `Cargo: X passed, Y failed`).
|
|
18
|
-
* Extract the failed tests section (delimited by `failures:`).
|
|
19
|
-
* Limit the failures displayed to a maximum of **3 failed tests**.
|
|
20
|
-
* For each failed test, display the test path/name and the assertion message (e.g. `thread 'test_name' panicked at 'assertion failed: left == right'`). Strip CPU stack trace listings unless debug mode is explicitly set.
|
|
21
|
-
|
|
22
|
-
---
|
|
23
|
-
|
|
24
|
-
## 2. `cargo clippy` & `cargo check` (Linter & Compiler Check)
|
|
25
|
-
|
|
26
|
-
### Output Filtering
|
|
27
|
-
* **Clean Code:** If clippy or check returns no warnings or errors, print:
|
|
28
|
-
```text
|
|
29
|
-
clippy: code is clean (0 warnings, 0 errors)
|
|
30
|
-
```
|
|
31
|
-
* **Lint Warnings & Compiler Errors:**
|
|
32
|
-
* Cargo compiler messages contain rich ANSI markup and multiline warnings pointing to code context.
|
|
33
|
-
* **Noise Reduction:** Strip verbose notes (`help: for further information...`, `warning: ... on by default`).
|
|
34
|
-
* Group findings by file name. For each finding, keep the file name, line/column number, error code, warning title, and the suggested fix.
|
|
35
|
-
* Limit warnings displayed to **10 warnings**. If there are more, summarize:
|
|
36
|
-
```text
|
|
37
|
-
... +N clippy warnings truncated.
|
|
38
|
-
```
|
|
39
|
-
This prevents the AI agent from getting stuck in long warning-resolution loops.
|
|
40
|
-
|
|
41
|
-
---
|
|
42
|
-
|
|
43
|
-
## 3. `cargo fmt` (Formatter)
|
|
44
|
-
|
|
45
|
-
### Output Filtering
|
|
46
|
-
* **Status:** Marked as `Passthrough` in the rewrite registry. The CLI bypasses format filtering entirely and prints the raw formatter output (which is already extremely minimal).
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
# PromptShave.ai - Cloud Provider CLI Insights Specification
|
|
2
|
-
|
|
3
|
-
This document details the command optimizations, filtering criteria, and output formatting applied to **AWS** and **Google Cloud** CLI tools.
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## 1. `aws` CLI
|
|
8
|
-
|
|
9
|
-
### Output Filtering
|
|
10
|
-
AWS commands frequently output massive JSON structures with nested details. PromptShave parses and simplifies these outputs.
|
|
11
|
-
|
|
12
|
-
* **`aws ec2 describe-instances`:**
|
|
13
|
-
* Raw output is a massive JSON object listing networking, security group, and disk configurations for every VM.
|
|
14
|
-
* **Table Simplification:** Extract key fields and output a clean, compact markdown table:
|
|
15
|
-
| Instance ID | Type | State | Public IP | Private IP | Name Tag |
|
|
16
|
-
| :--- | :--- | :--- | :--- | :--- | :--- |
|
|
17
|
-
* Drop all security group lists, IAM profile blocks, and block device mapping objects.
|
|
18
|
-
* **`aws ecs list-tasks` / `describe-tasks`:**
|
|
19
|
-
* Simplify output to show only task ARN, status (Running/Pending/Stopped), and container definitions.
|
|
20
|
-
* **`aws s3 ls`:**
|
|
21
|
-
* Clean up double spacing and display directories/files in a compact list. Limit lists to **50 items**. If there are more, summarize the remainder (e.g., `... +142 other objects`).
|
|
22
|
-
* **`aws logs get-log-events`:**
|
|
23
|
-
* Strip verbose event metadata (`ingestionTime`, `eventNumber`).
|
|
24
|
-
* Format each event as: `[Timestamp] Message`.
|
|
25
|
-
* Collapse repeated duplicate lines and enforce a default limit of 50 log events.
|
|
26
|
-
|
|
27
|
-
---
|
|
28
|
-
|
|
29
|
-
## 2. `gcloud` CLI
|
|
30
|
-
|
|
31
|
-
### Output Filtering
|
|
32
|
-
Google Cloud commands output tables or JSON objects summarizing compute resources.
|
|
33
|
-
|
|
34
|
-
* **`gcloud compute instances list`:**
|
|
35
|
-
* Parse table output. Remove internal platform flags and wide metadata columns.
|
|
36
|
-
* Output a condensed table showing: `NAME`, `ZONE`, `MACHINE_TYPE`, `PREEMPTIBLE`, `INTERNAL_IP`, `EXTERNAL_IP`, `STATUS`.
|
|
37
|
-
* **JSON Outputs:**
|
|
38
|
-
* If the user passes `--format=json`, PromptShave parses the JSON and strips nested system config parameters (like metadata keys, service accounts, license lists), returning only the key resource identifiers and state properties.
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
# PromptShave.ai - Docker & Kubernetes Insights Specification
|
|
2
|
-
|
|
3
|
-
This document details the command optimizations, filtering criteria, and output formatting applied to **Docker** and **Kubernetes** CLI tools.
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## 1. `docker` & `docker compose`
|
|
8
|
-
|
|
9
|
-
### Output Filtering
|
|
10
|
-
* **`docker ps` / `docker compose ps`:**
|
|
11
|
-
* Raw container lists contain extremely wide tables with columns like `PORTS`, `NAMES`, and `CREATED` that bloat token count.
|
|
12
|
-
* **Column Stripping:** Parse the table, remove the `PORTS`, `CREATED`, and `SIZE` columns.
|
|
13
|
-
* Keep only: `CONTAINER ID`, `IMAGE`, `COMMAND` (truncated to 20 chars), `STATUS`, and `NAMES`.
|
|
14
|
-
* **`docker images`:**
|
|
15
|
-
* Strip columns `IMAGE ID`, `CREATED`. Keep only `REPOSITORY`, `TAG`, and `SIZE`.
|
|
16
|
-
* **`docker logs`:**
|
|
17
|
-
* Compress log dumps. Collapse repeated consecutive logs: if a server prints `Connection refused` 200 times, collapse it to `Connection refused [x200]`.
|
|
18
|
-
* If logs exceed 100 lines, truncate the middle, displaying only the first 15 lines and the last 35 lines, with a warning: `... (X lines of logs truncated)`.
|
|
19
|
-
|
|
20
|
-
---
|
|
21
|
-
|
|
22
|
-
## 2. `kubectl` (Kubernetes CLI)
|
|
23
|
-
|
|
24
|
-
### Output Filtering
|
|
25
|
-
* **`kubectl get pods` / `get services`:**
|
|
26
|
-
* Scan Pod status. If there are 50 pods running, instead of listing all 50 running pods (which are identical in status), group them:
|
|
27
|
-
```text
|
|
28
|
-
Running Pods: 48 pods (all status: Running, restarts: 0)
|
|
29
|
-
Failing Pods:
|
|
30
|
-
- pod-auth-service-xyz: Status: CrashLoopBackOff, Restarts: 14
|
|
31
|
-
- pod-payment-service-abc: Status: Pending
|
|
32
|
-
```
|
|
33
|
-
* This reduces the output by 95% while highlighting the pods that actually need the AI's attention!
|
|
34
|
-
* **`kubectl logs`:**
|
|
35
|
-
* Apply log-compression rules: strip color codes, collapse duplicate lines, and truncate to the last 50 lines unless a specific tail limit was passed by the user.
|
|
36
|
-
* **`kubectl describe <resource>`:**
|
|
37
|
-
* `kubectl describe` prints huge amounts of configuration data.
|
|
38
|
-
* **Selective Parsing:** Filter the output to preserve only key metadata fields:
|
|
39
|
-
* `Name`, `Namespace`, `Status`, `IP`, `Controlled By`.
|
|
40
|
-
* **Events Section:** Always keep the `Events` table at the bottom in full, as it contains error logs, pull failures, and scheduling warnings that explain *why* a resource is failing. Strip intermediate scheduling status checks.
|
|
41
|
-
* **`kubectl apply`:**
|
|
42
|
-
* Strip `configured` / `unchanged` lines if there are many (>5). Show only modified/created resources:
|
|
43
|
-
```text
|
|
44
|
-
kubectl: 12 resources unchanged, 1 resource created (deployment.apps/auth-service)
|
|
45
|
-
```
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
# PromptShave.ai - Generic Fallback & Security Filters Specification
|
|
2
|
-
|
|
3
|
-
This document details the global filters, redaction systems, and safety thresholds applied to **all** command outputs processed by PromptShave.ai.
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## 1. ANSI Escape Code Stripping
|
|
8
|
-
Terminal outputs often contain ANSI escape sequences (e.g. `\x1B[31m` for red text, cursor repositioning codes, bold markers).
|
|
9
|
-
* **Action:** PromptShave automatically strips all ANSI escape codes from stdout and stderr before evaluating regex rules or returning the output to the AI agent.
|
|
10
|
-
* **Benefit:** Saves token budget and prevents formatting artifacts from confusing LLM parsers.
|
|
11
|
-
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
## 2. PII & Secret Redaction (Data Loss Prevention)
|
|
15
|
-
To prevent accidental data leaks to external LLMs, PromptShave scans all command outputs for sensitive credentials and patterns.
|
|
16
|
-
|
|
17
|
-
### Default Redaction Targets & Regex Rules:
|
|
18
|
-
1. **API Keys / Secrets / Passwords:**
|
|
19
|
-
* **Regex:** `(?i)(api[_-]?key|secret|password|passwd|auth|token|private[_-]?key)[\s:=]+[a-zA-Z0-9_-]{16,}`
|
|
20
|
-
* **Replacement:** `[REDACTED_CREDENTIAL]`
|
|
21
|
-
2. **IPv4 Addresses:**
|
|
22
|
-
* **Regex:** `\b(?:[0-9]{1,3}\.){3}[0-9]{1,3}\b`
|
|
23
|
-
* **Replacement:** `[REDACTED_IP]` (ignores standard loopback `127.0.0.1` and broad subnet masks `255.255.255.0`).
|
|
24
|
-
3. **Email Addresses:**
|
|
25
|
-
* **Regex:** `\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b`
|
|
26
|
-
* **Replacement:** `[REDACTED_EMAIL]`
|
|
27
|
-
4. **Database Connection Strings:**
|
|
28
|
-
* **Regex:** `(?i)(mongodb|postgres|postgresql|mysql|redis|sqlite):\/\/[a-zA-Z0-9_]+:[^@\s]+@[^\s]+`
|
|
29
|
-
* **Replacement:** `[REDACTED_DB_CONNECTION_STRING]`
|
|
30
|
-
|
|
31
|
-
---
|
|
32
|
-
|
|
33
|
-
## 3. Duplicate Line Collapsing (Deduplication)
|
|
34
|
-
If a script or application malfunctions (e.g., infinite loop, database reconnect failures), it may print the same error message thousands of times, crashing the LLM's context.
|
|
35
|
-
* **Mechanism:** Scan adjacent lines. If a line matches the previous line exactly:
|
|
36
|
-
* Increment a duplicate counter.
|
|
37
|
-
* Omit the duplicate line from the output.
|
|
38
|
-
* When a new line is encountered (or at the end of output), print the first occurrence of the duplicate line appended with `[xN]` (where N is the total count of occurrences).
|
|
39
|
-
* **Example:**
|
|
40
|
-
```text
|
|
41
|
-
Error: Database connection failed (timeout)
|
|
42
|
-
Error: Database connection failed (timeout)
|
|
43
|
-
... [150 times]
|
|
44
|
-
```
|
|
45
|
-
is compressed to:
|
|
46
|
-
```text
|
|
47
|
-
Error: Database connection failed (timeout) [x150]
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
---
|
|
51
|
-
|
|
52
|
-
## 4. Soft and Hard Output Truncation
|
|
53
|
-
If a command produces an extremely large output that is not matched by any specialized command filter:
|
|
54
|
-
* **Soft Character Limit:** 20,000 characters (approx. 5,000 tokens).
|
|
55
|
-
* **Truncation Action:** If the output exceeds the character limit:
|
|
56
|
-
* Extract the first **50 lines** of the output (to preserve headers/initial outcomes).
|
|
57
|
-
* Extract the last **150 lines** of the output (to preserve stack traces/final outcomes).
|
|
58
|
-
* Join them with a clear, machine-parseable marker:
|
|
59
|
-
```text
|
|
60
|
-
... [PromptShave: Truncated X characters of output] ...
|
|
61
|
-
```
|
|
62
|
-
* **Exit Code Integrity:** Truncation must never alter the exit code returned by the shell command.
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
# PromptShave.ai - Git Command Insights Specification
|
|
2
|
-
|
|
3
|
-
This document details the command optimizations, filtering criteria, and output formatting applied to **Git** commands.
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## 1. `git status`
|
|
8
|
-
|
|
9
|
-
### Command Optimization
|
|
10
|
-
Before spawning the subprocess, check the user's explicit CLI arguments:
|
|
11
|
-
* **Check compatibility:** If the user passed arguments other than `-b`, `--branch`, `-sb`, `-bs`, `-s`, `--short`, **bypass the filter** and execute the command raw (because arguments like specific file paths or untracked-files flags are incompatible with the default short format).
|
|
12
|
-
* **Rewritten Command:** If compatible, execute `git status --porcelain -b`.
|
|
13
|
-
|
|
14
|
-
### Output Filtering & Formatting
|
|
15
|
-
1. If the output is empty (excluding whitespace), output:
|
|
16
|
-
```text
|
|
17
|
-
Clean working tree
|
|
18
|
-
```
|
|
19
|
-
2. **Branch Header formatting:** The first line of the porcelain output contains the branch status (starts with `## `). Rewrite it to a cleaner, more readable format for the LLM:
|
|
20
|
-
* Example: `## main...origin/main` is rewritten to `* main...origin/main`.
|
|
21
|
-
* Example: If detached head, format it as `* (HEAD detached at <commit_hash>)`.
|
|
22
|
-
3. **Change list formatting:** Output the modified/untracked files as is.
|
|
23
|
-
4. **Directory Collapsing (Enterprise Improvement):** If there are more than 10 untracked files inside the same directory:
|
|
24
|
-
* Instead of listing each file line-by-line, collapse them into a single summary line:
|
|
25
|
-
`?? path/to/directory/ (N files)`
|
|
26
|
-
* This prevents context bloating when a developer creates many temporary files or downloads a dataset.
|
|
27
|
-
|
|
28
|
-
---
|
|
29
|
-
|
|
30
|
-
## 2. `git log`
|
|
31
|
-
|
|
32
|
-
### Command Optimization
|
|
33
|
-
Analyze the CLI arguments for formatting and limits:
|
|
34
|
-
* **Format Check:** Check if the user specified a custom format via `--oneline`, `--pretty`, or `--format`.
|
|
35
|
-
* **Limit Check:** Check if the user specified a limit via `-N`, `-n N`, or `--max-count=N`.
|
|
36
|
-
* **Default Formatting:** If no custom format flag is present, append:
|
|
37
|
-
```bash
|
|
38
|
-
--pretty=format:%h %s (%ar) <%an>%n%b%n---END---
|
|
39
|
-
```
|
|
40
|
-
This prints: `<short_hash> <subject> (<relative_time>) <<author_name>>\n<commit_body>\n---END---`.
|
|
41
|
-
* **Default Limits:**
|
|
42
|
-
* If the user specified a limit, respect it.
|
|
43
|
-
* If a custom format was passed but no limit, default to `-50`.
|
|
44
|
-
* If no format and no limit was passed, default to `-10`.
|
|
45
|
-
* **Merge Filtering:** If the user did not explicitly request merges (no `--merges`, `--no-merges`, or `--min-parents`), append `--no-merges` to remove merge commit noise.
|
|
46
|
-
|
|
47
|
-
---
|
|
48
|
-
|
|
49
|
-
## 3. `git diff`
|
|
50
|
-
|
|
51
|
-
### Command Optimization
|
|
52
|
-
* Intercept `git diff`. If the user passes `--no-compact` or `--raw`, bypass and run raw.
|
|
53
|
-
* Run the command and capture the output.
|
|
54
|
-
|
|
55
|
-
### Output Filtering (Unified Diff Condensation)
|
|
56
|
-
1. **Metadata Stripping:** Strip git-specific metadata headers: `diff --git`, `index`, `similarity index`, `--- `, `+++ `, and `@@` line metadata (except the file path).
|
|
57
|
-
2. **File Summaries:** For each changed file, output a header:
|
|
58
|
-
```text
|
|
59
|
-
[file] path/to/file (+A -B)
|
|
60
|
-
```
|
|
61
|
-
3. **Change Limiting:** Output the actual additions (`+`) and removals (`-`) for the file.
|
|
62
|
-
4. **Truncation Threshold:** Limit the displayed changes to **10 lines** per file. If a file has more than 10 lines of diff:
|
|
63
|
-
* Truncate the rest and append: ` ... +N more` (where N is the true count of remaining changes).
|
|
64
|
-
* This is critical to prevent lockfiles (e.g. `package-lock.json`) or generated files from eating up the entire token window.
|
|
65
|
-
|
|
66
|
-
---
|
|
67
|
-
|
|
68
|
-
## 4. `git show`
|
|
69
|
-
|
|
70
|
-
### Command Optimization
|
|
71
|
-
* **Bypass cases:** If the user requests stat-only views (`--stat`, `--numstat`, `--shortstat`), a custom format, or a specific file blob (`git show revision:path`), bypass the filter and execute raw.
|
|
72
|
-
* Otherwise, capture the raw output and process it using `compact_diff()`.
|
|
73
|
-
|
|
74
|
-
### Output Filtering (`compact_diff()`)
|
|
75
|
-
1. **Hunk Header Preservation:** Preserve the unified diff hunk header (`@@`), including any trailing function/symbol context (e.g., `@@ -1,5 +1,6 @@ fn my_function()`). This helps the LLM understand which function is being edited.
|
|
76
|
-
2. **Prefix Context Removal:** Strip any lines of unchanged context before the first addition/removal in each hunk.
|
|
77
|
-
3. **Hunk Truncation:** Limit the displayed changes to a maximum of **100 lines** per hunk. If a hunk has more changes:
|
|
78
|
-
* Truncate the rest and print: ` ... (X lines truncated)`.
|
|
79
|
-
4. **Global Truncation:** If the overall formatted diff output exceeds `max_lines` (default 500 lines):
|
|
80
|
-
* Terminate the output and append:
|
|
81
|
-
```text
|
|
82
|
-
... (more changes truncated)
|
|
83
|
-
[full diff: pshave git diff --no-compact]
|
|
84
|
-
```
|
|
85
|
-
* This gives the AI agent a direct hint on how to retrieve the full diff if it needs it.
|