dsh-tender-workbench 0.2.1-beta.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.
- package/LICENSE +21 -0
- package/README.md +108 -0
- package/cordis.patch.yml +3 -0
- package/lib/client.js +17296 -0
- package/lib/client.js.map +1 -0
- package/lib/index.js +5 -0
- package/lib/types/client/TenderEntry.d.ts +14 -0
- package/lib/types/client/TenderEntry.d.ts.map +1 -0
- package/lib/types/client/TenderFilterPanel.d.ts +14 -0
- package/lib/types/client/TenderFilterPanel.d.ts.map +1 -0
- package/lib/types/client/TenderResultsEntry.d.ts +4 -0
- package/lib/types/client/TenderResultsEntry.d.ts.map +1 -0
- package/lib/types/client/TenderResultsPanel.d.ts +16 -0
- package/lib/types/client/TenderResultsPanel.d.ts.map +1 -0
- package/lib/types/client/area-data.d.ts +8 -0
- package/lib/types/client/area-data.d.ts.map +1 -0
- package/lib/types/client/area-utils.d.ts +15 -0
- package/lib/types/client/area-utils.d.ts.map +1 -0
- package/lib/types/client/drawer-coordinator.d.ts +5 -0
- package/lib/types/client/drawer-coordinator.d.ts.map +1 -0
- package/lib/types/client/fields/AdvancedFields.d.ts +4 -0
- package/lib/types/client/fields/AdvancedFields.d.ts.map +1 -0
- package/lib/types/client/fields/KeywordField.d.ts +4 -0
- package/lib/types/client/fields/KeywordField.d.ts.map +1 -0
- package/lib/types/client/fields/PublishTimeField.d.ts +4 -0
- package/lib/types/client/fields/PublishTimeField.d.ts.map +1 -0
- package/lib/types/client/fields/RegionField.d.ts +4 -0
- package/lib/types/client/fields/RegionField.d.ts.map +1 -0
- package/lib/types/client/fields/SearchTypeField.d.ts +9 -0
- package/lib/types/client/fields/SearchTypeField.d.ts.map +1 -0
- package/lib/types/client/fields/StageField.d.ts +4 -0
- package/lib/types/client/fields/StageField.d.ts.map +1 -0
- package/lib/types/client/fields/field-props.d.ts +11 -0
- package/lib/types/client/fields/field-props.d.ts.map +1 -0
- package/lib/types/client/fields/options.d.ts +18 -0
- package/lib/types/client/fields/options.d.ts.map +1 -0
- package/lib/types/client/format.d.ts +5 -0
- package/lib/types/client/format.d.ts.map +1 -0
- package/lib/types/client/index.d.ts +13 -0
- package/lib/types/client/index.d.ts.map +1 -0
- package/lib/types/client/locales.d.ts +384 -0
- package/lib/types/client/locales.d.ts.map +1 -0
- package/lib/types/client/merge-draft.d.ts +3 -0
- package/lib/types/client/merge-draft.d.ts.map +1 -0
- package/lib/types/client/qcc-request.d.ts +46 -0
- package/lib/types/client/qcc-request.d.ts.map +1 -0
- package/lib/types/client/result-adapters.d.ts +10 -0
- package/lib/types/client/result-adapters.d.ts.map +1 -0
- package/lib/types/client/result-parser.d.ts +13 -0
- package/lib/types/client/result-parser.d.ts.map +1 -0
- package/lib/types/client/result-summary.d.ts +31 -0
- package/lib/types/client/result-summary.d.ts.map +1 -0
- package/lib/types/client/result-types.d.ts +86 -0
- package/lib/types/client/result-types.d.ts.map +1 -0
- package/lib/types/client/tender-search-definition.d.ts +8 -0
- package/lib/types/client/tender-search-definition.d.ts.map +1 -0
- package/lib/types/client/types.d.ts +38 -0
- package/lib/types/client/types.d.ts.map +1 -0
- package/lib/types/client/validation.d.ts +12 -0
- package/lib/types/client/validation.d.ts.map +1 -0
- package/lib/types/client/write-session-draft.d.ts +4 -0
- package/lib/types/client/write-session-draft.d.ts.map +1 -0
- package/lib/types/index.d.ts +3 -0
- package/lib/types/index.d.ts.map +1 -0
- package/package.json +99 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/** Supported top-level search modes. */
|
|
2
|
+
export type SearchMode = 'tender' | 'proposed';
|
|
3
|
+
/** Tender announcement branches mirrored from the reference search pages. */
|
|
4
|
+
export type TenderNoticeType = 'all' | 'ifb' | 'wtb';
|
|
5
|
+
/** Supported publication-time presets. */
|
|
6
|
+
export type PublishPreset = 'all' | 'today' | '3d' | '7d' | '1m' | '3m' | '6m' | '1y' | '3y' | '5y' | 'year' | 'custom';
|
|
7
|
+
/** Editable query state retained by one Session-scoped entry. */
|
|
8
|
+
export interface TenderFilters {
|
|
9
|
+
searchMode: SearchMode;
|
|
10
|
+
noticeType: TenderNoticeType;
|
|
11
|
+
keywords: string;
|
|
12
|
+
publishPreset: PublishPreset;
|
|
13
|
+
publishYear?: number;
|
|
14
|
+
startDate?: string;
|
|
15
|
+
endDate?: string;
|
|
16
|
+
regionCodes: string[];
|
|
17
|
+
tenderStages: string[];
|
|
18
|
+
awardStages: string[];
|
|
19
|
+
proposedStages: string[];
|
|
20
|
+
approvalProgress: string[];
|
|
21
|
+
procurementMethods: string[];
|
|
22
|
+
industries: string[];
|
|
23
|
+
procurementTypes: string[];
|
|
24
|
+
tenderAmountPreset?: string;
|
|
25
|
+
tenderAmountMin?: string;
|
|
26
|
+
tenderAmountMax?: string;
|
|
27
|
+
awardAmountPreset?: string;
|
|
28
|
+
awardAmountMin?: string;
|
|
29
|
+
awardAmountMax?: string;
|
|
30
|
+
proposedInvestmentPreset?: string;
|
|
31
|
+
proposedInvestmentMin?: string;
|
|
32
|
+
proposedInvestmentMax?: string;
|
|
33
|
+
}
|
|
34
|
+
/** Create fresh filter state so Session entries never share mutable arrays. */
|
|
35
|
+
export declare function createInitialTenderFilters(): TenderFilters;
|
|
36
|
+
/** Initial values exposed for pure-function tests and consumers inside the plugin. */
|
|
37
|
+
export declare const initialTenderFilters: Readonly<TenderFilters>;
|
|
38
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/client/types.ts"],"names":[],"mappings":"AAAA,wCAAwC;AACxC,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,UAAU,CAAA;AAE9C,6EAA6E;AAC7E,MAAM,MAAM,gBAAgB,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAA;AAEpD,0CAA0C;AAC1C,MAAM,MAAM,aAAa,GACrB,KAAK,GACL,OAAO,GACP,IAAI,GACJ,IAAI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
+
export interface TenderValidationErrors {
|
|
3
|
+
readonly dates?: 'required' | 'order';
|
|
4
|
+
readonly amount?: 'invalid' | 'order';
|
|
5
|
+
readonly keywords?: 'limit';
|
|
6
|
+
readonly regions?: 'limit' | 'unsupported';
|
|
7
|
+
readonly supported?: 'required';
|
|
8
|
+
readonly request?: 'invalid';
|
|
9
|
+
}
|
|
10
|
+
/** Validate UI relations and every qcc-tender limit before writing the draft. */
|
|
11
|
+
export declare function validateTenderFilters(filters: TenderFilters, now?: Date): TenderValidationErrors;
|
|
12
|
+
//# sourceMappingURL=validation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../src/client/validation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAE/C,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,OAAO,CAAA;IACrC,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,GAAG,OAAO,CAAA;IACrC,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAC3B,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,aAAa,CAAA;IAC1C,QAAQ,CAAC,SAAS,CAAC,EAAE,UAAU,CAAA;IAC/B,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,CAAA;CAC7B;AAaD,iFAAiF;AACjF,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,aAAa,EAAE,GAAG,OAAa,GAAG,sBAAsB,CA+BtG"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ClientContext, SessionId } from '@deepseek-ai/dsh-client-runtime/client';
|
|
2
|
+
/** Resolve one Session input facade and append generated text through its public draft API. */
|
|
3
|
+
export declare function writeSessionDraft(ctx: ClientContext, sessionId: SessionId, generatedText: string): boolean;
|
|
4
|
+
//# sourceMappingURL=write-session-draft.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"write-session-draft.d.ts","sourceRoot":"","sources":["../../../src/client/write-session-draft.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,wCAAwC,CAAA;AAItF,+FAA+F;AAC/F,wBAAgB,iBAAiB,CAC/B,GAAG,EAAE,aAAa,EAClB,SAAS,EAAE,SAAS,EACpB,aAAa,EAAE,MAAM,GACpB,OAAO,CAYT"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,2DAA2D;AAC3D,wBAAgB,KAAK,IAAI,IAAI,CAE5B"}
|
package/package.json
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "dsh-tender-workbench",
|
|
3
|
+
"version": "0.2.1-beta.0",
|
|
4
|
+
"description": "DeepSeek Harness Web workbench for tender and proposed-project search, summaries, results, and history",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"deepseek-harness",
|
|
7
|
+
"dsh",
|
|
8
|
+
"tender",
|
|
9
|
+
"bidding",
|
|
10
|
+
"procurement",
|
|
11
|
+
"proposed-projects"
|
|
12
|
+
],
|
|
13
|
+
"author": "Sunhh3221",
|
|
14
|
+
"type": "module",
|
|
15
|
+
"main": "./lib/index.js",
|
|
16
|
+
"types": "./lib/types/index.d.ts",
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./lib/types/index.d.ts",
|
|
20
|
+
"default": "./lib/index.js"
|
|
21
|
+
},
|
|
22
|
+
"./client": {
|
|
23
|
+
"types": "./lib/types/client/index.d.ts",
|
|
24
|
+
"default": "./lib/client.js"
|
|
25
|
+
},
|
|
26
|
+
"./package.json": "./package.json"
|
|
27
|
+
},
|
|
28
|
+
"files": [
|
|
29
|
+
"LICENSE",
|
|
30
|
+
"cordis.patch.yml",
|
|
31
|
+
"lib/index.js",
|
|
32
|
+
"lib/client.js",
|
|
33
|
+
"lib/client.js.map",
|
|
34
|
+
"lib/types/**/*.d.ts",
|
|
35
|
+
"lib/types/**/*.d.ts.map"
|
|
36
|
+
],
|
|
37
|
+
"dsh": {
|
|
38
|
+
"bundle": {
|
|
39
|
+
"patch": "./cordis.patch.yml"
|
|
40
|
+
},
|
|
41
|
+
"client": {
|
|
42
|
+
"inject": [
|
|
43
|
+
"@deepseek-ai/dsh-client-runtime",
|
|
44
|
+
"@deepseek-ai/dsh-client-locale",
|
|
45
|
+
"@deepseek-ai/dsh-client-ui-conversation"
|
|
46
|
+
],
|
|
47
|
+
"platform": "web"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"scripts": {
|
|
51
|
+
"build": "tsc --project tsconfig.build.json && tsdown --config tsdown.config.ts",
|
|
52
|
+
"prepare": "pnpm run build",
|
|
53
|
+
"prepublishOnly": "pnpm run typecheck && pnpm run test",
|
|
54
|
+
"test": "vitest run",
|
|
55
|
+
"typecheck": "tsc --project tsconfig.json"
|
|
56
|
+
},
|
|
57
|
+
"publishConfig": {
|
|
58
|
+
"access": "public",
|
|
59
|
+
"registry": "https://registry.npmjs.org/",
|
|
60
|
+
"tag": "beta"
|
|
61
|
+
},
|
|
62
|
+
"repository": {
|
|
63
|
+
"type": "git",
|
|
64
|
+
"url": "git+https://github.com/Sunhh3221/dsh-tender-workbench.git"
|
|
65
|
+
},
|
|
66
|
+
"homepage": "https://github.com/Sunhh3221/dsh-tender-workbench#readme",
|
|
67
|
+
"bugs": {
|
|
68
|
+
"url": "https://github.com/Sunhh3221/dsh-tender-workbench/issues"
|
|
69
|
+
},
|
|
70
|
+
"engines": {
|
|
71
|
+
"node": "^22.19.0 || >=24.0.0"
|
|
72
|
+
},
|
|
73
|
+
"packageManager": "pnpm@11.7.0",
|
|
74
|
+
"license": "MIT",
|
|
75
|
+
"peerDependencies": {
|
|
76
|
+
"@deepseek-ai/cordis": "^4.0.1",
|
|
77
|
+
"@deepseek-ai/dsh-client-locale": "^0.1.1-rc.2",
|
|
78
|
+
"@deepseek-ai/dsh-client-runtime": "^0.1.1-rc.2",
|
|
79
|
+
"@deepseek-ai/dsh-client-ui-conversation": "^0.1.1-rc.2"
|
|
80
|
+
},
|
|
81
|
+
"devDependencies": {
|
|
82
|
+
"@deepseek-ai/cordis": "^4.0.1",
|
|
83
|
+
"@deepseek-ai/dsh-client-locale": "^0.1.1-rc.2",
|
|
84
|
+
"@deepseek-ai/dsh-client-runtime": "^0.1.1-rc.2",
|
|
85
|
+
"@deepseek-ai/dsh-client-ui-conversation": "^0.1.1-rc.2",
|
|
86
|
+
"@deepseek-ai/dsh-client-ui-primitives": "^0.1.1-rc.2",
|
|
87
|
+
"@deepseek-ai/dsh-client-ui-slots": "^0.1.1-rc.2",
|
|
88
|
+
"@testing-library/react": "^16.1.0",
|
|
89
|
+
"@types/react": "~18.3.1",
|
|
90
|
+
"@types/react-dom": "~18.3.1",
|
|
91
|
+
"jsdom": "^26.0.0",
|
|
92
|
+
"lightningcss": "^1.32.0",
|
|
93
|
+
"react": "^18.2.0",
|
|
94
|
+
"react-dom": "^18.2.0",
|
|
95
|
+
"tsdown": "^0.22.2",
|
|
96
|
+
"typescript": "^6.0.3",
|
|
97
|
+
"vitest": "^4.1.8"
|
|
98
|
+
}
|
|
99
|
+
}
|