@clawos-dev/clawd 0.2.624 → 0.2.626

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.
@@ -21533,7 +21533,8 @@ var DeploySecretPresenceSchema = external_exports.object({
21533
21533
  }).strict();
21534
21534
  var DEPLOY_STAGE_STATUSES = ["pending", "running", "done", "failed", "waiting", "skipped"];
21535
21535
  var DeployStageStatusSchema = external_exports.enum(DEPLOY_STAGE_STATUSES);
21536
- var DEPLOY_STAGE_KEYS = ["build", "smoke", "deploy"];
21536
+ var DEPLOY_VERIFY_STAGE = "verify";
21537
+ var DEPLOY_STAGE_KEYS = ["build", "smoke", "deploy", DEPLOY_VERIFY_STAGE];
21537
21538
  var DeployStageKeySchema = external_exports.enum(DEPLOY_STAGE_KEYS);
21538
21539
  var DeployJobSchema = external_exports.object({
21539
21540
  key: DeployStageKeySchema,
@@ -21714,7 +21714,8 @@ var DeploySecretPresenceSchema = external_exports.object({
21714
21714
  }).strict();
21715
21715
  var DEPLOY_STAGE_STATUSES = ["pending", "running", "done", "failed", "waiting", "skipped"];
21716
21716
  var DeployStageStatusSchema = external_exports.enum(DEPLOY_STAGE_STATUSES);
21717
- var DEPLOY_STAGE_KEYS = ["build", "smoke", "deploy"];
21717
+ var DEPLOY_VERIFY_STAGE = "verify";
21718
+ var DEPLOY_STAGE_KEYS = ["build", "smoke", "deploy", DEPLOY_VERIFY_STAGE];
21718
21719
  var DeployStageKeySchema = external_exports.enum(DEPLOY_STAGE_KEYS);
21719
21720
  var DeployJobSchema = external_exports.object({
21720
21721
  key: DeployStageKeySchema,
@@ -24604,6 +24605,12 @@ var PackageFindingSchema = EnvPackageSchema.omit({ localVersion: true, artifact:
24604
24605
  artifact: external_exports.object({ url: external_exports.string().url(), bin: external_exports.string() }).strict().optional()
24605
24606
  });
24606
24607
 
24608
+ // src/feishu-auth/deploy-environments.ts
24609
+ var DEPLOY_TARGETS = {
24610
+ integration: { api: "https://api-int.clawos.chat", gateway: "https://persona-int.clawos.chat" },
24611
+ production: { api: "https://api.clawos.chat", gateway: "https://persona.clawos.chat" }
24612
+ };
24613
+
24607
24614
  // src/deploy/release-workflow.ts
24608
24615
  function renderDeployWorkflow(config2) {
24609
24616
  const identity = [
@@ -24807,6 +24814,22 @@ function renderDeployWorkflow(config2) {
24807
24814
  ...download("${{ inputs.environment == 'production' && 'persona-candidate' || 'persona-smoked' }}"),
24808
24815
  ...contract,
24809
24816
  ...runtime("register"),
24817
+ ...job(DEPLOY_VERIFY_STAGE),
24818
+ " needs: deploy",
24819
+ " if: inputs.environment != 'production'",
24820
+ " steps:",
24821
+ ...download("persona-smoked"),
24822
+ ...contract,
24823
+ " - name: Verify ordinary user conversation after deployment",
24824
+ " env:",
24825
+ ` CLAWD_INT_API_URL: \${{ vars.CLAWD_INT_API_URL || '${DEPLOY_TARGETS.integration.api}' }}`,
24826
+ " CLAWD_INT_TEST_LOGIN_PASS: ${{ secrets.CLAWD_INT_TEST_LOGIN_PASS }}",
24827
+ " run: |",
24828
+ " node clawos/cloud-host/pipeline/persona-verify.mjs \\",
24829
+ " --file candidate-release.json \\",
24830
+ " --persona-id '${{ steps.plan.outputs.persona_id }}' \\",
24831
+ " --engine '${{ steps.plan.outputs.engine }}'",
24832
+ "",
24810
24833
  ...upload("persona-verified-${{ github.run_attempt }}")
24811
24834
  ].join("\n");
24812
24835
  }
@@ -21714,7 +21714,8 @@ var DeploySecretPresenceSchema = external_exports.object({
21714
21714
  }).strict();
21715
21715
  var DEPLOY_STAGE_STATUSES = ["pending", "running", "done", "failed", "waiting", "skipped"];
21716
21716
  var DeployStageStatusSchema = external_exports.enum(DEPLOY_STAGE_STATUSES);
21717
- var DEPLOY_STAGE_KEYS = ["build", "smoke", "deploy"];
21717
+ var DEPLOY_VERIFY_STAGE = "verify";
21718
+ var DEPLOY_STAGE_KEYS = ["build", "smoke", "deploy", DEPLOY_VERIFY_STAGE];
21718
21719
  var DeployStageKeySchema = external_exports.enum(DEPLOY_STAGE_KEYS);
21719
21720
  var DeployJobSchema = external_exports.object({
21720
21721
  key: DeployStageKeySchema,
@@ -24604,6 +24605,12 @@ var PackageFindingSchema = EnvPackageSchema.omit({ localVersion: true, artifact:
24604
24605
  artifact: external_exports.object({ url: external_exports.string().url(), bin: external_exports.string() }).strict().optional()
24605
24606
  });
24606
24607
 
24608
+ // src/feishu-auth/deploy-environments.ts
24609
+ var DEPLOY_TARGETS = {
24610
+ integration: { api: "https://api-int.clawos.chat", gateway: "https://persona-int.clawos.chat" },
24611
+ production: { api: "https://api.clawos.chat", gateway: "https://persona.clawos.chat" }
24612
+ };
24613
+
24607
24614
  // src/deploy/release-workflow.ts
24608
24615
  function renderDeployWorkflow(config2) {
24609
24616
  const identity = [
@@ -24807,6 +24814,22 @@ function renderDeployWorkflow(config2) {
24807
24814
  ...download("${{ inputs.environment == 'production' && 'persona-candidate' || 'persona-smoked' }}"),
24808
24815
  ...contract,
24809
24816
  ...runtime("register"),
24817
+ ...job(DEPLOY_VERIFY_STAGE),
24818
+ " needs: deploy",
24819
+ " if: inputs.environment != 'production'",
24820
+ " steps:",
24821
+ ...download("persona-smoked"),
24822
+ ...contract,
24823
+ " - name: Verify ordinary user conversation after deployment",
24824
+ " env:",
24825
+ ` CLAWD_INT_API_URL: \${{ vars.CLAWD_INT_API_URL || '${DEPLOY_TARGETS.integration.api}' }}`,
24826
+ " CLAWD_INT_TEST_LOGIN_PASS: ${{ secrets.CLAWD_INT_TEST_LOGIN_PASS }}",
24827
+ " run: |",
24828
+ " node clawos/cloud-host/pipeline/persona-verify.mjs \\",
24829
+ " --file candidate-release.json \\",
24830
+ " --persona-id '${{ steps.plan.outputs.persona_id }}' \\",
24831
+ " --engine '${{ steps.plan.outputs.engine }}'",
24832
+ "",
24810
24833
  ...upload("persona-verified-${{ github.run_attempt }}")
24811
24834
  ].join("\n");
24812
24835
  }