artifactpass 0.1.12-rc.2 → 0.1.12-rc.3
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.mjs +23 -9
- package/dist/deployment/index.js +1 -1
- package/dist/marketplace/plugins/artifactpass/.claude-plugin/plugin.json +1 -1
- package/dist/marketplace/plugins/artifactpass/.codex-plugin/plugin.json +1 -1
- package/dist/marketplace/plugins/artifactpass/dist/cli.mjs +1 -1
- package/dist/marketplace/plugins/artifactpass/plugin-metadata.json +1 -1
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -4962,8 +4962,8 @@ function emoji() {
|
|
|
4962
4962
|
}
|
|
4963
4963
|
var ipv4 = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/;
|
|
4964
4964
|
var ipv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/;
|
|
4965
|
-
var mac = (
|
|
4966
|
-
const escapedDelim = escapeRegex(
|
|
4965
|
+
var mac = (delimiter2) => {
|
|
4966
|
+
const escapedDelim = escapeRegex(delimiter2 ?? ":");
|
|
4967
4967
|
return new RegExp(`^(?:[0-9A-F]{2}${escapedDelim}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${escapedDelim}){5}[0-9a-f]{2}$`);
|
|
4968
4968
|
};
|
|
4969
4969
|
var cidrv4 = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/;
|
|
@@ -23614,9 +23614,6 @@ var containsCanonicalPath = (root, candidate) => {
|
|
|
23614
23614
|
return path2 === "" || path2 !== ".." && !path2.startsWith(`..${sep2}`) && !isAbsolute2(path2);
|
|
23615
23615
|
};
|
|
23616
23616
|
|
|
23617
|
-
// ../agent-bridge/src/state/publication-journal.ts
|
|
23618
|
-
import { DatabaseSync } from "node:sqlite";
|
|
23619
|
-
|
|
23620
23617
|
// ../agent-bridge/src/logging/redacting-logger.ts
|
|
23621
23618
|
var bearerPattern = /\bBearer\s+[A-Za-z0-9._~-]+/giu;
|
|
23622
23619
|
var agentTokenPattern2 = /\bas_[A-Za-z0-9_-]{20,}\b/gu;
|
|
@@ -37735,17 +37732,34 @@ import { tmpdir } from "node:os";
|
|
|
37735
37732
|
import { resolve as resolve4 } from "node:path";
|
|
37736
37733
|
|
|
37737
37734
|
// src/process.ts
|
|
37738
|
-
import { spawn as spawn3 } from "node:child_process";
|
|
37735
|
+
import { spawn as spawn3, spawnSync } from "node:child_process";
|
|
37739
37736
|
import { createRequire } from "node:module";
|
|
37740
|
-
import { dirname as dirname3, resolve as resolve3 } from "node:path";
|
|
37737
|
+
import { delimiter, dirname as dirname3, resolve as resolve3 } from "node:path";
|
|
37741
37738
|
var localRequire = createRequire(
|
|
37742
37739
|
typeof __filename === "string" ? __filename : import.meta.url
|
|
37743
37740
|
);
|
|
37741
|
+
var wranglerNode = () => {
|
|
37742
|
+
if (Number.parseInt(process.versions.node, 10) >= 22) return process.execPath;
|
|
37743
|
+
const executableName = process.platform === "win32" ? "node.exe" : "node";
|
|
37744
|
+
const pathKey = Object.keys(process.env).find((key) => key.toLowerCase() === "path") ?? "PATH";
|
|
37745
|
+
for (const directory of (process.env[pathKey] ?? "").split(delimiter)) {
|
|
37746
|
+
if (!directory) continue;
|
|
37747
|
+
const executable = resolve3(directory, executableName);
|
|
37748
|
+
const result = spawnSync(executable, ["--version"], {
|
|
37749
|
+
encoding: "utf8",
|
|
37750
|
+
timeout: 1500,
|
|
37751
|
+
windowsHide: true
|
|
37752
|
+
});
|
|
37753
|
+
const major = Number.parseInt(/^v(\d+)\./u.exec(result.stdout?.trim() ?? "")?.[1] ?? "", 10);
|
|
37754
|
+
if (result.status === 0 && major >= 22) return executable;
|
|
37755
|
+
}
|
|
37756
|
+
throw new Error("Cloudflare setup requires Node.js 22 or newer to run Wrangler. Install it, then retry this step.");
|
|
37757
|
+
};
|
|
37744
37758
|
var resolvedCommand = (command, args) => {
|
|
37745
37759
|
if (command !== "wrangler") return { command, args };
|
|
37746
37760
|
const wranglerMain = localRequire.resolve("wrangler");
|
|
37747
37761
|
const wranglerBin = resolve3(dirname3(wranglerMain), "../bin/wrangler.js");
|
|
37748
|
-
return { command:
|
|
37762
|
+
return { command: wranglerNode(), args: [wranglerBin, ...args] };
|
|
37749
37763
|
};
|
|
37750
37764
|
var runProcess = async (command, args, options = {}) => new Promise((resolve14, reject) => {
|
|
37751
37765
|
const executable = resolvedCommand(command, args);
|
|
@@ -43410,7 +43424,7 @@ var startSlackArchiveWizard = async (options) => {
|
|
|
43410
43424
|
// package.json
|
|
43411
43425
|
var package_default = {
|
|
43412
43426
|
name: "artifactpass",
|
|
43413
|
-
version: "0.1.12-rc.
|
|
43427
|
+
version: "0.1.12-rc.3",
|
|
43414
43428
|
description: "Install and connect ArtifactPass for compatible AI agent systems.",
|
|
43415
43429
|
homepage: "https://artifactpass.com",
|
|
43416
43430
|
keywords: [
|
package/dist/deployment/index.js
CHANGED
|
@@ -99000,7 +99000,6 @@ var findSensitivePath = (path) => {
|
|
|
99000
99000
|
import { randomBytes as randomBytes3, randomUUID as randomUUID2 } from "node:crypto";
|
|
99001
99001
|
import { chmod, mkdir as mkdir2, open as open3, readFile as readFile3 } from "node:fs/promises";
|
|
99002
99002
|
import { dirname as dirname3 } from "node:path";
|
|
99003
|
-
import { DatabaseSync } from "node:sqlite";
|
|
99004
99003
|
var commitmentPattern = /^[a-f0-9]{64}$/u;
|
|
99005
99004
|
var publisherPattern = /^[A-Za-z0-9_-]{16,128}$/u;
|
|
99006
99005
|
var attemptPattern = /^[0-9a-f]{8}-[0-9a-f-]{27,45}$/u;
|
|
@@ -99159,6 +99158,7 @@ var FilePublicationJournal = class _FilePublicationJournal {
|
|
|
99159
99158
|
}
|
|
99160
99159
|
}
|
|
99161
99160
|
async initializeDatabase() {
|
|
99161
|
+
const { DatabaseSync } = await import("node:sqlite");
|
|
99162
99162
|
const databasePath = `${this.path}.sqlite3`;
|
|
99163
99163
|
await mkdir2(dirname3(databasePath), { recursive: true, mode: 448 });
|
|
99164
99164
|
const legacy = await this.readLegacyState();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "artifactpass",
|
|
3
|
-
"version": "0.1.12-rc.
|
|
3
|
+
"version": "0.1.12-rc.3",
|
|
4
4
|
"displayName": "ArtifactPass",
|
|
5
5
|
"description": "Share temporary Markdown, HTML, and PDF links between people and AI agents.",
|
|
6
6
|
"longDescription": "Publishes files from an approved workspace for people or agents to open, and reads supported ArtifactPass links created by either people or agents.",
|