@deployfoundation/foundation-deploy 0.2.29 → 0.2.31

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/bin/app.js CHANGED
@@ -8,13 +8,13 @@ import {
8
8
  FoundationPages,
9
9
  FoundationPipeline,
10
10
  NewsletterStack
11
- } from "../chunk-vmjptheh.js";
11
+ } from "../chunk-5qdgp5yj.js";
12
12
  import {
13
13
  adminsFor,
14
14
  instanceNames,
15
15
  loadInstanceFile,
16
16
  provisionsIntegration
17
- } from "../chunk-fpktb36j.js";
17
+ } from "../chunk-wxaexe2j.js";
18
18
 
19
19
  // bin/app.ts
20
20
  import { execFileSync } from "node:child_process";
@@ -29,7 +29,7 @@ import {
29
29
  stackExists,
30
30
  stackOutput,
31
31
  toolVersion
32
- } from "../chunk-3cwee91k.js";
32
+ } from "../chunk-1c56b284.js";
33
33
  import {
34
34
  BASE_SLACK_EVENTS,
35
35
  CAPABILITY_IDS,
@@ -45,7 +45,7 @@ import {
45
45
  requiredSlackScopes,
46
46
  skillsKey,
47
47
  slackCommandPrefix
48
- } from "../chunk-fpktb36j.js";
48
+ } from "../chunk-wxaexe2j.js";
49
49
 
50
50
  // src/deploy/config-sync.ts
51
51
  import { existsSync, mkdirSync, mkdtempSync, readdirSync } from "node:fs";
@@ -341,6 +341,7 @@ var UPWORK_GRAPHQL_DOCUMENTS = Object.freeze({
341
341
  title
342
342
  description
343
343
  ciphertext
344
+ publishedDateTime
344
345
  amount { displayValue currency }
345
346
  skills { name }
346
347
  client { totalFeedback }
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env bun
2
2
  import {
3
3
  DEFAULT_RELEASE_BUCKET
4
- } from "../chunk-3cwee91k.js";
5
- import"../chunk-fpktb36j.js";
4
+ } from "../chunk-1c56b284.js";
5
+ import"../chunk-wxaexe2j.js";
6
6
 
7
7
  // bin/release-account.ts
8
8
  import * as cdk2 from "aws-cdk-lib";
@@ -6,7 +6,7 @@ import {
6
6
  manifestKey,
7
7
  releaseCacheDir,
8
8
  verifyManifest
9
- } from "./chunk-fpktb36j.js";
9
+ } from "./chunk-wxaexe2j.js";
10
10
 
11
11
  // src/deploy/release.ts
12
12
  import { existsSync as existsSync2, mkdirSync, readFileSync as readFileSync2 } from "node:fs";
@@ -20,7 +20,7 @@ import {
20
20
  scheduledJobBindings,
21
21
  slackCommandPrefixes,
22
22
  webhookJobBindings
23
- } from "./chunk-fpktb36j.js";
23
+ } from "./chunk-wxaexe2j.js";
24
24
 
25
25
  // src/stacks/agent-stack.ts
26
26
  import * as cdk from "aws-cdk-lib";
@@ -1085,6 +1085,13 @@ class FoundationApi extends cdk2.Stack {
1085
1085
  `arn:${this.partition}:bedrock-agentcore:${this.region}:${this.account}:runtime/${names.runtimeName}*/runtime-endpoint/*`
1086
1086
  ]
1087
1087
  }));
