@postonus/cli 0.1.24 → 0.1.25

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/index.js CHANGED
@@ -166,6 +166,23 @@ function isCredentialPlatform(platform) {
166
166
  return CREDENTIAL_PLATFORMS.includes(platform);
167
167
  }
168
168
 
169
+ // ../../packages/app-config/src/site.ts
170
+ var SITE = {
171
+ title: "Postonus",
172
+ subtitle: "Effortless Social Media Scheduling",
173
+ url: "https://postonus.com",
174
+ description: "Plan, automate and track your social content across platforms with ease.",
175
+ shortDescription: "Post once and publish everywhere.",
176
+ colorScheme: "light",
177
+ /**
178
+ * GA4 measurement id for the marketing site. Public by design — it ships in
179
+ * the page source of every site that uses gtag — so it is a constant rather
180
+ * than an env var, and there is nothing per-environment to configure. The tag
181
+ * only loads in production, so a dev session cannot pollute the property.
182
+ */
183
+ gaMeasurementId: "G-896SCPPTRK"
184
+ };
185
+
169
186
  // ../../packages/app-config/src/file-scenarios.ts
170
187
  var scenarios = {
171
188
  post_attachments: {
@@ -12185,7 +12202,7 @@ function formatTable(headers, rows) {
12185
12202
  }
12186
12203
 
12187
12204
  // src/version.ts
12188
- var CLI_VERSION = "0.1.24";
12205
+ var CLI_VERSION = "0.1.25";
12189
12206
 
12190
12207
  // src/client.ts
12191
12208
  var DEVICE_CODE_GRANT_TYPE = "urn:ietf:params:oauth:grant-type:device_code";
@@ -12412,6 +12429,7 @@ async function renderOnce(node2) {
12412
12429
  // src/commands/auth.tsx
12413
12430
  import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
12414
12431
  var CLI_OAUTH_SCOPE = "openid profile offline_access";
12432
+ var AGENT_SETUP_PROMPT = `Set up Postonus for me. Fetch ${SITE.url}/docs/setup.md and follow it.`;
12415
12433
  var DeviceCodeError = class extends Error {
12416
12434
  constructor(code, message) {
12417
12435
  super(message);
@@ -12565,10 +12583,15 @@ async function login() {
12565
12583
  email: user.email
12566
12584
  });
12567
12585
  if (isJsonMode()) {
12568
- printJson({ status: "signed-in", email: user.email, apiUrl });
12586
+ printJson({ status: "signed-in", email: user.email, apiUrl, next: AGENT_SETUP_PROMPT });
12569
12587
  return;
12570
12588
  }
12571
12589
  printLine(`Signed in as ${user.email}`);
12590
+ printStatus(`
12591
+ Next, paste this into your coding agent (Claude Code, Cursor, Codex):
12592
+
12593
+ ${AGENT_SETUP_PROMPT}
12594
+ `);
12572
12595
  };
12573
12596
  if (!isInteractive()) {
12574
12597
  printStatus(`Enter code ${device.user_code} at ${device.verification_uri}`);