pi-devin-search 0.0.0-stage → 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 +22 -0
- package/NOTICE +24 -0
- package/README.md +31 -2
- package/dist/extension.js +2080 -0
- package/package.json +33 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 dsh-devin-search contributors
|
|
4
|
+
Copyright (c) 2026 Piwin contributors (adapted protocol portions)
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
SOFTWARE.
|
package/NOTICE
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
dsh-devin-search is independent of DeepSeek Harness, Devin/Windsurf and piwin.
|
|
2
|
+
|
|
3
|
+
Protocol field numbers, role encoding, OAuth endpoint/PKCE conventions and
|
|
4
|
+
completion message design were adapted from these MIT-licensed piwin sources:
|
|
5
|
+
packages/agent-host/src/devin/oauth.ts
|
|
6
|
+
packages/tools-web/src/devin-search-provider.ts
|
|
7
|
+
packages/host-runtime/src/code-search/backends/windsurf-protobuf.ts
|
|
8
|
+
packages/host-runtime/src/code-search/backends/windsurf-protocol.ts
|
|
9
|
+
packages/host-runtime/src/code-search/completion-port.ts
|
|
10
|
+
Copyright (c) 2026 Piwin contributors. See LICENSE for the MIT permission notice.
|
|
11
|
+
|
|
12
|
+
The implementation is a smaller independent client with strict framing,
|
|
13
|
+
bounded IO and an allowlisted local search loop. It imports no piwin package
|
|
14
|
+
and reads no piwin credential file. DSH service integration was checked against
|
|
15
|
+
DeepSeek Harness 0.2.1-alpha.1, reference commit
|
|
16
|
+
5badb15009ae1756c3afe0ae0cef1faafc290ccc (MIT).
|
|
17
|
+
|
|
18
|
+
Offline fixtures do not establish compatibility with a live provider, account
|
|
19
|
+
entitlements, service availability, prices, or continued authorization.
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
pi-devin-search bundles the search, OAuth, and local-workspace core from this repository into dist/extension.js.
|
|
23
|
+
It does not bundle DeepSeek Harness, Cordis, or a desktop UI. Host packages @earendil-works/pi-coding-agent and
|
|
24
|
+
@earendil-works/pi-ai stay external. Credential storage is plugin-owned and is not a DSH credential file.
|
package/README.md
CHANGED
|
@@ -1,3 +1,32 @@
|
|
|
1
|
-
#
|
|
1
|
+
# pi-devin-search
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Native [pi](https://pi.dev) CLI extension for Devin web search and read-only local code search. It does not include a desktop or React UI and does not depend on DeepSeek Harness.
|
|
4
|
+
|
|
5
|
+
Tested host: `@earendil-works/pi-coding-agent@1.0.3` and `@earendil-works/pi-ai@1.0.3`. Pi supplies those packages and `typebox@1.3.27`; this package lists them as exact peers and does not bundle them. `ignore@7.0.5` is a runtime dependency. The published `dist/extension.js` bundles the search and OAuth core and contains no DSH runtime.
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pi install ./packages/pi-devin-search
|
|
9
|
+
# or, after publish: pi install npm:pi-devin-search@0.1.0
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## Commands
|
|
13
|
+
|
|
14
|
+
- `/devin-login` starts PKCE code login. `/devin-login local` uses an optional localhost callback.
|
|
15
|
+
- `/devin-status` shows login state without credentials.
|
|
16
|
+
- `/devin-logout` cancels in-flight work and deletes the stored session.
|
|
17
|
+
- `/devin-cancel` cancels a pending login.
|
|
18
|
+
- `/devin-settings` with no arguments opens a selector. `/devin-settings web|code on|off` changes one switch.
|
|
19
|
+
|
|
20
|
+
Do not paste an authorization code into a slash argument. The command rejects anything other than empty or `local` and does not echo the argument. The code prompt uses `ctx.ui.input`. That input is ordinary visible text, not a masked field. Noninteractive print/JSON login is refused. Status uses `ctx.ui.notify` and `setStatus` only, so it does not write tokens to stdout.
|
|
21
|
+
|
|
22
|
+
If starting pi with a `--tools` allowlist, include both search tools, for example `--tools read,web_search,code_search`. On pi 1.0.3 the allowlist also applies to extension tools: `--tools read` excludes both searches even if Devin login succeeds. Restart pi after changing this startup flag; `/reload` does not change the allowlist.
|
|
23
|
+
|
|
24
|
+
Tools `web_search` and `code_search` are registered at `session_start` after `getAllTools()`. A name already owned by another extension is left unchanged. Both tools are annotated read-only with `openWorldHint: true` because queries and selected code are sent to the Devin cloud. Disabling a tool in settings is enforced inside `execute`, not only by removing it from the active set.
|
|
25
|
+
|
|
26
|
+
## Credentials
|
|
27
|
+
|
|
28
|
+
Sessions are stored at `<getAgentDir()>/devin-search/credentials.json`. Temporary writes use `credential-*.tmp`. This package does not read pi `auth.json`, DSH credentials, or project `.pi` trees. There is no cross-process writer lock: in-process writes are serialized, and `rename` is atomic, but two processes can lose updates. Do not share one credential file across processes.
|
|
29
|
+
|
|
30
|
+
POSIX mode bits 0700/0600 are applied. They are not an equivalent confidentiality boundary on Windows. After rename, POSIX directory fsync is skipped on Windows so a successful rename is not failed by a POSIX-only directory open. Windows filesystem behavior was not validated in this environment. There is no ACL or keychain store.
|
|
31
|
+
|
|
32
|
+
Settings are independent booleans in `devin-search/settings.json`. They are not secrets.
|