@deployfoundation/foundation-deploy 0.2.29 → 0.2.30
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 +2 -2
- package/dist/bin/foundation-deploy.js +3 -2
- package/dist/bin/release-account.js +2 -2
- package/dist/{chunk-3cwee91k.js → chunk-1c56b284.js} +1 -1
- package/dist/{chunk-vmjptheh.js → chunk-5qdgp5yj.js} +8 -1
- package/dist/{chunk-fpktb36j.js → chunk-wxaexe2j.js} +1 -1
- package/dist/src/index.js +2 -2
- package/package.json +1 -1
- package/src/stacks/api-stack.ts +11 -0
package/dist/bin/app.js
CHANGED
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
FoundationPages,
|
|
9
9
|
FoundationPipeline,
|
|
10
10
|
NewsletterStack
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-5qdgp5yj.js";
|
|
12
12
|
import {
|
|
13
13
|
adminsFor,
|
|
14
14
|
instanceNames,
|
|
15
15
|
loadInstanceFile,
|
|
16
16
|
provisionsIntegration
|
|
17
|
-
} from "../chunk-
|
|
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-
|
|
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-
|
|
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 }
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
scheduledJobBindings,
|
|
21
21
|
slackCommandPrefixes,
|
|
22
22
|
webhookJobBindings
|
|
23
|
-
} from "./chunk-
|
|
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
|
|
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-
|
|
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-
|
|
46
|
+
} from "../chunk-wxaexe2j.js";
|
|
47
47
|
export {
|
|
48
48
|
BUILD_TIMEOUT,
|
|
49
49
|
BUN_VERSION,
|
package/package.json
CHANGED
package/src/stacks/api-stack.ts
CHANGED
|
@@ -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",
|