@wrongstack/plugin-sdk 0.319.0 → 0.320.1
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/dist/runtime.js +28 -7
- package/package.json +3 -3
package/dist/runtime.js
CHANGED
|
@@ -322,7 +322,10 @@ var CREDENTIAL_PATTERNS = [
|
|
|
322
322
|
type: "anthropic_key",
|
|
323
323
|
regex: /(?<![A-Za-z0-9])sk-ant-api\d+-[A-Za-z0-9_-]{20,}(?![A-Za-z0-9])/g
|
|
324
324
|
},
|
|
325
|
-
{
|
|
325
|
+
{
|
|
326
|
+
type: "openai_key",
|
|
327
|
+
regex: /(?<![A-Za-z0-9])sk-(?!ant)(?:proj-)?[A-Za-z0-9_-]{20,}(?![A-Za-z0-9])/g
|
|
328
|
+
},
|
|
326
329
|
// GitHub. `ghp_` is only the personal-access-token prefix — the OAuth
|
|
327
330
|
// (`gho_`), user-to-server (`ghu_`), server-to-server (`ghs_`) and
|
|
328
331
|
// refresh (`ghr_`) tokens grant the same or broader access and were
|
|
@@ -385,14 +388,29 @@ var CREDENTIAL_PATTERNS = [
|
|
|
385
388
|
{ type: "groq_key", regex: /(?<![A-Za-z0-9])gsk_[A-Za-z0-9]{40,}(?![A-Za-z0-9])/g },
|
|
386
389
|
// SaaS / infrastructure tokens — each grants API access on the user's
|
|
387
390
|
// account, and each was previously invisible to this gate.
|
|
388
|
-
{
|
|
391
|
+
{
|
|
392
|
+
type: "sendgrid_key",
|
|
393
|
+
regex: /(?<![A-Za-z0-9])SG\.[A-Za-z0-9_-]{20,}\.[A-Za-z0-9_-]{20,}(?![A-Za-z0-9_-])/g
|
|
394
|
+
},
|
|
389
395
|
{ type: "digitalocean_token", regex: /(?<![A-Za-z0-9])dop_v1_[a-f0-9]{64}(?![A-Za-z0-9])/g },
|
|
390
|
-
{
|
|
391
|
-
|
|
396
|
+
{
|
|
397
|
+
type: "doppler_token",
|
|
398
|
+
regex: /(?<![A-Za-z0-9])dp\.(?:pt|st|sa|scim|audit)\.[A-Za-z0-9]{40,}(?![A-Za-z0-9])/g
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
type: "shopify_token",
|
|
402
|
+
regex: /(?<![A-Za-z0-9])shp(?:at|ca|pa|ss)_[a-fA-F0-9]{32}(?![A-Za-z0-9])/g
|
|
403
|
+
},
|
|
392
404
|
{ type: "docker_pat", regex: /(?<![A-Za-z0-9])dckr_pat_[A-Za-z0-9_-]{20,}(?![A-Za-z0-9_-])/g },
|
|
393
405
|
{ type: "linear_key", regex: /(?<![A-Za-z0-9])lin_api_[A-Za-z0-9]{40,}(?![A-Za-z0-9])/g },
|
|
394
|
-
{
|
|
395
|
-
|
|
406
|
+
{
|
|
407
|
+
type: "atlassian_token",
|
|
408
|
+
regex: /(?<![A-Za-z0-9])ATATT3[A-Za-z0-9_\-=]{40,}(?![A-Za-z0-9_\-=])/g
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
type: "square_token",
|
|
412
|
+
regex: /(?<![A-Za-z0-9])(?:sq0(?:atp|csp)-|EAAA)[A-Za-z0-9_-]{20,}(?![A-Za-z0-9_-])/g
|
|
413
|
+
},
|
|
396
414
|
{
|
|
397
415
|
type: "azure_storage_key",
|
|
398
416
|
regex: /AccountKey=[A-Za-z0-9+/]{80,}={0,2}/g
|
|
@@ -686,7 +704,10 @@ function resolveRunnerCommand(runtime, command, options = {}) {
|
|
|
686
704
|
return null;
|
|
687
705
|
}
|
|
688
706
|
if (head === runtime.executable) {
|
|
689
|
-
if (!everyFlagAllowed(
|
|
707
|
+
if (!everyFlagAllowed(
|
|
708
|
+
runtime.allowedFlags,
|
|
709
|
+
[second, ...rest].filter((v) => Boolean(v))
|
|
710
|
+
)) {
|
|
690
711
|
return null;
|
|
691
712
|
}
|
|
692
713
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wrongstack/plugin-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.320.1",
|
|
4
4
|
"description": "Authoring SDK for WrongStack plugins — the plugin contract types, definePlugin, and shared runtime helpers. Third-party plugins should depend on this package only.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "ECOSTACK TECHNOLOGY OÜ",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"vitest": "^4.1.11"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@wrongstack/core": "0.
|
|
33
|
-
"@wrongstack/tools": "0.
|
|
32
|
+
"@wrongstack/core": "0.320.1",
|
|
33
|
+
"@wrongstack/tools": "0.320.1"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"build": "node ../../scripts/build-package.mjs",
|