@gettier/cli 0.1.0-beta.1 → 0.1.0-beta.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 +10 -1
- package/dist/cli.js +5 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -83,7 +83,7 @@ no test would have said so.
|
|
|
83
83
|
## Commands
|
|
84
84
|
|
|
85
85
|
```text
|
|
86
|
-
gettier init <project
|
|
86
|
+
gettier init <project|.> [--environment env] [--registry path]
|
|
87
87
|
[--endpoint url | --local] [--force]
|
|
88
88
|
gettier status
|
|
89
89
|
gettier sensors list
|
|
@@ -93,6 +93,15 @@ gettier check [--declaration path|-] [--markdown path] [--json]
|
|
|
93
93
|
gettier mcp
|
|
94
94
|
```
|
|
95
95
|
|
|
96
|
+
Starting with `0.1.0-beta.2`, `gettier init .` uses the current directory's name: running it in
|
|
97
|
+
`/work/janeway-mcp` records `janeway-mcp` in `.gettier/project.json`. It initializes that
|
|
98
|
+
directory rather than creating another one. Explicit names such as `gettier init acme` still
|
|
99
|
+
work, and existing configuration requires `--force` to overwrite. At the filesystem root,
|
|
100
|
+
pass an explicit name because there is no directory name to infer.
|
|
101
|
+
|
|
102
|
+
`0.1.0-beta.1` records `.` literally; use an explicit project name with that older version.
|
|
103
|
+
Initialization does not create a hosted workspace.
|
|
104
|
+
|
|
96
105
|
**No Gettier server is involved.** The gate, the sensor registry and the sensor execution are
|
|
97
106
|
all local. Telemetry is optional; without a credential the CLI says `transport memory` rather
|
|
98
107
|
than implying delivery.
|
package/dist/cli.js
CHANGED
|
@@ -2912,7 +2912,7 @@ function packageVersion() {
|
|
|
2912
2912
|
}
|
|
2913
2913
|
var USAGE = `gettier \u2014 Gettier for Agents
|
|
2914
2914
|
|
|
2915
|
-
gettier init <project
|
|
2915
|
+
gettier init <project|.> [--environment env] [--registry path]
|
|
2916
2916
|
[--endpoint url | --local] [--force]
|
|
2917
2917
|
gettier status
|
|
2918
2918
|
gettier sensors list
|
|
@@ -2968,8 +2968,10 @@ async function main(argv, root = process.cwd(), log = console.log) {
|
|
|
2968
2968
|
};
|
|
2969
2969
|
switch (command) {
|
|
2970
2970
|
case "init": {
|
|
2971
|
-
const
|
|
2972
|
-
if (!
|
|
2971
|
+
const requestedProject = rest[0];
|
|
2972
|
+
if (!requestedProject || requestedProject.startsWith("--")) throw new Error("usage: gettier init <project|.>");
|
|
2973
|
+
const project = requestedProject === "." ? path5.basename(path5.resolve(root)) : requestedProject;
|
|
2974
|
+
if (!project) throw new Error("cannot infer a project name at the filesystem root \u2014 pass an explicit project name");
|
|
2973
2975
|
const endpoint = rest.includes("--local") ? LOCAL_INGEST_ENDPOINT : flag("endpoint");
|
|
2974
2976
|
const config = {
|
|
2975
2977
|
project,
|
package/package.json
CHANGED