1088
+ invokerRole.addToPolicy(new iam2.PolicyStatement({
1089
+ sid: "ReadRuntimeEndpointVersion",
1090
+ actions: ["bedrock-agentcore:GetAgentRuntimeEndpoint"],
1091
+ resources: [
1092
+ `arn:${this.partition}:bedrock-agentcore:${this.region}:${this.account}:runtime/${names.runtimeName}*/runtime-endpoint/*`
1093
+ ]
1094
+ }));
1088
1095
  invokerRole.addToPolicy(new iam2.PolicyStatement({
1089
1096
  sid: "SlackBotToken",
1090
1097
  actions: ["secretsmanager:GetSecretValue"],
@@ -1200,7 +1200,7 @@ import { parse as parseYaml2 } from "yaml";
1200
1200
  import { z as z4 } from "zod";
1201
1201
 
1202
1202
  // ../core/src/capability-jobs.ts
1203
- var UPWORK_SCAN_PROMPT = "Upwork scan. Follow the upwork skill's scheduled-scan steps and the company's own Upwork skill, if it has one: search for jobs posted since the previous scan, skip any job id already noted in this channel's memory, score the rest against the company's criteria, and post the best matches (at most five) with fit, client signals, suggested rate and Connects cost. Then note the posted job ids in channel memory. If nothing fits, reply with one short line. Do not draft or prepare proposals here.";
1203
+ var UPWORK_SCAN_PROMPT = "Upwork scan. Follow the upwork skill's scheduled-scan steps and the company's own Upwork skill, if it has one. " + "1) Read the channel memory note `upwork-scan-log` for the previous scan's time (UTC) and the job ids already posted; with no note, cover the last 48 hours. " + "2) Run each of the company's named searches with pageSize 25. Results come newest first with publishedDateTime: follow endCursor until a page reaches jobs published before the previous scan, at most four pages per search. " + "3) Merge by job id, drop ids already in the log, and shortlist on title, budget, skills and client feedback. " + "4) Open every plausible candidate with upwork_get_job (up to fifteen) and score them against the company's criteria. " + "5) Post the best matches, at most five, each with fit, client signals, suggested rate, Connects cost and the job id; if nothing fits, reply with one short line. " + "6) Update `upwork-scan-log` with memory_note_write (read it first and pass its revision): this scan's time and the ids you posted, ids and decisions only, the last seven days. Never put the log in the memory index. " + "Do not draft or prepare proposals here.";
1204
1204
  var UPWORK_PROPOSAL_CHECK_PROMPT = "Upwork proposal check. Follow the upwork skill: list our proposals with upwork_list_proposals and post only what changed since the last check noted in this channel's memory (viewed, interview, offer, declined, hired, withdrawn), each with the job title and a suggested next step, then update that note. If nothing changed, reply with one short line.";
1205
1205
  function upworkJob(config, id, name, prompt, job) {
1206
1206
  const channel = job.channel ?? config.capabilities.upwork.channels[0];
package/dist/src/index.js CHANGED
@@ -10,7 +10,7 @@ import {
10
10
  FoundationPipeline,
11
11
  NewsletterStack,
12
12
  deployStatements
13
- } from "../chunk-vmjptheh.js";
13
+ } from "../chunk-5qdgp5yj.js";
14
14
  import {
15
15
  BUN_VERSION,
16
16
  LAMBDA_ENTRY_POINTS,
@@ -43,7 +43,7 @@ import {
43
43
  skillsKey,
44
44
  skipBundle,
45
45
  verifyManifest
46
- } from "../chunk-fpktb36j.js";
46
+ } from "../chunk-wxaexe2j.js";
47
47
  export {
48
48
  BUILD_TIMEOUT,
49
49
  BUN_VERSION,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deployfoundation/foundation-deploy",
3
- "version": "0.2.29",
3
+ "version": "0.2.31",
4
4
  "description": "Deploys one Foundation instance from a published, signed release: the CDK app and the deploy tool.",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,
@@ -528,6 +528,17 @@ export class FoundationApi extends cdk.Stack {
528
528
  ],
529
529
  }),
530
530
  );
531
+ // Which version the endpoint serves: the invoker names it in the session
532
+ // id so a thread moves off a pre-deploy microVM on its next turn.
533
+ invokerRole.addToPolicy(
534
+ new iam.PolicyStatement({
535
+ sid: "ReadRuntimeEndpointVersion",
536
+ actions: ["bedrock-agentcore:GetAgentRuntimeEndpoint"],
537
+ resources: [
538
+ `arn:${this.partition}:bedrock-agentcore:${this.region}:${this.account}:runtime/${names.runtimeName}*/runtime-endpoint/*`,
539
+ ],
540
+ }),
541
+ );
531
542
  invokerRole.addToPolicy(
532
543
  new iam.PolicyStatement({
533
544
  sid: "SlackBotToken",