@shibayama/pdgkit 0.1.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 +35 -0
- package/README.md +709 -0
- package/assets/FONT-LICENSE.md +9 -0
- package/assets/IPA_Font_License_Agreement_v1.0.txt +117 -0
- package/assets/ipaexg.ttf +0 -0
- package/dist/core.cjs +2378 -0
- package/dist/core.d.cts +130 -0
- package/dist/core.d.ts +130 -0
- package/dist/core.js +2338 -0
- package/dist/index.cjs +3539 -0
- package/dist/index.d.cts +214 -0
- package/dist/index.d.ts +214 -0
- package/dist/index.js +3475 -0
- package/dist/pdgkit-mcp.cjs +3220 -0
- package/dist/pdgkit-mcp.d.cts +1 -0
- package/dist/pdgkit-mcp.d.ts +1 -0
- package/dist/pdgkit-mcp.js +3196 -0
- package/dist/pdgkit.cjs +3558 -0
- package/dist/pdgkit.d.cts +1 -0
- package/dist/pdgkit.d.ts +1 -0
- package/dist/pdgkit.global.js +247 -0
- package/dist/pdgkit.js +3534 -0
- package/docs/ai-authoring-guide.md +507 -0
- package/docs/spec.md +592 -0
- package/examples/01-block.pdg +14 -0
- package/examples/02-flow.pdg +14 -0
- package/examples/03-state.pdg +13 -0
- package/examples/04-seq.pdg +10 -0
- package/examples/05-system.pdg +19 -0
- package/examples/06-iot-cloud.pdg +27 -0
- package/examples/07-image-pipeline.pdg +17 -0
- package/examples/08-control-loop.pdg +20 -0
- package/examples/09-handshake.pdg +12 -0
- package/package.json +91 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# 画像処理パイプライン(方法クレーム用)
|
|
2
|
+
|
|
3
|
+
S100 = 画像を取得 / Acquire image
|
|
4
|
+
S110 = 前処理 / Preprocess
|
|
5
|
+
S120 = 特徴量を抽出 / Extract features
|
|
6
|
+
S130 = 欠陥あり? / Defect?
|
|
7
|
+
S140 = アラートを出力 / Output alert
|
|
8
|
+
S150 = 正常結果を記録 / Record normal result
|
|
9
|
+
S160 = 終了 / End
|
|
10
|
+
|
|
11
|
+
S100 -> S110
|
|
12
|
+
S110 -> S120
|
|
13
|
+
S120 -> S130
|
|
14
|
+
S130 -> S140 : Yes
|
|
15
|
+
S130 -> S150 : No
|
|
16
|
+
S140 -> S160
|
|
17
|
+
S150 -> S160
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# 制御ループ(装置クレーム用)
|
|
2
|
+
|
|
3
|
+
100 = 制御システム / control system
|
|
4
|
+
10 = 制御部 / controller
|
|
5
|
+
11 = 目標値取得部 / target acquisition unit
|
|
6
|
+
12 = 偏差算出部 / error calculator
|
|
7
|
+
13 = 指令生成部 / command generator
|
|
8
|
+
20 = 駆動部 / driver
|
|
9
|
+
30 = センサ部 / sensor unit
|
|
10
|
+
40 = 対象装置 / controlled object
|
|
11
|
+
|
|
12
|
+
100 : 30 10 40 20
|
|
13
|
+
10 : 11 12 13
|
|
14
|
+
|
|
15
|
+
30 -> 12 : 測定値 / measured value
|
|
16
|
+
11 -> 12 : 目標値 / target value
|
|
17
|
+
12 -> 13 : 偏差 / error
|
|
18
|
+
13 -> 20 : 指令 / command
|
|
19
|
+
20 -> 40 : 駆動信号 / drive signal
|
|
20
|
+
40 .> 30 : フィードバック / feedback
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# 通信ハンドシェイク(シーケンス図)
|
|
2
|
+
|
|
3
|
+
100 = 端末 / terminal
|
|
4
|
+
200 = サーバ / server
|
|
5
|
+
|
|
6
|
+
100 -> 200 : 接続要求 / connect request
|
|
7
|
+
200 -> 100 : 応答 / response
|
|
8
|
+
100 -> 200 : 認証情報 / credentials
|
|
9
|
+
200 -> 100 : 認証結果 / auth result
|
|
10
|
+
100 <-> 200 : データ通信 / data exchange
|
|
11
|
+
100 -> 200 : 切断要求 / disconnect
|
|
12
|
+
200 -> 100 : 切断完了 / disconnected
|
package/package.json
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@shibayama/pdgkit",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public"
|
|
6
|
+
},
|
|
7
|
+
"description": "Headless engine and toolkit for the PatentDSL (.pdg) patent-figure language — generate, validate, and render block / flowchart / state / sequence patent diagrams with no browser.",
|
|
8
|
+
"type": "module",
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"author": "しばやま",
|
|
11
|
+
"homepage": "https://github.com/shibayamalicht/pdgkit#readme",
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "git+https://github.com/shibayamalicht/pdgkit.git"
|
|
15
|
+
},
|
|
16
|
+
"bugs": {
|
|
17
|
+
"url": "https://github.com/shibayamalicht/pdgkit/issues"
|
|
18
|
+
},
|
|
19
|
+
"keywords": [
|
|
20
|
+
"patent",
|
|
21
|
+
"patent-drawing",
|
|
22
|
+
"diagram",
|
|
23
|
+
"dsl",
|
|
24
|
+
"pdg",
|
|
25
|
+
"patentdsl",
|
|
26
|
+
"svg",
|
|
27
|
+
"figure",
|
|
28
|
+
"headless",
|
|
29
|
+
"cli",
|
|
30
|
+
"mcp"
|
|
31
|
+
],
|
|
32
|
+
"bin": {
|
|
33
|
+
"pdgkit": "dist/pdgkit.js",
|
|
34
|
+
"pdgkit-mcp": "dist/pdgkit-mcp.js"
|
|
35
|
+
},
|
|
36
|
+
"main": "./dist/index.cjs",
|
|
37
|
+
"module": "./dist/index.js",
|
|
38
|
+
"types": "./dist/index.d.ts",
|
|
39
|
+
"unpkg": "./dist/pdgkit.global.js",
|
|
40
|
+
"jsdelivr": "./dist/pdgkit.global.js",
|
|
41
|
+
"exports": {
|
|
42
|
+
".": {
|
|
43
|
+
"types": "./dist/index.d.ts",
|
|
44
|
+
"import": "./dist/index.js",
|
|
45
|
+
"require": "./dist/index.cjs"
|
|
46
|
+
},
|
|
47
|
+
"./core": {
|
|
48
|
+
"types": "./dist/core.d.ts",
|
|
49
|
+
"import": "./dist/core.js",
|
|
50
|
+
"require": "./dist/core.cjs"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"files": [
|
|
54
|
+
"dist",
|
|
55
|
+
"assets",
|
|
56
|
+
"docs",
|
|
57
|
+
"examples",
|
|
58
|
+
"README.md",
|
|
59
|
+
"LICENSE"
|
|
60
|
+
],
|
|
61
|
+
"scripts": {
|
|
62
|
+
"build": "tsup",
|
|
63
|
+
"typecheck": "tsc --noEmit",
|
|
64
|
+
"test": "vitest run",
|
|
65
|
+
"test:watch": "vitest",
|
|
66
|
+
"cli": "tsx bin/pdgkit.ts",
|
|
67
|
+
"mcp": "tsx bin/pdgkit-mcp.ts",
|
|
68
|
+
"prepublishOnly": "npm run typecheck && npm run test && npm run build"
|
|
69
|
+
},
|
|
70
|
+
"devDependencies": {
|
|
71
|
+
"@types/jsdom": "^28.0.3",
|
|
72
|
+
"@types/node": "^20.14.10",
|
|
73
|
+
"fflate": "^0.8.3",
|
|
74
|
+
"tsup": "^8.0.0",
|
|
75
|
+
"tsx": "^4.16.0",
|
|
76
|
+
"typescript": "^5.5.3",
|
|
77
|
+
"vitest": "^1.6.0"
|
|
78
|
+
},
|
|
79
|
+
"dependencies": {
|
|
80
|
+
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
81
|
+
"@resvg/resvg-js": "^2.6.2",
|
|
82
|
+
"jpeg-js": "^0.4.4",
|
|
83
|
+
"jsdom": "^29.1.1",
|
|
84
|
+
"jspdf": "^4.2.1",
|
|
85
|
+
"svg2pdf.js": "^2.7.0",
|
|
86
|
+
"zod": "^4.4.3"
|
|
87
|
+
},
|
|
88
|
+
"engines": {
|
|
89
|
+
"node": ">=18"
|
|
90
|
+
}
|
|
91
|
+
}
|