@yadsh/dsh-prompt-firewall 0.1.0 → 0.1.2
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/lib/client/index.js +39 -25
- package/lib/client/index.js.map +1 -1
- package/lib/client/settings-store.js +11 -0
- package/lib/client/settings-store.js.map +1 -0
- package/lib/client/styles.js +26 -4
- package/lib/client/styles.js.map +1 -1
- package/lib/client.js +110 -53
- package/lib/client.js.map +1 -1
- package/lib/index.js +17 -1
- package/lib/index.js.map +1 -1
- package/lib/typert.host.js +2 -2
- package/lib/typert.remote-client.js +2 -2
- package/lib/types/client/settings-store.d.ts +11 -0
- package/lib/types/index.d.ts +1 -0
- package/package.json +40 -39
package/lib/index.js
CHANGED
|
@@ -35,6 +35,7 @@ var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn,
|
|
|
35
35
|
import { Context } from '@deepseek-ai/cordis';
|
|
36
36
|
import { installSettingsSection, settingsNamespace } from '@deepseek-ai/dsh-settings';
|
|
37
37
|
import { Remote, TypertRemoteService } from '@deepseek-ai/dsh-typert-protocol';
|
|
38
|
+
import { createHostLoggerSink, getPluginLogger, } from '@yadsh/dsh-plugin-log';
|
|
38
39
|
import { AuditStore } from './audit.js';
|
|
39
40
|
import { ConfigSchema, resolveConfig } from './config.js';
|
|
40
41
|
import { applyFirewall } from './firewall.js';
|
|
@@ -75,8 +76,15 @@ let PromptFirewall = (() => {
|
|
|
75
76
|
compiledRules;
|
|
76
77
|
audits;
|
|
77
78
|
metrics = new FirewallMetrics();
|
|
79
|
+
logger;
|
|
78
80
|
constructor(ctx, config = {}) {
|
|
79
81
|
super(ctx, 'promptFirewall', { namespace: 'promptFirewall' });
|
|
82
|
+
this.logger = getPluginLogger({
|
|
83
|
+
pluginId: 'dsh-prompt-firewall',
|
|
84
|
+
console: 'trace',
|
|
85
|
+
consoleSink: createHostLoggerSink(ctx.logger),
|
|
86
|
+
});
|
|
87
|
+
ctx.effect(() => async () => this.logger.close(), 'dsh-prompt-firewall.logger');
|
|
80
88
|
this.entryConfig = structuredClone(config);
|
|
81
89
|
this.configSource = () => this.entryConfig;
|
|
82
90
|
this.resolvedConfig = resolveConfig(config);
|
|
@@ -95,10 +103,14 @@ let PromptFirewall = (() => {
|
|
|
95
103
|
config: this.resolvedConfig,
|
|
96
104
|
auditStore: this.audits,
|
|
97
105
|
metrics: this.metrics,
|
|
98
|
-
logger:
|
|
106
|
+
logger: this.logger,
|
|
99
107
|
evaluate: section => evaluateSection(section, this.compiledRules),
|
|
100
108
|
});
|
|
101
109
|
}, { prepend: true });
|
|
110
|
+
this.logger.info('plugin.ready', {
|
|
111
|
+
enabled: this.resolvedConfig.enabled,
|
|
112
|
+
mode: this.resolvedConfig.mode,
|
|
113
|
+
});
|
|
102
114
|
}
|
|
103
115
|
inspectLast() {
|
|
104
116
|
return this.audits.last();
|
|
@@ -158,6 +170,10 @@ let PromptFirewall = (() => {
|
|
|
158
170
|
this.resolvedConfig = resolveConfig(this.configSource());
|
|
159
171
|
this.compiledRules = compileRules(this.resolvedConfig);
|
|
160
172
|
this.audits.configure(this.resolvedConfig.audit.historySize, this.resolvedConfig.audit.highlightNewSections);
|
|
173
|
+
this.logger.info('firewall.rules.reloaded', {
|
|
174
|
+
enabled: this.resolvedConfig.enabled,
|
|
175
|
+
mode: this.resolvedConfig.mode,
|
|
176
|
+
});
|
|
161
177
|
}
|
|
162
178
|
};
|
|
163
179
|
})();
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAE7C,OAAO,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AACrF,OAAO,EAAE,MAAM,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,C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CAAC,IAAI,CAAC,YAAY,EAAE,CAAC,CAAA;YACxD,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC,IAAI,CAAC,cAAc,CAAC,CAAA;YACtD,IAAI,CAAC,MAAM,CAAC,SAAS,CACnB,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,WAAW,EACrC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,oBAAoB,CAC/C,CAAA;YACD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,yBAAyB,EAAE;gBAC1C,OAAO,EAAE,IAAI,CAAC,cAAc,CAAC,OAAO;gBACpC,IAAI,EAAE,IAAI,CAAC,cAAc,CAAC,IAAI;aAC/B,CAAC,CAAA;QACJ,CAAC;;;SAlJU,cAAc;AAqJ3B,eAAe,cAAc,CAAA"}
|
package/lib/typert.host.js
CHANGED
|
@@ -90,7 +90,7 @@ export const TYPERT = {
|
|
|
90
90
|
typeSymbol: '@yadsh/dsh-prompt-firewall/types#PromptFirewallInspectorSnapshot',
|
|
91
91
|
schema: _yadsh_dsh_prompt_firewall_promptFirewall_inspect_result$schema,
|
|
92
92
|
},
|
|
93
|
-
sourceLocation: {"file":"packages/dsh-prompt-firewall/src/index.ts","line":
|
|
93
|
+
sourceLocation: {"file":"packages/dsh-prompt-firewall/src/index.ts","line":140,"column":3},
|
|
94
94
|
},
|
|
95
95
|
{
|
|
96
96
|
id: '@yadsh/dsh-prompt-firewall#promptFirewall/setSectionPolicy',
|
|
@@ -136,7 +136,7 @@ export const TYPERT = {
|
|
|
136
136
|
typeSymbol: '@yadsh/dsh-prompt-firewall#promptFirewall/setSectionPolicy:result',
|
|
137
137
|
schema: _yadsh_dsh_prompt_firewall_promptFirewall_setSectionPolicy_result$schema,
|
|
138
138
|
},
|
|
139
|
-
sourceLocation: {"file":"packages/dsh-prompt-firewall/src/index.ts","line":
|
|
139
|
+
sourceLocation: {"file":"packages/dsh-prompt-firewall/src/index.ts","line":154,"column":9},
|
|
140
140
|
},
|
|
141
141
|
],
|
|
142
142
|
model: {
|
|
@@ -87,7 +87,7 @@ export const TYPERT_REMOTE = {
|
|
|
87
87
|
typeSymbol: '@yadsh/dsh-prompt-firewall/types#PromptFirewallInspectorSnapshot',
|
|
88
88
|
schema: _yadsh_dsh_prompt_firewall_promptFirewall_inspect_result$schema,
|
|
89
89
|
},
|
|
90
|
-
sourceLocation: {"file":"packages/dsh-prompt-firewall/src/index.ts","line":
|
|
90
|
+
sourceLocation: {"file":"packages/dsh-prompt-firewall/src/index.ts","line":140,"column":3},
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
93
|
id: '@yadsh/dsh-prompt-firewall#promptFirewall/setSectionPolicy',
|
|
@@ -133,7 +133,7 @@ export const TYPERT_REMOTE = {
|
|
|
133
133
|
typeSymbol: '@yadsh/dsh-prompt-firewall#promptFirewall/setSectionPolicy:result',
|
|
134
134
|
schema: _yadsh_dsh_prompt_firewall_promptFirewall_setSectionPolicy_result$schema,
|
|
135
135
|
},
|
|
136
|
-
sourceLocation: {"file":"packages/dsh-prompt-firewall/src/index.ts","line":
|
|
136
|
+
sourceLocation: {"file":"packages/dsh-prompt-firewall/src/index.ts","line":154,"column":9},
|
|
137
137
|
},
|
|
138
138
|
],
|
|
139
139
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* React invokes external-store callbacks as plain functions. SettingsScope's
|
|
3
|
+
* methods depend on their receiver, so forward calls through stable wrappers.
|
|
4
|
+
*/
|
|
5
|
+
export declare function bindSettingsExternalStore<TSnapshot>(scope: {
|
|
6
|
+
subscribe(listener: () => void): () => void;
|
|
7
|
+
getSnapshot(): TSnapshot;
|
|
8
|
+
}): {
|
|
9
|
+
subscribe(listener: () => void): () => void;
|
|
10
|
+
getSnapshot(): TSnapshot;
|
|
11
|
+
};
|
package/lib/types/index.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ export declare class PromptFirewall extends TypertRemoteService implements Promp
|
|
|
31
31
|
private compiledRules;
|
|
32
32
|
private readonly audits;
|
|
33
33
|
private readonly metrics;
|
|
34
|
+
private readonly logger;
|
|
34
35
|
constructor(ctx: Context, config?: PromptFirewallConfig);
|
|
35
36
|
inspectLast(): PromptAuditResult | null;
|
|
36
37
|
inspectHistory(): PromptAuditResult[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yadsh/dsh-prompt-firewall",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Prompt hygiene, observability, and policy middleware for DeepSeek Harness",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -62,14 +62,6 @@
|
|
|
62
62
|
"cordis.patch.yml",
|
|
63
63
|
"README.md"
|
|
64
64
|
],
|
|
65
|
-
"scripts": {
|
|
66
|
-
"build": "node scripts/generate-typert.mjs && tsc -p tsconfig.build.json && tsdown",
|
|
67
|
-
"lint": "eslint src tests scripts",
|
|
68
|
-
"test": "vitest run",
|
|
69
|
-
"test:watch": "vitest",
|
|
70
|
-
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
71
|
-
"verify": "node scripts/verify-package.mjs"
|
|
72
|
-
},
|
|
73
65
|
"keywords": [
|
|
74
66
|
"deepseek-harness",
|
|
75
67
|
"dsh",
|
|
@@ -79,40 +71,41 @@
|
|
|
79
71
|
],
|
|
80
72
|
"license": "MIT",
|
|
81
73
|
"peerDependencies": {
|
|
82
|
-
"@deepseek-ai/cordis": "
|
|
83
|
-
"@deepseek-ai/schemastery": "
|
|
84
|
-
"@deepseek-ai/dsh-api-gateway": "
|
|
85
|
-
"@deepseek-ai/dsh-client-runtime": "
|
|
86
|
-
"@deepseek-ai/dsh-client-ui-settings": "
|
|
87
|
-
"@deepseek-ai/dsh-client-ui-settings-plugins": "
|
|
88
|
-
"@deepseek-ai/dsh-client-ui-slots": "
|
|
89
|
-
"@deepseek-ai/dsh-settings": "
|
|
90
|
-
"@deepseek-ai/dsh-system-prompt": "
|
|
91
|
-
"@deepseek-ai/dsh-typert-protocol": "
|
|
74
|
+
"@deepseek-ai/cordis": "^4.0.1",
|
|
75
|
+
"@deepseek-ai/schemastery": "^3.18.1",
|
|
76
|
+
"@deepseek-ai/dsh-api-gateway": ">=0.1.1-rc.2 <0.2.0",
|
|
77
|
+
"@deepseek-ai/dsh-client-runtime": ">=0.1.1-rc.2 <0.2.0",
|
|
78
|
+
"@deepseek-ai/dsh-client-ui-settings": ">=0.1.1-rc.2 <0.2.0",
|
|
79
|
+
"@deepseek-ai/dsh-client-ui-settings-plugins": ">=0.1.1-rc.2 <0.2.0",
|
|
80
|
+
"@deepseek-ai/dsh-client-ui-slots": ">=0.1.1-rc.2 <0.2.0",
|
|
81
|
+
"@deepseek-ai/dsh-settings": ">=0.1.1-rc.2 <0.2.0",
|
|
82
|
+
"@deepseek-ai/dsh-system-prompt": ">=0.1.1-rc.2 <0.2.0",
|
|
83
|
+
"@deepseek-ai/dsh-typert-protocol": ">=0.1.1-rc.2 <0.2.0",
|
|
92
84
|
"react": ">=18.2.0 <20"
|
|
93
85
|
},
|
|
94
86
|
"dependencies": {
|
|
95
|
-
"zod": "^4.4.3"
|
|
87
|
+
"zod": "^4.4.3",
|
|
88
|
+
"@yadsh/dsh-plugin-log": "^0.2.0"
|
|
96
89
|
},
|
|
97
90
|
"devDependencies": {
|
|
98
|
-
"@deepseek-ai/cordis": "
|
|
99
|
-
"@deepseek-ai/schemastery": "
|
|
100
|
-
"@deepseek-ai/dsh-api-gateway": "
|
|
101
|
-
"@deepseek-ai/dsh-client-runtime": "
|
|
102
|
-
"@deepseek-ai/dsh-client-ui-settings": "
|
|
103
|
-
"@deepseek-ai/dsh-client-ui-settings-plugins": "
|
|
104
|
-
"@deepseek-ai/dsh-client-ui-slots": "
|
|
105
|
-
"@deepseek-ai/dsh-settings": "
|
|
106
|
-
"@deepseek-ai/dsh-system-prompt": "
|
|
107
|
-
"@deepseek-ai/dsh-typert-generator": "
|
|
108
|
-
"@deepseek-ai/dsh-typert-protocol": "
|
|
109
|
-
"@types/node": "
|
|
110
|
-
"@types/react": "
|
|
111
|
-
"react": "
|
|
112
|
-
"eslint": "
|
|
113
|
-
"tsdown": "
|
|
114
|
-
"typescript": "
|
|
115
|
-
"vitest": "
|
|
91
|
+
"@deepseek-ai/cordis": "4.0.1",
|
|
92
|
+
"@deepseek-ai/schemastery": "3.18.1",
|
|
93
|
+
"@deepseek-ai/dsh-api-gateway": "0.1.1-rc.2",
|
|
94
|
+
"@deepseek-ai/dsh-client-runtime": "0.1.1-rc.2",
|
|
95
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.1.1-rc.2",
|
|
96
|
+
"@deepseek-ai/dsh-client-ui-settings-plugins": "0.1.1-rc.2",
|
|
97
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.1.1-rc.2",
|
|
98
|
+
"@deepseek-ai/dsh-settings": "0.1.1-rc.2",
|
|
99
|
+
"@deepseek-ai/dsh-system-prompt": "0.1.1-rc.2",
|
|
100
|
+
"@deepseek-ai/dsh-typert-generator": "0.1.1-rc.2",
|
|
101
|
+
"@deepseek-ai/dsh-typert-protocol": "0.1.1-rc.2",
|
|
102
|
+
"@types/node": "^26.4.0",
|
|
103
|
+
"@types/react": "18.3.28",
|
|
104
|
+
"react": "18.3.1",
|
|
105
|
+
"eslint": "10.9.1",
|
|
106
|
+
"tsdown": "^0.22.14",
|
|
107
|
+
"typescript": "^7.0.2",
|
|
108
|
+
"vitest": "^4.1.11"
|
|
116
109
|
},
|
|
117
110
|
"engines": {
|
|
118
111
|
"node": ">=20"
|
|
@@ -120,5 +113,13 @@
|
|
|
120
113
|
"publishConfig": {
|
|
121
114
|
"access": "public",
|
|
122
115
|
"registry": "https://registry.npmjs.org/"
|
|
116
|
+
},
|
|
117
|
+
"scripts": {
|
|
118
|
+
"build": "node scripts/generate-typert.mjs && tsc -p tsconfig.build.json && tsdown",
|
|
119
|
+
"lint": "eslint src tests scripts",
|
|
120
|
+
"test": "vitest run",
|
|
121
|
+
"test:watch": "vitest",
|
|
122
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
123
|
+
"verify": "node scripts/verify-package.mjs"
|
|
123
124
|
}
|
|
124
|
-
}
|
|
125
|
+
}
|