agentv 0.13.0 → 0.14.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/cli.js CHANGED
@@ -1,7 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  runCli
4
- } from "./chunk-WMO5PVPX.js";
4
+ } from "./chunk-TJ4U6A6X.js";
5
+ import "./chunk-7XYYGJAC.js";
5
6
 
6
7
  // src/cli.ts
7
8
  void runCli();
package/dist/cli.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/cli.ts"],"sourcesContent":["#!/usr/bin/env node\r\nimport { runCli } from './index.js';\r\n\r\nvoid runCli();\r\n"],"mappings":";;;;;;AAGA,KAAK,OAAO;","names":[]}
1
+ {"version":3,"sources":["../src/cli.ts"],"sourcesContent":["#!/usr/bin/env node\r\nimport { runCli } from './index.js';\r\n\r\nvoid runCli();\r\n"],"mappings":";;;;;;;AAGA,KAAK,OAAO;","names":[]}
package/dist/index.js CHANGED
@@ -1,7 +1,8 @@
1
1
  import {
2
2
  createProgram,
3
3
  runCli
4
- } from "./chunk-WMO5PVPX.js";
4
+ } from "./chunk-TJ4U6A6X.js";
5
+ import "./chunk-7XYYGJAC.js";
5
6
  export {
6
7
  createProgram,
7
8
  runCli
@@ -0,0 +1,63 @@
1
+ import {
2
+ require_token_util
3
+ } from "./chunk-D44RV4HN.js";
4
+ import {
5
+ __commonJS,
6
+ require_token_error
7
+ } from "./chunk-7XYYGJAC.js";
8
+
9
+ // ../../node_modules/.pnpm/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/token.js
10
+ var require_token = __commonJS({
11
+ "../../node_modules/.pnpm/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/token.js"(exports, module) {
12
+ var __defProp = Object.defineProperty;
13
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
14
+ var __getOwnPropNames = Object.getOwnPropertyNames;
15
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
16
+ var __export = (target, all) => {
17
+ for (var name in all)
18
+ __defProp(target, name, { get: all[name], enumerable: true });
19
+ };
20
+ var __copyProps = (to, from, except, desc) => {
21
+ if (from && typeof from === "object" || typeof from === "function") {
22
+ for (let key of __getOwnPropNames(from))
23
+ if (!__hasOwnProp.call(to, key) && key !== except)
24
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
25
+ }
26
+ return to;
27
+ };
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var token_exports = {};
30
+ __export(token_exports, {
31
+ refreshToken: () => refreshToken
32
+ });
33
+ module.exports = __toCommonJS(token_exports);
34
+ var import_token_error = require_token_error();
35
+ var import_token_util = require_token_util();
36
+ async function refreshToken() {
37
+ const { projectId, teamId } = (0, import_token_util.findProjectInfo)();
38
+ let maybeToken = (0, import_token_util.loadToken)(projectId);
39
+ if (!maybeToken || (0, import_token_util.isExpired)((0, import_token_util.getTokenPayload)(maybeToken.token))) {
40
+ const authToken = (0, import_token_util.getVercelCliToken)();
41
+ if (!authToken) {
42
+ throw new import_token_error.VercelOidcTokenError(
43
+ "Failed to refresh OIDC token: login to vercel cli"
44
+ );
45
+ }
46
+ if (!projectId) {
47
+ throw new import_token_error.VercelOidcTokenError(
48
+ "Failed to refresh OIDC token: project id not found"
49
+ );
50
+ }
51
+ maybeToken = await (0, import_token_util.getVercelOidcToken)(authToken, projectId, teamId);
52
+ if (!maybeToken) {
53
+ throw new import_token_error.VercelOidcTokenError("Failed to refresh OIDC token");
54
+ }
55
+ (0, import_token_util.saveToken)(maybeToken, projectId);
56
+ }
57
+ process.env.VERCEL_OIDC_TOKEN = maybeToken.token;
58
+ return;
59
+ }
60
+ }
61
+ });
62
+ export default require_token();
63
+ //# sourceMappingURL=token-O4PKPL7Y.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../node_modules/.pnpm/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/token.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar token_exports = {};\n__export(token_exports, {\n refreshToken: () => refreshToken\n});\nmodule.exports = __toCommonJS(token_exports);\nvar import_token_error = require(\"./token-error\");\nvar import_token_util = require(\"./token-util\");\nasync function refreshToken() {\n const { projectId, teamId } = (0, import_token_util.findProjectInfo)();\n let maybeToken = (0, import_token_util.loadToken)(projectId);\n if (!maybeToken || (0, import_token_util.isExpired)((0, import_token_util.getTokenPayload)(maybeToken.token))) {\n const authToken = (0, import_token_util.getVercelCliToken)();\n if (!authToken) {\n throw new import_token_error.VercelOidcTokenError(\n \"Failed to refresh OIDC token: login to vercel cli\"\n );\n }\n if (!projectId) {\n throw new import_token_error.VercelOidcTokenError(\n \"Failed to refresh OIDC token: project id not found\"\n );\n }\n maybeToken = await (0, import_token_util.getVercelOidcToken)(authToken, projectId, teamId);\n if (!maybeToken) {\n throw new import_token_error.VercelOidcTokenError(\"Failed to refresh OIDC token\");\n }\n (0, import_token_util.saveToken)(maybeToken, projectId);\n }\n process.env.VERCEL_OIDC_TOKEN = maybeToken.token;\n return;\n}\n// Annotate the CommonJS export names for ESM import in node:\n0 && (module.exports = {\n refreshToken\n});\n"],"mappings":";;;;;;;;;AAAA;AAAA;AACA,QAAI,YAA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AAmB;AAAA,YAC3B;AAAA,UACF;AAAA,QACF;AACA,qBAAa,OAAO,GAAG,kBAAkB,oBAAoB,WAAW,WAAW,MAAM;AACzF,YAAI,CAAC,YAAY;AACf,gBAAM,IAAI,mBAAmB,qBAAqB,8BAA8B;AAAA,QAClF;AACA,SAAC,GAAG,kBAAkB,WAAW,YAAY,SAAS;AAAA,MACxD;AACA,cAAQ,IAAI,oBAAoB,WAAW;AAC3C;AAAA,IACF;AAAA;AAAA;","names":[]}
@@ -0,0 +1,6 @@
1
+ import {
2
+ require_token_util
3
+ } from "./chunk-D44RV4HN.js";
4
+ import "./chunk-7XYYGJAC.js";
5
+ export default require_token_util();
6
+ //# sourceMappingURL=token-util-SOXXDYPK.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentv",
3
- "version": "0.13.0",
3
+ "version": "0.14.2",
4
4
  "description": "CLI entry point for AgentV",
5
5
  "type": "module",
6
6
  "repository": {
@@ -24,7 +24,7 @@
24
24
  "dotenv": "^16.4.5",
25
25
  "micromatch": "^4.0.8",
26
26
  "yaml": "^2.6.1",
27
- "@agentv/core": "0.13.0"
27
+ "@agentv/core": "0.14.2"
28
28
  },
29
29
  "devDependencies": {
30
30
  "execa": "^9.3.0"