artifactpass 0.1.6 → 0.1.7

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 CHANGED
@@ -35999,12 +35999,9 @@ var firstUnknownOption = (args, valueOptions, booleanOptions) => args.find(
35999
35999
  var isInstallInvocation = (command) => command === void 0 || command === "install" || INSTALL_VALUE_OPTIONS.has(command) || INSTALL_BOOLEAN_OPTIONS.has(command);
36000
36000
  var CONNECT_VALUE_OPTIONS = /* @__PURE__ */ new Set([
36001
36001
  "--profile",
36002
- "--workspace-root",
36003
- "--host",
36004
- "--marketplace"
36002
+ "--workspace-root"
36005
36003
  ]);
36006
36004
  var CONNECT_BOOLEAN_OPTIONS = /* @__PURE__ */ new Set([
36007
- "--no-host-install",
36008
36005
  "--open-development"
36009
36006
  ]);
36010
36007
  var parseConnectArguments = (args) => {
@@ -36169,7 +36166,7 @@ var runDoctor = async (deploymentRoot2, runner = runProcess) => {
36169
36166
  // package.json
36170
36167
  var package_default = {
36171
36168
  name: "artifactpass",
36172
- version: "0.1.6",
36169
+ version: "0.1.7",
36173
36170
  description: "Install and connect ArtifactPass for compatible AI agent systems.",
36174
36171
  repository: {
36175
36172
  type: "git",
@@ -37490,6 +37487,7 @@ var renderIntroduction = (input) => [
37490
37487
  `What changes in Cloudflare: ${input.cloudflareChange}`,
37491
37488
  `What ArtifactPass reads afterward: ${input.artifactpassReads}`,
37492
37489
  `Ready when: ${input.readiness}`,
37490
+ input.guideUrl === void 0 ? void 0 : `Step-by-step guide: ${input.guideUrl}`,
37493
37491
  `Cloudflare page: ${input.url}`
37494
37492
  ].filter((line) => line !== void 0).join("\n");
37495
37493
  var askAction = async (prompt) => {
@@ -37571,11 +37569,16 @@ var runBrowserHandoff = async (input, dependencies) => {
37571
37569
  // src/private-deployment/prerequisites.ts
37572
37570
  var domainPattern = /^(?=.{1,253}$)(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z]{2,63}$/u;
37573
37571
  var workersSubdomainPattern2 = /^(?=.{1,63}$)[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/u;
37572
+ var cloudflareDomainGuideUrl = "https://github.com/lordelogos/lordebuilds.artifact.pass/blob/main/docs/cloudflare-domain-setup.md";
37574
37573
  var askDomain = async (prompt) => {
37575
37574
  for (; ; ) {
37576
- const domain2 = (await promptForText(prompt, "Domain to add to Cloudflare", "example.com")).trim().toLowerCase().replace(/\.$/u, "");
37575
+ const domain2 = (await promptForText(
37576
+ prompt,
37577
+ "Domain to add to Cloudflare (example: example.com; no https://)",
37578
+ "example.com"
37579
+ )).trim().toLowerCase().replace(/\.$/u, "");
37577
37580
  if (domainPattern.test(domain2)) return domain2;
37578
- prompt.write("Enter a complete domain such as example.com.\n");
37581
+ prompt.write("Enter only the domain, for example example.com. Do not include https:// or a path.\n");
37579
37582
  }
37580
37583
  };
37581
37584
  var chooseWorkersSubdomain = async (prompt, accountName) => {
@@ -37669,9 +37672,10 @@ var ensureActiveZone = async (state, dependencies) => {
37669
37672
  const handoff = await runBrowserHandoff({
37670
37673
  title: zone === void 0 ? "Add your domain to Cloudflare" : "Activate your domain in Cloudflare",
37671
37674
  purpose: "ArtifactPass needs a domain you control for the private Worker and team login.",
37672
- cloudflareChange: "Cloudflare adds the DNS zone and shows the nameservers. You update those nameservers at your registrar. ArtifactPass never receives registrar credentials.",
37675
+ cloudflareChange: "Choose Connect a domain, not Transfer a domain. Cloudflare adds the DNS zone and shows the nameservers. You update those nameservers at your current registrar. This does not transfer your domain registration, unlock the domain, or require an authorization code. ArtifactPass never receives registrar credentials.",
37673
37676
  artifactpassReads: "The zone ID, domain name, assigned nameservers, and activation status.",
37674
37677
  readiness,
37678
+ guideUrl: cloudflareDomainGuideUrl,
37675
37679
  url: cloudflareDashboardUrls(accountId).addDomain,
37676
37680
  resumed: state.pending_handoff?.kind === "domain"
37677
37681
  }, {
@@ -39064,7 +39068,7 @@ Commands:
39064
39068
  deployment auth disconnect --resume <hostname-or-id> [--json]
39065
39069
  deployment doctor --resume <hostname-or-id> [--json]
39066
39070
  deploy --account-id <id> --zone-id <id> --hostname <host> [--service-name <name>] --workers-subdomain <name> --pdf-key-id <id> --pdf-public-key <base64> (--allow-email <email> | --allow-domain <domain>) (--dry-run | --write-approval-manifest <path> | --approve-manifest <path>)
39067
- connect [base-url] [--profile <name>] [--workspace-root <path>] [--host codex|claude|both] [--no-host-install] [--marketplace <source>] [--open-development]
39071
+ connect [base-url] [--profile <name>] [--workspace-root <path>] [--open-development]
39068
39072
  profile list
39069
39073
  profile use <name>
39070
39074
  disconnect [--profile <name>]
@@ -39508,18 +39512,6 @@ Resume: pnpm dlx artifactpass deploy --resume ${completed.state.hostname ?? comp
39508
39512
  if (command === "connect") {
39509
39513
  const connectArguments = parseConnectArguments(args);
39510
39514
  const savedSettings = await readSavedSettings();
39511
- const installKnownHostAdapters = !booleanFlag(args, "--no-host-install");
39512
- const requestedHost = optionalValue(args, "--host");
39513
- const host = requestedHost ?? "both";
39514
- if (!(/* @__PURE__ */ new Set(["codex", "claude", "both"])).has(host)) throw new Error("--host must be codex, claude, or both");
39515
- if (!installKnownHostAdapters && requestedHost !== void 0) {
39516
- throw new Error("--host cannot be combined with --no-host-install");
39517
- }
39518
- const hosts = host === "both" ? void 0 : [host];
39519
- const marketplaceSource = optionalValue(args, "--marketplace") ?? defaultMarketplace;
39520
- const portableIntegration = await installPortableIntegration({
39521
- marketplaceSource
39522
- });
39523
39515
  const profileName = optionalValue(args, "--profile");
39524
39516
  const requestedWorkspaceRoots = values(args, "--workspace-root");
39525
39517
  const workspaceRoots = requestedWorkspaceRoots.length > 0 ? requestedWorkspaceRoots : [process.cwd()];
@@ -39527,12 +39519,10 @@ Resume: pnpm dlx artifactpass deploy --resume ${completed.state.hostname ?? comp
39527
39519
  ...profileName === void 0 ? {} : { profileName },
39528
39520
  baseUrl: resolveConnectDeploymentUrl(connectArguments, savedSettings, profileName, workspaceRoots[0]),
39529
39521
  workspaceRoots,
39530
- ...hosts === void 0 ? {} : { hosts },
39531
- installKnownHostAdapters,
39532
- marketplaceSource: portableIntegration.marketplaceDirectory,
39522
+ installKnownHostAdapters: false,
39523
+ marketplaceSource: defaultMarketplace,
39533
39524
  openDevelopment: booleanFlag(args, "--open-development")
39534
39525
  }, {
39535
- installPortable: async () => portableIntegration,
39536
39526
  deviceFlowDependencies: {
39537
39527
  openBrowser,
39538
39528
  onManualApprovalRequired: (url2) => {
@@ -39542,15 +39532,10 @@ ${url2}
39542
39532
  }
39543
39533
  }
39544
39534
  });
39545
- if (!installKnownHostAdapters || result.portableIntegration !== void 0) {
39546
- print({
39547
- ...result,
39548
- portableIntegration: result.portableIntegration ?? portableIntegration,
39549
- next: "Register the MCP configuration and Agent Skills directory in your agent system."
39550
- });
39551
- return;
39552
- }
39553
- print({ ...result, next: "Start a new agent session so the plugin and bridge reload." });
39535
+ print({
39536
+ ...result,
39537
+ next: "ArtifactPass is connected for this project. Existing agent sessions may need to reconnect."
39538
+ });
39554
39539
  return;
39555
39540
  }
39556
39541
  if (command === "profile") {
@@ -32821,7 +32821,7 @@ var capabilityPath = /^\/a\/[A-Za-z0-9_-]{32,256}(?=\/|$)/u;
32821
32821
  var redactRequestPath = (pathname) => pathname.replace(capabilityPath, "/a/:capability");
32822
32822
  var package_default = {
32823
32823
  name: "artifactpass",
32824
- version: "0.1.6",
32824
+ version: "0.1.7",
32825
32825
  "private": true,
32826
32826
  type: "module",
32827
32827
  packageManager: "pnpm@10.11.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "artifactpass",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "displayName": "ArtifactPass",
5
5
  "description": "Share temporary Markdown, HTML, and PDF links between people and AI agents.",
6
6
  "author": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "artifactpass",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Share temporary Markdown, HTML, and PDF links between people and AI agents.",
5
5
  "author": {
6
6
  "name": "Lorde Builds"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "artifactpass",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
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.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "artifactpass",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Install and connect ArtifactPass for compatible AI agent systems.",
5
5
  "repository": {
6
6
  "type": "git",