@drdoc-com/pi-drdoc 1.0.0 → 1.0.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/README.md +30 -2
- package/package.json +11 -4
- package/src/index.ts +1 -1
- package/src/tools.ts +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# Pi Plugin for Dr.DOC
|
|
1
|
+
# Pi Plugin for Dr.DOC DMS
|
|
2
2
|
|
|
3
|
-
An integration plugin Package for the **Pi Agent** (`pi.dev`) ecosystem to interact seamlessly with the [**Dr.DOC Document Management System** \(DMS/ECM\)](drdoc.com/node/de/products/web).
|
|
3
|
+
An integration plugin Package for the **Pi Agent** (`pi.dev`) ecosystem to interact seamlessly with the [**Dr.DOC Document Management System** \(DMS/ECM\)](https://drdoc.com/node/de/products/web).
|
|
4
4
|
|
|
5
5
|
This plugin allows the Pi Agent to query Dr.DOC archives, fetch document blobs, store files locally, generate direct web links, and display inline document previews.
|
|
6
6
|
|
|
@@ -46,6 +46,25 @@ pi install git:https://github.com/drdoc-com/pi-drdoc
|
|
|
46
46
|
|
|
47
47
|
---
|
|
48
48
|
|
|
49
|
+
## Usage
|
|
50
|
+
|
|
51
|
+
### Pi Slash Commands (within Pi Agent)
|
|
52
|
+
|
|
53
|
+
Use Pi Slash Command (within Pi Agent) to signin/login.
|
|
54
|
+
Format:
|
|
55
|
+
```bash
|
|
56
|
+
/drdoc_login <baseUrl> <username> <password> <totp> <ignoreSSL:1,0>
|
|
57
|
+
```
|
|
58
|
+
Example:
|
|
59
|
+
```bash
|
|
60
|
+
/drdoc_login https://drdoc.com demo password "" 1
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
And signout/signout:
|
|
64
|
+
```bash
|
|
65
|
+
/drdoc_logout
|
|
66
|
+
```
|
|
67
|
+
|
|
49
68
|
## Configuration
|
|
50
69
|
|
|
51
70
|
The plugin utilizes configuration options supplied by the Dr.DOC client or environment variables.
|
|
@@ -66,3 +85,12 @@ The plugin utilizes configuration options supplied by the Dr.DOC client or envir
|
|
|
66
85
|
|
|
67
86
|
This project is licensed under the Apache License 2.0.
|
|
68
87
|
Dr.DOC DMS is licensed is under proprietary License.
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
## Documentation
|
|
92
|
+
|
|
93
|
+
See Dr.DOC Web REST API Documentation:
|
|
94
|
+
[https://drdoc.com/node/de/products/web/doku/rest-api](https://drdoc.com/node/de/products/web/doku/rest-api)
|
|
95
|
+
|
|
96
|
+
|
package/package.json
CHANGED
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@drdoc-com/pi-drdoc",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Dr.DOC DMS Integration Package for PI Agent",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"license": "
|
|
7
|
-
"keywords": [
|
|
6
|
+
"license": "Apache License 2.0",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"pi-package",
|
|
9
|
+
"pi-agent",
|
|
10
|
+
"drdoc",
|
|
11
|
+
"rest-api",
|
|
12
|
+
"skill",
|
|
13
|
+
"dms",
|
|
14
|
+
"Dr.DOC"
|
|
15
|
+
],
|
|
8
16
|
"private": false,
|
|
9
17
|
"pi": {
|
|
10
18
|
"extensions": [
|
|
@@ -29,4 +37,3 @@
|
|
|
29
37
|
"@earendil-works/pi-coding-agent": "*"
|
|
30
38
|
}
|
|
31
39
|
}
|
|
32
|
-
|
package/src/index.ts
CHANGED
|
@@ -27,7 +27,7 @@ export default function (pi: any): void {
|
|
|
27
27
|
baseUrl = process.env.DRDOC_BASE_URL;
|
|
28
28
|
|
|
29
29
|
if (!baseUrl || !username || !password) {
|
|
30
|
-
msgError("Fehler: Syntax ist `/
|
|
30
|
+
msgError("Fehler: Syntax ist `/drdoc_login <baseUrl> <username> <password> <totp> <ignoreSSL:1,0>`");
|
|
31
31
|
return;
|
|
32
32
|
}
|
|
33
33
|
|
package/src/tools.ts
CHANGED
|
@@ -17,7 +17,7 @@ export async function getClient(config: DrDocConfig = {} as DrDocConfig, force:
|
|
|
17
17
|
if (await clientInstance.state())
|
|
18
18
|
msgInfo('getClient: state ok');
|
|
19
19
|
else {
|
|
20
|
-
throw new Error("getClient: DrDocClient ist nicht initialisiert. Bitte vorher den Befehl /
|
|
20
|
+
throw new Error("getClient: DrDocClient ist nicht initialisiert. Bitte vorher den Befehl /drdoc_login ausführen.");
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
return clientInstance;
|