Skip to content

Comments

initial checkin of the deploy-agent GH action#1

Merged
wall-rl merged 3 commits intomainfrom
wall-init
Nov 17, 2025
Merged

initial checkin of the deploy-agent GH action#1
wall-rl merged 3 commits intomainfrom
wall-init

Conversation

@wall-rl
Copy link
Contributor

@wall-rl wall-rl commented Nov 17, 2025

This has to use the old SDK for now since the new SDK does not (yet) support the agent APIs.

@wall-rl wall-rl requested a review from dines-rl November 17, 2025 03:08
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably shouldn't check in the dist folder

throw new Error(`Invalid source-type: ${inputs.sourceType}. Must be one of: ${validSourceTypes.join(', ')}`);
}
// Validate source-specific inputs
switch (inputs.sourceType) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this logic probably is on our side right? not in the git side? we intend them to use our agent system? which they would upload through us or through their agent repository? IE assume the agent is uploaded or do that in another step, (to simplify this) I'm not saying this has to be this way, more of a nit / idea but it will be a cleaner interface

uses: actions/checkout@v4

- name: Deploy agent to Runloop
id: deploy

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To my comment before there would be a step for upload agent

"scripts": {
"build": "tsc",
"clean": "rm -rf dist",
"rebuild": "pnpm run clean && pnpm run build",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

usually you don't do this, also probably recommended to use npm default if this is for showing other people what to do


on:
release:
types: [published]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

possibly merge main (this is true in a real environment but when someone copy pastas this they probably want main

const fileName = path.basename(filePath);

// Determine content type based on file extension
let contentType: 'tgz' | 'tar' | 'gzip';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should probably delete this and just use the SDK code that does this.

core.info(`Uploading single file: ${filePath}`);

const fileBuffer = fs.readFileSync(filePath);
const fileName = path.basename(filePath);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same

},
...(ttlMs && { ttl_ms: ttlMs }),
};

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same

const sample = buffer.slice(0, Math.min(1024, buffer.length));
let textBytes = 0;

for (const byte of sample) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same

"compilerOptions": {
"target": "ES2022",
"module": "commonjs",
"lib": ["ES2022"],

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ask the LLm to use Node configuration on this

@wall-rl wall-rl merged commit ee762c0 into main Nov 17, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants