ogment 0.2.1 → 0.2.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/dist/api.d.ts CHANGED
@@ -1,17 +1,24 @@
1
1
  /**
2
2
  * Ogment API client — calls the backend REST endpoints.
3
3
  */
4
+ export interface OgmentServer {
5
+ id: string;
6
+ name: string;
7
+ path: string;
8
+ enabled: boolean;
9
+ }
4
10
  export interface OgmentOrg {
11
+ orgId: string;
5
12
  orgSlug: string;
6
- servers: {
7
- name: string;
8
- path: string;
9
- enabled: boolean;
10
- }[];
13
+ orgName: string | null;
14
+ role: string;
15
+ servers: OgmentServer[];
11
16
  }
12
17
  export interface OgmentMe {
18
+ userId: string;
13
19
  email: string | null;
14
20
  name: string | null;
21
+ imageUrl: string | null;
15
22
  orgs: OgmentOrg[];
16
23
  }
17
24
  export declare function fetchMe(token: string): Promise<OgmentMe>;
package/dist/api.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAAA;;GAEG;AAQH,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,OAAO,CAAA;KAAE,EAAE,CAAC;CAC7D;AAED,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,EAAE,SAAS,EAAE,CAAC;CACnB;AAMD,wBAAsB,OAAO,CAAC,KAAK,EAAE,MAAM,qBAW1C"}
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAAA;;GAEG;AAQH,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,YAAY,EAAE,CAAC;CACzB;AAED,MAAM,WAAW,QAAQ;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,IAAI,EAAE,SAAS,EAAE,CAAC;CACnB;AAMD,wBAAsB,OAAO,CAAC,KAAK,EAAE,MAAM,qBAY1C"}
package/dist/api.js CHANGED
@@ -13,5 +13,6 @@ export async function fetchMe(token) {
13
13
  const text = await res.text();
14
14
  throw new Error(`Failed to fetch account info (${res.status}): ${text}`);
15
15
  }
16
- return (await res.json());
16
+ const body = (await res.json());
17
+ return body.data;
17
18
  }
@@ -1 +1 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAuBH,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,IAAI,EAAE,SAAS,EAAE,CAAC;CACnB;AAiCD,wBAAgB,eAAe,IAAI,iBAAiB,GAAG,IAAI,CAgB1D;AAeD,wBAAgB,iBAAiB,SAIhC;AAED;;GAEG;AACH,wBAAgB,kBAAkB,sBAMjC;AAoED,wBAAsB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,IAAI,iBAoB7F;AA6ID;;;;;;;;GAQG;AACH,wBAAsB,KAAK,+BA6D1B"}
1
+ {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAuBH,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,IAAI,EAAE,SAAS,EAAE,CAAC;CACnB;AAiCD,wBAAgB,eAAe,IAAI,iBAAiB,GAAG,IAAI,CAgB1D;AAeD,wBAAgB,iBAAiB,SAIhC;AAED;;GAEG;AACH,wBAAgB,kBAAkB,sBAMjC;AAoED,wBAAsB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,IAAI,iBAoB7F;AA+ID;;;;;;;;GAQG;AACH,wBAAsB,KAAK,+BA6D1B"}
package/dist/auth.js CHANGED
@@ -149,6 +149,8 @@ function startCallbackServerWithPort() {
149
149
  const server = createServer();
150
150
  server.listen(0, CLI_REDIRECT_HOST, () => {
151
151
  const addr = server.address();
152
+ // unref so the server doesn't keep the process alive after login completes
153
+ server.unref();
152
154
  resolve({ server, port: addr.port });
153
155
  });
154
156
  });
package/dist/cli.js CHANGED
File without changes
package/dist/config.d.ts CHANGED
@@ -19,5 +19,5 @@ export declare const CONFIG_DIR: string;
19
19
  export declare const CREDENTIALS_PATH: string;
20
20
  export declare const CLI_CLIENT_NAME = "Ogment CLI";
21
21
  export declare const CLI_REDIRECT_HOST = "127.0.0.1";
22
- export declare const VERSION = "0.2.1";
22
+ export declare const VERSION = "0.2.2";
23
23
  //# sourceMappingURL=config.d.ts.map
package/dist/config.js CHANGED
@@ -33,4 +33,4 @@ export const CLI_REDIRECT_HOST = '127.0.0.1';
33
33
  // ---------------------------------------------------------------------------
34
34
  // Version
35
35
  // ---------------------------------------------------------------------------
36
- export const VERSION = '0.2.1';
36
+ export const VERSION = '0.2.2';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ogment",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Ogment Vault CLI — secure your AI agents' SaaS credentials",
5
5
  "type": "module",
6
6
  "bin": {