@zleap-ai/sag 0.1.8 → 0.2.10
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 +13 -2
- package/bin/sag.cjs +0 -0
- package/native/darwin-arm64/sag +0 -0
- package/native/linux-arm64/sag +0 -0
- package/native/linux-x64/sag +0 -0
- package/native/win32-x64/sag.exe +0 -0
- package/package.json +3 -2
- package/LICENSE +0 -21
package/README.md
CHANGED
|
@@ -15,14 +15,25 @@ The same unversioned install command updates an existing npm installation to the
|
|
|
15
15
|
|
|
16
16
|
You can also install with `pnpm add -g @zleap-ai/sag` or `bun add -g @zleap-ai/sag`.
|
|
17
17
|
|
|
18
|
-
First use of semantic search guides you through the JEV endpoint, model and API key. The key is entered without echoing. Existing settings are reused. To configure noninteractively, use `sag config --key 'YOUR_KEY'` or `sag config --key-stdin`. Command arguments may be saved in shell history.
|
|
18
|
+
First use of semantic search guides you through the JEV endpoint, model and API key. The key is entered without echoing. Existing settings are reused. To configure noninteractively, use `sag config --key 'YOUR_KEY'` or `sag config --key-stdin`. Command arguments may be saved in shell history. For a local Jev service without authentication, use `sag config --url http://127.0.0.1:8000/v1 --model YOUR_MODEL --auth none`. This removes the saved Jev key and omits the authorization header. Base URLs and complete `/systemone` or `/decisions` endpoints are accepted. Use `--auth bearer --key-stdin` to return to API Key authentication.
|
|
19
19
|
|
|
20
20
|
The package includes precompiled native binaries. No Rust toolchain, desktop app, install script or extra binary download is required. Node.js 18 or later is required for the command launcher.
|
|
21
21
|
|
|
22
|
-
Supported platforms in this package:
|
|
22
|
+
Supported platforms in this package: darwin-arm64, win32-x64, linux-arm64, linux-x64.
|
|
23
23
|
|
|
24
24
|
Search is scoped to indexed folders under the current directory. `sag add` indexes the current project, `sag remove` removes its knowledge-base records without deleting local files. `.gitignore` and `.sagignore` are respected. Use `sag -c "question"` for original passages, or `--json` for structured output.
|
|
25
25
|
|
|
26
26
|
Semantic search remains the default. Use `-E` / `--extended-regexp` for Rust regex syntax or `-F` / `--fixed-strings` for literal substrings. These mutually exclusive modes match one line at a time, are case-sensitive by default, and need no API key or model. They share the knowledge-base scope and exclusions. `-m` limits matching lines; no matches exits successfully. Regex lookaround and backreferences are unsupported.
|
|
27
27
|
|
|
28
28
|
Local matching also supports `-i`, `-w`, `-x`, `-v`, context via `-A/-B/-C`, file names via `-l`, per-file `--count`, fragments via `-o`, and silent predicates via `-q` (exit 0/1/2 for match/no match/error). Use repeated `-e` patterns or `-f FILE` (`-` for stdin), plus ordered `--include` / `--exclude` filename globs. These controls require `-E` or `-F`. `-c` still means content. `--count` scans all lines unless an explicit global `-m` limit is supplied.
|
|
29
|
+
|
|
30
|
+
## HTTP API
|
|
31
|
+
|
|
32
|
+
Run `sag api key create --name "Application A"`, then `sag api start` to serve local and LAN applications. The API starts separately from CLI access and does not require the desktop app. It keeps running after the terminal closes. `sag api stop` closes HTTP access while retaining the shared backend and index.
|
|
33
|
+
|
|
34
|
+
Use `sag api status --json` to inspect state without starting the backend. Manage keys with `sag api key list` and `sag api key revoke KEY_ID`. Keys are shown in full only once. With no valid key, the running API returns 401 Unauthorized.
|
|
35
|
+
|
|
36
|
+
The HTTP API supports fast and deep search, source-passage results, hierarchical folder browsing and multiple absolute directory paths. Deep search uses the decision model configured by `sag config`; fast search needs no model. Optional startup registration is managed with `sag api autostart enable`, `disable` and `status`, and is off by default.
|
|
37
|
+
|
|
38
|
+
API overview: http://sag-wiki.zleap.com/en/docs/api-guide
|
|
39
|
+
API reference: http://sag-wiki.zleap.com/en/docs/api
|
package/bin/sag.cjs
CHANGED
|
File without changes
|
package/native/darwin-arm64/sag
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/native/win32-x64/sag.exe
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zleap-ai/sag",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.10",
|
|
4
4
|
"description": "Search local project files with SAG. Desktop app optional.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"sag": "bin/sag.cjs"
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
},
|
|
20
20
|
"os": [
|
|
21
21
|
"darwin",
|
|
22
|
-
"win32"
|
|
22
|
+
"win32",
|
|
23
|
+
"linux"
|
|
23
24
|
],
|
|
24
25
|
"cpu": [
|
|
25
26
|
"arm64",
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 sag contributors
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|