Commit Graph

760 Commits

Author SHA1 Message Date
David Walker
3d7d2d7734 REFACTOR: Move Result to the public API (#2398)
* REFACTOR: Move Result to the public API

This refactors Result<T> to be part of the public NetscriptDefinitions.
It is not used by anything in this PR, but it is planned to be used in
the autoinfil APIs, or lacking that, future APIs, so this should not be
exposing anything prematurely.

* Add @public as api-extractor suggested and generate docs

* Use import type

---------

Co-authored-by: CatLover <152669316+catloversg@users.noreply.github.com>
2026-01-17 14:30:49 +07:00
EntenBu
fc2931bc15 DOC: Change wording in Singularity.installAugmentation (#2439)
This commit changes a minor wording in the API commit. "uninstalled" implies "removed" hence the change
2026-01-03 13:45:40 -08:00
gmcew
df6c507369 MISC: Fix typos and duplicating ms per cycle constant (#2436) 2025-12-28 16:09:35 -08:00
Michael Ficocelli
4218b01dfb IPVGO: Do not update captures on passed analysis boards (#2415) 2025-12-21 13:44:24 -08:00
Paul Setzer
968c0c2a8c CONTRACTS: Generate test contracts on executing host by default. Add support for optional parameter to specify the server. (#2417) 2025-12-16 16:23:59 -08:00
sg673
a20053cde8 DOCUMENTATION: Clarify behavior of NS.getScriptLogs() for running scripts (#2408) 2025-12-02 12:39:35 -08:00
gmcew
cf32ea553f Clarification of Singularity costs inside BN4 (#2403)
- change BN description to highlight SF levels impact other BN use of singularity functions
 - add detail to singularity API description to highlight the same
2025-11-27 11:15:02 -08:00
imcute_aaaa
77fe36db89 BUGFIX: Coding contracts may have duplicate names (#2399) 2025-11-26 23:59:11 -08:00
gmcew
7c0286222c API: Move and rename purchased server functions to cloud API (#2367)
* Convert purchased server functions to cloud API

- Create `ns.cloud`
- Change `bitnode multipliers` and `server constants` wording for consistency
- change `server`, `ram` and `getting started` docs for consistency
- Added changes to 3.0.0 API Break and `setRemovedFunctions` in NetscriptFunctions.js

Tested by
- running tutorial `purchase-server-8gb.js`, and a more typical player one
- buying manually using vendor (Alpha Ent in Sector 12)
- deleting them all using script, and checked all deleted functions gave correct error
- Imported completed save to ensure auto-transfer of function work

* Revision in line with comments

- changed more `purchased` to `cloud` references
- Added BN mults auto-conversion

* Update getting_started.md

 - Corrected function names for new `cloud API`

* Don't show `cloud API` warning

v3.0.0 API break auto-replaces `cloud` functions, not warning suggested.

* API Break correction

- `cloud` affected API break replacement changed to be more descriptive and functional

* Fix typo and add empty lines

* Update many things (check commit's description)

- Comments
- Terminal message
- UI Text
- TSDoc
- md docs
- Improve error messages in src\NetscriptFunctions\Cloud.ts
2025-11-07 12:10:33 -08:00
Nick Shelley
d1a4ec8337 DOCUMENTATION: Improve wording around host argument of getScriptRam (#2374) 2025-11-07 11:57:33 -08:00
Shy
4ad9a96788 MISC: Support css file type (#2378) 2025-11-05 14:05:31 -08:00
catloversg
174e160348 API: Make ActiveFragment extend Fragment (#2373)
* DOCUMENTATION: Fix wrong return type of ns.stanek.activeFragments

* Make ActiveFragment extend Fragment
2025-10-30 10:27:58 -07:00
catloversg
c6e40476bb DOCUMENTATION: Fix missing/wrong TSDoc of APIs having optional host parameter (#2371) 2025-10-29 11:15:10 -07:00
catloversg
cb5b80a6d5 DOCUMENTATION: Use alternative fix for newline issue in IPvGO docs (#2350) 2025-10-15 11:58:11 -07:00
catloversg
30a572cfe6 API: Rename "TIX" interface to "Stock" (#2351) 2025-10-14 11:51:54 -07:00
Adam Weeden
0335d8bc70 STANEK: Add FragmentType to NS Enums (#2341) 2025-10-13 08:57:19 -07:00
catloversg
030be41df9 CODEBASE: Refactor Stanek's Gift UI code and change internal FragmentType enum (#2346) 2025-10-12 13:23:45 -07:00
catloversg
950c21d734 API: Update type of Player.factions, GangGenInfo.faction and CorpMaterialConstantData.name (#2347) 2025-10-12 13:00:21 -07:00
catloversg
d421d4fcf9 MISC: Make TIX access independent from WSE account (#2342) 2025-10-11 17:28:45 -07:00
Thaccus
625fe46bc3 DOCUMENTATION: Clarify cross-host characteristic of PID and port (#2336) 2025-10-07 13:40:05 -07:00
Ante
f9a6cc841e CORPORATION: Expose production limit of material and product (#2330) 2025-10-01 01:04:39 -07:00
acidduk
b025a4d0c1 Update NetscriptDefinitions.d.ts (#2289)
Improve function description
2025-08-15 23:37:13 -07:00
catloversg
f0ca10e1b1 CORPORATION: Prevent purchasing product-only research for material industries (#2283) 2025-08-06 04:07:04 -07:00
Victor Oliveira
2d8401eaae Change alert to accept multiple args as other print functions (#2278) 2025-08-04 09:25:06 -07:00
catloversg
970368d11d API: Expose gang's discount rate (#2272) 2025-08-01 09:32:51 -07:00
catloversg
8976d54532 API: Add ns.singularity.getHackingLevelRequirementOfProgram (#2271) 2025-07-30 14:44:06 -07:00
gmcew
952fc28b67 UI: Corrected ns.tail examples to ns.ui.openTail (#2270)
Changed to ns.ui.openTail in the example text where needed.
2025-07-29 13:06:32 -07:00
catloversg
8729dc3d1b MISC: Update messages related to text files (#2266) 2025-07-24 22:39:55 -07:00
Chris Farfan de los Godos
8f69a6c0ee COMMAND: Improving error message for mv when a script is Running
* Adjusted error message to include information about making sure scripts are not running when trying to use mv on them.

* nom run format

* Added behaviour info to NetscriptDefinitions.d.ts

* `npm run doc`

* un-nested/inversed the check

* `npm run format`
2025-07-23 16:27:01 -07:00
catloversg
e3ea611928 CORPORATION: Remove VeChain (#2245) 2025-07-17 14:24:19 -07:00
catloversg
41548d8b7b DOCUMENTATION: Fix wrong param/return type and clarify ns.sleep, ns.asleep, ns.singularity.exportGame (#2242) 2025-07-16 17:06:34 -07:00
catloversg
477d01652b CORPORATION: Remove Spring Water industry (#2240) 2025-07-16 01:07:55 -07:00
catloversg
f182030385 CORPORATION: Use different term for dividend modifier instead of tax (#2237) 2025-07-11 12:55:46 -07:00
gmcew
3fc65a2de4 CONTRACTS: Proposal for Contract Progression System (#2230) 2025-07-10 14:25:36 -07:00
catloversg
6c7783aa85 CORPORATION: Remove DreamSense upgrade (#2232) 2025-07-10 01:40:36 -07:00
catloversg
fe13c3e2ca DOCUMENTATION: Fix outdated description of Bladeburner interface (#2226) 2025-07-05 18:15:40 -07:00
catloversg
d7642b34d0 API: Rename FactionName.BachmanAssociates to FactionName.BachmanAndAssociates (#2183) 2025-06-25 13:11:37 -07:00
catloversg
30b8c0faee CORPORATION: Remove mention of unusable research "sudo.Assist" (#2187) 2025-06-21 13:33:24 -07:00
catloversg
1eca42c75e API: Make ns.codingcontract.createDummyContract throw error if type is invalid (#2188) 2025-06-20 12:08:49 -07:00
catloversg
00e2169c92 DOCUMENTATION: Specify param type of many Corporation APIs (#2190) 2025-06-20 12:06:37 -07:00
Kevin Sandow
694581cb52 MISC: Fix NetscriptDefinitions.d.ts formatting/escaping warnings (#2189) 2025-06-20 11:19:58 -07:00
Kevin Sandow
e44414850e MISC: Update NetscriptDefinitions.d.ts to include typings for hightlightPoint() and clearPointHighlight() (#2175) 2025-06-20 11:16:23 -07:00
catloversg
a794fddaf7 MISC: Add file metadata (timestamps) (#2199) 2025-06-16 16:34:06 -07:00
catloversg
e5bfa641e1 DOCUMENTATION: Remove mention of NS2 in NetscriptDefinitions.d.ts (#2200) 2025-06-15 00:00:54 -07:00
catloversg
2cabb98095 API: Rename BN multiplier RepToDonateToFaction to FavorToDonateToFaction (#2178) 2025-06-03 01:21:59 -07:00
catloversg
bdc08cf992 DOCUMENTATION: Fix missing and outdated info of optional parameter (#2176) 2025-06-03 01:13:54 -07:00
catloversg
7d2686ed1b API: Standardize names of Stock APIs (#2173) 2025-06-02 02:36:36 -07:00
catloversg
6a23c85e12 UI: Search and read NS API docs in editor tab and documentation tab (#2163) 2025-05-31 23:53:20 -07:00
catloversg
296295b490 API: Add more enums to ns.enums (#2165) 2025-05-30 03:37:59 -07:00
catloversg
9824166dbf CORPORATION: Rename division.type to division.industry (#2152) 2025-05-28 04:47:26 -07:00