@kenkaiiii/ggcoder 5.67.0 → 5.68.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/dist/app-sidecar.js +121 -3
  2. package/dist/app-sidecar.js.map +1 -1
  3. package/dist/core/agent-session.d.ts +49 -3
  4. package/dist/core/agent-session.js +305 -22
  5. package/dist/core/agent-session.js.map +1 -1
  6. package/dist/core/ask-user.d.ts +90 -8
  7. package/dist/core/ask-user.js +124 -13
  8. package/dist/core/ask-user.js.map +1 -1
  9. package/dist/core/autopilot-verdict.d.ts +5 -1
  10. package/dist/core/autopilot-verdict.js +30 -13
  11. package/dist/core/autopilot-verdict.js.map +1 -1
  12. package/dist/core/compaction/plan-step-policy.d.ts +46 -0
  13. package/dist/core/compaction/plan-step-policy.js +57 -0
  14. package/dist/core/compaction/plan-step-policy.js.map +1 -0
  15. package/dist/core/destructive-git-guard.d.ts +63 -0
  16. package/dist/core/destructive-git-guard.js +831 -0
  17. package/dist/core/destructive-git-guard.js.map +1 -0
  18. package/dist/core/event-bus.d.ts +3 -0
  19. package/dist/core/event-bus.js +5 -0
  20. package/dist/core/event-bus.js.map +1 -1
  21. package/dist/core/keep-awake.d.ts +88 -0
  22. package/dist/core/keep-awake.js +251 -0
  23. package/dist/core/keep-awake.js.map +1 -0
  24. package/dist/core/ken-context.d.ts +7 -5
  25. package/dist/core/ken-context.js +106 -16
  26. package/dist/core/ken-context.js.map +1 -1
  27. package/dist/core/ken-prompt.js +24 -21
  28. package/dist/core/ken-prompt.js.map +1 -1
  29. package/dist/core/package-threats.d.ts +18 -0
  30. package/dist/core/package-threats.js +168 -0
  31. package/dist/core/package-threats.js.map +1 -0
  32. package/dist/core/session-manager.d.ts +13 -1
  33. package/dist/core/session-manager.js +38 -18
  34. package/dist/core/session-manager.js.map +1 -1
  35. package/dist/core/session-summary-index.d.ts +37 -0
  36. package/dist/core/session-summary-index.js +172 -0
  37. package/dist/core/session-summary-index.js.map +1 -0
  38. package/dist/core/settings-manager.d.ts +2 -0
  39. package/dist/core/settings-manager.js +8 -0
  40. package/dist/core/settings-manager.js.map +1 -1
  41. package/dist/core/shell-threats-popular-packages.d.ts +11 -0
  42. package/dist/core/shell-threats-popular-packages.js +675 -0
  43. package/dist/core/shell-threats-popular-packages.js.map +1 -0
  44. package/dist/core/shell-threats.d.ts +8 -0
  45. package/dist/core/shell-threats.js +186 -0
  46. package/dist/core/shell-threats.js.map +1 -0
  47. package/dist/core/stream-rules.d.ts +30 -0
  48. package/dist/core/stream-rules.js +151 -0
  49. package/dist/core/stream-rules.js.map +1 -0
  50. package/dist/motion-agent/motion-check-tool.js +60 -29
  51. package/dist/motion-agent/motion-check-tool.js.map +1 -1
  52. package/dist/motion-agent/motion-review.d.ts +5 -2
  53. package/dist/motion-agent/motion-review.js +7 -4
  54. package/dist/motion-agent/motion-review.js.map +1 -1
  55. package/dist/tools/ask-user.js +3 -3
  56. package/dist/tools/ask-user.js.map +1 -1
  57. package/dist/tools/bash.js +37 -0
  58. package/dist/tools/bash.js.map +1 -1
  59. package/dist/tools/index.js +1 -1
  60. package/dist/tools/index.js.map +1 -1
  61. package/dist/tools/task-send.d.ts +1 -1
  62. package/dist/tools/task-send.js +15 -1
  63. package/dist/tools/task-send.js.map +1 -1
  64. package/dist/ui/components/ActivityIndicator.js +1 -0
  65. package/dist/ui/components/ActivityIndicator.js.map +1 -1
  66. package/dist/ui/hooks/useAgentLoop.d.ts +1 -1
  67. package/dist/ui/hooks/useAgentLoop.js.map +1 -1
  68. package/package.json +4 -4
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Popular package names for the typosquat check in `shell-threats.ts`.
3
+ *
4
+ * Hand-maintained and deliberately small (~200 per ecosystem): a name one typo
5
+ * away from one of these, and not itself on the list, earns a "did you mean"
6
+ * warning — never a block. Add a legitimate package here when it keeps tripping
7
+ * the warning (e.g. `tsc` sits next to `tsx`, `moto` next to `mock`).
8
+ * PyPI names are stored PEP 503-normalised (lowercase, `-` separators).
9
+ */
10
+ export declare const POPULAR_NPM_PACKAGES: readonly string[];
11
+ export declare const POPULAR_PYPI_PACKAGES: readonly string[];
@@ -0,0 +1,675 @@
1
+ /**
2
+ * Popular package names for the typosquat check in `shell-threats.ts`.
3
+ *
4
+ * Hand-maintained and deliberately small (~200 per ecosystem): a name one typo
5
+ * away from one of these, and not itself on the list, earns a "did you mean"
6
+ * warning — never a block. Add a legitimate package here when it keeps tripping
7
+ * the warning (e.g. `tsc` sits next to `tsx`, `moto` next to `mock`).
8
+ * PyPI names are stored PEP 503-normalised (lowercase, `-` separators).
9
+ */
10
+ export const POPULAR_NPM_PACKAGES = [
11
+ // UI frameworks and state
12
+ "react",
13
+ "react-dom",
14
+ "react-router",
15
+ "react-router-dom",
16
+ "react-redux",
17
+ "redux",
18
+ "redux-thunk",
19
+ "@reduxjs/toolkit",
20
+ "next",
21
+ "vue",
22
+ "vue-router",
23
+ "vuex",
24
+ "pinia",
25
+ "nuxt",
26
+ "svelte",
27
+ "@sveltejs/kit",
28
+ "@angular/core",
29
+ "@angular/common",
30
+ "@angular/cli",
31
+ "preact",
32
+ "solid-js",
33
+ "lit",
34
+ "jquery",
35
+ "zustand",
36
+ "jotai",
37
+ "mobx",
38
+ "immer",
39
+ "immutable",
40
+ "react-native",
41
+ "expo",
42
+ "electron",
43
+ "electron-builder",
44
+ "ink",
45
+ // Utilities
46
+ "lodash",
47
+ "lodash-es",
48
+ "underscore",
49
+ "ramda",
50
+ "rxjs",
51
+ "uuid",
52
+ "nanoid",
53
+ "classnames",
54
+ "clsx",
55
+ "tailwind-merge",
56
+ "prop-types",
57
+ "moment",
58
+ "dayjs",
59
+ "date-fns",
60
+ "luxon",
61
+ "zod",
62
+ "yup",
63
+ "joi",
64
+ "ajv",
65
+ "class-validator",
66
+ "class-transformer",
67
+ "qs",
68
+ "query-string",
69
+ "cookie",
70
+ "js-cookie",
71
+ "mime",
72
+ "mime-types",
73
+ "ms",
74
+ "semver",
75
+ "debug",
76
+ "dotenv",
77
+ "dotenv-expand",
78
+ "cross-env",
79
+ "yaml",
80
+ "js-yaml",
81
+ "ini",
82
+ "xml2js",
83
+ "csv-parse",
84
+ "papaparse",
85
+ "validator",
86
+ "crypto-js",
87
+ "bignumber.js",
88
+ "decimal.js",
89
+ "numeral",
90
+ "async",
91
+ "bluebird",
92
+ "p-limit",
93
+ "p-queue",
94
+ "eventemitter3",
95
+ "events",
96
+ "buffer",
97
+ "process",
98
+ "util",
99
+ "path-browserify",
100
+ "tslib",
101
+ "core-js",
102
+ "regenerator-runtime",
103
+ "reflect-metadata",
104
+ "source-map",
105
+ "source-map-support",
106
+ "iconv-lite",
107
+ "safe-buffer",
108
+ "inherits",
109
+ "once",
110
+ "minimatch",
111
+ "micromatch",
112
+ "picomatch",
113
+ "braces",
114
+ "fast-glob",
115
+ "globby",
116
+ "glob",
117
+ "rimraf",
118
+ "mkdirp",
119
+ "fs-extra",
120
+ "chokidar",
121
+ "execa",
122
+ "cross-spawn",
123
+ "which",
124
+ "shelljs",
125
+ "open",
126
+ "tar",
127
+ "archiver",
128
+ "adm-zip",
129
+ "jszip",
130
+ // CLI
131
+ "chalk",
132
+ "commander",
133
+ "yargs",
134
+ "minimist",
135
+ "inquirer",
136
+ "ora",
137
+ "colors",
138
+ "kleur",
139
+ "picocolors",
140
+ "enquirer",
141
+ "prompts",
142
+ "meow",
143
+ "cac",
144
+ "boxen",
145
+ "figlet",
146
+ "cli-table3",
147
+ "listr2",
148
+ "zx",
149
+ // HTTP and servers
150
+ "axios",
151
+ "node-fetch",
152
+ "cross-fetch",
153
+ "isomorphic-fetch",
154
+ "whatwg-fetch",
155
+ "undici",
156
+ "got",
157
+ "ky",
158
+ "superagent",
159
+ "request",
160
+ "form-data",
161
+ "express",
162
+ "koa",
163
+ "fastify",
164
+ "@hapi/hapi",
165
+ "hono",
166
+ "body-parser",
167
+ "cors",
168
+ "helmet",
169
+ "morgan",
170
+ "cookie-parser",
171
+ "express-session",
172
+ "multer",
173
+ "compression",
174
+ "serve-static",
175
+ "http-proxy-middleware",
176
+ "https-proxy-agent",
177
+ "socks-proxy-agent",
178
+ "passport",
179
+ "jsonwebtoken",
180
+ "bcrypt",
181
+ "bcryptjs",
182
+ "ws",
183
+ "socket.io",
184
+ "socket.io-client",
185
+ "graphql",
186
+ "apollo-server",
187
+ "@apollo/client",
188
+ "@trpc/server",
189
+ "@nestjs/core",
190
+ "@nestjs/common",
191
+ "nodemailer",
192
+ "http-server",
193
+ "serve",
194
+ "json-server",
195
+ // Data
196
+ "mongoose",
197
+ "mongodb",
198
+ "mysql",
199
+ "mysql2",
200
+ "pg",
201
+ "sequelize",
202
+ "typeorm",
203
+ "prisma",
204
+ "@prisma/client",
205
+ "knex",
206
+ "redis",
207
+ "ioredis",
208
+ "sqlite3",
209
+ "better-sqlite3",
210
+ "drizzle-orm",
211
+ "firebase",
212
+ "firebase-admin",
213
+ "aws-sdk",
214
+ "@aws-sdk/client-s3",
215
+ "stripe",
216
+ "openai",
217
+ "@anthropic-ai/sdk",
218
+ "langchain",
219
+ "bull",
220
+ "bullmq",
221
+ "kafkajs",
222
+ "amqplib",
223
+ "node-cron",
224
+ "cron",
225
+ // Logging
226
+ "winston",
227
+ "pino",
228
+ "bunyan",
229
+ "log4js",
230
+ // Content
231
+ "sharp",
232
+ "jimp",
233
+ "canvas",
234
+ "cheerio",
235
+ "jsdom",
236
+ "marked",
237
+ "markdown-it",
238
+ "highlight.js",
239
+ "prismjs",
240
+ "handlebars",
241
+ "ejs",
242
+ "pug",
243
+ "mustache",
244
+ "d3",
245
+ "chart.js",
246
+ "three",
247
+ "styled-components",
248
+ "@emotion/react",
249
+ "@emotion/styled",
250
+ "@mui/material",
251
+ "@mui/icons-material",
252
+ "antd",
253
+ "bootstrap",
254
+ "@chakra-ui/react",
255
+ "framer-motion",
256
+ "react-icons",
257
+ "lucide-react",
258
+ "@radix-ui/react-dialog",
259
+ "@tanstack/react-query",
260
+ "react-query",
261
+ "swr",
262
+ "formik",
263
+ "react-hook-form",
264
+ // Build and test tooling
265
+ "typescript",
266
+ "tsc",
267
+ "tsx",
268
+ "ts-node",
269
+ "@types/node",
270
+ "@types/react",
271
+ "@types/react-dom",
272
+ "@types/express",
273
+ "@types/jest",
274
+ "@types/lodash",
275
+ "eslint",
276
+ "prettier",
277
+ "eslint-config-prettier",
278
+ "eslint-plugin-react",
279
+ "eslint-plugin-import",
280
+ "eslint-plugin-react-hooks",
281
+ "eslint-plugin-jsx-a11y",
282
+ "eslint-config-airbnb",
283
+ "@typescript-eslint/parser",
284
+ "@typescript-eslint/eslint-plugin",
285
+ "typescript-eslint",
286
+ "stylelint",
287
+ "jest",
288
+ "ts-jest",
289
+ "vitest",
290
+ "mocha",
291
+ "chai",
292
+ "sinon",
293
+ "supertest",
294
+ "nock",
295
+ "msw",
296
+ "@faker-js/faker",
297
+ "@testing-library/react",
298
+ "@testing-library/jest-dom",
299
+ "@testing-library/user-event",
300
+ "jest-environment-jsdom",
301
+ "happy-dom",
302
+ "cypress",
303
+ "playwright",
304
+ "@playwright/test",
305
+ "puppeteer",
306
+ "puppeteer-core",
307
+ "webpack",
308
+ "webpack-cli",
309
+ "webpack-dev-server",
310
+ "babel-loader",
311
+ "css-loader",
312
+ "style-loader",
313
+ "sass-loader",
314
+ "html-webpack-plugin",
315
+ "mini-css-extract-plugin",
316
+ "vite",
317
+ "@vitejs/plugin-react",
318
+ "rollup",
319
+ "@rollup/plugin-node-resolve",
320
+ "@rollup/plugin-commonjs",
321
+ "esbuild",
322
+ "parcel",
323
+ "tsup",
324
+ "unbuild",
325
+ "turbo",
326
+ "nx",
327
+ "lerna",
328
+ "@babel/core",
329
+ "@babel/preset-env",
330
+ "@babel/preset-react",
331
+ "@babel/preset-typescript",
332
+ "@babel/cli",
333
+ "@babel/runtime",
334
+ "terser",
335
+ "uglify-js",
336
+ "acorn",
337
+ "postcss",
338
+ "autoprefixer",
339
+ "tailwindcss",
340
+ "sass",
341
+ "less",
342
+ "cssnano",
343
+ "nodemon",
344
+ "concurrently",
345
+ "husky",
346
+ "lint-staged",
347
+ "@commitlint/cli",
348
+ "semantic-release",
349
+ "pm2",
350
+ "storybook",
351
+ "@storybook/react",
352
+ "pnpm",
353
+ "yarn",
354
+ "npm",
355
+ "create-react-app",
356
+ "create-next-app",
357
+ "create-vite",
358
+ "degit",
359
+ "ts-morph",
360
+ ];
361
+ export const POPULAR_PYPI_PACKAGES = [
362
+ // Core and packaging
363
+ "pip",
364
+ "setuptools",
365
+ "wheel",
366
+ "six",
367
+ "packaging",
368
+ "typing-extensions",
369
+ "certifi",
370
+ "idna",
371
+ "charset-normalizer",
372
+ "chardet",
373
+ "urllib3",
374
+ "requests",
375
+ "python-dateutil",
376
+ "pyyaml",
377
+ "attrs",
378
+ "cattrs",
379
+ "filelock",
380
+ "platformdirs",
381
+ "distlib",
382
+ "importlib-metadata",
383
+ "zipp",
384
+ "decorator",
385
+ "wrapt",
386
+ "deprecated",
387
+ "virtualenv",
388
+ "pipenv",
389
+ "poetry",
390
+ "poetry-core",
391
+ "hatchling",
392
+ "build",
393
+ "twine",
394
+ "setuptools-scm",
395
+ "cython",
396
+ "pybind11",
397
+ "cmake",
398
+ "ninja",
399
+ "toml",
400
+ "tomli",
401
+ "tomlkit",
402
+ "configparser",
403
+ "regex",
404
+ "more-itertools",
405
+ "toolz",
406
+ "cachetools",
407
+ "sortedcontainers",
408
+ "pytz",
409
+ "tzdata",
410
+ "tzlocal",
411
+ "arrow",
412
+ "pendulum",
413
+ "python-dotenv",
414
+ "environs",
415
+ "psutil",
416
+ "pywin32",
417
+ "pyinstaller",
418
+ "pexpect",
419
+ "typer",
420
+ "click",
421
+ "fire",
422
+ "docopt",
423
+ "rich",
424
+ "colorama",
425
+ "termcolor",
426
+ "tabulate",
427
+ "prettytable",
428
+ "tqdm",
429
+ "loguru",
430
+ "structlog",
431
+ "tenacity",
432
+ "backoff",
433
+ "retry",
434
+ // Crypto and auth
435
+ "cryptography",
436
+ "cffi",
437
+ "pycparser",
438
+ "pyasn1",
439
+ "rsa",
440
+ "pyjwt",
441
+ "python-jose",
442
+ "passlib",
443
+ "bcrypt",
444
+ "pynacl",
445
+ "pyopenssl",
446
+ "oauthlib",
447
+ "requests-oauthlib",
448
+ "google-auth",
449
+ // Web
450
+ "flask",
451
+ "django",
452
+ "djangorestframework",
453
+ "django-cors-headers",
454
+ "channels",
455
+ "whitenoise",
456
+ "fastapi",
457
+ "uvicorn",
458
+ "starlette",
459
+ "gunicorn",
460
+ "werkzeug",
461
+ "itsdangerous",
462
+ "jinja2",
463
+ "markupsafe",
464
+ "mako",
465
+ "flask-cors",
466
+ "flask-sqlalchemy",
467
+ "flask-login",
468
+ "sanic",
469
+ "falcon",
470
+ "bottle",
471
+ "pyramid",
472
+ "tornado",
473
+ "aiohttp",
474
+ "httpx",
475
+ "httpcore",
476
+ "h11",
477
+ "anyio",
478
+ "sniffio",
479
+ "multidict",
480
+ "yarl",
481
+ "frozenlist",
482
+ "aiosignal",
483
+ "async-timeout",
484
+ "aiofiles",
485
+ "websockets",
486
+ "websocket-client",
487
+ "python-multipart",
488
+ "email-validator",
489
+ "pydantic",
490
+ "pydantic-core",
491
+ "pydantic-settings",
492
+ "marshmallow",
493
+ "jsonschema",
494
+ "simplejson",
495
+ "ujson",
496
+ "orjson",
497
+ "msgpack",
498
+ "protobuf",
499
+ "grpcio",
500
+ "grpcio-tools",
501
+ "googleapis-common-protos",
502
+ "google-api-core",
503
+ "beautifulsoup4",
504
+ "bs4",
505
+ "lxml",
506
+ "html5lib",
507
+ "soupsieve",
508
+ "scrapy",
509
+ "selenium",
510
+ "playwright",
511
+ "pyppeteer",
512
+ "streamlit",
513
+ "gradio",
514
+ "dash",
515
+ // Data, storage and cloud
516
+ "sqlalchemy",
517
+ "alembic",
518
+ "sqlmodel",
519
+ "peewee",
520
+ "psycopg2",
521
+ "psycopg2-binary",
522
+ "psycopg",
523
+ "asyncpg",
524
+ "aiosqlite",
525
+ "pymysql",
526
+ "mysqlclient",
527
+ "pymongo",
528
+ "motor",
529
+ "redis",
530
+ "elasticsearch",
531
+ "celery",
532
+ "kombu",
533
+ "boto3",
534
+ "botocore",
535
+ "s3transfer",
536
+ "jmespath",
537
+ "moto",
538
+ "boto",
539
+ "azure-core",
540
+ "azure-storage-blob",
541
+ "azure-identity",
542
+ "google-cloud-storage",
543
+ "docker",
544
+ "kubernetes",
545
+ "paramiko",
546
+ "fabric",
547
+ "invoke",
548
+ "ansible",
549
+ "sentry-sdk",
550
+ "prometheus-client",
551
+ // Science and ML
552
+ "numpy",
553
+ "pandas",
554
+ "scipy",
555
+ "scikit-learn",
556
+ "matplotlib",
557
+ "seaborn",
558
+ "plotly",
559
+ "bokeh",
560
+ "altair",
561
+ "pillow",
562
+ "opencv-python",
563
+ "scikit-image",
564
+ "imageio",
565
+ "tensorflow",
566
+ "keras",
567
+ "torch",
568
+ "torchvision",
569
+ "torchaudio",
570
+ "transformers",
571
+ "tokenizers",
572
+ "huggingface-hub",
573
+ "datasets",
574
+ "accelerate",
575
+ "safetensors",
576
+ "sentencepiece",
577
+ "sentence-transformers",
578
+ "openai",
579
+ "anthropic",
580
+ "langchain",
581
+ "langchain-core",
582
+ "langchain-community",
583
+ "tiktoken",
584
+ "nltk",
585
+ "spacy",
586
+ "gensim",
587
+ "xgboost",
588
+ "lightgbm",
589
+ "catboost",
590
+ "statsmodels",
591
+ "sympy",
592
+ "networkx",
593
+ "numba",
594
+ "llvmlite",
595
+ "pyarrow",
596
+ "polars",
597
+ "dask",
598
+ "joblib",
599
+ "threadpoolctl",
600
+ "jax",
601
+ "jaxlib",
602
+ "flax",
603
+ "optax",
604
+ "einops",
605
+ "onnx",
606
+ "onnxruntime",
607
+ "mlflow",
608
+ "wandb",
609
+ "tensorboard",
610
+ "optuna",
611
+ "ray",
612
+ "chromadb",
613
+ "faiss-cpu",
614
+ "shapely",
615
+ "geopandas",
616
+ "folium",
617
+ "pyproj",
618
+ "openpyxl",
619
+ "xlrd",
620
+ "xlsxwriter",
621
+ "python-docx",
622
+ "pypdf",
623
+ "pypdf2",
624
+ "reportlab",
625
+ // Dev and test
626
+ "pytest",
627
+ "pytest-cov",
628
+ "pytest-mock",
629
+ "pytest-asyncio",
630
+ "coverage",
631
+ "mock",
632
+ "tox",
633
+ "nox",
634
+ "hypothesis",
635
+ "responses",
636
+ "freezegun",
637
+ "faker",
638
+ "factory-boy",
639
+ "black",
640
+ "isort",
641
+ "flake8",
642
+ "pylint",
643
+ "mypy",
644
+ "ruff",
645
+ "autopep8",
646
+ "yapf",
647
+ "pre-commit",
648
+ "types-requests",
649
+ "sphinx",
650
+ "docutils",
651
+ "mkdocs",
652
+ "mkdocs-material",
653
+ "markdown",
654
+ "pygments",
655
+ "jupyter",
656
+ "notebook",
657
+ "jupyterlab",
658
+ "ipython",
659
+ "ipykernel",
660
+ "ipywidgets",
661
+ "nbformat",
662
+ "nbconvert",
663
+ "traitlets",
664
+ "pyzmq",
665
+ "greenlet",
666
+ "gevent",
667
+ "eventlet",
668
+ "uvloop",
669
+ "watchdog",
670
+ "pygame",
671
+ "pyqt5",
672
+ "pyside6",
673
+ "pyserial",
674
+ ];
675
+ //# sourceMappingURL=shell-threats-popular-packages.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shell-threats-popular-packages.js","sourceRoot":"","sources":["../../src/core/shell-threats-popular-packages.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,MAAM,CAAC,MAAM,oBAAoB,GAAsB;IACrD,0BAA0B;IAC1B,OAAO;IACP,WAAW;IACX,cAAc;IACd,kBAAkB;IAClB,aAAa;IACb,OAAO;IACP,aAAa;IACb,kBAAkB;IAClB,MAAM;IACN,KAAK;IACL,YAAY;IACZ,MAAM;IACN,OAAO;IACP,MAAM;IACN,QAAQ;IACR,eAAe;IACf,eAAe;IACf,iBAAiB;IACjB,cAAc;IACd,QAAQ;IACR,UAAU;IACV,KAAK;IACL,QAAQ;IACR,SAAS;IACT,OAAO;IACP,MAA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Q;IACR,UAAU;IACV,QAAQ;IACR,OAAO;IACP,SAAS;IACT,UAAU;CACX,CAAC"}
@@ -0,0 +1,8 @@
1
+ export interface ShellThreat {
2
+ rule: string;
3
+ severity: "block" | "warn";
4
+ detail: string;
5
+ }
6
+ export declare function checkShellThreats(command: string): ShellThreat[];
7
+ /** First blocking threat as a refusal message, or null when the command may run. */
8
+ export declare function shellThreatBlockMessage(command: string): string | null;